let 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +8 -8
- data/VERSION +1 -1
- data/init.rb +3 -0
- metadata +4 -3
data/README.markdown
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
Memoized methods for objects, like rspec's let.
|
4
4
|
|
5
|
-
class Foo
|
6
|
-
|
7
|
-
|
8
|
-
end
|
9
|
-
|
10
|
-
foo = Foo.new
|
11
|
-
foo.field1 # =>
|
12
|
-
foo.instance_variable_get("@field1") == foo.field1
|
5
|
+
class Foo
|
6
|
+
include Let
|
7
|
+
let(:field1) { rand }
|
8
|
+
end
|
9
|
+
|
10
|
+
foo = Foo.new
|
11
|
+
foo.field1 # =>
|
12
|
+
foo.instance_variable_get("@field1") == foo.field1
|
13
13
|
|
14
14
|
|
15
15
|
## Rails
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/init.rb
ADDED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: let
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Howard Yeh
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- README.markdown
|
98
98
|
- Rakefile
|
99
99
|
- VERSION
|
100
|
+
- init.rb
|
100
101
|
- let.gemspec
|
101
102
|
- lib/let.rb
|
102
103
|
- rails/init.rb
|