string_tools 1.3.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 518b671cee6921170a923aec262e1da3552c586c87540db9d8ab232e90104eb1
4
- data.tar.gz: 573cf234c034abf50ecc23c7ae016a0aafd63038c8b0af589a04e54b6077ddf3
3
+ metadata.gz: 1608830ff7d142898c99b59fd6cc9e70f5455688dc78cacd5d76b1d5a67cab59
4
+ data.tar.gz: 47f5346eccd9a923d1ca5ed122dd82ce66da117e7fb5e0fb08cdc91c6f72c16f
5
5
  SHA512:
6
- metadata.gz: 667b2621aadf33fd77f3b1d003105adb982959cfc30d5694626480e52704c68e87bf9c0171ec6d0fa44eb353966de1ea78e053d1c2ac6c4e2bc2705baadd41c5
7
- data.tar.gz: 8f5f2d10969a4b30f80ec931f7f2451653e3437e7400caff6bc58621535af396eed2049532abd6f3c30e9a08927b4ef3e47b8adfb11456431e7d0706b216f289
6
+ metadata.gz: 20e58fea73e443fe84da5d5b62349571199f1afbf4e0f66ef688f8bea052f8464ace22a9c86f71e48b1de15ec1a4ef58d075d430effd88df08846cad0b9b4ac5
7
+ data.tar.gz: b2c1db6dfe69c0a3d0b52783a3ccec10c57e60a6ab774ca813d9da9e08a5e9f19175695c6047e162ba982bd55da139b564b17b7ddfeaf95d6039d9ffc3c44fd8
data/.drone.yml CHANGED
@@ -16,11 +16,6 @@ spec_step_common: &spec_step_common
16
16
  volumes:
17
17
  - name: bundle
18
18
  path: /bundle
19
- commands:
20
- - rm -fr Gemfile.lock gemfiles/
21
- - bundle install -j 5
22
- - bundle exec appraisal install
23
- - bundle exec appraisal bundle exec rspec
24
19
 
25
20
  steps:
26
21
  - name: build on ruby2.4
@@ -30,6 +25,26 @@ steps:
30
25
  TEST_DB_NAME: docker
31
26
  TEST_DB_USERNAME: postgres
32
27
  BUNDLE_PATH: /bundle/2.4
