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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1392cfaa8284e7014f1c22ce07c413a3ce6789164fceabdd0654cf58b4149e85
4
- data.tar.gz: db2dbba0b25cbb788f5b252ea879cccd8b0a3fec460766ac85ff44aaa3fa4dd9
3
+ metadata.gz: a29169ed905c202d9bb082e009642b814ad1b19e32c8915d94f16725e291e93f
4
+ data.tar.gz: 4ed346b04b6f0330eb5cec81dca8e8ba3e77a80ddfe6ce3c29662be0413a7119
5
5
  SHA512:
6
- metadata.gz: 6aec1c63a80251c78be05c751d8534dd0f1a4e076dc65073833ea1daab8a4f67045fe07322e283b01ef3753501ce0962d149252aa0d2e9cf1d690b9ea7b70bc0
7
- data.tar.gz: 4d6ed796f9fe3e99ce77b93e7ee15e12230cf859912c199d8d5dcef1f3727d42d9f7f187e96399dd9825197da0a0e8329f6566ad748066a7ec7ab7f6ebb6bc5a
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
 
@@ -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", "lib/**/*"]
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"] = "https://rubygems.org"
25
- spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-inflector/blob/main/CHANGELOG.md"
26
- spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-inflector"
27
- spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-inflector/issues"
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 = ">= 2.7"
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
@@ -29,8 +29,8 @@ module Dry
29
29
 
30
30
  # @since 0.1.0
31
31
  # @api private
32
- def each(&blk)
33
- @rules.each(&blk)
32
+ def each(&)
33
+ @rules.each(&)
34
34
  end
35
35
  end
36
36
  end
@@ -3,6 +3,6 @@
3
3
  module Dry
4
4
  class Inflector
5
5
  # @since 0.1.0
6
- VERSION = "1.1.0"
6
+ VERSION = "1.2.0"
7
7
  end
8
8
  end
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(&blk)
34
- @inflections = Inflections.build(&blk)
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.1.0
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: 2024-07-02 00:00:00.000000000 Z
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
- post_install_message:
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: '2.7'
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: []