prefixed_delegation 0.1.0 → 0.1.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: 0a018ef5c91c33bef5869da015d52631610bce786852e99942d508de5e18c242
4
- data.tar.gz: 4d0f3458b37196f51811761b9d1ee5b07637d7f3dd77d41ff5ab976e005977d4
3
+ metadata.gz: 9f8aaae7d4c8d27bd3674634e5f7fa5e1866588c2df74c99f5e50ab1158f93d7
4
+ data.tar.gz: 85a3f983fcba88b9ab9e04c6f41ce830a30276f33c2a0cdca5cbdc8203a2e7c7
5
5
  SHA512:
6
- metadata.gz: 1ed279ec6efba9d0a6105ac490f7a28b738c8c263af3236f5f7ec0f64246abe6fca5bfb43496ec121f19378aed2f85c2abcdbd0673f8cd20903163362c95f868
7
- data.tar.gz: e05b26d0b09305980ef6698e00018128ecaf68752bb73031773211b82ce592ccd57d40cf9d6dec5a231d74f12c8a8c177c8e6ade9ad7e9040a0603ea4423294d
6
+ metadata.gz: bcc264e876f82b4d92bb043beaa31dd8170e3cbf01bb2b750ed4358a7c4a0f9d260703e68aaabc5928b9e1b897ecbd0346d5d68360d4ee680d7f834e1a46831f
7
+ data.tar.gz: ed6b5d036227b4aaabc0126c13b53d26a0ff32a3d308934e14784f0257c9ff8cdddee2e796967ad93cf549515640e23adbf49e61e7a8c43621865deac0b6a69d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prefixed_delegation (0.1.0)
4
+ prefixed_delegation (0.1.1)
5
5
  activesupport
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -11,7 +11,7 @@ gem 'prefixed_delegation'
11
11
  ## Usage
12
12
 
13
13
  ```ruby
14
- # Defines account_name, but lack of greppability.
14
+ # Defines account_name with lesser greppability.
15
15
  delegate :name, to: :user, prefix: :account
16
16
 
17
17
  # Defines account_name with greppability and some redundancy.
@@ -1,8 +1,8 @@
1
1
  module PrefixedDelegation
2
2
  module Methods
3
3
  def delegate(*methods, to: nil, prefix: nil, allow_nil: nil, private: nil, prefixed: nil)
4
- return super unless to
5
- return super unless prefixed
4
+ return super(*methods, to: nil, prefix: nil, allow_nil: nil, private: nil) unless to
5
+ return super(*methods, to: nil, prefix: nil, allow_nil: nil, private: nil) unless prefixed
6
6
 
7
7
  method_prefixed_by = "#{prefixed == true ? to : prefixed}_"
8
8
  substituted_methods = methods.map { |x| x.to_s.sub(/^#{method_prefixed_by}/, '').to_sym }
@@ -1,3 +1,3 @@
1
1
  module PrefixedDelegation
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prefixed_delegation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - meganemura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-03 00:00:00.000000000 Z
11
+ date: 2019-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport