ruby_beans 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.
- checksums.yaml +4 -4
- data/README.md +1 -6
- data/lib/ruby_beans/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f95f5cbeeec4f2f9c7985c2aeafc632c9dcb427e
|
|
4
|
+
data.tar.gz: 1d84008b122bd7af6a2588e4cf065754b1977d69
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5fa93d0933203ef37ad7a8442417e82d69efa8ac5324bbc0a02a733f254db75ef7fd84fdd1b54850282ac5a57ac867b99f5f49ab2c63d295d37ea987028a8dc
|
|
7
|
+
data.tar.gz: 738da7cf9d26cff29b8d297b3abb7a8c9eee79e338c9f4a86fc9b333824bd966ec21868a98bb020e8c650333c4f040013df935348e16af21b50c68b727e01187
|
data/README.md
CHANGED
|
@@ -9,9 +9,7 @@ class MyClass
|
|
|
9
9
|
end
|
|
10
10
|
#singleton classes
|
|
11
11
|
MyClass.instance
|
|
12
|
-
```
|
|
13
12
|
|
|
14
|
-
```ruby
|
|
15
13
|
class MyCache
|
|
16
14
|
class << self
|
|
17
15
|
def my_cached_item
|
|
@@ -21,10 +19,7 @@ class MyCache
|
|
|
21
19
|
end
|
|
22
20
|
# global accessable objects(cacheable)
|
|
23
21
|
MyCache.my_cached_item
|
|
24
|
-
```
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
```ruby
|
|
28
23
|
class MyService
|
|
29
24
|
include Singleton
|
|
30
25
|
def my_method; end
|
|
@@ -81,7 +76,7 @@ RubyBeans.get_bean('first_bean') # => 3
|
|
|
81
76
|
class MyClass
|
|
82
77
|
extend RubyBeans::Injector
|
|
83
78
|
|
|
84
|
-
inject :first_bean, :
|
|
79
|
+
inject :first_bean, :second_bean
|
|
85
80
|
end
|
|
86
81
|
|
|
87
82
|
my_ins = MyClass.new
|
data/lib/ruby_beans/version.rb
CHANGED