representable 2.4.0.rc1 → 2.4.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7d63369f6aa46d6611bd4f968a61ed24e91c1eb
4
- data.tar.gz: f6708f841e1ada1e9e17cfd5a7c6bb43300d05d1
3
+ metadata.gz: 12b358b0408f681050cffbf59f725d7e30258a09
4
+ data.tar.gz: dbed48942320f3fe55ea7860afeb18460c31bd95
5
5
  SHA512:
6
- metadata.gz: 9acd1431d96131b220f03bd15296c94a77fc362959a46daa0b41847cc6ef2d375295e546664e3f4e911ae3118447497cf260b8cdd301f2e1662c916b940e152c
7
- data.tar.gz: c45744211c992ab797ea4f6d0488930414b4587e3be8db98ae74973d135557b7f1108a913e440f8e1e8808957240b89cf0dff60b4ee463c8de86773820af3fad
6
+ metadata.gz: 5831da653f955596c08149596675ca62a0238ac6dd59c8f1840e8f8fbd792542a1d1324c78518fd97c176c9ef09640317ad9f618e9417a09348003534b83e3fb
7
+ data.tar.gz: 3da85e9e4109e885806e6f8903a85c946bb025f2023183aaf8409956bcb631099fe2f447910f45a2e6d6c7f876964b277be6f943e395f9f25c3c3561435e2d31
data/CHANGES.md CHANGED
@@ -44,6 +44,9 @@ and it suddenly is super simple to understand
44
44
  * Removed `Binding@represented` (which was never public anyway). Use `Binding#represented`.
45
45
  * Changed signature: `Binding#get(represented:)`. In now needs a hash `{represented: ..}`.
46
46
 
47
+ # 2.4.0.rc2
48
+
49
+ * Use Declarative's `::build_definition` interface instead of overwriting `::property`.
47
50
 
48
51
  # 2.3.0
49
52
 
data/Gemfile CHANGED
@@ -15,5 +15,5 @@ group :test do
15
15
  gem "pry"
16
16
  end
17
17
 
18
- # gem "declarative", path: "../declarative"
18
+ gem "declarative", path: "../declarative"
19
19
  # gem "declarative", github: "apotonick/declarative"
@@ -1,18 +1,18 @@
1
1
  module Representable
2
2
  # Using this module only makes sense with Decorator representers.
3
3
  module Cached
4
- module Property
5
- def property(*)
6
- super.tap do |property|
4
+ module BuildDefinition
5
+ def build_definition(*)
6
+ super.tap do |definition|
7
7
  binding_builder = format_engine::Binding
8
8
 
9
- map << binding_builder.build(property)
9
+ map << binding_builder.build(definition)
10
10
  end
11
11
  end
12
12
  end
13
13
 
14
14
  def self.included(includer)
15
- includer.extend(Property)
15
+ includer.extend(BuildDefinition)
16
16
  end
17
17
 
18
18
  def representable_map(*)
@@ -1,3 +1,3 @@
1
1
  module Representable
2
- VERSION = "2.4.0.rc1"
2
+ VERSION = "2.4.0.rc2"
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.license = "MIT"
21
21
 
22
22
  s.add_dependency "uber", "~> 0.0.15"
23
- s.add_dependency "declarative", "~> 0.0.4"
23
+ s.add_dependency "declarative", "~> 0.0.5"
24
24
 
25
25
  s.add_development_dependency "rake"
26
26
  s.add_development_dependency "test_xml", "0.1.6"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: representable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0.rc1
4
+ version: 2.4.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-04 00:00:00.000000000 Z
11
+ date: 2015-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uber
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.4
33
+ version: 0.0.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.4
40
+ version: 0.0.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement