string_tools 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzFmN2E2MWVjYmIzOTAzM2E4ZDdkZjQ0ZjQ5YmUxMGIxYmM4MGQ0ZQ==
4
+ Mzc2OTA0NWIzYWM5ZmY3Zjg4MTNhZDQzNWMzOWRkNjhjODYzM2MzNA==
5
5
  data.tar.gz: !binary |-
6
- ZGZkNDkyODFiNzc0NDNmNGEwYWQ1NTMzNzVhYjExYmIzNGM2OTU4YQ==
6
+ MTEyNTA4MjMwMDEyMDBjMGEyYjgwMmFmMDQyYzRjYWYxZTZlZTNlOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjlkNGQ4YWVmOTFiYWFlZmU5NWQwMWY5ZjYxMTFjNmFmMjcxZjYyOTJlMGQy
10
- ZDFlMGY5YjZmYmYxOTI4OTQ1M2IwYjdmYzIxZTllYjliNDI1Y2Y2ODBkZTU4
11
- YmU0ODM4Y2EwNDE5YjM1ZTc2ZWY4NjRiMTc5ODMxZWMzYmQyZDg=
9
+ YTk0MzU3YWE3ZDg0MTM5MGVmOTg4ZmYwMDEyOTgzOWQ3MTg5NTEzNTFlYzhl
10
+ NGQxNTQzMDQxMTFjZDkzZDcwNDYyMjliNWJmM2UzYWE5M2ZjMzM2YTBiZDVm
11
+ OTY0M2VjMTM2YWJjNmRkMDg4Y2QyYzFmYjAyNWJkNWM4YzY2YjI=
12
12
  data.tar.gz: !binary |-
13
- ZDYwYzYzY2E4MWYxNWUzYmU5ZDIwNzBjNzI4MjkwNDkyY2FmZjIwYzljMzdj
14
- MTNkNmVlZGM5M2E2MzFjZTBmMWJmYzlkMTMyMGU1NzRhMjRiZGM5NTU2NzQ5
15
- NDQ0ZjE2MzI0Y2JlNzk1ZmQ4OTU5YWYyYTJjMDA3Y2QzNTFlOTQ=
13
+ MDMzYzQ2ZTA4ZWFmMDE0ZThjYTExZDVkMWZkYWQ2NjNiZWZlYjgyYjlhMmZh
14
+ Y2IyY2EwZjE3NmQ1MTFiNzA2ZjRiYTc1ODdjMGFlYmJlOWY0MjEzOWM2NTg0
15
+ ZTliYzFjYjdiNWYyYTYyMDNmNDVmN2Y2NWJjNTA2M2Q3NDUzY2M=
data/.drone.yml ADDED
@@ -0,0 +1,29 @@
1
+ matrix:
2
+ include:
3
+ - DOCKER_RUBY_VERSION: 2.2
4
+ RUBY_IMAGE_TAG: 2.2-1
5
+
6
+ - DOCKER_RUBY_VERSION: 1.9.3
7
+ RUBY_IMAGE_TAG: 1.9.3-2
8
+
9
+ build:
10
+ image: abakpress/dind:2
11
+ privileged: true
12
+ volumes:
13
+ - /home/data/drone/images:/images
14
+ - /home/data/drone/gems:/bundle
15
+ - /home/data/drone/key_cache:/ssh_keys
16
+ environment:
17
+ - COMPOSE_FILE_EXT=drone
18
+ commands:
19
+ - wrapdocker docker -v
20
+
21
+ - if [ ! -e /images/ssh-agent.tar ]; then docker pull whilp/ssh-agent; docker save whilp/ssh-agent > /images/ssh-agent.tar; fi
22
+ - 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
23
+
24
+ - docker load -i /images/ssh-agent.tar
25
+ - docker load -i /images/ruby_$RUBY_IMAGE_TAG.tar
26
+
27
+ - dip ssh add -T -v /ssh_keys -k /ssh_keys/id_rsa
28
+ - dip provision
29
+ - dip rspec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
 
2
2
  #### [Current]
3
+ * 2016-11-07 [90bf503](../../commit/90bf503) - __(Konstantin Lazarev)__ chore: add drone and dip
4
+ * 2016-11-07 [27502f5](../../commit/27502f5) - __(Konstantin Lazarev)__ feature: add String#mb_downcase method
5
+
6
+ #### v0.6.1
7
+ * 2016-06-10 [c6c1931](../../commit/c6c1931) - __(Korotaev Danil)__ Release 0.6.1
3
8
  * 2016-06-03 [739cdac](../../commit/739cdac) - __(Korotaev Danil)__ fix: rename incorrect named method
4
9
 
5
10
  #### v0.6.0
data/Gemfile CHANGED
@@ -3,3 +3,11 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in string_tools.gemspec
4
4
  gemspec
5
5
 
