resync-client 0.3.4 → 0.3.5

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: c862c7786e1df0b649d574f34543f56a7c180c2c
4
- data.tar.gz: 1e38b61b6fbb102b4f3a00af2a4d1f92071ad0d4
3
+ metadata.gz: bb71c388d0055ede0d253fd4fec193a47d081a21
4
+ data.tar.gz: 57f590eed6930409bc13b88f870532e9e5d619ec
5
5
  SHA512:
6
- metadata.gz: 62c486ba7830f8b089a590abd65f8389ad33a842ee4922affba64fb10ddcc6807762ae74ae05111ee1f6b09921bf57ec1001f446d454d581daa03f9ca5acfa2e
7
- data.tar.gz: 33217f5ab5051d5c7a9da987f25cf6f67ad5cbd2eb5bc7302ff62463431d374d4804ff45f5d640adc7613541c0b216a57005ee160930ba7edbb1b18800b75315
6
+ metadata.gz: 7c29e638cf243e998239488ff7078a427cea9151ed2cd55f783770a4d8460c8010bd45fc52b06cb6424489e07e008e25e81f344d2ffb8cef57ba90554fbde0bf
7
+ data.tar.gz: 6ee69f7b9e32245acc2894da5ac00ad6761eee9f5bf35148860041937447408a6b51b2e6741d6a0a653388e83fa24effe621d18dc51d4ad7b7e7f184d13928de
data/CHANGES.md CHANGED
@@ -1,70 +1,75 @@
1
- # 0.3.4
1
+ ## 0.3.5
2
+
3
+ - Fix issue where `Dir.glob` could cause files to be required in an unpredictable order (h/t [nabeta](https://github.com/CDLUC3/resync/pull/1))
4
+ - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.3.4
5
+
6
+ ## 0.3.4
2
7
 
3
8
  - Move GitHub project to [CDLUC3](https://github.com/CDLUC3/)
4
9
  - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.3.2
5
10
 
6
- # 0.3.3
11
+ ## 0.3.3
7
12
 
8
13
  - Make `#all_zip_packages` on `ChangeDump` and `ResourceDump` return `Enumerator::Lazy` to improve interoperation with the corresponding methods on `ResourceDumpIndex/ChangeDumpIndex`
9
14
 
10
- # 0.3.2
15
+ ## 0.3.2
11
16
 
12
17
  - Added utility methods to `CapabilityList` to simplify downloading and parsing ResourceSync documents by capability
13
18
  - Make `ChangeList#all_changes`, and `#all_resources` on both `ResourceList` and `ChangeList`, return `Enumerator::Lazy` to improve interoperation with the corresponding methods on `ResourceIndex/ChangeIndex`
14
19
 
15
- # 0.3.1
20
+ ## 0.3.1
16
21
 
17
22
  - Make `#get` and `#get_and_parse` in `Downloadable` (i.e., `Resource` and `Link`) cache the downloaded content
18
23
 
19
- # 0.3.0
24
+ ## 0.3.0
20
25
 
21
26
  - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.3.0
22
27
  - Replace `ZipPackages` class with simple enumerable
23
28
 
24
- # 0.2.6
29
+ ## 0.2.6
25
30
 
26
31
  - Added `#all_resources` (as alias for `#resources`) to `ChangeList`/`ResourceList` for transparent interoperability with `ChangeListIndex`/`ResourceListIndex`
27
32
  - Added `#all_changes` (as alias for `#changes`) to `ChangeList`/`ChangeDump` for transparent interoperability with `ChangeListIndex`/`ChangeDumpIndex`
28
33
  <!-- TODO: figure out what ChangeDump#all_changes should really do -->
29
34
  - Added `#all_zip_packages` (as alias for `#zip_packages`) to `ChangeDump`/`ResourceDump` for transparent interoperability with `ChangeDumpIndex`/`ResourceDumpIndex`
30
35
 
31
- # 0.2.5
36
+ ## 0.2.5
32
37
 
33
38
  - Added `#all_changes` to transparently download and flatten changes in `ChangeListIndex` and `ChangeDumpIndex` documents, with filtering by time and type
34
39
 
35
- # 0.2.4
40
+ ## 0.2.4
36
41
 
37
42
  - Added `#all_resources` to transparently download and flatten lists in `ChangeListIndex` and `ResourceListIndex`
38
43
  - Added `#all_zip_packages` to transparently download and flatten dumps in `ChangeDumpIndex` and `ResourceDumpIndex`
39
44
  - Fix issue where documentation on mixin modules was mistakenly applied to the `Resync` module
40
45
 
41
- # 0.2.3
46
+ ## 0.2.3
42
47
 
43
48
  - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.2.2
44
49
 
45
- # 0.2.2
50
+ ## 0.2.2
46
51
 
47
52
  - Replaced `Bistream#stream` with `Bitstream#get_input_stream`, which (unlike the former) returns a new stream with each invocation.
48
53
  - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.2.1
49
54
 
50
- # 0.2.1
55
+ ## 0.2.1
51
56
 
52
57
  - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.1.3
53
58
  - Add more tests for client delegation
54
59
 
55
- # 0.2.0
60
+ ## 0.2.0
56
61
 
57
62
  - Use named mixins instead of instance monkey-patching for easier documentation and navigation.
58
63
  - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.1.2
59
64
 
60
- # 0.1.2
65
+ ## 0.1.2
61
66
 
62
67
  - Change the `:zip_packages` extension method on `ResourceDump` and `ChangeDump` to return a lazy enumerable instead of preemptively downloading all packages.
63
68
 
64
- # 0.1.1
69
+ ## 0.1.1
65
70
 
66
71
  - Update to depend on [resync](https://github.com/CDLUC3/resync) 0.1.1
67
72
 
68
- # 0.1.0
73
+ ## 0.1.0
69
74
 
70
75
  - Initial release
data/lib/resync/client.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'resync'
2
2
  require_relative 'client/mixins'
3
3
 
4
- Dir.glob(File.expand_path('../client/*.rb', __FILE__), &method(:require))
4
+ Dir.glob(File.expand_path('../client/*.rb', __FILE__)).sort.each(&method(:require))
5
5
 
6
6
  module Resync
7
7
 
@@ -1 +1 @@
1
- Dir.glob(File.expand_path('../mixins/*.rb', __FILE__), &method(:require))
1
+ Dir.glob(File.expand_path('../mixins/*.rb', __FILE__)).sort.each(&method(:require))
@@ -1,6 +1,6 @@
1
1
  module Resync
2
2
  class Client
3
3
  # The version of this gem.
4
- VERSION = '0.3.4'
4
+ VERSION = '0.3.5'
5
5
  end
6
6
  end
@@ -1 +1 @@
1
- Dir.glob(File.expand_path('../zip/*.rb', __FILE__), &method(:require))
1
+ Dir.glob(File.expand_path('../zip/*.rb', __FILE__)).sort.each(&method(:require))
@@ -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.2'
26
+ spec.add_dependency 'resync', '~> 0.2', '>= 0.3.4'
27
27
  spec.add_dependency 'rubyzip', '~> 1.1'
28
28
 
29
29
  spec.add_development_dependency 'equivalent-xml', '~> 0.6.0'
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.4
4
+ version: 0.3.5
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-10-08 00:00:00.000000000 Z
11
+ date: 2015-10-14 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.2
42
+ version: 0.3.4
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.2
52
+ version: 0.3.4
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rubyzip
55
55
  requirement: !ruby/object:Gem::Requirement