resync 0.1.2 → 0.1.3

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: 917b854a3839f6a769a246aff26cdbedb461f7b9
4
- data.tar.gz: 5d6fbaacc53194abc197cef65edd38eb0b358b03
3
+ metadata.gz: 7788451959096dfbc4797cbf223b4817f2058ed4
4
+ data.tar.gz: e50c9e4839b2a595cb8cb1685f3bbd1b7a4a06c4
5
5
  SHA512:
6
- metadata.gz: a8a0b469b6e14a66e213b3b534e3b6457a0de16c3653184ab8fee5c0e2ecd5985619521240c9978330a378bdbabaa04afc31fcd3207d789dfac58e536f348a0b
7
- data.tar.gz: b0a6129fbf272fc8d015245908a63af1e1e363d3627ea603f56f8a7a644c4b8f5d532fe24ae33c981038fe871a1728d0647ca1532e23424ec4a1e96b9edc1730
6
+ metadata.gz: f138fb16a10639f60575f198db8d320b8b17e411fb2d8dc5a78b9a75742cfcfd55991c6dee6367e3d13b7c3e7c090ccc9ac8cd85bca9049b0aa5330d65ce57ee
7
+ data.tar.gz: 7b916f07c91848b65cfd3c390bdb321eec05a86dcd4e49745ca4f32d49a8913b1343242a635cb3dc75b69f4c6900ddde3dffde6f0e99ff322a9efbc94e97c032
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.3
2
+
3
+ - Fix issue making it difficult to extend CapabilityList
4
+
1
5
  ## 0.1.2
2
6
 
3
7
  - Fix issue making it difficult to extend SortedResourceList
@@ -26,8 +26,8 @@ module Resync
26
26
  # @raise [ArgumentError] if more than one provided resource has the same +capability+ attribute.
27
27
  # @raise [ArgumentError] if the specified metadata does not have the correct +capability+ attribute.
28
28
  def initialize(resources: [], links: [], metadata: nil)
29
- @source_descripton = source_description_from(links)
30
29
  super(resources: resources, links: links, metadata: metadata)
30
+ @source_description = source_description_from(self.links)
31
31
  end
32
32
 
33
33
  # ------------------------------------------------------------
@@ -37,9 +37,8 @@ module Resync
37
37
  # @raise [ArgumentError] if a provided resource does not have a +capability+ attribute.
38
38
  # @raise [ArgumentError] if more than one provided resource has the same +capability+ attribute.
39
39
  def resources=(value)
40
- resources = value || []
41
- @capabilities = to_capability_map(resources)
42
- @resources = @capabilities.values
40
+ @capabilities = to_capability_map(value || [])
41
+ super(@capabilities.values)
43
42
  end
44
43
 
45
44
  # Gets the resource for the specified capability.
@@ -13,7 +13,7 @@ module Resync
13
13
  # modification times will be sorted to the end.
14
14
  def resources=(value)
15
15
  super(sorted(value))
16
- @resources_by_uri = by_uri(@resources)
16
+ @resources_by_uri = by_uri(resources)
17
17
  end
18
18
 
19
19
  # ------------------------------------------------------------
@@ -1,4 +1,4 @@
1
1
  module Resync
2
2
  # The version of this gem.
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Moles
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-04 00:00:00.000000000 Z
11
+ date: 2015-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  version: '0'
280
280
  requirements: []
281
281
  rubyforge_project:
282
- rubygems_version: 2.4.7
282
+ rubygems_version: 2.4.6
283
283
  signing_key:
284
284
  specification_version: 4
285
285
  summary: Utility library for ResourceSync