hammerspace 0.1.3 → 0.1.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmExNjc3YzY3OTJlNjVlYjViZTk1NDQ4ZmJhMWI4ODgxNzFhOWM0ZQ==
4
+ NGZkYjk4NzQ0MTlkYjI5Mzc1NWM2YjVmMTlhY2JmZTI1MWJlMmYwNQ==
5
5
  data.tar.gz: !binary |-
6
- MDlmODVlMTlmNzM0ZDRkODhmNGJiODc4OTMwMWRiNGZkY2I0MzZkZQ==
6
+ ZWZkNDM3NWU2MmE4YTNjZmY0M2FlNWMwNzM3OGVlOTc3MmU5MTk5OA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- M2I3MGZhMDZkMWYxOTgxNDNkNGZiMDI5YWU1NDA5NWFhYTAxOWI5OTVmMDE5
10
- Y2Y4MGViOGVjMzhlN2VlZTIyNzNlZTM2YTdiOWQ5NTZlMzI5ZmFmNWRlYTYz
11
- MmNlOTU5OWFhZmMxNmRjNTE5NjU2MTViY2Q0NDE3MjViZDM1YTA=
9
+ MTAyYjVhMWE2Y2Q1OGI5YTFkYmRkM2ZkZDdkMmFjYTE2ZmMxYmQyNDI4YzU2
10
+ NmQyZWFiMDBkZWUxNjFkYTQ5M2Y2MGNlMTgxNmQ5ZGM1MjhkY2RkNjk5OTg0
11
+ ODcxNmYyOWQ2ZWMyN2RhN2UzNTU4OGI2YmM2NjczNWIyNzg2OTQ=
12
12
  data.tar.gz: !binary |-
13
- MmQxNzczNGE0NWQxZjNmY2I0NmM3MGIyZGQwNWE4NGMzNzg4NWRhMmY0NGFk
14
- MWE2NWRiNDY4MWUwMTA2OTg5YWNjNjc4Y2ZkYWI4MDM5MzZlNjgxYzg5Mjc3
15
- NWEwOWYwY2U4OWMzYjg3ZTI4ODM2YzFjYjkxYmEzMWRkM2I3MTQ=
13
+ YzVmZjkyNDU2MTllNjNjZTZkMTgyMGM5MzNkOTc0OGQ5NzVkNmUxYzNhNDFi
14
+ ZGNiMGIzMzFkNjNmMGVhNWRmZjk1MzFhYjc3ZWVhZGRjNWQ0YWJiNzJjNjc5
15
+ YTNmNmE3Y2QzMDU1ODE0OGRiMmE2NTU4ZWUyMjZmMzFiMTQ1NTk=
@@ -1,3 +1,7 @@
1
+ # v0.1.4
2
+ * Upgrade to gnista 0.0.5.
3
+ * Remove work around for gnista bug.
4
+
1
5
  # v0.1.3
2
6
  * Work around gnista bug that causes ruby crashes on OS X.
3
7
  * Upgrade to sparkey 0.2.0 in vagrant.
@@ -17,5 +17,5 @@ Gem::Specification.new do |s|
17
17
  s.test_files = `git ls-files -- spec/*`.split("\n")
18
18
  s.require_path = 'lib'
19
19
 
20
- s.add_runtime_dependency 'gnista', '0.0.4'
20
+ s.add_runtime_dependency 'gnista', '0.0.5'
21
21
  end
@@ -250,13 +250,11 @@ module Hammerspace
250
250
  # release the lock immediately after opening. While we are holding the
251
251
  # lock, note the target of the "current" symlink.
252
252
  @hash ||= lock_for_read do
253
- if File.exists?(cur_hash_path) && File.exists?(cur_log_path)
254
- begin
255
- hash = Gnista::Hash.new(cur_hash_path, cur_log_path)
256
- @uid = File.readlink(cur_path)
257
- hash
258
- rescue GnistaException
259
- end
253
+ begin
254
+ hash = Gnista::Hash.new(cur_hash_path, cur_log_path)
255
+ @uid = File.readlink(cur_path)
256
+ hash
257
+ rescue GnistaException
260
258
  end
261
259
  end
262
260
  end
@@ -268,11 +266,9 @@ module Hammerspace
268
266
  # descriptors it doesn't matter what happens to the files, so we can
269
267
  # release the lock immediately after opening.
270
268
  lock_for_read do
271
- if File.exists?(cur_hash_path) && File.exists?(cur_log_path)
272
- begin
273
- Gnista::Hash.new(cur_hash_path, cur_log_path)
274
- rescue GnistaException
275
- end
269
+ begin
270
+ Gnista::Hash.new(cur_hash_path, cur_log_path)
271
+ rescue GnistaException
276
272
  end
277
273
  end
278
274
  end
@@ -1,3 +1,3 @@
1
1
  module Hammerspace
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammerspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Tai
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 0.0.4
20
+ version: 0.0.5
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 0.0.4
27
+ version: 0.0.5
28
28
  description: A convenient place to store giant hammers
29
29
  email:
30
30
  - jon.tai@airbnb.com