New Upstream Snapshot - ruby-iso8601

Ready changes

Summary

Merged new upstream version: 0.13.0+git20210430.1.7d93f99 (was: 0.13.0).

Resulting package

Built on 2022-10-23T01:38 (took 3m58s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots ruby-iso8601

Lintian Result

Diff

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..7d7e641
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,11 @@
+version: 2
+updates:
+- package-ecosystem: bundler
+  directory: "/"
+  schedule:
+    interval: daily
+  open-pull-requests-limit: 10
+  ignore:
+  - dependency-name: pry
+    versions:
+    - 0.14.0
diff --git a/.rubocop.yml b/.rubocop.yml
index 04aab83..3b749f4 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -10,7 +10,7 @@ AllCops:
 Layout/LineLength:
   Max: 170
 
-Lint/UselessComparison:
+Lint/BinaryOperatorWithIdenticalOperands:
   Enabled: false
 
 Metrics/ClassLength:
diff --git a/README.md b/README.md
index a5bfe40..d955b59 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ longer possible to do operations like `DateTime + Duration`.
 
 Version 1.0.0 will lock public interfaces.
 
-Check the [changelog](https://github.com/arnau/ISO8601/blob/master/CHANGELOG.md) if you are upgrading from an older version.
+Check the [changelog](https://github.com/arnau/ISO8601/blob/main/CHANGELOG.md) if you are upgrading from an older version.
 
 ISO8601 is a simple implementation of the ISO 8601 (Data elements and
 interchange formats — Information interchange — Representation of dates and
@@ -17,7 +17,7 @@ times) standard.
 
 ## Build status
 
-[![Build Status](https://secure.travis-ci.org/arnau/ISO8601.png?branch=master)](http://travis-ci.org/arnau/ISO8601/)
+[![Build Status](https://secure.travis-ci.org/arnau/ISO8601.png?branch=main)](http://travis-ci.org/arnau/ISO8601/)
 [![Gem Version](https://badge.fury.io/rb/iso8601.svg)](http://badge.fury.io/rb/iso8601)
 
 ## Supported versions
@@ -58,4 +58,4 @@ Please see [CONTRIBUTING.md](./CONTRIBUTING.md)
 
 ## License
 
-Arnau Siches under the [MIT License](https://github.com/arnau/ISO8601/blob/master/LICENSE)
+Arnau Siches under the [MIT License](https://github.com/arnau/ISO8601/blob/main/LICENSE)
diff --git a/debian/changelog b/debian/changelog
index 3729683..3d6c1cb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,9 @@
-ruby-iso8601 (0.13.0-2) UNRELEASED; urgency=medium
+ruby-iso8601 (0.13.0+git20210430.1.7d93f99-1) UNRELEASED; urgency=medium
 
   * Update standards version to 4.5.1, no changes needed.
+  * New upstream snapshot.
 
- -- Debian Janitor <janitor@jelmer.uk>  Sun, 19 Sep 2021 17:28:42 -0000
+ -- Debian Janitor <janitor@jelmer.uk>  Sun, 23 Oct 2022 01:35:30 -0000
 
 ruby-iso8601 (0.13.0-1) unstable; urgency=medium
 
diff --git a/iso8601.gemspec b/iso8601.gemspec
index c588dbc..a5a3cc5 100644
--- a/iso8601.gemspec
+++ b/iso8601.gemspec
@@ -26,6 +26,6 @@ Gem::Specification.new do |s|
   s.add_development_dependency 'pry-doc', '~> 1.1.0'
   s.add_development_dependency 'rake', '~> 13.0'
   s.add_development_dependency 'rspec', '~> 3.9'
-  s.add_development_dependency 'rubocop', '~> 0.85'
-  s.add_development_dependency 'rubocop-packaging', '~> 0.1.1'
+  s.add_development_dependency 'rubocop', '~> 0.89'
+  s.add_development_dependency 'rubocop-packaging', '~> 0.3.0'
 end
diff --git a/lib/iso8601/date.rb b/lib/iso8601/date.rb
index a60c199..634a048 100644
--- a/lib/iso8601/date.rb
+++ b/lib/iso8601/date.rb
@@ -114,8 +114,6 @@ module ISO8601
     # @param [String] input
     #
     # @return [Array<Integer>]
-    #
-    # rubocop:disable Metrics/AbcSize
     def atomize(input)
       week_date = parse_weekdate(input)
       return atomize_week_date(input, week_date[2], week_date[1]) unless week_date.nil?
@@ -131,7 +129,6 @@ module ISO8601
 
       [year, month, day].compact.map(&:to_i)
     end
-    # rubocop:enable Metrics/AbcSize
 
     def parse_weekdate(input)
       /^([+-]?)\d{4}(-?)W\d{2}(?:\2\d)?$/.match(input)
diff --git a/lib/iso8601/date_time.rb b/lib/iso8601/date_time.rb
index 49eb0e1..f7b862f 100644
--- a/lib/iso8601/date_time.rb
+++ b/lib/iso8601/date_time.rb
@@ -98,8 +98,6 @@ module ISO8601
     # It enhances the parsing capabilities of the native DateTime.
     #
     # @param [String] date_time The ISO representation
-    #
-    # rubocop:disable Metrics/AbcSize
     def parse(date_time)
       raise(ISO8601::Errors::UnknownPattern, date_time) if date_time.empty?
 
@@ -114,7 +112,6 @@ module ISO8601
 
       ::DateTime.new(*(date_atoms + time_atoms).compact)
     end
-    # rubocop:enable Metrics/AbcSize
 
     ##
     # Validates the date has the right pattern.
diff --git a/lib/iso8601/time.rb b/lib/iso8601/time.rb
index b32ea75..7ad6f19 100644
--- a/lib/iso8601/time.rb
+++ b/lib/iso8601/time.rb
@@ -115,8 +115,6 @@ module ISO8601
     # @param [String] input
     #
     # @return [Array<Integer, Float>]
-    #
-    # rubocop:disable Metrics/AbcSize
     def atomize(input)
       _, time, zone = parse_timezone(input)
       _, hour, separator, minute, second = parse_time(time)
@@ -136,7 +134,6 @@ module ISO8601
 
       atoms
     end
-    # rubocop:enable Metrics/AbcSize
 
     def require_separator(input)
       !input.nil?
diff --git a/spec/iso8601/duration_spec.rb b/spec/iso8601/duration_spec.rb
index f3679fc..70be9d3 100644
--- a/spec/iso8601/duration_spec.rb
+++ b/spec/iso8601/duration_spec.rb
@@ -80,7 +80,9 @@ RSpec.describe ISO8601::Duration do
     end
 
     it "should raise ISO8601::Errors::TypeError when other object is not Numeric or ISO8601::Duration" do
+      # rubocop:disable Style/StringConcatenation
       expect { ISO8601::Duration.new('PT1H') + 'wololo' }.to raise_error(ISO8601::Errors::TypeError)
+      # rubocop:enable Style/StringConcatenation
     end
   end
 
diff --git a/spec/iso8601/time_interval_spec.rb b/spec/iso8601/time_interval_spec.rb
index 8522960..fbafb5d 100644
--- a/spec/iso8601/time_interval_spec.rb
+++ b/spec/iso8601/time_interval_spec.rb
@@ -371,10 +371,12 @@ RSpec.describe ISO8601::TimeInterval do
     end
 
     it "should check if the intervals are equals" do
+      # rubocop:disable Lint/FloatComparison
       expect(@small == @small).to be_truthy
       expect(@small == @small.to_f).to be_falsy
       expect(@small == @big).to be_falsy
       expect(@small == @big.to_f).to be_falsy
+      # rubocop:enable Lint/FloatComparison
     end
   end
 

Debdiff

File lists identical (after any substitutions)

Control files: lines which differ (wdiff format)

  • Ruby-Versions: all

More details

Full run details