resync-client 0.3.3 → 0.3.4

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: b55fd1ce8dd18d7acd6b75515e5a31393d5e114f
4
- data.tar.gz: fa122d38b47bb1399663f89b730b6cd763b1f603
3
+ metadata.gz: c862c7786e1df0b649d574f34543f56a7c180c2c
4
+ data.tar.gz: 1e38b61b6fbb102b4f3a00af2a4d1f92071ad0d4
5
5
  SHA512:
6
- metadata.gz: 71704d10c967d97d1d260b79d405ac047c2c38a3c41dbacca9b2ffdff5477aa2898a324f10cb734e6f92bd42dc89fbe073f23715454b0dfa75308408264d5c7f
7
- data.tar.gz: e171456275ef6cbc7416781343977d4f0e8b7f243253a5fcb238e0ef0e51957599bb9e0ee350ca0704f9e4c980f639c1c78f12c31f464a0b1a47591ec7212c5e
6
+ metadata.gz: 62c486ba7830f8b089a590abd65f8389ad33a842ee4922affba64fb10ddcc6807762ae74ae05111ee1f6b09921bf57ec1001f446d454d581daa03f9ca5acfa2e
7
+ data.tar.gz: 33217f5ab5051d5c7a9da987f25cf6f67ad5cbd2eb5bc7302ff62463431d374d4804ff45f5d640adc7613541c0b216a57005ee160930ba7edbb1b18800b75315
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.3.4
2
+
3
+ - Move GitHub project to [CDLUC3](https://github.com/CDLUC3/)
4
+ - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.3.2
5
+
1
6
  # 0.3.3
2
7
 
3
8
  - Make `#all_zip_packages` on `ChangeDump` and `ResourceDump` return `Enumerator::Lazy` to improve interoperation with the corresponding methods on `ResourceDumpIndex/ChangeDumpIndex`
@@ -13,7 +18,7 @@
13
18
 
14
19
  # 0.3.0
15
20
 
16
- - Update to depend on [resync](https://github.com/dmolesUC3/resync) 0.3.0
21
+ - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.3.0
17
22
  - Replace `ZipPackages` class with simple enumerable
18
23
 
19
24
  # 0.2.6
@@ -35,22 +40,22 @@
35
40
 
36
41
  # 0.2.3
37
42
 
38
- - Update to depend on [resync](https://github.com/dmolesUC3/resync) 0.2.2
43
+ - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.2.2
39
44
 
40
45
  # 0.2.2
41
46
 
42
47
  - Replaced `Bistream#stream` with `Bitstream#get_input_stream`, which (unlike the former) returns a new stream with each invocation.
43
- - Update to depend on [resync](https://github.com/dmolesUC3/resync) 0.2.1
48
+ - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.2.1
44
49
 
45
50
  # 0.2.1
46
51
 
47
- - Update to depend on [resync](https://github.com/dmolesUC3/resync) 0.1.3
52
+ - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.1.3
48
53
  - Add more tests for client delegation
49
54
 
50
55
  # 0.2.0
51
56
 
52
57
  - Use named mixins instead of instance monkey-patching for easier documentation and navigation.
53
- - Update to depend on [resync](https://github.com/dmolesUC3/resync) 0.1.2
58
+ - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.1.2
54
59
 
55
60
  # 0.1.2
56
61
 
@@ -58,7 +63,7 @@
58
63
 
59
64
  # 0.1.1
60
65
 
61
- - Update to depend on [resync](https://github.com/dmolesUC3/resync) 0.1.1
66
+ - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.1.1
62
67
 
63
68
  # 0.1.0
64
69
 
@@ -1,6 +1,6 @@
1
1
  module Resync
2
2
  class Client
3
3
  # The version of this gem.
4
- VERSION = '0.3.3'
4
+ VERSION = '0.3.4'
5
5
  end
6
6
  end
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = ['lib']
24
24
 
25
25
  spec.add_dependency 'lazy', '~> 0.9', '>= 0.9.6'
26
- spec.add_dependency 'resync', '~> 0.2', '>= 0.3.0'
26
+ spec.add_dependency 'resync', '~> 0.2', '>= 0.3.2'
27
27
  spec.add_dependency 'rubyzip', '~> 1.1'
28
28
 
29
29
  spec.add_development_dependency 'equivalent-xml', '~> 0.6.0'
@@ -77,8 +77,9 @@ module Resync
77
77
  describe '#all_zip_packages' do
78
78
  it 'should accept an optional time range' do
79
79
  range = Time.utc(2013, 1, 1)..Time.utc(2013, 1, 2, 6)
80
- all_packages = @change_dump_index.all_zip_packages(in_range: range).to_a
81
- expect(all_packages).to eq(@all_zip_packages[0, 3])
80
+ all_packages = @change_dump_index.all_zip_packages(in_range: range)
81
+ all_packages_array = all_packages.to_a
82
+ expect(all_packages_array).to eq(@all_zip_packages[0, 3])
82
83
  end
83
84
 
84
85
  it 'should not download unnecessary dumps or packages' do
@@ -93,6 +94,12 @@ module Resync
93
94
  all_packages = @change_dump_index.all_zip_packages.to_a
94
95
  expect(all_packages).to eq(@all_zip_packages)
95
96
  end
97
+
98
+ it 'returns an Enumerator::Lazy' do
99
+ range = Time.utc(2013, 1, 1)..Time.utc(2013, 1, 2, 6)
100
+ all_packages = @change_dump_index.all_zip_packages(in_range: range)
101
+ expect(all_packages).to be_a(Enumerator::Lazy)
102
+ end
96
103
  end
97
104
 
98
105
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resync-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
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-30 00:00:00.000000000 Z
11
+ date: 2015-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lazy
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '0.2'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 0.3.0
42
+ version: 0.3.2
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '0.2'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 0.3.0
52
+ version: 0.3.2
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rubyzip
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -255,7 +255,7 @@ files:
255
255
  - spec/unit/resync/client/list_index_spec.rb
256
256
  - spec/unit/resync/client/mixins_spec.rb
257
257
  - spec/unit/resync/client/zip_package_spec.rb
258
- homepage: http://github.com/dmolesUC3/resync-client
258
+ homepage: http://github.com/CDLUC3/resync-client
259
259
  licenses:
260
260
  - MIT
261
261
  metadata: {}