mixture 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +38 -52
- data/lib/mixture/extensions/attributable.rb +8 -3
- data/lib/mixture/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1d995227859e1ab3596cb09c48c960c54cdd82c
|
4
|
+
data.tar.gz: 81bb7119cbe67608d5c391c5113444a1a9721f5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f773658b2b5bfc5776386a144afea66a1bee76a482e61e65b83d944d76f81fb308fc26efa316e4e2c7a82c5107cc1a8db28064932b88ae45a99fac81626d449
|
7
|
+
data.tar.gz: ee75eda5ac71175027d2c1eae9c8d4e1d454235e3756011563e5033be7b05c7558f72d300fe71fa1e49fd03834925d0e6d955a6c1e441cff941cc2c570869201
|
data/Gemfile.lock
CHANGED
@@ -1,79 +1,65 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mixture (0.
|
4
|
+
mixture (0.7.1)
|
5
5
|
thread_safe (~> 0.3)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
ast (2.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
json (~> 1.8)
|
16
|
-
rest-client (>= 1.6.8, < 2)
|
17
|
-
simplecov (~> 0.10.0)
|
10
|
+
ast (2.3.0)
|
11
|
+
coderay (1.1.1)
|
12
|
+
coveralls (0.8.19)
|
13
|
+
json (>= 1.8, < 3)
|
14
|
+
simplecov (~> 0.12.0)
|
18
15
|
term-ansicolor (~> 1.3)
|
19
16
|
thor (~> 0.19.1)
|
20
|
-
|
17
|
+
tins (~> 1.6)
|
18
|
+
diff-lcs (1.3)
|
21
19
|
docile (1.1.5)
|
22
|
-
|
23
|
-
unf (>= 0.0.5, < 1.0.0)
|
24
|
-
http-cookie (1.0.2)
|
25
|
-
domain_name (~> 0.5)
|
26
|
-
json (1.8.3)
|
20
|
+
json (2.0.3)
|
27
21
|
method_source (0.8.2)
|
28
|
-
|
29
|
-
|
30
|
-
parser (2.2.2.6)
|
31
|
-
ast (>= 1.1, < 3.0)
|
22
|
+
parser (2.4.0.0)
|
23
|
+
ast (~> 2.2)
|
32
24
|
powerpack (0.1.1)
|
33
|
-
pry (0.10.
|
25
|
+
pry (0.10.4)
|
34
26
|
coderay (~> 1.1.0)
|
35
27
|
method_source (~> 0.8.1)
|
36
28
|
slop (~> 3.4)
|
37
|
-
rainbow (2.
|
38
|
-
rake (
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
rspec (3.
|
44
|
-
rspec-
|
45
|
-
|
46
|
-
rspec-mocks (~> 3.3.0)
|
47
|
-
rspec-core (3.3.1)
|
48
|
-
rspec-support (~> 3.3.0)
|
49
|
-
rspec-expectations (3.3.0)
|
29
|
+
rainbow (2.2.1)
|
30
|
+
rake (12.0.0)
|
31
|
+
rspec (3.5.0)
|
32
|
+
rspec-core (~> 3.5.0)
|
33
|
+
rspec-expectations (~> 3.5.0)
|
34
|
+
rspec-mocks (~> 3.5.0)
|
35
|
+
rspec-core (3.5.4)
|
36
|
+
rspec-support (~> 3.5.0)
|
37
|
+
rspec-expectations (3.5.0)
|
50
38
|
diff-lcs (>= 1.2.0, < 2.0)
|
51
|
-
rspec-support (~> 3.
|
52
|
-
rspec-mocks (3.
|
39
|
+
rspec-support (~> 3.5.0)
|
40
|
+
rspec-mocks (3.5.0)
|
53
41
|
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
-
rspec-support (~> 3.
|
55
|
-
rspec-support (3.
|
56
|
-
rubocop (0.
|
57
|
-
|
58
|
-
parser (>= 2.2.2.5, < 3.0)
|
42
|
+
rspec-support (~> 3.5.0)
|
43
|
+
rspec-support (3.5.0)
|
44
|
+
rubocop (0.47.1)
|
45
|
+
parser (>= 2.3.3.1, < 3.0)
|
59
46
|
powerpack (~> 0.1)
|
60
47
|
rainbow (>= 1.99.1, < 3.0)
|
61
|
-
ruby-progressbar (~> 1.
|
62
|
-
|
63
|
-
|
48
|
+
ruby-progressbar (~> 1.7)
|
49
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
50
|
+
ruby-progressbar (1.8.1)
|
51
|
+
simplecov (0.12.0)
|
64
52
|
docile (~> 1.1.0)
|
65
|
-
json (
|
53
|
+
json (>= 1.8, < 3)
|
66
54
|
simplecov-html (~> 0.10.0)
|
67
55
|
simplecov-html (0.10.0)
|
68
56
|
slop (3.6.0)
|
69
|
-
term-ansicolor (1.
|
57
|
+
term-ansicolor (1.4.0)
|
70
58
|
tins (~> 1.0)
|
71
|
-
thor (0.19.
|
72
|
-
thread_safe (0.3.
|
73
|
-
tins (1.
|
74
|
-
|
75
|
-
unf_ext
|
76
|
-
unf_ext (0.0.7.1)
|
59
|
+
thor (0.19.4)
|
60
|
+
thread_safe (0.3.6)
|
61
|
+
tins (1.13.2)
|
62
|
+
unicode-display_width (1.1.3)
|
77
63
|
|
78
64
|
PLATFORMS
|
79
65
|
ruby
|
@@ -88,4 +74,4 @@ DEPENDENCIES
|
|
88
74
|
rubocop
|
89
75
|
|
90
76
|
BUNDLED WITH
|
91
|
-
1.
|
77
|
+
1.13.6
|
@@ -29,12 +29,17 @@ module Mixture
|
|
29
29
|
# @see AttributeList
|
30
30
|
# @return [AttributeList]
|
31
31
|
def attributes
|
32
|
-
|
32
|
+
@_attributes ||= build_attributes
|
33
|
+
end
|
34
|
+
|
35
|
+
private
|
36
|
+
|
37
|
+
def build_attributes
|
33
38
|
available = ancestors[1..-1]
|
34
39
|
.select { |c| c.respond_to?(:attributes) }
|
35
40
|
.first
|
36
41
|
parent = available ? available.attributes : nil
|
37
|
-
|
42
|
+
AttributeList.new(parent)
|
38
43
|
end
|
39
44
|
end
|
40
45
|
|
@@ -66,7 +71,7 @@ module Mixture
|
|
66
71
|
# @param attr [Symbol] The attribute.
|
67
72
|
# @raise [ArgumentError]
|
68
73
|
def unknown_attribute(attr)
|
69
|
-
fail ArgumentError, "Unknown attribute #{attr} passed"
|
74
|
+
fail ArgumentError, "Unknown attribute #{attr.inspect} passed"
|
70
75
|
end
|
71
76
|
|
72
77
|
# @overload attribute(key)
|
data/lib/mixture/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixture
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Rodi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|