at 0.1.0 → 0.1.1
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.
- data/Gemfile.lock +6 -0
- data/VERSION +1 -1
- data/lib/at.rb +7 -2
- data/spec/at_spec.rb +2 -0
- metadata +28 -6
data/Gemfile.lock
CHANGED
@@ -2,10 +2,14 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
at (0.1.0)
|
5
|
+
active_support (~> 3.0.0)
|
5
6
|
|
6
7
|
GEM
|
7
8
|
remote: http://rubygems.org/
|
8
9
|
specs:
|
10
|
+
active_support (3.0.0)
|
11
|
+
activesupport (= 3.0.0)
|
12
|
+
activesupport (3.0.0)
|
9
13
|
diff-lcs (1.1.3)
|
10
14
|
fuubar (0.0.6)
|
11
15
|
rspec (~> 2.0)
|
@@ -21,6 +25,7 @@ GEM
|
|
21
25
|
rspec-instafail (0.1.8)
|
22
26
|
rspec-mocks (2.6.0)
|
23
27
|
ruby-progressbar (0.0.10)
|
28
|
+
watchr (0.7)
|
24
29
|
|
25
30
|
PLATFORMS
|
26
31
|
ruby
|
@@ -29,3 +34,4 @@ DEPENDENCIES
|
|
29
34
|
at!
|
30
35
|
fuubar (~> 0.0.6)
|
31
36
|
rspec (~> 2.6.0)
|
37
|
+
watchr (~> 0.7.0)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/at.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
require 'pathname'
|
2
|
+
require 'active_support/concern'
|
2
3
|
|
3
4
|
module At
|
5
|
+
extend ActiveSupport::Concern
|
6
|
+
|
4
7
|
VERSION ||= Pathname.new(__FILE__).dirname.join('..', 'VERSION').read
|
5
8
|
|
6
9
|
class MethodToInstanceVariableProxy
|
@@ -27,8 +30,10 @@ module At
|
|
27
30
|
end
|
28
31
|
end
|
29
32
|
|
30
|
-
|
31
|
-
|
33
|
+
module InstanceMethods
|
34
|
+
def at
|
35
|
+
@_method_to_instance_variable_proxy ||= MethodToInstanceVariableProxy.new(self)
|
36
|
+
end
|
32
37
|
end
|
33
38
|
end
|
34
39
|
|
data/spec/at_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: at
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-10-
|
12
|
+
date: 2011-10-07 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: active_support
|
16
|
+
requirement: &70362117560600 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.0.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70362117560600
|
14
25
|
- !ruby/object:Gem::Dependency
|
15
26
|
name: rspec
|
16
|
-
requirement: &
|
27
|
+
requirement: &70362117559940 !ruby/object:Gem::Requirement
|
17
28
|
none: false
|
18
29
|
requirements:
|
19
30
|
- - ~>
|
@@ -21,10 +32,10 @@ dependencies:
|
|
21
32
|
version: 2.6.0
|
22
33
|
type: :development
|
23
34
|
prerelease: false
|
24
|
-
version_requirements: *
|
35
|
+
version_requirements: *70362117559940
|
25
36
|
- !ruby/object:Gem::Dependency
|
26
37
|
name: fuubar
|
27
|
-
requirement: &
|
38
|
+
requirement: &70362117559460 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
40
|
requirements:
|
30
41
|
- - ~>
|
@@ -32,7 +43,18 @@ dependencies:
|
|
32
43
|
version: 0.0.6
|
33
44
|
type: :development
|
34
45
|
prerelease: false
|
35
|
-
version_requirements: *
|
46
|
+
version_requirements: *70362117559460
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: watchr
|
49
|
+
requirement: &70362117558540 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.7.0
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70362117558540
|
36
58
|
description: Adds a proxy to set or get instance variables on an object.
|
37
59
|
email: c00lryguy@gmail.com
|
38
60
|
executables: []
|