dry-transaction 0.13.2 → 0.13.3

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: 625617cfd08882549ed80e2c6f9fca647b433b3c9b01f141722dd8e5e350ca93
4
- data.tar.gz: 4c4eab3625d39e43ad4d8e867e07d161af1397220cae2ac95022e660f5120149
3
+ metadata.gz: cfebcfe9879d78d03bfb502faeb3965ecf265d000f34573c6aacc1cfbd9c89ac
4
+ data.tar.gz: 94e63ed189b258ff5e049893e483a0f0f105bf570c8806bbf8b58abac5b09947
5
5
  SHA512:
6
- metadata.gz: 400e487b067363922f1c03a218b6d3b078d3a43cecbf47d0d3f8419373c0007926aae5d71848927f8dd17fdb9db9abc398922d968aebee4af16f7a7ccd80307a
7
- data.tar.gz: 1b577f303186b90200f292eca519f4de03b08ab67d5c15ead11f435d9c5a7319be49075f5b253907b05a0595b1cf40d8e4d17036638b323c35100e9774481688
6
+ metadata.gz: 9187e6d04eed0ce3409ddc2d7e8778a33e37f4ba53f6eb6d0a9bccbc1c06f6eda992866a5d850be062c19bf3b943df202b683fd4d0eacfc5a40393ea7d3c2e6c
7
+ data.tar.gz: bf0d4654a70605d33e9343290c4178d0d8d9284cc1faeb6f184f31a909dc3bb8223fe59078ea69490ced8abbdbedcff00d855c591ff288dc8b4f5b19dfc51729
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
2
2
 
