hammerspace 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGMzNzRmZWE0Yjc1NjQ4NDJhMTc3NzA0YmZiYzAxZDIyMWNkNDRiYQ==
4
+ NmExNjc3YzY3OTJlNjVlYjViZTk1NDQ4ZmJhMWI4ODgxNzFhOWM0ZQ==
5
5
  data.tar.gz: !binary |-
6
- ZjdjYjY2NzI4MDQxYTA3YzYzZmM5MjVlOTJjY2RhMzI4Mzk3OGU5MQ==
6
+ MDlmODVlMTlmNzM0ZDRkODhmNGJiODc4OTMwMWRiNGZkY2I0MzZkZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NDU0NzZhYThhNWQ4YTdhYTQ2MDkzMmI2NTFlM2IzNjkwYTdlMDk0MjllNTgw
10
- MzQwNDdkOWYxMmZlMzI0OTI3M2NmYjQ4ZjlhMDMwYWEwZThjYjNiMTIzNGUw
11
- ZmM0NjAyNDBmYmE1NzkwMjdmMmU0MTA3YTdmYjljZTQwOTA5ODM=
9
+ M2I3MGZhMDZkMWYxOTgxNDNkNGZiMDI5YWU1NDA5NWFhYTAxOWI5OTVmMDE5
10
+ Y2Y4MGViOGVjMzhlN2VlZTIyNzNlZTM2YTdiOWQ5NTZlMzI5ZmFmNWRlYTYz
11
+ MmNlOTU5OWFhZmMxNmRjNTE5NjU2MTViY2Q0NDE3MjViZDM1YTA=
12
12
  data.tar.gz: !binary |-
13
- NTZhNTU2YjUxNjY0ZDYwNDQyYTFjMmIxODE4MzY5NjE5Y2RmZDcyOWIxMDg0
14
- ZTQ1NzE5OTIwMTUzZTk2ZjgwNTY0MWVhOTJmOTNjN2Q3Njk2MGNiYjE1MDcw
15
- NTlmODY5MTI5ZjlkYWQ2MWJhZGE3NTc1NzMyYTBiODQ5ZmI3Mzk=
13
+ MmQxNzczNGE0NWQxZjNmY2I0NmM3MGIyZGQwNWE4NGMzNzg4NWRhMmY0NGFk
14
+ MWE2NWRiNDY4MWUwMTA2OTg5YWNjNjc4Y2ZkYWI4MDM5MzZlNjgxYzg5Mjc3
15
+ NWEwOWYwY2U4OWMzYjg3ZTI4ODM2YzFjYjkxYmEzMWRkM2I3MTQ=
@@ -4,4 +4,4 @@ default.hammerspace_development.hammerspace.gem_home = '/home/vagrant/.gems'
4
4
  default.hammerspace_development.hammerspace.root = '/var/lib/hammerspace'
5
5
 
6
6
  default.hammerspace_development.ruby.version = '1.9.1'
7
- default.hammerspace_development.sparkey.version = '3b3b061a706c33ae764c2bb8e61888b7a7a26c12'
7
+ default.hammerspace_development.sparkey.version = 'daa9941221584d89da68803303854ef7e3a8f68d'
@@ -1,3 +1,7 @@
1
+ # v0.1.3
2
+ * Work around gnista bug that causes ruby crashes on OS X.
3
+ * Upgrade to sparkey 0.2.0 in vagrant.
4
+
1
5
  # v0.1.2
2
6
  * Support vagrant for local development.
3
7
  * Remove dependency on colored gem.
data/README.md CHANGED
@@ -39,7 +39,7 @@ data is persistent, it does not need to be reloaded from an external cache or
39
39
  service on application startup unless the data has changed.
40
40
 
41
41
  Unfortunately, these low-level libraries don't always support concurrent
42
- writers. Hammerspace adds concurrency control to allow mutliple processes to
42
+ writers. Hammerspace adds concurrency control to allow multiple processes to
43
43
  update and read from a single shared copy of the data safely. Finally,
44
44
  hammerspace's interface is designed to mimic Ruby's `Hash` to make integrating
45
45
  with existing applications simple and straightforward. Different low-level
@@ -250,11 +250,13 @@ 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
- begin
254
- hash = Gnista::Hash.new(cur_hash_path, cur_log_path)
255
- @uid = File.readlink(cur_path)
256
- hash
257
- rescue GnistaException
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
258
260
  end
259
261
  end
260
262
  end
@@ -266,9 +268,11 @@ module Hammerspace
266
268
  # descriptors it doesn't matter what happens to the files, so we can
267
269
  # release the lock immediately after opening.
268
270
  lock_for_read do
269
- begin
270
- Gnista::Hash.new(cur_hash_path, cur_log_path)
271
- rescue GnistaException
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
272
276
  end
273
277
  end
274
278
  end
@@ -1,3 +1,3 @@
1
1
  module Hammerspace
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Tai
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-16 00:00:00.000000000 Z
12
+ date: 2014-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gnista