origen 0.0.3 → 0.0.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: adf9cb90996fa90bd9ee1e4beb8c8c6d48fa2e3d
4
- data.tar.gz: d16efcf8963d940f15d722d38a3472334f455737
3
+ metadata.gz: 67638f71155b698c46c36ac11275cbd932f59f4c
4
+ data.tar.gz: 71f951d39c6a92b7f9ffc4a60b8613f164cdab61
5
5
  SHA512:
6
- metadata.gz: e7d0899b992f3d614e315e171c326f3bd079f4e273f6a1da7cc179a2b9eea9b868e2d92947740abe21d7752b8acc56cfbfa0a5905fd3ab9f9df13001488104c7
7
- data.tar.gz: 2ad2e51336b8f9c58bdb5e078157f8d0bdcada23bc1541bb1a78cd6de3eb4dc753923d71c6a3768195a68955d3686e7c5a690be5329e959f09c3e526ce488869
6
+ metadata.gz: cc180e1083595da71e9d7ffe40a34fe084fc950f0cd9affd03da76f62695bc398d97dc7b7112386c56b66f903fd8072c4b06a9507c4205fb1a541e91ad748c7a
7
+ data.tar.gz: 4cdac149a1a653a8aede5ea906f2fdbfce0c625c90dcf6cca5dad24d86fb498010eedac1e6513127f32d614e53d3461d3108b914a1e0596e2ac50b60bc02d678
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 0
4
- BUGFIX = 3
4
+ BUGFIX = 4
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -43,7 +43,7 @@ module Origen
43
43
 
44
44
  # Check in the persisted storage container
45
45
  def check_in
46
- Origen.app.rc.checkin(STORAGE_FILE, force: true, unmanaged: true)
46
+ Origen.app.rc.checkin(STORAGE_FILE, force: true, unmanaged: true, comment: 'Recorded new version in the version tracker')
47
47
  end
48
48
 
49
49
  # Force the storage container to the latest checked in version
@@ -59,17 +59,17 @@ else
59
59
  tmp = '/tmp/origen_app_generators'
60
60
  end
61
61
 
62
- dir = "#{tmp}/app_gen#{version}"
63
- lib = "#{dir}/lib"
62
+ tmp_dir = "#{tmp}/app_gen#{version}"
63
+ lib = "#{tmp_dir}/lib"
64
64
  md5 = "#{tmp}/md5#{version}"
65
65
 
66
66
  # If the app generators already exists in /tmp, check that all files are still there.
67
67
  # This deals with the problem of some files being swept up by the tmp cleaner while
68
68
  # leaving the top-level folder there.
69
- if File.exist?(dir) && File.exist?(md5)
69
+ if File.exist?(tmp_dir) && File.exist?(md5)
70
70
  old_sig = File.read(md5)
71
71
  hash = Digest::MD5.new
72
- Dir["#{dir}/**/*"].each do |f|
72
+ Dir["#{tmp_dir}/**/*"].each do |f|
73
73
  hash << File.read(f) unless File.directory?(f)
74
74
  end
75
75
  new_sig = hash.hexdigest
@@ -80,7 +80,7 @@ end
80
80
 
81
81
  unless all_present
82
82
 
83
- FileUtils.rm_rf(dir) if File.exist?(dir)
83
+ FileUtils.rm_rf(tmp_dir) if File.exist?(tmp_dir)
84
84
  FileUtils.mkdir_p(tmp) unless File.exist?(tmp)
85
85
 
86
86
  File.open("#{tmp}/app_gen#{version}.gem", 'wb') do |f|
@@ -99,7 +99,7 @@ unless all_present
99
99
  end
100
100
 
101
101
  hash = Digest::MD5.new
102
- Dir["#{dir}/**/*"].each do |f|
102
+ Dir["#{tmp_dir}/**/*"].each do |f|
103
103
  hash << File.read(f) unless File.directory?(f)
104
104
  end
105
105
  File.open(md5, 'w') { |f| f.write(hash.hexdigest) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty