resync 0.3.3 → 0.3.4

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: 70d59125cdf9196680be720e33cfdc07ea971888
4
- data.tar.gz: f58e9cbf936b63f91a4917749d0c0435e666201d
3
+ metadata.gz: e513134c82580051f13e437b592487605f1b7c01
4
+ data.tar.gz: 484f9cb6e508ec21d73890a4541a05cbc59268bb
5
5
  SHA512:
6
- metadata.gz: 818ee7ac8f2dbefbdd5af9c75de455b1ad648bfa015b0803ffbb5f5de52f4068f918e53cd4673b23103eea9a845d2c27d8f3f3d82a02e4ba08210e8ea4bd4ec0
7
- data.tar.gz: eb04d64b07e23c23bd7c59e8cb307de736121b8fdf0d6977c5f067c0ecadff33a68bd46b828c4a1e88233e5632456d0891973c5ccc3a13f79564abe5c555c563
6
+ metadata.gz: 2cc53caa4aa86a45ea158501c9f9aa85f75dbfa4204fb2aadd25a8b65dc8d391decf2fae18f9bf67cbb1e0f846d519cb62eabf6654e43bfc227c5cba896ffb86
7
+ data.tar.gz: 675a6f38381015b1fd586814d1dbabda543d7da86ddb431bf41aae2ae4821b10dc335c45147f7d492f5803f5aa36780eeacfb7d7eea60f404596be4808ed4e57
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.4
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
+
1
5
  ## 0.3.3
2
6
 
3
7
  - Fix links in README
data/lib/resync/types.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Resync
2
2
  # Enumerated types for controlled vocabularies.
3
3
  module Types
4
- Dir.glob(File.expand_path('../types/*.rb', __FILE__), &method(:require))
4
+ Dir.glob(File.expand_path('../types/*.rb', __FILE__)).sort.each(&method(:require))
5
5
  end
6
6
  end
data/lib/resync/util.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Resync
2
2
  # Miscellaneous utilities
3
3
  module Types
4
- Dir.glob(File.expand_path('../util/*.rb', __FILE__), &method(:require))
4
+ Dir.glob(File.expand_path('../util/*.rb', __FILE__)).sort.each(&method(:require))
5
5
  end
6
6
  end
@@ -1,4 +1,4 @@
1
1
  module Resync
2
2
  # The version of this gem.
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.4'
4
4
  end
data/lib/resync.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # A Ruby gem for working with the {http://www.openarchives.org/rs/1.0/resourcesync ResourceSync} web synchronization framework.
2
2
  module Resync
3
- Dir.glob(File.expand_path('../resync/*.rb', __FILE__), &method(:require))
3
+ Dir.glob(File.expand_path('../resync/*.rb', __FILE__)).sort.each(&method(:require))
4
4
  end
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.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-10-13 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: mime-types