28
+ commands:
29
+ - bundle install
30
+ - bundle exec appraisal install
31
+ - bundle exec appraisal bundle exec rspec
32
+ <<: *spec_step_common
33
+
34
+ - name: build on ruby2.7
35
+ image: abakpress/ruby-app:2.7-latest
36
+ environment:
37
+ TEST_DB_HOST: postgres
38
+ TEST_DB_NAME: docker
39
+ TEST_DB_USERNAME: postgres
40
+ BUNDLE_PATH: /bundle/2.7
41
+ commands:
42
+ - cp Gemfile.lock Gemfile.lock.bak
43
+ - cp gemfiles-27/Gemfile.lock Gemfile.lock
44
+ - cp gemfiles-27/*.gemfile.* gemfiles/
45
+ - bundle install
46
+ - bundle exec appraisal install
47
+ - bundle exec appraisal bundle exec rspec
33
48
  <<: *spec_step_common
34
49
 
35
50
  - name: release
@@ -43,4 +58,5 @@ steps:
43
58
  - name: rubygems
44
59
  path: /root/.gem
45
60
  commands:
61
+ - cp Gemfile.lock.bak Gemfile.lock
46
62
  - release-gem --public
data/.gitignore CHANGED
@@ -1,12 +1,11 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
7
6
  /pkg/
8
7
  /spec/reports/
9
8
  /tmp/
10
- /gemfiles
11
9
  /.idea
12
10
  Makefile.local
11
+ vendor/
data/Appraisals CHANGED
@@ -1,6 +1,23 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails4.2' do
4
- gem 'actionpack', '~> 4.2.0'
5
- gem 'activesupport', '~> 4.2.0'
3
+ if RUBY_VERSION < '2.7'
4
+ appraise 'rails4.2' do
5
+ gem 'actionpack', '~> 4.2.0'
6
+ gem 'activesupport', '~> 4.2.0'
7
+ end
8
+
9
+ appraise 'rails5.0' do
10
+ gem 'actionpack', '~> 5.0.7'
11
+ gem 'activesupport', '~> 5.0.7'
12
+ end
13
+
14
+ appraise 'rails5.1' do
15
+ gem 'actionpack', '~> 5.1.7'
16
+ gem 'activesupport', '~> 5.1.7'
17
+ end
18
+ else
19
+ appraise 'rails6.0' do
20
+ gem 'actionpack', '~> 6.0.6.1'
21
+ gem 'activesupport', '~> 6.0.6.1'
22
+ end
6
23
  end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
- # v1.3.0
2
-
1
+ # v1.4.1
2
+
3
+ * 2025-12-12 [349c9e9](../../commit/349c9e9) - __(Andrew N. Shalaev)__ Release v1.4.1
4
+ * 2025-12-12 [b51bb6e](../../commit/b51bb6e) - __(Andrew N. Shalaev)__ fix: use correct version of bigdecimal
5
+ * 2025-12-12 [4900b1c](../../commit/4900b1c) - __(Andrew N. Shalaev)__ Release v1.4.1
6
+ * 2025-12-12 [78f7efa](../../commit/78f7efa) - __(Andrew N. Shalaev)__ fix: return back Gemfile.lock for releases
7
+ * 2025-12-11 [fd6f02a](../../commit/fd6f02a) - __(Andrew N. Shalaev)__ Release v1.4.0
8
+ * 2025-12-11 [5937791](../../commit/5937791) - __(Andrew N. Shalaev)__ fix: do not ignore lock-files
9
+ * 2025-12-11 [9169a2f](../../commit/9169a2f) - __(Andrew N. Shalaev)__ feature: add support ruby v2.7 and rails6
10
+ * 2025-12-11 [0d2c1d3](../../commit/0d2c1d3) - __(Andrew N. Shalaev)__ fix: use proper ver of bigdecimal
11
+ * 2025-12-11 [0bf216a](../../commit/0bf216a) - __(Andrew N. Shalaev)__ feature: add support for Rails 5.x
3
12
  * 2024-11-15 [771ba6b](../../commit/771ba6b) - __(git3-railsc)__ Release 1.3.0
4
13
  * 2024-09-20 [cba6db7](../../commit/cba6db7) - __(bayerd412)__ feat(ck-editor video hosting): add rutube
5
14
  https://jira.railsc.ru/browse/PC4-31420
@@ -121,6 +130,11 @@ https://jira.railsc.ru/browse/PC4-16353
121
130
  # v3.0.1
122
131
 
123
132
 
133
+ # v1.3.0
134
+
135
+ * 2024-09-20 [cba6db7](../../commit/cba6db7) - __(bayerd412)__ feat(ck-editor video hosting): add rutube
136
+ https://jira.railsc.ru/browse/PC4-31420
137
+
124
138
  # v1.2.0
125
139
 
126
140
  * 2023-11-29 [393bb13](../../commit/393bb13) - __(GIGrave)__ feature: add media to sanitize rules
data/Gemfile CHANGED
@@ -4,4 +4,6 @@ source 'https://rubygems.org'
4
4
  # Specify your gem's dependencies in string_tools.gemspec
5
5
  gemspec
6
6
 
7
- gem 'actionpack', '~> 4.2.0', require: false
7
+ if RUBY_VERSION < '2.7'
8
+ gem 'bigdecimal', '< 2', require: false
9
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,122 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ string_tools (1.4.1)
5
+ actionpack (>= 4.2.0)
6
+ activesupport (>= 4.2.0)
7
+ addressable (>= 2.3.2)
8
+ nokogiri
9
+ rchardet19 (~> 1.3.5)
10
+ ru_propisju (>= 2.1.4)
11
+ sanitize (>= 3.1.2)
12
+ simpleidn (>= 0.0.5)
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ actionpack (5.2.8.1)
18
+ actionview (= 5.2.8.1)
19
+ activesupport (= 5.2.8.1)
20
+ rack (~> 2.0, >= 2.0.8)
21
+ rack-test (>= 0.6.3)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
+ actionview (5.2.8.1)
25
+ activesupport (= 5.2.8.1)
26
+ builder (~> 3.1)
27
+ erubi (~> 1.4)
28
+ rails-dom-testing (~> 2.0)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
30
+ activesupport (5.2.8.1)
31
+ concurrent-ruby (~> 1.0, >= 1.0.2)
32
+ i18n (>= 0.7, < 2)
33
+ minitest (~> 5.1)
34
+ tzinfo (~> 1.1)
35
+ addressable (2.8.8)
36
+ public_suffix (>= 2.0.2, < 8.0)
37
+ appraisal (2.5.0)
38
+ bundler
39
+ rake
40
+ thor (>= 0.14.0)
41
+ bigdecimal (1.4.4)
42
+ builder (3.3.0)
43
+ byebug (11.1.3)
44
+ coderay (1.1.3)
45
+ concurrent-ruby (1.3.5)
46
+ crass (1.0.6)
47
+ diff-lcs (1.6.2)
48
+ docile (1.3.5)
49
+ erubi (1.13.1)
50
+ i18n (1.14.7)
51
+ concurrent-ruby (~> 1.0)
52
+ loofah (2.21.1)
53
+ crass (~> 1.0.2)
54
+ nokogiri (>= 1.5.9)
55
+ method_source (1.1.0)
56
+ mini_portile2 (2.4.0)
57
+ minitest (5.15.0)
58
+ nokogiri (1.10.10)
59
+ mini_portile2 (~> 2.4.0)
60
+ nokogumbo (2.0.5)
61
+ nokogiri (~> 1.8, >= 1.8.4)
62
+ pry (0.13.1)
63
+ coderay (~> 1.1)
64
+ method_source (~> 1.0)
65
+ pry-byebug (3.9.0)
66
+ byebug (~> 11.0)
67
+ pry (~> 0.13.0)
68
+ public_suffix (4.0.7)
69
+ rack (2.2.21)
70
+ rack-test (2.2.0)
71
+ rack (>= 1.3)
72
+ rails-dom-testing (2.1.1)
73
+ activesupport (>= 5.0.0)
74
+ minitest
75
+ nokogiri (>= 1.6)
76
+ rails-html-sanitizer (1.5.0)
77
+ loofah (~> 2.19, >= 2.19.1)
78
+ rake (13.3.1)
79
+ rchardet19 (1.3.7)
80
+ rspec (3.13.2)
81
+ rspec-core (~> 3.13.0)
82
+ rspec-expectations (~> 3.13.0)
83
+ rspec-mocks (~> 3.13.0)
84
+ rspec-core (3.13.6)
85
+ rspec-support (~> 3.13.0)
86
+ rspec-expectations (3.13.5)
87
+ diff-lcs (>= 1.2.0, < 2.0)
88
+ rspec-support (~> 3.13.0)
89
+ rspec-mocks (3.13.7)
90
+ diff-lcs (>= 1.2.0, < 2.0)
91
+ rspec-support (~> 3.13.0)
92
+ rspec-support (3.13.6)
93
+ ru_propisju (2.6.0)
94
+ sanitize (5.2.3)
95
+ crass (~> 1.0.2)
96
+ nokogiri (>= 1.8.0)
97
+ nokogumbo (~> 2.0)
98
+ simplecov (0.18.5)
99
+ docile (~> 1.1)
100
+ simplecov-html (~> 0.11)
101
+ simplecov-html (0.13.2)
102
+ simpleidn (0.2.3)
103
+ thor (1.2.2)
104
+ thread_safe (0.3.6)
105
+ tzinfo (1.2.11)
106
+ thread_safe (~> 0.1)
107
+
108
+ PLATFORMS
109
+ ruby
110
+
111
+ DEPENDENCIES
112
+ appraisal (>= 1.0.2)
113
+ bigdecimal (< 2)
114
+ bundler
115
+ pry-byebug
116
+ rake
117
+ rspec (>= 3.4)
118
+ simplecov (>= 0.9)
119
+ string_tools!
120
+
121
+ BUNDLED WITH
122
+ 1.17.3
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "bigdecimal", "< 2", require: false
6
+ gem "actionpack", "~> 4.2.0"
7
+ gem "activesupport", "~> 4.2.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,126 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ string_tools (1.4.1)
5
+ actionpack (>= 4.2.0)
6
+ activesupport (>= 4.2.0)
7
+ addressable (>= 2.3.2)
8
+ nokogiri
9
+ rchardet19 (~> 1.3.5)
10
+ ru_propisju (>= 2.1.4)
11
+ sanitize (>= 3.1.2)
12
+ simpleidn (>= 0.0.5)
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ actionpack (4.2.11.3)
18
+ actionview (= 4.2.11.3)
19
+ activesupport (= 4.2.11.3)
20
+ rack (~> 1.6)
21
+ rack-test (~> 0.6.2)
22
+ rails-dom-testing (~> 1.0, >= 1.0.5)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
+ actionview (4.2.11.3)
25
+ activesupport (= 4.2.11.3)
26
+ builder (~> 3.1)
27
+ erubis (~> 2.7.0)
28
+ rails-dom-testing (~> 1.0, >= 1.0.5)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
30
+ activesupport (4.2.11.3)
31
+ i18n (~> 0.7)
32
+ minitest (~> 5.1)
33
+ thread_safe (~> 0.3, >= 0.3.4)
34
+ tzinfo (~> 1.1)
35
+ addressable (2.8.8)
36
+ public_suffix (>= 2.0.2, < 8.0)
37
+ appraisal (2.5.0)
38
+ bundler
39
+ rake
40
+ thor (>= 0.14.0)
41
+ bigdecimal (1.4.4)
42
+ builder (3.3.0)
43
+ byebug (11.1.3)
44
+ coderay (1.1.3)
45
+ concurrent-ruby (1.3.5)
46
+ crass (1.0.6)
47
+ diff-lcs (1.6.2)
48
+ docile (1.3.5)
49
+ erubis (2.7.0)
50
+ i18n (0.9.5)
51
+ concurrent-ruby (~> 1.0)
52
+ loofah (2.21.1)
53
+ crass (~> 1.0.2)
54
+ nokogiri (>= 1.5.9)
55
+ method_source (1.1.0)
56
+ mini_portile2 (2.4.0)
57
+ minitest (5.15.0)
58
+ nokogiri (1.10.10)
59
+ mini_portile2 (~> 2.4.0)
60
+ nokogumbo (2.0.5)
61
+ nokogiri (~> 1.8, >= 1.8.4)
62
+ pry (0.13.1)
63
+ coderay (~> 1.1)
64
+ method_source (~> 1.0)
65
+ pry-byebug (3.9.0)
66
+ byebug (~> 11.0)
67
+ pry (~> 0.13.0)
68
+ public_suffix (4.0.7)
69
+ rack (1.6.13)
70
+ rack-test (0.6.3)
71
+ rack (>= 1.0)
72
+ rails-deprecated_sanitizer (1.0.4)
73
+ activesupport (>= 4.2.0.alpha)
74
+ rails-dom-testing (1.0.9)
75
+ activesupport (>= 4.2.0, < 5.0)
76
+ nokogiri (~> 1.6)
77
+ rails-deprecated_sanitizer (>= 1.0.1)
78
+ rails-html-sanitizer (1.5.0)
79
+ loofah (~> 2.19, >= 2.19.1)
80
+ rake (13.3.1)
81
+ rchardet19 (1.3.7)
82
+ rspec (3.13.2)
83
+ rspec-core (~> 3.13.0)
84
+ rspec-expectations (~> 3.13.0)
85
+ rspec-mocks (~> 3.13.0)
86
+ rspec-core (3.13.6)
87
+ rspec-support (~> 3.13.0)
88
+ rspec-expectations (3.13.5)
89
+ diff-lcs (>= 1.2.0, < 2.0)
90
+ rspec-support (~> 3.13.0)
91
+ rspec-mocks (3.13.7)
92
+ diff-lcs (>= 1.2.0, < 2.0)
93
+ rspec-support (~> 3.13.0)
94
+ rspec-support (3.13.6)
95
+ ru_propisju (2.6.0)
96
+ sanitize (5.2.3)
97
+ crass (~> 1.0.2)
98
+ nokogiri (>= 1.8.0)
99
+ nokogumbo (~> 2.0)
100
+ simplecov (0.18.5)
101
+ docile (~> 1.1)
102
+ simplecov-html (~> 0.11)
103
+ simplecov-html (0.13.2)
104
+ simpleidn (0.2.3)
105
+ thor (1.2.2)
106
+ thread_safe (0.3.6)
107
+ tzinfo (1.2.11)
108
+ thread_safe (~> 0.1)
109
+
110
+ PLATFORMS
111
+ ruby
112
+
113
+ DEPENDENCIES
114
+ actionpack (~> 4.2.0)
115
+ activesupport (~> 4.2.0)
116
+ appraisal (>= 1.0.2)
117
+ bigdecimal (< 2)
118
+ bundler
119
+ pry-byebug
120
+ rake
121
+ rspec (>= 3.4)
122
+ simplecov (>= 0.9)
123
+ string_tools!
124
+
125
+ BUNDLED WITH
126
+ 1.17.3
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "bigdecimal", "< 2", require: false
6
+ gem "actionpack", "~> 5.0.7"
7
+ gem "activesupport", "~> 5.0.7"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,124 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ string_tools (1.4.1)
5
+ actionpack (>= 4.2.0)
6
+ activesupport (>= 4.2.0)
7
+ addressable (>= 2.3.2)
8
+ nokogiri
9
+ rchardet19 (~> 1.3.5)
10
+ ru_propisju (>= 2.1.4)
11
+ sanitize (>= 3.1.2)
12
+ simpleidn (>= 0.0.5)
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ actionpack (5.0.7.2)
18
+ actionview (= 5.0.7.2)
19
+ activesupport (= 5.0.7.2)
20
+ rack (~> 2.0)
21
+ rack-test (~> 0.6.3)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
+ actionview (5.0.7.2)
25
+ activesupport (= 5.0.7.2)
26
+ builder (~> 3.1)
27
+ erubis (~> 2.7.0)
28
+ rails-dom-testing (~> 2.0)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
30
+ activesupport (5.0.7.2)
31
+ concurrent-ruby (~> 1.0, >= 1.0.2)
32
+ i18n (>= 0.7, < 2)
33
+ minitest (~> 5.1)
34
+ tzinfo (~> 1.1)
35
+ addressable (2.8.8)
36
+ public_suffix (>= 2.0.2, < 8.0)
37
+ appraisal (2.5.0)
38
+ bundler
39
+ rake
40
+ thor (>= 0.14.0)
41
+ bigdecimal (1.4.4)
42
+ builder (3.3.0)
43
+ byebug (11.1.3)
44
+ coderay (1.1.3)
45
+ concurrent-ruby (1.3.5)
46
+ crass (1.0.6)
47
+ diff-lcs (1.6.2)
48
+ docile (1.3.5)
49
+ erubis (2.7.0)
50
+ i18n (1.14.7)
51
+ concurrent-ruby (~> 1.0)
52
+ loofah (2.21.1)
53
+ crass (~> 1.0.2)
54
+ nokogiri (>= 1.5.9)
55
+ method_source (1.1.0)
56
+ mini_portile2 (2.4.0)
57
+ minitest (5.15.0)
58
+ nokogiri (1.10.10)
59
+ mini_portile2 (~> 2.4.0)
60
+ nokogumbo (2.0.5)
61
+ nokogiri (~> 1.8, >= 1.8.4)
62
+ pry (0.13.1)
63
+ coderay (~> 1.1)
64
+ method_source (~> 1.0)
65
+ pry-byebug (3.9.0)
66
+ byebug (~> 11.0)
67
+ pry (~> 0.13.0)
68
+ public_suffix (4.0.7)
69
+ rack (2.2.21)
70
+ rack-test (0.6.3)
71
+ rack (>= 1.0)
72
+ rails-dom-testing (2.1.1)
73
+ activesupport (>= 5.0.0)
74
+ minitest
75
+ nokogiri (>= 1.6)
76
+ rails-html-sanitizer (1.5.0)
77
+ loofah (~> 2.19, >= 2.19.1)
78
+ rake (13.3.1)
79
+ rchardet19 (1.3.7)
80
+ rspec (3.13.2)
81
+ rspec-core (~> 3.13.0)
82
+ rspec-expectations (~> 3.13.0)
83
+ rspec-mocks (~> 3.13.0)
84
+ rspec-core (3.13.6)
85
+ rspec-support (~> 3.13.0)
86
+ rspec-expectations (3.13.5)
87
+ diff-lcs (>= 1.2.0, < 2.0)
88
+ rspec-support (~> 3.13.0)
89
+ rspec-mocks (3.13.7)
90
+ diff-lcs (>= 1.2.0, < 2.0)
91
+ rspec-support (~> 3.13.0)
92
+ rspec-support (3.13.6)
93
+ ru_propisju (2.6.0)
94
+ sanitize (5.2.3)
95
+ crass (~> 1.0.2)
96
+ nokogiri (>= 1.8.0)
97
+ nokogumbo (~> 2.0)
98
+ simplecov (0.18.5)
99
+ docile (~> 1.1)
100
+ simplecov-html (~> 0.11)
101
+ simplecov-html (0.13.2)
102
+ simpleidn (0.2.3)
103
+ thor (1.2.2)
104
+ thread_safe (0.3.6)
105
+ tzinfo (1.2.11)
106
+ thread_safe (~> 0.1)
107
+
108
+ PLATFORMS
109
+ ruby
110
+
111
+ DEPENDENCIES
112
+ actionpack (~> 5.0.7)
113
+ activesupport (~> 5.0.7)
114
+ appraisal (>= 1.0.2)
115
+ bigdecimal (< 2)
116
+ bundler
117
+ pry-byebug
118
+ rake
119
+ rspec (>= 3.4)
120
+ simplecov (>= 0.9)
121
+ string_tools!
122
+
123
+ BUNDLED WITH
124
+ 1.17.3
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "bigdecimal", "< 2", require: false
6
+ gem "actionpack", "~> 5.1.7"
7
+ gem "activesupport", "~> 5.1.7"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,124 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ string_tools (1.4.1)
5
+ actionpack (>= 4.2.0)
6
+ activesupport (>= 4.2.0)
7
+ addressable (>= 2.3.2)
8
+ nokogiri
9
+ rchardet19 (~> 1.3.5)
10
+ ru_propisju (>= 2.1.4)
11
+ sanitize (>= 3.1.2)
12
+ simpleidn (>= 0.0.5)
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ actionpack (5.1.7)
18
+ actionview (= 5.1.7)
19
+ activesupport (= 5.1.7)
20
+ rack (~> 2.0)
21
+ rack-test (>= 0.6.3)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
+ actionview (5.1.7)
25
+ activesupport (= 5.1.7)
26
+ builder (~> 3.1)
27
+ erubi (~> 1.4)
28
+ rails-dom-testing (~> 2.0)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
30
+ activesupport (5.1.7)
31
+ concurrent-ruby (~> 1.0, >= 1.0.2)
32
+ i18n (>= 0.7, < 2)
33
+ minitest (~> 5.1)
34
+ tzinfo (~> 1.1)
35
+ addressable (2.8.8)
36
+ public_suffix (>= 2.0.2, < 8.0)
37
+ appraisal (2.5.0)
38
+ bundler
39
+ rake
40
+ thor (>= 0.14.0)
41
+ bigdecimal (1.4.4)
42
+ builder (3.3.0)
43
+ byebug (11.1.3)
44
+ coderay (1.1.3)
45
+ concurrent-ruby (1.3.5)
46
+ crass (1.0.6)
47
+ diff-lcs (1.6.2)
48
+ docile (1.3.5)
49
+ erubi (1.13.1)
50
+ i18n (1.14.7)
51
+ concurrent-ruby (~> 1.0)
52
+ loofah (2.21.1)
53
+ crass (~> 1.0.2)
54
+ nokogiri (>= 1.5.9)
55
+ method_source (1.1.0)
56
+ mini_portile2 (2.4.0)
57
+ minitest (5.15.0)
58
+ nokogiri (1.10.10)
59
+ mini_portile2 (~> 2.4.0)
60
+ nokogumbo (2.0.5)
61
+ nokogiri (~> 1.8, >= 1.8.4)
62
+ pry (0.13.1)
63
+ coderay (~> 1.1)
64
+ method_source (~> 1.0)
65
+ pry-byebug (3.9.0)
66
+ byebug (~> 11.0)
67
+ pry (~> 0.13.0)
68
+ public_suffix (4.0.7)
69
+ rack (2.2.21)
70
+ rack-test (2.2.0)
71
+ rack (>= 1.3)
72
+ rails-dom-testing (2.1.1)
73
+ activesupport (>= 5.0.0)
74
+ minitest
75
+ nokogiri (>= 1.6)
76
+ rails-html-sanitizer (1.5.0)
77
+ loofah (~> 2.19, >= 2.19.1)
78
+ rake (13.3.1)
79
+ rchardet19 (1.3.7)
80
+ rspec (3.13.2)
81
+ rspec-core (~> 3.13.0)
82
+ rspec-expectations (~> 3.13.0)
83
+ rspec-mocks (~> 3.13.0)
84
+ rspec-core (3.13.6)
85
+ rspec-support (~> 3.13.0)
86
+ rspec-expectations (3.13.5)
87
+ diff-lcs (>= 1.2.0, < 2.0)
88
+ rspec-support (~> 3.13.0)
89
+ rspec-mocks (3.13.7)
90
+ diff-lcs (>= 1.2.0, < 2.0)
91
+ rspec-support (~> 3.13.0)
92
+ rspec-support (3.13.6)
93
+ ru_propisju (2.6.0)
94
+ sanitize (5.2.3)
95
+ crass (~> 1.0.2)
96
+ nokogiri (>= 1.8.0)
97
+ nokogumbo (~> 2.0)
98
+ simplecov (0.18.5)
99
+ docile (~> 1.1)
100
+ simplecov-html (~> 0.11)
101
+ simplecov-html (0.13.2)
102
+ simpleidn (0.2.3)
103
+ thor (1.2.2)
104
+ thread_safe (0.3.6)
105
+ tzinfo (1.2.11)
106
+ thread_safe (~> 0.1)
107
+
108
+ PLATFORMS
109
+ ruby
110
+
111
+ DEPENDENCIES
112
+ actionpack (~> 5.1.7)
113
+ activesupport (~> 5.1.7)
114
+ appraisal (>= 1.0.2)
115
+ bigdecimal (< 2)
116
+ bundler
117
+ pry-byebug
118
+ rake
119
+ rspec (>= 3.4)
120
+ simplecov (>= 0.9)
121
+ string_tools!
122
+
123
+ BUNDLED WITH
124
+ 1.17.3
@@ -0,0 +1,144 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ string_tools (1.4.0)
5
+ actionpack (>= 4.2.0)
6
+ activesupport (>= 4.2.0)
7
+ addressable (>= 2.3.2)
8
+ nokogiri
9
+ rchardet19 (~> 1.3.5)
10
+ ru_propisju (>= 2.1.4)
11
+ sanitize (>= 3.1.2)
12
+ simpleidn (>= 0.0.5)
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ actionpack (7.1.6)
18
+ actionview (= 7.1.6)
19
+ activesupport (= 7.1.6)
20
+ cgi
21
+ nokogiri (>= 1.8.5)
22
+ racc
23
+ rack (>= 2.2.4)
24
+ rack-session (>= 1.0.1)
25
+ rack-test (>= 0.6.3)
26
+ rails-dom-testing (~> 2.2)
27
+ rails-html-sanitizer (~> 1.6)
28
+ actionview (7.1.6)
29
+ activesupport (= 7.1.6)
30
+ builder (~> 3.1)
31
+ cgi
32
+ erubi (~> 1.11)
33
+ rails-dom-testing (~> 2.2)
34
+ rails-html-sanitizer (~> 1.6)
35
+ activesupport (7.1.6)
36
+ base64
37
+ benchmark (>= 0.3)
38
+ bigdecimal
39
+ concurrent-ruby (~> 1.0, >= 1.0.2)
40
+ connection_pool (>= 2.2.5)
41
+ drb
42
+ i18n (>= 1.6, < 2)
43
+ logger (>= 1.4.2)
44
+ minitest (>= 5.1)
45
+ mutex_m
46
+ securerandom (>= 0.3)
47
+ tzinfo (~> 2.0)
48
+ addressable (2.8.8)
49
+ public_suffix (>= 2.0.2, < 8.0)
50
+ appraisal (2.5.0)
51
+ bundler
52
+ rake
53
+ thor (>= 0.14.0)
54
+ base64 (0.3.0)
55
+ benchmark (0.5.0)
56
+ bigdecimal (3.3.1)
57
+ builder (3.3.0)
58
+ byebug (11.1.3)
59
+ cgi (0.5.1)
60
+ coderay (1.1.3)
61
+ concurrent-ruby (1.3.5)
62
+ connection_pool (2.5.5)
63
+ crass (1.0.6)
64
+ diff-lcs (1.6.2)
65
+ docile (1.4.1)
66
+ drb (2.2.3)
67
+ erubi (1.13.1)
68
+ i18n (1.14.7)
69
+ concurrent-ruby (~> 1.0)
70
+ logger (1.7.0)
71
+ loofah (2.24.1)
72
+ crass (~> 1.0.2)
73
+ nokogiri (>= 1.12.0)
74
+ method_source (1.1.0)
75
+ minitest (5.26.1)
76
+ mutex_m (0.3.0)
77
+ nokogiri (1.15.7-x86_64-linux)
78
+ racc (~> 1.4)
79
+ pry (0.14.2)
80
+ coderay (~> 1.1)
81
+ method_source (~> 1.0)
82
+ pry-byebug (3.10.1)
83
+ byebug (~> 11.0)
84
+ pry (>= 0.13, < 0.15)
85
+ public_suffix (5.1.1)
86
+ racc (1.8.1)
87
+ rack (3.2.4)
88
+ rack-session (2.1.1)
89
+ base64 (>= 0.1.0)
90
+ rack (>= 3.0.0)
91
+ rack-test (2.2.0)
92
+ rack (>= 1.3)
93
+ rails-dom-testing (2.3.0)
94
+ activesupport (>= 5.0.0)
95
+ minitest
96
+ nokogiri (>= 1.6)
97
+ rails-html-sanitizer (1.6.2)
98
+ loofah (~> 2.21)
99
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
100
+ rake (13.3.1)
101
+ rchardet19 (1.3.7)
102
+ rspec (3.13.2)
103
+ rspec-core (~> 3.13.0)
104
+ rspec-expectations (~> 3.13.0)
105
+ rspec-mocks (~> 3.13.0)
106
+ rspec-core (3.13.6)
107
+ rspec-support (~> 3.13.0)
108
+ rspec-expectations (3.13.5)
109
+ diff-lcs (>= 1.2.0, < 2.0)
110
+ rspec-support (~> 3.13.0)
111
+ rspec-mocks (3.13.7)
112
+ diff-lcs (>= 1.2.0, < 2.0)
113
+ rspec-support (~> 3.13.0)
114
+ rspec-support (3.13.6)
115
+ ru_propisju (2.6.0)
116
+ sanitize (6.1.3)
117
+ crass (~> 1.0.2)
118
+ nokogiri (>= 1.12.0)
119
+ securerandom (0.3.2)
120
+ simplecov (0.22.0)
121
+ docile (~> 1.1)
122
+ simplecov-html (~> 0.11)
123
+ simplecov_json_formatter (~> 0.1)
124
+ simplecov-html (0.13.2)
125
+ simplecov_json_formatter (0.1.4)
126
+ simpleidn (0.2.3)
127
+ thor (1.4.0)
128
+ tzinfo (2.0.6)
129
+ concurrent-ruby (~> 1.0)
130
+
131
+ PLATFORMS
132
+ x86_64-linux
133
+
134
+ DEPENDENCIES
135
+ appraisal (>= 1.0.2)
136
+ bundler
137
+ pry-byebug
138
+ rake
139
+ rspec (>= 3.4)
140
+ simplecov (>= 0.9)
141
+ string_tools!
142
+
143
+ BUNDLED WITH
144
+ 2.4.0
@@ -0,0 +1,124 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ string_tools (1.4.0)
5
+ actionpack (>= 4.2.0)
6
+ activesupport (>= 4.2.0)
7
+ addressable (>= 2.3.2)
8
+ nokogiri
9
+ rchardet19 (~> 1.3.5)
10
+ ru_propisju (>= 2.1.4)
11
+ sanitize (>= 3.1.2)
12
+ simpleidn (>= 0.0.5)
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ actionpack (6.0.6.1)
18
+ actionview (= 6.0.6.1)
19
+ activesupport (= 6.0.6.1)
20
+ rack (~> 2.0, >= 2.0.8)
21
+ rack-test (>= 0.6.3)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
24
+ actionview (6.0.6.1)
25
+ activesupport (= 6.0.6.1)
26
+ builder (~> 3.1)
27
+ erubi (~> 1.4)
28
+ rails-dom-testing (~> 2.0)
29
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
30
+ activesupport (6.0.6.1)
31
+ concurrent-ruby (~> 1.0, >= 1.0.2)
32
+ i18n (>= 0.7, < 2)
33
+ minitest (~> 5.1)
34
+ tzinfo (~> 1.1)
35
+ zeitwerk (~> 2.2, >= 2.2.2)
36
+ addressable (2.8.8)
37
+ public_suffix (>= 2.0.2, < 8.0)
38
+ appraisal (2.5.0)
39
+ bundler
40
+ rake
41
+ thor (>= 0.14.0)
42
+ builder (3.3.0)
43
+ byebug (11.1.3)
44
+ coderay (1.1.3)
45
+ concurrent-ruby (1.3.5)
46
+ crass (1.0.6)
47
+ diff-lcs (1.6.2)
48
+ docile (1.4.1)
49
+ erubi (1.13.1)
50
+ i18n (1.14.7)
51
+ concurrent-ruby (~> 1.0)
52
+ loofah (2.24.1)
53
+ crass (~> 1.0.2)
54
+ nokogiri (>= 1.12.0)
55
+ method_source (1.1.0)
56
+ minitest (5.26.1)
57
+ nokogiri (1.15.7-x86_64-linux)
58
+ racc (~> 1.4)
59
+ pry (0.14.2)
60
+ coderay (~> 1.1)
61
+ method_source (~> 1.0)
62
+ pry-byebug (3.10.1)
63
+ byebug (~> 11.0)
64
+ pry (>= 0.13, < 0.15)
65
+ public_suffix (5.1.1)
66
+ racc (1.8.1)
67
+ rack (2.2.21)
68
+ rack-test (2.2.0)
69
+ rack (>= 1.3)
70
+ rails-dom-testing (2.3.0)
71
+ activesupport (>= 5.0.0)
72
+ minitest
73
+ nokogiri (>= 1.6)
74
+ rails-html-sanitizer (1.6.2)
75
+ loofah (~> 2.21)
76
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
77
+ rake (13.3.1)
78
+ rchardet19 (1.3.7)
79
+ rspec (3.13.2)
80
+ rspec-core (~> 3.13.0)
81
+ rspec-expectations (~> 3.13.0)
82
+ rspec-mocks (~> 3.13.0)
83
+ rspec-core (3.13.6)
84
+ rspec-support (~> 3.13.0)
85
+ rspec-expectations (3.13.5)
86
+ diff-lcs (>= 1.2.0, < 2.0)
87
+ rspec-support (~> 3.13.0)
88
+ rspec-mocks (3.13.7)
89
+ diff-lcs (>= 1.2.0, < 2.0)
90
+ rspec-support (~> 3.13.0)
91
+ rspec-support (3.13.6)
92
+ ru_propisju (2.6.0)
93
+ sanitize (6.1.3)
94
+ crass (~> 1.0.2)
95
+ nokogiri (>= 1.12.0)
96
+ simplecov (0.22.0)
97
+ docile (~> 1.1)
98
+ simplecov-html (~> 0.11)
99
+ simplecov_json_formatter (~> 0.1)
100
+ simplecov-html (0.13.2)
101
+ simplecov_json_formatter (0.1.4)
102
+ simpleidn (0.2.3)
103
+ thor (1.4.0)
104
+ thread_safe (0.3.6)
105
+ tzinfo (1.2.11)
106
+ thread_safe (~> 0.1)
107
+ zeitwerk (2.6.18)
108
+
109
+ PLATFORMS
110
+ x86_64-linux
111
+
112
+ DEPENDENCIES
113
+ actionpack (~> 6.0.6.1)
114
+ activesupport (~> 6.0.6.1)
115
+ appraisal (>= 1.0.2)
116
+ bundler
117
+ pry-byebug
118
+ rake
119
+ rspec (>= 3.4)
120
+ simplecov (>= 0.9)
121
+ string_tools!
122
+
123
+ BUNDLED WITH
124
+ 2.4.0
@@ -27,7 +27,8 @@ class String
27
27
  def to_f_with_strip_comma
28
28
  self.gsub(/,/,'.').to_f_without_strip_comma
29
29
  end
30
- alias_method_chain :to_f, :strip_comma
30
+ alias_method :to_f_without_strip_comma, :to_f
31
+ alias_method :to_f, :to_f_with_strip_comma
31
32
 
32
33
  def to_b
33
34
  StringTools::String.new(self).to_b
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module StringTools
3
- VERSION = '1.3.0'
3
+ VERSION = '1.4.1'
4
4
  end
data/string_tools.gemspec CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_runtime_dependency 'nokogiri'
30
30
  spec.add_runtime_dependency 'simpleidn', '>= 0.0.5'
31
31
 
32
- spec.add_development_dependency 'bundler', '~> 1.17.3'
32
+ spec.add_development_dependency 'bundler'
33
33
  spec.add_development_dependency 'rake'
34
34
  spec.add_development_dependency 'rspec', '>= 3.4'
35
35
  spec.add_development_dependency 'appraisal', '>= 1.0.2'
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: 1.3.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey D.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-27 00:00:00.000000000 Z
11
+ date: 2025-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -126,16 +126,16 @@ dependencies:
126
126
  name: bundler
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 1.17.3
131
+ version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 1.17.3
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rake
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -219,6 +219,7 @@ files:
219
219
  - Appraisals
220
220
  - CHANGELOG.md
221
221
  - Gemfile
222
+ - Gemfile.lock
222
223
  - LICENSE.txt
223
224
  - README.md
224
225
  - Rakefile
@@ -227,6 +228,14 @@ files:
227
228
  - docker-compose.development.yml
228
229
  - docker-compose.drone.yml
229
230
  - docker-compose.yml
231
+ - gemfiles-27/Gemfile.lock
232
+ - gemfiles-27/rails6.0.gemfile.lock
233
+ - gemfiles/rails4.2.gemfile
234
+ - gemfiles/rails4.2.gemfile.lock
235
+ - gemfiles/rails5.0.gemfile
236
+ - gemfiles/rails5.0.gemfile.lock
237
+ - gemfiles/rails5.1.gemfile
238
+ - gemfiles/rails5.1.gemfile.lock
230
239
  - lib/string_tools.rb
231
240
  - lib/string_tools/core_ext/string.rb
232
241
  - lib/string_tools/html.rb