origen_updater 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/fix_my_workspace +17 -3
- data/config/version.rb +1 -1
- 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: 169db43757a5f6b6e7e05dc4135128fc51990e70
|
4
|
+
data.tar.gz: cdc5aca8ddd3e5474662991858dbe3880dcc9911
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65997963c6716a4dcca203b0709e3510b89552e370ef37ccae1b9d5112b1f032e6c56ce7cca9900305d5ab31322e1bb474343a62d311707d0cc4ef61d13f204b
|
7
|
+
data.tar.gz: 44dd4f33a9bfb234072980b48b136b90f0ba92ef48f0207b0f1807def76d27c38b159cd4d26636a2d0a36cca9cd2a701f1ffb787c91de0b34ca699d12634cefe
|
data/bin/fix_my_workspace
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
$VERBOSE = nil # Don't care about world writable dir warnings and the like
|
3
3
|
|
4
4
|
if $_fix_my_workspace_version_check
|
5
|
-
$_fix_my_workspace_version = '0.
|
5
|
+
$_fix_my_workspace_version = '0.6.0'
|
6
6
|
else
|
7
7
|
require 'origen'
|
8
8
|
|
@@ -70,9 +70,23 @@ else
|
|
70
70
|
fixed = true
|
71
71
|
end
|
72
72
|
|
73
|
-
|
73
|
+
if File.exist?(ENV['BUNDLE_BIN'])
|
74
|
+
`chmod o-w #{ENV['BUNDLE_BIN']}`
|
75
|
+
|
76
|
+
# Make .bat versions of all executables, Bundler should really be doing this when running
|
77
|
+
# on windows
|
78
|
+
if Origen.os.windows?
|
79
|
+
Dir.glob("#{ENV['BUNDLE_BIN']}/*").each do |bin|
|
80
|
+
unless bin =~ /.bat$/
|
81
|
+
bat = "#{bin}.bat"
|
82
|
+
unless File.exist?(bat)
|
83
|
+
File.open(bat, 'w') { |f| f.write('@"ruby.exe" "%~dpn0" %*') }
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
74
89
|
|
75
90
|
system 'origen -v' if fixed
|
76
|
-
|
77
91
|
end
|
78
92
|
end
|
data/config/version.rb
CHANGED