resync-client 0.4.2 → 0.4.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 +5 -0
- data/lib/resync/client/mixins/dump.rb +5 -5
- data/lib/resync/client/version.rb +1 -1
- data/resync-client.gemspec +1 -1
- data/spec/spec_helper.rb +0 -5
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34a1a78e5f7e9f178393d7cdff61ad316a7a515b
|
4
|
+
data.tar.gz: a620cbcbf8b8fe21db2979a81df2c0720925e028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f12aea02531df1bc438bd4c91460dc7f92d59218353caed4f4113c686f7e7148d32bcefdd769e882c5a8872f1e3863c723d10f2aee4d497f4c5ffa57ecb601e5
|
7
|
+
data.tar.gz: 3d1b959ec81de26e0199b528c2f03b821553a8bd0e3879b776c10a41960062257bbe8a8976424e70033feea879e647353e7f63a1c6a0ae5a23478e83e2be16f7
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 0.4.3
|
2
|
+
|
3
|
+
- Replace unmaintained [lazy](https://github.com/mental/lazy) gem with [promise](https://github.com/bhuga/promising-future),
|
4
|
+
eliminating ``warning: undefining `object_id' may cause serious problems`` error
|
5
|
+
|
1
6
|
## 0.4.2
|
2
7
|
|
3
8
|
- Make gemspec smart enough to handle SSH checkouts
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'resync'
|
2
|
-
require '
|
2
|
+
require 'promise'
|
3
3
|
require_relative '../zip'
|
4
4
|
require_relative 'zipped_resource'
|
5
5
|
|
@@ -21,9 +21,9 @@ module Resync
|
|
21
21
|
end
|
22
22
|
|
23
23
|
# The {Resync::Client::Zip::ZipPackage}s for each resource, downloaded lazily
|
24
|
-
# @return [Array<
|
24
|
+
# @return [Array<Promise<Resync::Client::Zip::ZipPackage>>] the zip packages for each resource
|
25
25
|
def zip_packages
|
26
|
-
@zip_packages ||= resources.map { |r|
|
26
|
+
@zip_packages ||= resources.map { |r| promise { r.zip_package } }
|
27
27
|
end
|
28
28
|
|
29
29
|
end
|
@@ -49,11 +49,11 @@ module Resync
|
|
49
49
|
# and +until_time+, in non-strict mode (only excluding those lists provably not in the range,
|
50
50
|
# i.e., including packages without +from_time+ or +until_time+).
|
51
51
|
# @param in_range [Range<Time>] the range of times to filter by
|
52
|
-
# @return [Array<
|
52
|
+
# @return [Array<Promise<Resync::Client::Zip::ZipPackage>>] the zip packages for each resource
|
53
53
|
def zip_packages(in_range: nil)
|
54
54
|
if in_range
|
55
55
|
change_lists = change_lists(in_range: in_range, strict: false)
|
56
|
-
change_lists.map { |r|
|
56
|
+
change_lists.map { |r| promise { r.zip_package } }
|
57
57
|
else
|
58
58
|
super()
|
59
59
|
end
|
data/resync-client.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
|
-
spec.add_dependency '
|
26
|
+
spec.add_dependency 'promise', '~> 0.3', '>= 0.3.1'
|
27
27
|
spec.add_dependency 'resync', '~> 0.4', '>= 0.4.2'
|
28
28
|
spec.add_dependency 'rubyzip', '~> 1.1'
|
29
29
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resync-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.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: 2016-
|
11
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: promise
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.3.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: 0.3.1
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: resync
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|