ocioso 1.0.1 → 1.0.2
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 +3 -3
- data/lib/ocioso.rb +1 -2
- 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: 20f139f75de777b95e36cb9ab68578c2a5d01b7b
|
4
|
+
data.tar.gz: 5a41bf29851ad6a259b31df1212c07964c92fd94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e37f4f9ee6f6c34231099442b1e4d08aaf8cd6259101edbab1970df2cbaf55cf3223240ba53f108b8e73edc4433e87398608d545e066336e876e00dcc43e79c1
|
7
|
+
data.tar.gz: 866256b298e8ea1de118cbf8bca24ec57af24cb9355d734ff90e3c33244946912964adf9aaffc94a60cc5f155e7b780095b384fe7047723f2908023ba5a4f03d
|
data/README.md
CHANGED
@@ -60,12 +60,12 @@ If you want to only allow some certain variables, you can use `initialize_only_w
|
|
60
60
|
```ruby
|
61
61
|
class User
|
62
62
|
include Ocioso
|
63
|
-
initialize_only_with :name
|
63
|
+
initialize_only_with :name, :email
|
64
64
|
end
|
65
65
|
|
66
|
-
user = User.new name: "Julio", age: 25
|
66
|
+
user = User.new name: "Julio", email: "julio@email.com", age: 25
|
67
67
|
puts user.inspect
|
68
|
-
#=> <User @name = "Julio">
|
68
|
+
#=> <User @name = "Julio", @email = "julio@email.com">
|
69
69
|
```
|
70
70
|
|
71
71
|
## Default Values
|
data/lib/ocioso.rb
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
19
|
# SOFTWARE.
|
20
20
|
module Ocioso
|
21
|
-
VERSION = "1.0.
|
21
|
+
VERSION = "1.0.2"
|
22
22
|
class << self
|
23
23
|
attr_reader :defaults, :values_allowed
|
24
24
|
|
@@ -49,7 +49,6 @@ module Ocioso
|
|
49
49
|
|
50
50
|
def initialize_only_with(*args)
|
51
51
|
Ocioso.values_allowed[self] = args
|
52
|
-
self
|
53
52
|
end
|
54
53
|
end
|
55
54
|
|