scoped_attr_accessor 1.0.2 → 1.0.3

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
  SHA1:
3
- metadata.gz: 9fd58a73e8641fcfbd9205039fad4c77fb1920a2
4
- data.tar.gz: 788bb68336faabada51d7454d56769bea5924830
3
+ metadata.gz: 92d2d8660b78d0b456ca4b89038a7ec136219714
4
+ data.tar.gz: e029b4c67ba28ba54369c972d176e15862738bb2
5
5
  SHA512:
6
- metadata.gz: 4edfae715f4bbb70688ba3326e4928f174e2174d646834f9772d4aeb75c453c092accce186762805148e88a3a63fa4ee57a4a89d5a9524da701615f8d98af08a
7
- data.tar.gz: f92e78883d16dc0d5220ef4aeab45fd1fd956c79de9bfb963390ca2bf58e389a6287992aa190c25dcd15e65edf7f45c2b05862f53f9db194b0fade829bec1a0e
6
+ metadata.gz: ebd6b86f44a68fa2e62a5a8ac2a72cb5911b76b438b69c38760442a0039ad1b2a8f643eded30fd6ac95f556614bbfd88842201bb7967e676fb7fe472cb751fad
7
+ data.tar.gz: 6abb842e76bb1ddce267933d2ee1e6a1cd0fe7bc6896056e90691014f8fce7c7656c8ca220c837cf37899b4511951e9a9cc588c8434ae47dbb88895ee4344555
@@ -16,12 +16,12 @@
16
16
  module ScopedAttrAccessor
17
17
  def private_attr_reader(*names)
18
18
  attr_reader(*names)
19
- names.each {|name| private name}
19
+ private(*names)
20
20
  end
21
21
 
22
22
  def private_attr_writer(*names)
23
23
  attr_writer(*names)
24
- names.each {|name| private "#{name}=" }
24
+ private(*names.map {|name| "#{name}="})
25
25
  end
26
26
 
27
27
  def private_attr_accessor(*names)
@@ -31,12 +31,12 @@ module ScopedAttrAccessor
31
31
 
32
32
  def protected_attr_reader(*names)
33
33
  attr_reader(*names)
34
- names.each {|name| protected name}
34
+ protected(*names)
35
35
  end
36
36
 
37
37
  def protected_attr_writer(*names)
38
38
  attr_writer(*names)
39
- names.each {|name| protected "#{name}=" }
39
+ protected(*names.map {|name| "#{name}="})
40
40
  end
41
41
 
42
42
  def protected_attr_accessor(*names)
@@ -1,3 +1,3 @@
1
1
  module ScopedAttrAccessor
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scoped_attr_accessor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Brady
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-01 00:00:00.000000000 Z
11
+ date: 2013-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.0.0.rc.2
110
+ rubygems_version: 2.0.3
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Adds private_* and protected_* attr_reader, attr_writer, and attr_accessor