let 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.
Files changed (4) hide show
  1. data/README.markdown +8 -8
  2. data/VERSION +1 -1
  3. data/init.rb +3 -0
  4. metadata +4 -3
@@ -2,14 +2,14 @@
2
2
 
3
3
  Memoized methods for objects, like rspec's let.
4
4
 
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
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.0
1
+ 0.1.1
data/init.rb ADDED
@@ -0,0 +1,3 @@
1
+ require 'let'
2
+ ActiveRecord::Base.send(:include,Let)
3
+ ActionController::Base.send(:include,Let)
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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