opera 0.2.13 → 0.2.14

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: e3365aa09cb2ec386142398fd3257d5f0e12f106380d08d7b53f3bbcaeb087d4
4
- data.tar.gz: 9d0f932f25e8db4d7d0df4d0494966916369b32d12b2939aa642ae8aa3a6a8b2
3
+ metadata.gz: 89cd1d74b5ee4021f3adffec29eb4096cb0d71d64c9179ca7e7d8c970f49aac1
4
+ data.tar.gz: 29faa06fcb24291dc2e75762a12d8747050173dadb163f89af6b4f86013d9e37
5
5
  SHA512:
6
- metadata.gz: 351a69889db7929d1ffe4954202e97ebfa84ec149dbcbdd680287be783451bde31302ad94586fc920a465b52519453027814997916fbf8082da7f305c5ed27bd
7
- data.tar.gz: 62d81144b0e09dd5fd43e09f00f1304d7802d1d38467018e7630edc64a1208b3bfa1be819ff8743db3c61ca0fceb16fcc6ca8dfaa56480b20963a09ed5571492
6
+ metadata.gz: 2165af4193eba6127ff31ffcff445cbb84e883b26d35cf0fae0e1a726dee3e5a2d7285e234639529bb9d175c4a49b54b7ff800b34e535a7c94df89c4c6c20cfc
7
+ data.tar.gz: 742f6615a8f559bcf2f4a4b6a9efde378005609a5ba77711b25c38f69f9bf281e5a76a5f05e2b9b14bfbe07078b8d5cb409cd6b6c90ef1f976a2a058ee452ca4
@@ -9,7 +9,7 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  strategy:
11
11
  matrix:
12
- ruby-version: [ '2.6', '2.7', '3.0' ]
12
+ ruby-version: [ '2.6', '2.7', '3.0', 'jruby' ]
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v2
@@ -49,10 +49,10 @@ jobs:
49
49
 
50
50
  steps:
51
51
  - uses: actions/checkout@v2
52
- - name: Set up Ruby 2.6
53
- uses: actions/setup-ruby@v1
52
+ - name: Set up Ruby 2.7
53
+ uses: ruby/setup-ruby@v1
54
54
  with:
55
- ruby-version: 2.6.x
55
+ ruby-version: 2.7
56
56
 
57
57
  - name: Publish to RubyGems
58
58
  run: |
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Opera Changelog
2
2
 
3
+ ### 0.2.14 - April 25, 2023
4
+
5
+ - Added support for objects responding to `to_hash` method in error handling for easier integration with Rails.
6
+
3
7
  ### 0.2.13 - October 24, 2022
4
8
 
5
9
  - Avoid return inside transaction block to support activegraph with jruby
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opera (0.2.11)
4
+ opera (0.2.14)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -77,6 +77,7 @@ DEPENDENCIES
77
77
  dry-validation
78
78
  opera!
79
79
  pry-byebug
80
+ pry-nav
80
81
  rake (~> 12.0)
81
82
  rspec (~> 3.0)
82
83
 
@@ -49,7 +49,7 @@ module Opera
49
49
  # rubocop:enable Metrics/MethodLength
50
50
 
51
51
  def add_errors(errors)
52
- errors.to_h.each_pair do |key, value|
52
+ errors.to_hash.each_pair do |key, value|
53
53
  add_error(key, value)
54
54
  end
55
55
  end
data/lib/opera/version.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Opera
2
- VERSION = '0.2.13'
4
+ VERSION = '0.2.14'
3
5
  end
data/lib/opera.rb CHANGED
@@ -1,5 +1,6 @@
1
- require 'opera/version'
1
+ # frozen_string_literal: true
2
2
 
3
+ require 'opera/version'
3
4
  require 'opera/errors'
4
5
  require 'opera/operation'
5
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opera
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - ProFinda Development Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-24 00:00:00.000000000 Z
11
+ date: 2023-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-validation
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubygems_version: 3.0.3.1
118
+ rubygems_version: 3.1.6
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: Use simple DSL language to keep your Operations clean and maintainable