3
+ ## 0.13.3 2021-06-07
4
+
5
+
6
+ ### Fixed
7
+
8
+ - Fix deprecation warning on Ruby 3.0 when there are empty hash-like args (via #137) (@bestwebua)
9
+
10
+
11
+ [Compare v0.13.2...v0.13.3](https://github.com/dry-rb/dry-transaction/compare/v0.13.2...v0.13.3)
12
+
13
+ ## 0.13.2 2021-02-08
14
+
15
+
16
+ ### Fixed
17
+
18
+ - Re-allow Hash-like parameters to be passed to steps, e.g. `HashWithIndifferentAccess` and other `Hash` subclasses (this was broken with the Ruby 2.7/3.0 fixes in 0.13.1) (@trammel in #136)
19
+
20
+
21
+ [Compare v0.13.1...v0.13.2](https://github.com/dry-rb/dry-transaction/compare/v0.13.1...v0.13.2)
22
+
3
23
  ## 0.13.1 2021-01-31
4
24
 
5
25
 
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ <!--- this file is synced from dry-rb/template-gem project -->
1
2
  [gem]: https://rubygems.org/gems/dry-transaction
2
3
  [actions]: https://github.com/dry-rb/dry-transaction/actions
3
4
  [codacy]: https://www.codacy.com/gh/dry-rb/dry-transaction
@@ -14,15 +15,15 @@
14
15
 
15
16
  ## Links
16
17
 
17
- * [User documentation](http://dry-rb.org/gems/dry-transaction)
18
+ * [User documentation](https://dry-rb.org/gems/dry-transaction)
18
19
  * [API documentation](http://rubydoc.info/gems/dry-transaction)
19
20
 
20
21
  ## Supported Ruby versions
21
22
 
22
23
  This library officially supports the following Ruby versions:
23
24
 
24
- * MRI >= `2.5`
25
- * jruby >= `9.2`
25
+ * MRI `>= 2.6.0`
26
+ * jruby `>= 9.2`
26
27
 
27
28
  ## License
28
29
 
@@ -1,35 +1,41 @@
1
1
  # frozen_string_literal: true
2
- # this file is managed by dry-rb/devtools project
3
2
 
4
- lib = File.expand_path('lib', __dir__)
3
+ # this file is synced from dry-rb/template-gem project
4
+
5
+ lib = File.expand_path("lib", __dir__)
5
6
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
- require 'dry/transaction/version'
7
+ require "dry/transaction/version"
7
8
 
8
9
  Gem::Specification.new do |spec|
9
- spec.name = 'dry-transaction'
10
+ spec.name = "dry-transaction"
10
11
  spec.authors = ["Tim Riley"]
11
12
  spec.email = ["tim@icelab.com.au"]
12
- spec.license = 'MIT'
13
+ spec.license = "MIT"
13
14
  spec.version = Dry::Transaction::VERSION.dup
14
15
 
15
16
  spec.summary = "Business Transaction Flow DSL"
16
17
  spec.description = spec.summary
17
- spec.homepage = 'https://dry-rb.org/gems/dry-transaction'
18
+ spec.homepage = "https://dry-rb.org/gems/dry-transaction"
18
19
  spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "dry-transaction.gemspec", "lib/**/*"]
19
- spec.bindir = 'bin'
20
+ spec.bindir = "bin"
20
21
  spec.executables = []
21
- spec.require_paths = ['lib']
22
+ spec.require_paths = ["lib"]
22
23
 
23
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
24
- spec.metadata['changelog_uri'] = 'https://github.com/dry-rb/dry-transaction/blob/master/CHANGELOG.md'
25
- spec.metadata['source_code_uri'] = 'https://github.com/dry-rb/dry-transaction'
26
- spec.metadata['bug_tracker_uri'] = 'https://github.com/dry-rb/dry-transaction/issues'
24
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
25
+ spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-transaction/blob/master/CHANGELOG.md"
26
+ spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-transaction"
27
+ spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-transaction/issues"
27
28
 
28
- spec.required_ruby_version = ">= 2.5.0"
29
+ if defined? JRUBY_VERSION
30
+ spec.required_ruby_version = ">= 2.5.0"
31
+ else
32
+ spec.required_ruby_version = ">= 2.6.0"
33
+ end
29
34
 
30
35
  # to update dependencies edit project.yml
31
36
  spec.add_runtime_dependency "dry-container", ">= 0.2.8"
32
37
  spec.add_runtime_dependency "dry-events", ">= 0.1.0"
33
38
  spec.add_runtime_dependency "dry-matcher", ">= 0.7.0"
34
39
  spec.add_runtime_dependency "dry-monads", ">= 0.4.0"
40
+
35
41
  end
@@ -14,8 +14,7 @@ module Dry
14
14
  end
15
15
  end
16
16
 
17
- attr_reader :operation
18
- attr_reader :arity
17
+ attr_reader :operation, :arity
19
18
 
20
19
  def initialize(operation)
21
20
  @operation = case operation
@@ -49,7 +48,10 @@ module Dry
49
48
  # In this case, it's better to leave the object as it's existing type, rather than implicitly
50
49
  # convert it in to a hash with the double-splat (**) operator.
51
50
  def ruby_27_last_arg_hash?(args)
52
- args.last.instance_of?(Hash) && Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.7.0")
51
+ kwargs = args.last
52
+ kwargs.instance_of?(Hash) &&
53
+ !kwargs.empty? &&
54
+ Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.7.0")
53
55
  end
54
56
  end
55
57
  end
@@ -3,6 +3,6 @@
3
3
  module Dry
4
4
  # Business transaction DSL.
5
5
  module Transaction
6
- VERSION = '0.13.2'.freeze
6
+ VERSION = '0.13.3'.freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-transaction
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.2
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-08 00:00:00.000000000 Z
11
+ date: 2021-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-container
@@ -115,14 +115,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - ">="
117
117
  - !ruby/object:Gem::Version
118
- version: 2.5.0
118
+ version: 2.6.0
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - ">="
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  requirements: []
125
- rubygems_version: 3.1.4
125
+ rubygems_version: 3.1.6
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Business Transaction Flow DSL