mixture 0.7.0 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c822237c85384a60d89edebd9cc47e992741047
4
- data.tar.gz: e5a9cecb2887162a042bed5b32dc99331159f8f6
3
+ metadata.gz: d1d995227859e1ab3596cb09c48c960c54cdd82c
4
+ data.tar.gz: 81bb7119cbe67608d5c391c5113444a1a9721f5c
5
5
  SHA512:
6
- metadata.gz: 6179364b8124dae17d3070aa96ac5ec1033665cba7b73db39220e8dbb1486e2a2fb2310550ffa10dcfab72cfc48df29d7b7797cfcd92992b8c62513b50eb38b4
7
- data.tar.gz: 5cf47b98592aaeeda5d8732f797ebe36703406e860b6fab245e32a498d1d2e43da0ca75bf1ff8e24f8ee5da878db4d6121fd59a4cdefe4aa06606f563e5d7806
6
+ metadata.gz: 9f773658b2b5bfc5776386a144afea66a1bee76a482e61e65b83d944d76f81fb308fc26efa316e4e2c7a82c5107cc1a8db28064932b88ae45a99fac81626d449
7
+ data.tar.gz: ee75eda5ac71175027d2c1eae9c8d4e1d454235e3756011563e5033be7b05c7558f72d300fe71fa1e49fd03834925d0e6d955a6c1e441cff941cc2c570869201
@@ -1,79 +1,65 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mixture (0.6.2)
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.0.0)
11
- astrolabe (1.3.0)
12
- parser (>= 2.2.0.pre.3, < 3.0)
13
- coderay (1.1.0)
14
- coveralls (0.8.2)
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
- diff-lcs (1.2.5)
17
+ tins (~> 1.6)
18
+ diff-lcs (1.3)
21
19
  docile (1.1.5)
22
- domain_name (0.5.24)
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
- mime-types (2.6.1)
29
- netrc (0.10.3)
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.1)
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.0.0)
38
- rake (10.4.2)
39
- rest-client (1.8.0)
40
- http-cookie (>= 1.0.2, < 2.0)
41
- mime-types (>= 1.16, < 3.0)
42
- netrc (~> 0.7)
43
- rspec (3.3.0)
44
- rspec-core (~> 3.3.0)
45
- rspec-expectations (~> 3.3.0)
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.3.0)
52
- rspec-mocks (3.3.1)
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.3.0)
55
- rspec-support (3.3.0)
56
- rubocop (0.32.1)
57
- astrolabe (~> 1.3)
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.4)
62
- ruby-progressbar (1.7.5)
63
- simplecov (0.10.0)
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 (~> 1.8)
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.3.2)
57
+ term-ansicolor (1.4.0)
70
58
  tins (~> 1.0)
71
- thor (0.19.1)
72
- thread_safe (0.3.5)
73
- tins (1.5.4)
74
- unf (0.1.4)
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.10.6
77
+ 1.13.6
@@ -29,12 +29,17 @@ module Mixture
29
29
  # @see AttributeList
30
30
  # @return [AttributeList]
31
31
  def attributes
32
- return @_attributes if @_attributes
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
- @_attributes = AttributeList.new(parent)
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)
@@ -6,5 +6,5 @@ module Mixture
6
6
  # The current version of Mixture.
7
7
  #
8
8
  # @return [String]
9
- VERSION = "0.7.0"
9
+ VERSION = "0.7.1"
10
10
  end
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2017-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler