resync 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/resync/capability_list.rb +3 -4
- data/lib/resync/shared/sorted_resource_list.rb +1 -1
- data/lib/resync/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7788451959096dfbc4797cbf223b4817f2058ed4
|
4
|
+
data.tar.gz: e50c9e4839b2a595cb8cb1685f3bbd1b7a4a06c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f138fb16a10639f60575f198db8d320b8b17e411fb2d8dc5a78b9a75742cfcfd55991c6dee6367e3d13b7c3e7c090ccc9ac8cd85bca9049b0aa5330d65ce57ee
|
7
|
+
data.tar.gz: 7b916f07c91848b65cfd3c390bdb321eec05a86dcd4e49745ca4f32d49a8913b1343242a635cb3dc75b69f4c6900ddde3dffde6f0e99ff322a9efbc94e97c032
|
data/CHANGES.md
CHANGED
@@ -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
|
-
|
41
|
-
@capabilities
|
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(
|
16
|
+
@resources_by_uri = by_uri(resources)
|
17
17
|
end
|
18
18
|
|
19
19
|
# ------------------------------------------------------------
|
data/lib/resync/version.rb
CHANGED
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.
|
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-
|
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.
|
282
|
+
rubygems_version: 2.4.6
|
283
283
|
signing_key:
|
284
284
|
specification_version: 4
|
285
285
|
summary: Utility library for ResourceSync
|