6
+ if RUBY_VERSION < '2'
7
+ gem 'activerecord', '< 5.0'
8
+ gem 'actionpack', '< 5.0'
9
+ gem 'activesupport', '< 5.0'
10
+ gem 'pry-debugger'
11
+ else
12
+ gem 'pry-byebug'
13
+ end
data/dip.yml ADDED
@@ -0,0 +1,41 @@
1
+ version: '1'
2
+
3
+ environment:
4
+ DOCKER_RUBY_VERSION: 1.9.3
5
+ RUBY_IMAGE_TAG: 1.9.3-2
6
+ COMPOSE_FILE_EXT: development
7
+ RAILS_ENV: test
8
+
9
+ compose:
10
+ files:
11
+ - docker-compose.yml
12
+ - docker-compose.${COMPOSE_FILE_EXT}.yml
13
+
14
+ interaction:
15
+ sh:
16
+ service: app
17
+
18
+ irb:
19
+ service: app
20
+ command: irb
21
+
22
+ bundle:
23
+ service: app
24
+ command: bundle
25
+
26
+ appraisal:
27
+ service: app
28
+ command: bundle exec appraisal
29
+
30
+ rspec:
31
+ service: app
32
+ command: bundle exec appraisal bundle exec rspec
33
+
34
+ clean:
35
+ service: app
36
+ command: rm -f Gemfile.lock gemfiles/*.gemfile.*
37
+
38
+ provision:
39
+ - docker volume create --name bundler_data
40
+ - dip bundle install
41
+ - dip appraisal install
@@ -0,0 +1,18 @@
1
+ version: '2'
2
+
3
+ services:
4
+ app:
5
+ volumes:
6
+ - .:/app
7
+ - ../:/localgems
8
+ - ssh-data:/ssh:ro
9
+ - bundler-data:/bundle
10
+
11
+ volumes:
12
+ bundler-data:
13
+ external:
14
+ name: bundler_data
15
+
16
+ ssh-data:
17
+ external:
18
+ name: ssh_data
@@ -0,0 +1,13 @@
1
+ version: '2'
2
+
3
+ services:
4
+ app:
5
+ volumes:
6
+ - .:/app
7
+ - /bundle:/bundle
8
+ - ssh-data:/ssh:ro
9
+
10
+ volumes:
11
+ ssh-data:
12
+ external:
13
+ name: ssh_data
@@ -0,0 +1,9 @@
1
+ version: '2'
2
+
3
+ services:
4
+ app:
5
+ image: abakpress/ruby:$RUBY_IMAGE_TAG
6
+ environment:
7
+ - SSH_AUTH_SOCK=/ssh/auth/sock
8
+ - BUNDLE_PATH=/bundle/$DOCKER_RUBY_VERSION
9
+ command: bash
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'rchardet19'
2
4
  require 'addressable/uri'
3
5
  require 'active_support/core_ext/module'
@@ -192,6 +194,15 @@ class String
192
194
  self.replace(self.to_cp1251)
193
195
  end
194
196
 
197
+ def mb_downcase
198
+ # https://github.com/rails/rails/commit/393e19e508a08ede0f5037bccb984e3eb252d579
199
+ if ActiveSupport::VERSION::STRING >= '4.0.0' && ActiveSupport::VERSION::STRING <= '4.2.0'
200
+ ActiveSupport::Multibyte::Unicode.send(:database).codepoints
201
+ end
202
+
203
+ mb_chars.downcase.to_s
204
+ end
205
+
195
206
  private
196
207
 
197
208
  def surround_with_ansi(ascii_seq)
@@ -1,3 +1,3 @@
1
1
  module StringTools
2
- VERSION = '0.6.1'
2
+ VERSION = '0.7.0'
3
3
  end
data/string_tools.gemspec CHANGED
@@ -38,5 +38,4 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency 'appraisal', '>= 1.0.2'
39
39
  spec.add_development_dependency 'combustion', '>= 0.5.3'
40
40
  spec.add_development_dependency 'simplecov', '>= 0.9'
41
- spec.add_development_dependency 'pry-debugger'
42
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey D.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-10 00:00:00.000000000 Z
11
+ date: 2016-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -262,20 +262,6 @@ dependencies:
262
262
  - - ! '>='
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0.9'
265
- - !ruby/object:Gem::Dependency
266
- name: pry-debugger
267
- requirement: !ruby/object:Gem::Requirement
268
- requirements:
269
- - - ! '>='
270
- - !ruby/object:Gem::Version
271
- version: '0'
272
- type: :development
273
- prerelease: false
274
- version_requirements: !ruby/object:Gem::Requirement
275
- requirements:
276
- - - ! '>='
277
- - !ruby/object:Gem::Version
278
- version: '0'
279
265
  description: String Tools
280
266
  email:
281
267
  - sclinede@gmail.com
@@ -283,6 +269,7 @@ executables: []
283
269
  extensions: []
284
270
  extra_rdoc_files: []
285
271
  files:
272
+ - .drone.yml
286
273
  - .gitignore
287
274
  - .rspec
288
275
  - Appraisals
@@ -293,6 +280,10 @@ files:
293
280
  - README.md
294
281
  - Rakefile
295
282
  - bin/console
283
+ - dip.yml
284
+ - docker-compose.development.yml
285
+ - docker-compose.drone.yml
286
+ - docker-compose.yml
296
287
  - lib/string_tools.rb
297
288
  - lib/string_tools/core_ext/string.rb
298
289
  - lib/string_tools/html.rb