origen 0.0.8 → 0.0.9

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/origen +13 -6
  3. data/config/version.rb +1 -1
  4. data/source_setup +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4350de32d0891efe015658e118c9454077395083
4
- data.tar.gz: d0326aca835cddce8ca2505ff1675dd71b7669e8
3
+ metadata.gz: 8ea392fb4ca3c95f6418cbbb4f1efd71bc2256f2
4
+ data.tar.gz: 638a8ef6429898c0b4d7bc7d56353073af8e408f
5
5
  SHA512:
6
- metadata.gz: 84fcbbd28d3fd674b559c9da1b23ee409ba5b87e0c45575802185b61c0dba099deeff5a4ed4ade116026fa8d64d8a08667ccc4914163c56426d7afe7372a62c7
7
- data.tar.gz: ea3b529d25acddc27a7c639acad1e74afe7c114d5273e59b01da7bbe37b968db1f06e6f968d6c058ac20c56c51ff2b3900a191a25016f52f83a024a0c53525c7
6
+ metadata.gz: 0d0bbd5acd19642897abfbd080d425819d02cb39e6eae5331102c4924a609f639f8167617fbec75da17687fb7e819871c1017d92d99946937389da95e46615aa
7
+ data.tar.gz: 8bd6d58099593404cdcb73c96cbf3d5b3d3a27447eefb3f44e4dc25cd38e34704967d1eb36e6a160f775aa527360f7770874f29a58ad44b9f15ebd523cda6477
data/bin/origen CHANGED
@@ -41,10 +41,18 @@ else
41
41
  end
42
42
 
43
43
  if origen_root
44
- # Force everyone to have a consistent way of installing gems with bundler
45
- ENV['BUNDLE_GEMFILE'] = File.join(origen_root, "Gemfile")
46
- ENV['BUNDLE_PATH'] = File.expand_path(Origen.site_config.gem_install_dir)
47
- ENV['BUNDLE_BIN'] = File.join(origen_root, "lbin")
44
+ # If it looks like a bundled binstub of origen exists, and we have not been invoked through that,
45
+ # then run that instead.
46
+ if Origen.site_config.gem_manage_bundler && File.exist?("#{origen_root}/lbin/origen") && !ENV["BUNDLE_BIN_PATH"] &&
47
+ File.exist?(Origen.site_config.gem_install_dir)
48
+ exec Gem.ruby, "#{origen_root}/lbin/origen", *ARGV
49
+ exit 0
50
+ else
51
+ # Force everyone to have a consistent way of installing gems with bundler
52
+ ENV['BUNDLE_GEMFILE'] = File.join(origen_root, "Gemfile")
53
+ ENV['BUNDLE_PATH'] = File.expand_path(Origen.site_config.gem_install_dir)
54
+ ENV['BUNDLE_BIN'] = File.join(origen_root, "lbin")
55
+ end
48
56
  end
49
57
 
50
58
  if origen_root && File.exist?(ENV['BUNDLE_GEMFILE']) && Origen.site_config.gem_manage_bundler
@@ -156,8 +164,7 @@ if origen_root && File.exist?(ENV['BUNDLE_GEMFILE']) && Origen.site_config.gem_m
156
164
  end
157
165
  end
158
166
  if result
159
- puts
160
- puts "The required gems have been installed, please re-run the previous command"
167
+ exec "origen #{ARGV.join(' ')}"
161
168
  exit 0
162
169
  else
163
170
  puts
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 0
4
- BUGFIX = 8
4
+ BUGFIX = 9
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
data/source_setup CHANGED
@@ -14,4 +14,4 @@ set origen_install = `dirname $called_dir/$relative_path`
14
14
  set origen_bin = $origen_install/bin
15
15
 
16
16
  # Add the origen bin dirs to the user's path as highest priority
17
- setenv PATH ./lbin\:$origen_bin\:$PATH
17
+ setenv PATH $origen_bin\:$PATH
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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty