rimless 1.4.1 → 1.4.2

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: a6e582f19428db0fcb6ab242b81bb51fd465bfeef48c927fbc692384c672b533
4
- data.tar.gz: c61759fa3351deb5fcaff4f4381720e93e908df13172d8b1327bb0408c7b94a3
3
+ metadata.gz: 5eb06c668517f7d1e2e2a122cdd8586ada5c6c69b8d08448e2163f4628b22b91
4
+ data.tar.gz: b40442ca44912688d5230b25680c1c82f69845ad62f9420306e9710530542306
5
5
  SHA512:
6
- metadata.gz: 481fcbe51c58b8ed614ca65ad47cdb95d534ffce6b30b7ce86c636159df885212bef01a777655f26b4bd13e08aa05b94a98787f709c3a680712be67117881038
7
- data.tar.gz: 62e61b02251048d64f3f508adea01b60cffc7fddeafed7375b9424223af6b683843a392d10130b2a454c2acd5d4c0c9180f59ab49bc2472d7ab0059f5e503002
6
+ metadata.gz: d2ec34319a309770fd831655c2e370da52e55f43118c3d61b3a28a3dbc625840e776234a54d481e1c9bfff9f16b75df90bc2cf56ec00e6266be1a121cead757e
7
+ data.tar.gz: e13af984580349ed5567be7bf8c7513e3ef03dacb59f4b329cb0769ff82e0260d04bcb027907400aed59f5e5e6e5571f6e1e42db2da08c3cb9f43b541f58f0dd
data/.rubocop.yml CHANGED
@@ -65,3 +65,9 @@ RSpec/FilePath:
65
65
  # Because we just implemented the ActiveRecord API.
66
66
  Rails/SkipsModelValidations:
67
67
  Enabled: false
68
+
69
+ # Because Rubocop does not respect the `TargetRubyVersion: 2.5` for this cop,
70
+ # so it converts to `then` which is not yet available on Ruby 2.5 which causes
71
+ # `NoMethodError` errors. NOTE: Remove when Ruby 2.5 support is dropped.
72
+ Style/ObjectThen:
73
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
+ ### 1.4.2
6
+
7
+ * Reverted to use `yield_self` instead of `then` in order to support Ruby 2.5
8
+ as advertised (broken since #19, 1.3.0) (#31)
9
+
5
10
  ### 1.4.1
6
11
 
7
12
  * Moved the development dependencies from the gemspec to the Gemfile (#29)
@@ -19,9 +19,9 @@ module Rimless
19
19
  # occurence should be rare.
20
20
  Rimless
21
21
  .decode(params.raw_payload)
22
- .then { |data| Sparsify(data, sparse_array: true) }
23
- .then { |data| data.transform_keys { |key| key.delete('\\') } }
24
- .then { |data| Unsparsify(data, sparse_array: true) }
22
+ .yield_self { |data| Sparsify(data, sparse_array: true) }
23
+ .yield_self { |data| data.transform_keys { |key| key.delete('\\') } }
24
+ .yield_self { |data| Unsparsify(data, sparse_array: true) }
25
25
  .deep_symbolize_keys
26
26
  end
27
27
  end
@@ -3,7 +3,7 @@
3
3
  # The gem version details.
4
4
  module Rimless
5
5
  # The version of the +rimless+ gem
6
- VERSION = '1.4.1'
6
+ VERSION = '1.4.2'
7
7
 
8
8
  class << self
9
9
  # Returns the version of gem as a string.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rimless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-05 00:00:00.000000000 Z
11
+ date: 2023-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport