origen 0.0.3 → 0.0.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 +4 -4
- data/config/version.rb +1 -1
- data/lib/origen/application/version_tracker.rb +1 -1
- data/lib/origen/commands/new.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67638f71155b698c46c36ac11275cbd932f59f4c
|
4
|
+
data.tar.gz: 71f951d39c6a92b7f9ffc4a60b8613f164cdab61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc180e1083595da71e9d7ffe40a34fe084fc950f0cd9affd03da76f62695bc398d97dc7b7112386c56b66f903fd8072c4b06a9507c4205fb1a541e91ad748c7a
|
7
|
+
data.tar.gz: 4cdac149a1a653a8aede5ea906f2fdbfce0c625c90dcf6cca5dad24d86fb498010eedac1e6513127f32d614e53d3461d3108b914a1e0596e2ac50b60bc02d678
|
data/config/version.rb
CHANGED
@@ -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
|
data/lib/origen/commands/new.rb
CHANGED
@@ -59,17 +59,17 @@ else
|
|
59
59
|
tmp = '/tmp/origen_app_generators'
|
60
60
|
end
|
61
61
|
|
62
|
-
|
63
|
-
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?(
|
69
|
+
if File.exist?(tmp_dir) && File.exist?(md5)
|
70
70
|
old_sig = File.read(md5)
|
71
71
|
hash = Digest::MD5.new
|
72
|
-
Dir["#{
|
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(
|
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["#{
|
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) }
|