dry-inflector 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/dry-inflector.gemspec +8 -12
- data/lib/dry/inflector/rules.rb +2 -2
- data/lib/dry/inflector/version.rb +1 -1
- data/lib/dry/inflector.rb +2 -2
- metadata +8 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a29169ed905c202d9bb082e009642b814ad1b19e32c8915d94f16725e291e93f
|
4
|
+
data.tar.gz: 4ed346b04b6f0330eb5cec81dca8e8ba3e77a80ddfe6ce3c29662be0413a7119
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f224fb42751e9df20caf821987c1595af1c3952090aad3163fb4357cd67b9376e1791ba6837551cf7d35f30aa3398fc7c4e69f8df7a3d36f6c801b9cf65479c
|
7
|
+
data.tar.gz: 07b107dd66fee8bcb856139969223e35229997b934005a3e6a0b63d965326f90fc9f61e1585a0609e00b938987693dee009996358776328c107ce12b75f257ea
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
2
2
|
|
3
|
+
## 1.2.0 2025-01-04
|
4
|
+
|
5
|
+
|
6
|
+
### Changed
|
7
|
+
|
8
|
+
- Bumped required Ruby version to 3.1 (@flash-gordon)
|
9
|
+
|
10
|
+
[Compare v1.1.0...v1.2.0](https://github.com/dry-rb/dry-inflector/compare/v1.1.0...v1.2.0)
|
11
|
+
|
3
12
|
## 1.1.0 2024-07-02
|
4
13
|
|
5
14
|
|
data/dry-inflector.gemspec
CHANGED
@@ -16,21 +16,17 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.summary = "String inflections for dry-rb"
|
17
17
|
spec.description = spec.summary
|
18
18
|
spec.homepage = "https://dry-rb.org/gems/dry-inflector"
|
19
|
-
spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "dry-inflector.gemspec",
|
19
|
+
spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "dry-inflector.gemspec",
|
20
|
+
"lib/**/*"]
|
20
21
|
spec.bindir = "bin"
|
21
22
|
spec.executables = []
|
22
23
|
spec.require_paths = ["lib"]
|
23
24
|
|
24
|
-
spec.metadata["allowed_push_host"]
|
25
|
-
spec.metadata["changelog_uri"]
|
26
|
-
spec.metadata["source_code_uri"]
|
27
|
-
spec.metadata["bug_tracker_uri"]
|
25
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
26
|
+
spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-inflector/blob/main/CHANGELOG.md"
|
27
|
+
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-inflector"
|
28
|
+
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-inflector/issues"
|
29
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
28
30
|
|
29
|
-
spec.required_ruby_version = ">=
|
30
|
-
|
31
|
-
# to update dependencies edit project.yml
|
32
|
-
|
33
|
-
spec.add_development_dependency "bundler"
|
34
|
-
spec.add_development_dependency "rake"
|
35
|
-
spec.add_development_dependency "rspec"
|
31
|
+
spec.required_ruby_version = ">= 3.1"
|
36
32
|
end
|
data/lib/dry/inflector/rules.rb
CHANGED
data/lib/dry/inflector.rb
CHANGED
@@ -30,8 +30,8 @@ module Dry
|
|
30
30
|
# inflections.singular "thieves", "thief" # specify a rule for #singularize
|
31
31
|
# inflections.uncountable "dry-inflector" # add an exception for an uncountable word
|
32
32
|
# end
|
33
|
-
def initialize(&
|
34
|
-
@inflections = Inflections.build(&
|
33
|
+
def initialize(&)
|
34
|
+
@inflections = Inflections.build(&)
|
35
35
|
end
|
36
36
|
|
37
37
|
# Lower camelize a string
|
metadata
CHANGED
@@ -1,59 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-inflector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
- Andrii Savchenko
|
9
9
|
- Abinoam P. Marques Jr.
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
name: bundler
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
18
|
-
requirements:
|
19
|
-
- - ">="
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
requirements:
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
version: '0'
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: rake
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - ">="
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: '0'
|
36
|
-
type: :development
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '0'
|
43
|
-
- !ruby/object:Gem::Dependency
|
44
|
-
name: rspec
|
45
|
-
requirement: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - ">="
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '0'
|
50
|
-
type: :development
|
51
|
-
prerelease: false
|
52
|
-
version_requirements: !ruby/object:Gem::Requirement
|
53
|
-
requirements:
|
54
|
-
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: '0'
|
13
|
+
date: 2025-01-04 00:00:00.000000000 Z
|
14
|
+
dependencies: []
|
57
15
|
description: String inflections for dry-rb
|
58
16
|
email:
|
59
17
|
- me@lucaguidi.com
|
@@ -82,7 +40,8 @@ metadata:
|
|
82
40
|
changelog_uri: https://github.com/dry-rb/dry-inflector/blob/main/CHANGELOG.md
|
83
41
|
source_code_uri: https://github.com/dry-rb/dry-inflector
|
84
42
|
bug_tracker_uri: https://github.com/dry-rb/dry-inflector/issues
|
85
|
-
|
43
|
+
rubygems_mfa_required: 'true'
|
44
|
+
post_install_message:
|
86
45
|
rdoc_options: []
|
87
46
|
require_paths:
|
88
47
|
- lib
|
@@ -90,7 +49,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
49
|
requirements:
|
91
50
|
- - ">="
|
92
51
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
52
|
+
version: '3.1'
|
94
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
54
|
requirements:
|
96
55
|
- - ">="
|
@@ -98,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
57
|
version: '0'
|
99
58
|
requirements: []
|
100
59
|
rubygems_version: 3.3.27
|
101
|
-
signing_key:
|
60
|
+
signing_key:
|
102
61
|
specification_version: 4
|
103
62
|
summary: String inflections for dry-rb
|
104
63
|
test_files: []
|