sucker_punch 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +2 -2
- data/CHANGES.md +4 -0
- data/lib/sucker_punch/core_ext.rb +3 -2
- data/lib/sucker_punch/version.rb +1 -1
- data/sucker_punch.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d7065c0464318a0f91ea674f8ea6a0bb1591bdbbc78d0a1aceed831e90a287a
|
4
|
+
data.tar.gz: 6494c8eb952d5633d678f4a47e566bc6121138edcc68ca7857ffcdc872a1ab85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d0f522105d3b3d038e34aa66aef6e25c03d6e3ef1618df5c8c595e418b1c8f01468cbab9e8437908338e1fc32ea7e86eba321525a9d984f74ba81053fe78497
|
7
|
+
data.tar.gz: 8de430d10421a3889088493e50266d5b18da1f6311e18847bb3d7d34829f188bce8d9590dfe50853cd814dcb51364028ae27b7fac5197fb16d08afcb20992205
|
data/.github/workflows/build.yml
CHANGED
@@ -19,10 +19,10 @@ jobs:
|
|
19
19
|
runs-on: ubuntu-latest
|
20
20
|
strategy:
|
21
21
|
matrix:
|
22
|
-
ruby-version: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1', 'jruby', 'truffleruby', 'truffleruby-head']
|
22
|
+
ruby-version: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', 'jruby', 'truffleruby', 'truffleruby-head']
|
23
23
|
|
24
24
|
steps:
|
25
|
-
- uses: actions/checkout@
|
25
|
+
- uses: actions/checkout@v3
|
26
26
|
|
27
27
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
28
28
|
uses: ruby/setup-ruby@v1
|
data/CHANGES.md
CHANGED
@@ -18,7 +18,7 @@ rescue LoadError
|
|
18
18
|
define_method(:#{name}) { val }
|
19
19
|
end
|
20
20
|
|
21
|
-
if
|
21
|
+
if sucker_punch_is_singleton_class?
|
22
22
|
class_eval do
|
23
23
|
def #{name}
|
24
24
|
defined?(@#{name}) ? @#{name} : singleton_class.#{name}
|
@@ -42,7 +42,8 @@ rescue LoadError
|
|
42
42
|
end
|
43
43
|
|
44
44
|
private
|
45
|
-
|
45
|
+
|
46
|
+
def sucker_punch_is_singleton_class?
|
46
47
|
ancestors.first != self
|
47
48
|
end
|
48
49
|
end
|
data/lib/sucker_punch/version.rb
CHANGED
data/sucker_punch.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.required_ruby_version = '>= 2.0.0'
|
22
22
|
|
23
|
-
spec.add_development_dependency "rake", "~>
|
23
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
24
24
|
spec.add_development_dependency "minitest"
|
25
25
|
spec.add_development_dependency "pry"
|
26
26
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sucker_punch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Hilkert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '13.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '13.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|