tainbox 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/tainbox/class_methods.rb +1 -1
- data/lib/tainbox/version.rb +1 -1
- data/lib/tainbox.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2735a31c1d27ad1a86053b6905d4893c69dd1e4
|
4
|
+
data.tar.gz: 091caf4740fd5367953c5b7c967f81a0f641851d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c50e882c9ec96f1b432ada0556736d9c3ecb977377ab5e04ac18e6d1a8bec06aca0b4f1392e813608ebaf52ac12a7bdcbe3862f1b0e9d4a1818daf086e60ba7d
|
7
|
+
data.tar.gz: 82963904be2adf09142aa7672041d9b158ea990f233aea1ffd3d73edc44be8a9e2a6bea5818667e798a2bfeadffbf05f60bd73f4b6c9862aff43d5241dae4d6b
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Tainbox
|
2
2
|
|
3
|
-
Tainbox is a utility gem that can be used to inject attributes into
|
3
|
+
Tainbox is a utility gem that can be used to inject attributes into Ruby objects. It is similar to <a href="https://github.com/solnic/virtus">Virtus</a>, but works a bit more sensibly (hopefully) and throws in some additional features.
|
4
4
|
|
5
5
|
## But we already have attr_accessor!
|
6
6
|
|
@@ -17,7 +17,7 @@ module Tainbox::ClassMethods
|
|
17
17
|
|
18
18
|
def attribute(name, type = nil, **args)
|
19
19
|
args = args.dup
|
20
|
-
readonly, writeonly = args.delete(:
|
20
|
+
readonly, writeonly = args.delete(:readonly), args.delete(:writeonly)
|
21
21
|
definer = Tainbox::AttributeDefiner.new(self, name, type, args)
|
22
22
|
definer.define_getter unless writeonly
|
23
23
|
definer.define_setter unless readonly
|
data/lib/tainbox/version.rb
CHANGED
data/lib/tainbox.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tainbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Gubitskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -75,6 +75,7 @@ extra_rdoc_files: []
|
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
77
|
- ".rspec"
|
78
|
+
- CHANGELOG.md
|
78
79
|
- Gemfile
|
79
80
|
- LICENSE.txt
|
80
81
|
- README.md
|