Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-dry-inflector for
openSUSE:Factory checked in at 2022-08-09 15:26:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-dry-inflector (Old)
and /work/SRC/openSUSE:Factory/.rubygem-dry-inflector.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-dry-inflector"
Tue Aug 9 15:26:27 2022 rev:3 rq:993477 version:0.3.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-dry-inflector/rubygem-dry-inflector.changes
2021-08-24 10:55:13.976292332 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-dry-inflector.new.1521/rubygem-dry-inflector.changes
2022-08-09 15:26:37.669329535 +0200
@@ -1,0 +2,7 @@
+Thu Aug 4 13:08:17 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 0.3.0
+ see installed CHANGELOG.md
+
+
+-------------------------------------------------------------------
Old:
----
dry-inflector-0.2.1.gem
New:
----
dry-inflector-0.3.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-dry-inflector.spec ++++++
--- /var/tmp/diff_new_pack.vOQUx1/_old 2022-08-09 15:26:38.097330759 +0200
+++ /var/tmp/diff_new_pack.vOQUx1/_new 2022-08-09 15:26:38.101330770 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-dry-inflector
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,12 +24,12 @@
#
Name: rubygem-dry-inflector
-Version: 0.2.1
+Version: 0.3.0
Release: 0
%define mod_name dry-inflector
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: %{ruby >= 2.6.0}
+BuildRequires: %{ruby >= 2.7.0}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: ruby-macros >= 5
URL: https://dry-rb.org/gems/dry-inflector
++++++ dry-inflector-0.2.1.gem -> dry-inflector-0.3.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2021-06-30 10:46:07.000000000 +0200
+++ new/CHANGELOG.md 2022-07-12 18:20:13.000000000 +0200
@@ -1,25 +1,38 @@
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
-## unreleased
+## 0.3.0 2022-07-12
+### Added
+
+- Add CSV as default acronym (via #43) (@waiting-for-dev)
+
+### Changed
+
+- Extra dashes are now omitted when converting to camelcase (via #40)
(@postmodern)
+
+[Compare
v0.2.1...v0.3.0](https://github.com/dry-rb/dry-inflector/compare/v0.2.1...v0.3.0)
+
+## 0.2.1 2021-06-30
+
+
+### Added
+
+- Add default acronyms: API and CSRF (#35) (@jodosha)
+
### Fixed
- Fix singularizing -us suffix (issue #33 via #38) (@cllns)
-[Compare
v0.2.0...master](https://github.com/dry-rb/dry-inflector/compare/v0.2.0...master)
+[Compare
v0.2.0...v0.2.1](https://github.com/dry-rb/dry-inflector/compare/v0.2.0...v0.2.1)
## 0.2.0 2019-10-13
### Added
-- [Abinoam P. Marques Jr. & Andrii Savchenko] Introduced
`Dry::Inflector#camelize_upper` and `Dry::Inflector#camelize_lower`.
`Dry::Inflector#camelize` is now an alias for `Dry::Inflector#camelize_upper`.
-- ```ruby
-- inflector.camelize_upper("data_mapper") # => "DataMapper"
-- inflector.camelize_lower("data_mapper") # => "dataMapper"
-- ```
+- [Abinoam P. Marques Jr. & Andrii Savchenko] Introduced
`Dry::Inflector#camelize_upper` and `Dry::Inflector#camelize_lower`.
`Dry::Inflector#camelize` is now an alias for `Dry::Inflector#camelize_upper`.
```ruby inflector.camelize_upper("data_mapper") # => "DataMapper"'
inflector.camelize_lower("data_mapper") # => "dataMapper"' ```
### Fixed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2021-06-30 10:46:07.000000000 +0200
+++ new/README.md 2022-07-12 18:20:13.000000000 +0200
@@ -11,7 +11,7 @@
[][actions]
[][codacy]
[][codacy]
-[][inchpages]
+[][inchpages]
## Links
@@ -22,8 +22,8 @@
This library officially supports the following Ruby versions:
-* MRI `>= 2.6.0`
-* ~~jruby~~ `>= 9.3` (we are waiting for [2.6
support](https://github.com/jruby/jruby/issues/6161))
+* MRI `>= 2.7.0`
+* jruby `>= 9.3` (postponed until 2.7 is supported)
## License
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dry-inflector.gemspec new/dry-inflector.gemspec
--- old/dry-inflector.gemspec 2021-06-30 10:46:07.000000000 +0200
+++ new/dry-inflector.gemspec 2022-07-12 18:20:13.000000000 +0200
@@ -26,7 +26,7 @@
spec.metadata["source_code_uri"] =
"https://github.com/dry-rb/dry-inflector"
spec.metadata["bug_tracker_uri"] =
"https://github.com/dry-rb/dry-inflector/issues"
- spec.required_ruby_version = ">= 2.6.0"
+ spec.required_ruby_version = ">= 2.7.0"
# to update dependencies edit project.yml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/dry/inflector/inflections/defaults.rb
new/lib/dry/inflector/inflections/defaults.rb
--- old/lib/dry/inflector/inflections/defaults.rb 2021-06-30
10:46:07.000000000 +0200
+++ new/lib/dry/inflector/inflections/defaults.rb 2022-07-12
18:20:13.000000000 +0200
@@ -110,7 +110,7 @@
# @since 0.1.2
# @api private
def self.acronyms(inflect)
- inflect.acronym(*%w[JSON HTTP OpenSSL HMAC CSRF API])
+ inflect.acronym(*%w[JSON HTTP OpenSSL HMAC CSRF API CSV])
end
private_class_method :plural, :singular, :irregular, :uncountable,
:acronyms
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/dry/inflector/version.rb
new/lib/dry/inflector/version.rb
--- old/lib/dry/inflector/version.rb 2021-06-30 10:46:07.000000000 +0200
+++ new/lib/dry/inflector/version.rb 2022-07-12 18:20:13.000000000 +0200
@@ -3,6 +3,6 @@
module Dry
class Inflector
# @since 0.1.0
- VERSION = "0.2.1"
+ VERSION = "0.3.0"
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/dry/inflector.rb new/lib/dry/inflector.rb
--- old/lib/dry/inflector.rb 2021-06-30 10:46:07.000000000 +0200
+++ new/lib/dry/inflector.rb 2022-07-12 18:20:13.000000000 +0200
@@ -102,7 +102,7 @@
# inflector = Dry::Inflector.new
# inflector.classify("books") # => "Book"
def classify(input)
- camelize(singularize(input.to_s.sub(/.*\./, "")))
+ camelize(singularize(input.to_s.split(".").last))
end
# Dasherize a string
@@ -153,10 +153,10 @@
def humanize(input)
input = input.to_s
result = inflections.humans.apply_to(input)
- result.chomp!("_id")
+ result.delete_suffix!("_id")
result.tr!("_", " ")
- match = /(?<separator>\W)/.match(result)
- separator = match ? match[:separator] : DEFAULT_SEPARATOR
+ match = /(\W)/.match(result)
+ separator = match ? match[0] : DEFAULT_SEPARATOR
result.split(separator).map.with_index { |word, index|
inflections.acronyms.apply_to(word, capitalize: index.zero?)
}.join(separator)
@@ -195,7 +195,7 @@
def ordinalize(number)
abs_value = number.abs
- if ORDINALIZE_TH.key?(abs_value % 100)
+ if ORDINALIZE_TH[abs_value % 100]
"#{number}th"
else
case abs_value % 10
@@ -260,7 +260,7 @@
# inflector = Dry::Inflector.new
# inflector.tableize("Book") # => "books"
def tableize(input)
- input = input.to_s.gsub(/::/, "_")
+ input = input.to_s.gsub("::", "_")
pluralize(underscore(input))
end
@@ -298,7 +298,7 @@
# @since 0.1.0
# @api private
def uncountable?(input)
- !(input =~ /\A[[:space:]]*\z/).nil? ||
inflections.uncountables.include?(input.downcase)
+ input.match?(/\A[[:space:]]*\z/) ||
inflections.uncountables.include?(input.downcase)
end
# @return [String]
@@ -314,7 +314,7 @@
# @since 0.1.0
# @api private
- ORDINALIZE_TH = (11..13).each_with_object({}) { |n, ret| ret[n] = true
}.freeze
+ ORDINALIZE_TH = {11 => true, 12 => true, 13 => true}.freeze
# @since 0.1.2
# @api private
@@ -327,7 +327,7 @@
def internal_camelize(input, upper)
input = input.to_s.dup
input.sub!(/^[a-z\d]*/) { |match| inflections.acronyms.apply_to(match,
capitalize: upper) }
- input.gsub!(%r{(?:_|(/))([a-z\d]*)}i) do
+ input.gsub!(%r{(?:[_-]|(/))([a-z\d]*)}i) do
m1 = Regexp.last_match(1)
m2 = Regexp.last_match(2)
"#{m1}#{inflections.acronyms.apply_to(m2)}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2021-06-30 10:46:07.000000000 +0200
+++ new/metadata 2022-07-12 18:20:13.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: dry-inflector
version: !ruby/object:Gem::Version
- version: 0.2.1
+ version: 0.3.0
platform: ruby
authors:
- Luca Guidi
@@ -10,7 +10,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2021-06-30 00:00:00.000000000 Z
+date: 2022-07-12 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: bundler
@@ -90,7 +90,7 @@
requirements:
- - ">="
- !ruby/object:Gem::Version
- version: 2.6.0
+ version: 2.7.0
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="