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 +4 -4
- data/lib/granite/context_proxy/proxy.rb +0 -2
- data/lib/granite/version.rb +1 -1
- data/lib/granite.rb +1 -1
- metadata +17 -4
- data/lib/granite/ruby3_compatibility.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6a9f12a8fab90e99e863a20803400744a5eb9f0393d4fd8e9242e6d2eca542b
|
4
|
+
data.tar.gz: 54c451903bc4b9b9cebbe7fd07201e8492f0fbaab301d2cbae05e4f7ecc9c6e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bae2c1833fe6f5e04f31a3974c6d7d94afe0a71dca159b73fd53350d30c97fcac26b67330484ade77ee08e1b1bbce0d14cba44e37408dcdde0cccf9085927152
|
7
|
+
data.tar.gz: 618880a543e9c33b448990ebbf3947fab1bbf1ddcad7797dc22f4c22e6f7fbc025ffdfd224b8d321c091bcac07517ad222938cdb68fc76a63e320cc5a5f17768
|
data/lib/granite/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|