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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91025afcdb78e06f531d93b2cfdeba635096516e
4
- data.tar.gz: 70e205ac8495d35117f4086e168967ef41a370b6
3
+ metadata.gz: 34a1a78e5f7e9f178393d7cdff61ad316a7a515b
4
+ data.tar.gz: a620cbcbf8b8fe21db2979a81df2c0720925e028
5
5
  SHA512:
6
- metadata.gz: 82fdaf91e2ca17909b58fde97f7efd3804347f9b4c9e9348518d9b7064e4300968124d405eac3ccd6cf61b712d9528f5c54294a190d54003d85c3cb26569b77e
7
- data.tar.gz: f8d67cb8259110dadc11f60e32451a76cea689d70bcc4d037c917379bab3622db93896ef2cd31b1336d088498be441755943876ea2d60c902995f92c0845aef4
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 'lazy'
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<Lazy::Promise<Resync::Client::Zip::ZipPackage>>] the zip packages for each resource
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| Lazy.promise { r.zip_package } }
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<Lazy::Promise<Resync::Client::Zip::ZipPackage>>] the zip packages for each resource
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| Lazy.promise { r.zip_package } }
56
+ change_lists.map { |r| promise { r.zip_package } }
57
57
  else
58
58
  super()
59
59
  end
@@ -1,6 +1,6 @@
1
1
  module Resync
2
2
  class Client
3
3
  # The version of this gem.
4
- VERSION = '0.4.2'
4
+ VERSION = '0.4.3'
5
5
  end
6
6
  end
@@ -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 'lazy', '~> 0.9', '>= 0.9.6'
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
@@ -2,11 +2,6 @@
2
2
  # SimpleCov/CodeClimate setup
3
3
 
4
4
  if ENV['COVERAGE']
5
- if ENV['CODECLIMATE_REPO_TOKEN']
6
- require 'codeclimate-test-reporter'
7
- CodeClimate::TestReporter.start
8
- end
9
-
10
5
  require 'simplecov'
11
6
  require 'simplecov-console'
12
7
 
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.2
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-01-27 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: lazy
14
+ name: promise
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.9'
19
+ version: '0.3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.9.6
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.9'
29
+ version: '0.3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.9.6
32
+ version: 0.3.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: resync
35
35
  requirement: !ruby/object:Gem::Requirement