-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Le6ow5k1/master
feature: add String#mb_downcase method
- Loading branch information
Showing
9 changed files
with
138 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
matrix: | ||
include: | ||
- DOCKER_RUBY_VERSION: 2.2 | ||
RUBY_IMAGE_TAG: 2.2-1 | ||
|
||
- DOCKER_RUBY_VERSION: 1.9.3 | ||
RUBY_IMAGE_TAG: 1.9.3-2 | ||
|
||
build: | ||
image: abakpress/dind:2 | ||
privileged: true | ||
volumes: | ||
- /home/data/drone/images:/images | ||
- /home/data/drone/gems:/bundle | ||
- /home/data/drone/key_cache:/ssh_keys | ||
environment: | ||
- COMPOSE_FILE_EXT=drone | ||
commands: | ||
- wrapdocker docker -v | ||
|
||
- if [ ! -e /images/ssh-agent.tar ]; then docker pull whilp/ssh-agent; docker save whilp/ssh-agent > /images/ssh-agent.tar; fi | ||
- if [ ! -e /images/ruby_$RUBY_IMAGE_TAG.tar ]; then docker pull abakpress/ruby:$RUBY_IMAGE_TAG; docker save abakpress/ruby:$RUBY_IMAGE_TAG > /images/ruby_$RUBY_IMAGE_TAG.tar; fi | ||
|
||
- docker load -i /images/ssh-agent.tar | ||
- docker load -i /images/ruby_$RUBY_IMAGE_TAG.tar | ||
|
||
- dip ssh add -T -v /ssh_keys -k /ssh_keys/id_rsa | ||
- dip provision | ||
- dip rspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
version: '1' | ||
|
||
environment: | ||
DOCKER_RUBY_VERSION: 1.9.3 | ||
RUBY_IMAGE_TAG: 1.9.3-2 | ||
COMPOSE_FILE_EXT: development | ||
RAILS_ENV: test | ||
|
||
compose: | ||
files: | ||
- docker-compose.yml | ||
- docker-compose.${COMPOSE_FILE_EXT}.yml | ||
|
||
interaction: | ||
sh: | ||
service: app | ||
|
||
irb: | ||
service: app | ||
command: irb | ||
|
||
bundle: | ||
service: app | ||
command: bundle | ||
|
||
appraisal: | ||
service: app | ||
command: bundle exec appraisal | ||
|
||
rspec: | ||
service: app | ||
command: bundle exec appraisal bundle exec rspec | ||
|
||
clean: | ||
service: app | ||
command: rm -f Gemfile.lock gemfiles/*.gemfile.* | ||
|
||
provision: | ||
- docker volume create --name bundler_data | ||
- dip bundle install | ||
- dip appraisal install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: '2' | ||
|
||
services: | ||
app: | ||
volumes: | ||
- .:/app | ||
- ../:/localgems | ||
- ssh-data:/ssh:ro | ||
- bundler-data:/bundle | ||
|
||
volumes: | ||
bundler-data: | ||
external: | ||
name: bundler_data | ||
|
||
ssh-data: | ||
external: | ||
name: ssh_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '2' | ||
|
||
services: | ||
app: | ||
volumes: | ||
- .:/app | ||
- /bundle:/bundle | ||
- ssh-data:/ssh:ro | ||
|
||
volumes: | ||
ssh-data: | ||
external: | ||
name: ssh_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: '2' | ||
|
||
services: | ||
app: | ||
image: abakpress/ruby:$RUBY_IMAGE_TAG | ||
environment: | ||
- SSH_AUTH_SOCK=/ssh/auth/sock | ||
- BUNDLE_PATH=/bundle/$DOCKER_RUBY_VERSION | ||
command: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# coding: utf-8 | ||
|
||
require 'spec_helper' | ||
|
||
describe String do | ||
describe '#mb_downcase' do | ||
it { expect("Кириллица".mb_downcase).to eq("кириллица") } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters