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 +8 -8
- data/.drone.yml +29 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +8 -0
- data/dip.yml +41 -0
- data/docker-compose.development.yml +18 -0
- data/docker-compose.drone.yml +13 -0
- data/docker-compose.yml +9 -0
- data/lib/string_tools/core_ext/string.rb +11 -0
- data/lib/string_tools/version.rb +1 -1
- data/string_tools.gemspec +0 -1
- metadata +7 -16
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Mzc2OTA0NWIzYWM5ZmY3Zjg4MTNhZDQzNWMzOWRkNjhjODYzM2MzNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTEyNTA4MjMwMDEyMDBjMGEyYjgwMmFmMDQyYzRjYWYxZTZlZTNlOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTk0MzU3YWE3ZDg0MTM5MGVmOTg4ZmYwMDEyOTgzOWQ3MTg5NTEzNTFlYzhl
|
10
|
+
NGQxNTQzMDQxMTFjZDkzZDcwNDYyMjliNWJmM2UzYWE5M2ZjMzM2YTBiZDVm
|
11
|
+
OTY0M2VjMTM2YWJjNmRkMDg4Y2QyYzFmYjAyNWJkNWM4YzY2YjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
data/docker-compose.yml
ADDED
@@ -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)
|
data/lib/string_tools/version.rb
CHANGED
data/string_tools.gemspec
CHANGED
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.
|
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-
|
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
|