origen 0.7.12 → 0.7.13

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/origen +18 -3
  3. data/config/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33946b9e75374a0ba93e52a3923251d6c16e6a43
4
- data.tar.gz: 37fe2e0d1c5881fe7f2ec06374d23febf07c16f7
3
+ metadata.gz: 6a2ffd1baf04606a1952e522d9190b9c9c0e038a
4
+ data.tar.gz: a27a278c0fdb4f16281b1d5db83e91c52e1c08e0
5
5
  SHA512:
6
- metadata.gz: 377a04b40b24eb727493cbfa2783fd29815ac116a18aaa906bb2f1909f6ba8034e61595fc885979fbd6b6c54c495e5440d387b8207fcace71b3769aa85d4e96e
7
- data.tar.gz: 0e3855b23ad1d6767f7d5547cf365b94d6b1e7e91b0c506f11a7d6b46bff0f9bd6ca1fe1f4b0a54d8e51e96971190e1d0a33533cee761a1899f621ba92138249
6
+ metadata.gz: f79c467226a03fcd2fe8a386d655e6d34601d5f0176de6fdbd96da5d3fead88c560a3443c57ed2c883acb1a775b246fd33c9ed506ae7edf9dc96825f024ea76e
7
+ data.tar.gz: cc795d2f261f34a84ac224fa4e0582cfc64fa21d49be533fb0dadbbe61878922ecbd6b28d6ebb08aea49520b8ddb5abdcbcb7c618ecfd79b8a067acb01d869e0
data/bin/origen CHANGED
@@ -121,6 +121,8 @@ if origen_root && File.exist?(ENV['BUNDLE_GEMFILE']) && Origen.site_config.gem_m
121
121
  else
122
122
  puts "Unable to determine gcc version, proceeding with fingers crossed..."
123
123
  end
124
+ # Need to compact the system gem specs array to remove reference to any nil elements which will cause an error below.
125
+ system_gem_specs.compact!
124
126
  # Some gems (particularly those with C extensions that need to be built), can be hard to install reliably
125
127
  # across a large user base. Initially seed the user's local gem area with the system-installed gems,
126
128
  # this means that the system Ruby owner can provide an installation for these hard-to-install gems.
@@ -134,16 +136,29 @@ if origen_root && File.exist?(ENV['BUNDLE_GEMFILE']) && Origen.site_config.gem_m
134
136
  (spec.executables || []).each do |bin|
135
137
  FileUtils.cp("#{spec.bin_dir}/#{bin}", "#{local_gem_dir}/bin")
136
138
  end
137
- FileUtils.cp(spec.cache_file, "#{local_gem_dir}/cache")
139
+ if !File.exist(spec.cache_file)
140
+ FileUtils.cp(spec.cache_file, "#{local_gem_dir}/cache")
141
+ end
138
142
  if spec.extension_dir && File.exist?(spec.extension_dir)
139
143
  spec.extension_dir =~ /.*extensions(.*)/
140
144
  sub_dir = Pathname.new($1).dirname.to_s
141
145
  local_ext_dir = "#{local_gem_dir}/extensions/#{sub_dir}"
142
146
  FileUtils.mkdir_p(local_ext_dir) unless File.exist?(local_ext_dir)
147
+
148
+ # If the file exists in the extensions directory, skip copying it over.
149
+ if !File.exist?(spec.extension_dir)
143
150
  FileUtils.cp_r(spec.extension_dir, local_ext_dir)
151
+ end
144
152
  end
145
- FileUtils.cp_r(spec.gem_dir, "#{local_gem_dir}/gems")
146
- FileUtils.cp(spec.spec_file, "#{local_gem_dir}/specifications")
153
+
154
+ # If the file exists in the gem directory, skip copying it over.
155
+ if !File.exist?(spec.gem_dir)
156
+ FileUtils.cp_r(spec.gem_dir, "#{local_gem_dir}/gems")
157
+ end
158
+ # If the file exists in the specifications directory, skip copying it over.
159
+ if !File.exist?(spec.spec_file)
160
+ FileUtils.cp(spec.spec_file, "#{local_gem_dir}/specifications")
161
+ end
147
162
  rescue
148
163
  puts "Had problems installing #{spec.name} from your system Ruby, proceeding with fingers crossed..."
149
164
  end
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 7
4
- BUGFIX = 12
4
+ BUGFIX = 13
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.12
4
+ version: 0.7.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-26 00:00:00.000000000 Z
11
+ date: 2016-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -652,7 +652,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
652
652
  version: 1.8.11
653
653
  requirements: []
654
654
  rubyforge_project:
655
- rubygems_version: 2.6.2
655
+ rubygems_version: 2.2.2
656
656
  signing_key:
657
657
  specification_version: 4
658
658
  summary: The Semiconductor Developer's Kit