granite 0.14.0 → 0.14.1

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: d0524a0055b0ea48aeab0691a1063cf332455b87094e2a78dbb6b66cc24b168e
4
- data.tar.gz: e07a9c6a636eed28916860e213beea548aa92943da442b7d39019b346079e3fc
3
+ metadata.gz: c6a9f12a8fab90e99e863a20803400744a5eb9f0393d4fd8e9242e6d2eca542b
4
+ data.tar.gz: 54c451903bc4b9b9cebbe7fd07201e8492f0fbaab301d2cbae05e4f7ecc9c6e5
5
5
  SHA512:
6
- metadata.gz: 217ac1d410c18e838f648af770c610b24ad4a28fc70e37514060509b5ac0a9303907912da5a2e7151162df2d842c78cdf3dd4c03e64ae464427bea9707923410
7
- data.tar.gz: 2824f499e042ce4df4565d450367ccf3c33b711586c496c752fde675c4a1bd4d2a5810b92c84916603436981ef61c100583d89865e7f5c758c5033fbc3d97e20
6
+ metadata.gz: bae2c1833fe6f5e04f31a3974c6d7d94afe0a71dca159b73fd53350d30c97fcac26b67330484ade77ee08e1b1bbce0d14cba44e37408dcdde0cccf9085927152
7
+ data.tar.gz: 618880a543e9c33b448990ebbf3947fab1bbf1ddcad7797dc22f4c22e6f7fbc025ffdfd224b8d321c091bcac07517ad222938cdb68fc76a63e320cc5a5f17768
@@ -3,8 +3,6 @@ module Granite
3
3
  # Proxy which wraps the following method calls with BA context.
4
4
  #
5
5
  class Proxy
6
- extend Granite::Ruby3Compatibility
7
-
8
6
  def initialize(klass, context)
9
7
  @klass = klass
10
8
  @context = context
@@ -1,3 +1,3 @@
1
1
  module Granite
2
- VERSION = '0.14.0'.freeze
2
+ VERSION = '0.14.1'.freeze
3
3
  end
data/lib/granite.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  require 'active_support/dependencies'
2
2
  require 'action_controller'
3
+ require 'ruby2_keywords'
3
4
 
4
5
  require 'granite/version'
5
6
  require 'granite/config'
6
7
  require 'granite/context'
7
8
  require 'granite/util'
8
- require 'granite/ruby3_compatibility'
9
9
 
10
10
  module Granite
11
11
  def self.config
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: granite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toptal Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-19 00:00:00.000000000 Z
11
+ date: 2022-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -78,6 +78,20 @@ dependencies:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0.16'
81
+ - !ruby/object:Gem::Dependency
82
+ name: ruby2_keywords
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: 0.0.5
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: 0.0.5
81
95
  - !ruby/object:Gem::Dependency
82
96
  name: activerecord
83
97
  requirement: !ruby/object:Gem::Requirement
@@ -375,7 +389,6 @@ files:
375
389
  - lib/granite/rspec/projector_helpers.rb
376
390
  - lib/granite/rspec/raise_validation_error.rb
377
391
  - lib/granite/rspec/satisfy_preconditions.rb
378
- - lib/granite/ruby3_compatibility.rb
379
392
  - lib/granite/translations.rb
380
393
  - lib/granite/typecasters.rb
381
394
  - lib/granite/util.rb
@@ -402,7 +415,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
402
415
  - !ruby/object:Gem::Version
403
416
  version: '0'
404
417
  requirements: []
405
- rubygems_version: 3.3.9
418
+ rubygems_version: 3.2.33
406
419
  signing_key:
407
420
  specification_version: 4
408
421
  summary: Another business actions architecture for Rails apps
@@ -1,15 +0,0 @@
1
- module Granite
2
- module Ruby3Compatibility
3
- # Method definition aimed to provide compatibility between Ruby 2.6 and 3.0
4
- # It's being recommended in this article
5
- # https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/
6
- #
7
- # Example:
8
- #
9
- # ruby2_keywords def a_method(argument, *args, &block)
10
- # delegating_to_method(argument, *args, &block)
11
- # end
12
- def ruby2_keywords(*)
13
- end
14
- end
15
- end