rdm 0.1.8 → 0.1.9

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: 3061518077ed3cdf6daf06b2505c146d0f5303c6
4
- data.tar.gz: 298cc1ff42678c841594120728ce500b2567de4f
3
+ metadata.gz: 17937c3383d168f5769d3905ca00c92bafdf5764
4
+ data.tar.gz: 7822aadb44658bc12dd458af0493203b9d55a352
5
5
  SHA512:
6
- metadata.gz: 348fcb4d7ef3526b6a92ae27a87f5d8daa66bc9d636d9cb683f86a088adcfdf402e4b5407fd1e1f3630e3d8a929cf135e9c2bcf974b3ec2e876525e98a2c3109
7
- data.tar.gz: 5305c4b87eaae5681373b1fa0e858cdba39c472b104b247116d63fffa78a3b9b69277beccca183b02e35480aea719a0792608fa92ff7356cde2572a300817985
6
+ metadata.gz: 4b6c6bd70d549af995cb909aba34428a18b6d87c75f7a37f3b9fadb62079888b9a83fccd453ea9257be98f3a6f8ecb24be43f48e5e2c35a0c454d7129faa24e5
7
+ data.tar.gz: 6eb6663138790754791e235ba260a4399ae268f3892b229553b17fdac438b5d9b43fac3769d283e272c697f3f49db0824cba37a4b64bd8dfcfd53e9bf43b1ffc
@@ -18,10 +18,10 @@ class Rdm::SourceInstaller
18
18
 
19
19
  lock_file = "#{full_package_path}.lock"
20
20
 
21
- if File.exist?(lock_file) && File.read(lock_file) != locked
22
- File.open(lock_file, "w+") do |file|
23
- file.write(locked)
24
- end
21
+ return if File.exist?(lock_file) && File.read(lock_file) == locked
22
+
23
+ File.open(lock_file, "w+") do |file|
24
+ file.write(locked)
25
25
  end
26
26
  rescue Errno::ENOENT
27
27
  puts "Can't find package: #{package_path}"
@@ -1,3 +1,3 @@
1
1
  module Rdm
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Droid Labs