origen 0.42.0 → 0.42.1

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
  SHA256:
3
- metadata.gz: b916938b9392e5b4be6121f06ee887c292813306e90a6d9418ecc48f3133bb4d
4
- data.tar.gz: 706c9e176befbd2eca212cc6f95a55f3e0dfc61d7fa844007a5a507019b256a5
3
+ metadata.gz: '03983e1260131b17483ee71ddeba0cdc3f27ac85ae7f4b15ca1d5885f2bf4f97'
4
+ data.tar.gz: c472173dfec8ec3f361c715663fdef3a8675e940f2531fb7f9998f8a9fb1ec32
5
5
  SHA512:
6
- metadata.gz: 7395218ebd774335a39540fe27d19710269b94f2fb2d2d6746638f148d32e255f16d43d17ea72e533f988fd35e109a888ac519107386dadd93c950370e0c3153
7
- data.tar.gz: 4fee8e8fc1083e90165283cb6e08cb8bafab60a41b2e202bf32d1a5712a39ec3ccf83fe0cba7540076832176586817dc9c42bb83d626a7c79ada5a4043155517
6
+ metadata.gz: 579eeb12ff7c851ce96808908a4feeacd25cf58548f146023da0d75ba34b735157d72d93ff98271e0b123c834df522514144cd3b51719728ec9e0199ac2f24d7
7
+ data.tar.gz: de2bf8a7bf3bc106a5785f6734b7d68e054d332559c00c414d540bf67473eeedcfa94a617cc59302e76e4765bd25f6209943e6a716fead578eec90dc1ecfd925
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 42
4
- BUGFIX = 0
4
+ BUGFIX = 1
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -85,35 +85,6 @@ ________________________________________________________________________________
85
85
 
86
86
  '
87
87
 
88
- if Origen.os.windows?
89
- PATH_WARNING = %q(
90
- Warning, your PATH does not contain ./lbin which is expected by Origen.
91
- You can correct this by editing your system's PATH environment variable via:
92
-
93
- (right-click) My Computer -> Properties -> Advanced system settings -> Environment Variables
94
-
95
- Path is under System variables and add the following value to it:
96
-
97
- .\lbin
98
-
99
- ______________________________________________________________________________________
100
-
101
- )
102
-
103
- else
104
- PATH_WARNING = %q(
105
- Warning, your PATH does not contain ./lbin which is expected by Origen.
106
- You can correct this by adding one of the following lines to the end of your
107
- environment setup file:
108
-
109
- In ~/.bashrc or ~/.bashrc.user: export PATH="./lbin:$PATH"'
110
- In ~/.tcshrc or ~/.tcshrc.user: setenv PATH "./lbin:$PATH"'
111
-
112
- ______________________________________________________________________________________
113
-
114
- )
115
- end
116
-
117
88
  BINSTUB =
118
89
  "#!/usr/bin/env ruby
119
90
  #
@@ -167,12 +138,6 @@ end
167
138
  origen_binstub = File.join(lbin_dir, 'origen')
168
139
 
169
140
  unless exec_remote
170
- if Origen.os.windows?
171
- warnings << PATH_WARNING unless ENV['PATH'] =~ /\.\\lbin(;|$)/
172
- else
173
- warnings << PATH_WARNING unless ENV['PATH'] =~ /(^|:)\.\/lbin(:|$)/
174
- end
175
-
176
141
  if !File.exist?(origen_binstub) ||
177
142
  (File.exist?(origen_binstub) && File.read(origen_binstub) !~ /This file was generated by Origen/)
178
143
  warnings << BUNDLER_WARNING
@@ -51,7 +51,8 @@ module Origen
51
51
  end
52
52
 
53
53
  def relative_path_to(file)
54
- p = Pathname(file).relative_path_from(Pathname.pwd).to_s
54
+ file = Pathname.new(file) unless file.is_a?(Pathname)
55
+ p = file.expand_path.relative_path_from(Pathname.pwd).to_s
55
56
  p.gsub!('/', '\\') if Origen.running_on_windows?
56
57
  p
57
58
  end
@@ -27,7 +27,7 @@ module Origen
27
27
 
28
28
  def define_params(name, options = {}, &block)
29
29
  if _parameter_sets[name]
30
- fail 'Parameter sets cannot be re-opened once originally defined!'
30
+ fail "Parameter set '#{name}' cannot be re-opened once originally defined!"
31
31
  else
32
32
  _parameter_sets[name] = Set.new(top_level: true, owner: self)
33
33
  if options[:inherit]
@@ -60,10 +60,10 @@ module Origen
60
60
  if args.length != 0
61
61
  super
62
62
  else
63
- val = self[method]
64
- if !val
63
+ if !key?(method)
65
64
  super
66
65
  else
66
+ val = self[method]
67
67
  if val.is_a?(Set)
68
68
  val
69
69
  else
@@ -271,7 +271,9 @@ module Origen
271
271
  tests.empty? ? false : true
272
272
  end
273
273
 
274
- def sub_block(name, options = {})
274
+ def sub_block(name = nil, options = {})
275
+ name, options = nil, name if name.is_a?(Hash)
276
+ return sub_blocks unless name
275
277
  if i = options.delete(:instances)
276
278
  # permit creating multiple instances of a particular sub_block class
277
279
  # can pass array for base_address, which will be processed above
@@ -295,10 +297,12 @@ module Origen
295
297
  if sub_blocks[name] && !sub_blocks[name].is_a?(Placeholder)
296
298
  fail "You have already defined a sub-block named #{name} within class #{self.class}"
297
299
  end
298
- unless respond_to?(name)
299
- define_singleton_method name do
300
- get_sub_block(name)
301
- end
300
+ if respond_to?(name)
301
+ callers = caller[0].split(':')
302
+ Origen.log.warning "The sub_block defined at #{Pathname.new(callers[0]).relative_path_from(Pathname.pwd)}:#{callers[1]} is overriding an existing method called #{name}"
303
+ end
304
+ define_singleton_method name do
305
+ get_sub_block(name)
302
306
  end
303
307
  if sub_blocks[name] && sub_blocks[name].is_a?(Placeholder)
304
308
  sub_blocks[name].add_attributes(options)
@@ -347,6 +351,10 @@ module Origen
347
351
  @current_group = [] # open group
348
352
  yield # any sub_block calls within this block will have their ID added to @current_group
349
353
  my_group = @current_group.dup
354
+ if respond_to?(id)
355
+ callers = caller[0].split(':')
356
+ Origen.log.warning "The sub_block_group defined at #{Pathname.new(callers[0]).relative_path_from(Pathname.pwd)}:#{callers[1]} is overriding an existing method called #{id}"
357
+ end
350
358
  define_singleton_method "#{id}" do
351
359
  if options[:class_name]
352
360
  b = Object.const_get(options[:class_name]).new
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 1.8.11".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Stephen McGinty".freeze]
11
- s.date = "2019-01-22"
11
+ s.date = "2019-01-24"
12
12
  s.email = ["stephen.f.mcginty@gmail.com".freeze]
13
13
  s.files = ["bin/boot.rb".freeze, "bin/fix_my_workspace".freeze, "config/application.rb".freeze, "config/boot.rb".freeze, "config/commands.rb".freeze, "config/shared_commands.rb".freeze, "config/version.rb".freeze, "lib/origen_app_generators.rb".freeze, "lib/origen_app_generators/application.rb".freeze, "lib/origen_app_generators/base.rb".freeze, "lib/origen_app_generators/empty_application.rb".freeze, "lib/origen_app_generators/empty_plugin.rb".freeze, "lib/origen_app_generators/new.rb".freeze, "lib/origen_app_generators/origen_infrastructure/app_generator_plugin.rb".freeze, "lib/origen_app_generators/plugin.rb".freeze, "lib/origen_app_generators/sub_block_parser.rb".freeze, "lib/origen_app_generators/test_engineering/stand_alone_application.rb".freeze, "lib/origen_app_generators/test_engineering/test_block.rb".freeze, "lib/tasks/app_generators.rake".freeze, "lib/tasks/new_app_tests.rake".freeze, "templates/app_generators".freeze, "templates/app_generators/application".freeze, "templates/app_generators/application/.gitignore".freeze, "templates/app_generators/application/.irbrc".freeze, "templates/app_generators/application/.rspec".freeze, "templates/app_generators/application/.travis.yml".freeze, "templates/app_generators/application/Gemfile".freeze, "templates/app_generators/application/Rakefile".freeze, "templates/app_generators/application/config".freeze, "templates/app_generators/application/config/application.rb".freeze, "templates/app_generators/application/config/boot.rb".freeze, "templates/app_generators/application/config/commands.rb".freeze, "templates/app_generators/application/config/maillist_dev.txt".freeze, "templates/app_generators/application/config/maillist_prod.txt".freeze, "templates/app_generators/application/config/version.rb".freeze, "templates/app_generators/application/doc".freeze, "templates/app_generators/application/doc/history".freeze, "templates/app_generators/application/dot_keep".freeze, "templates/app_generators/application/lib".freeze, "templates/app_generators/application/lib/app.rake".freeze, "templates/app_generators/application/lib/module.rb".freeze, "templates/app_generators/application/lib/top_level.rb".freeze, "templates/app_generators/application/origen_core_session".freeze, "templates/app_generators/application/spec".freeze, "templates/app_generators/application/spec/spec_helper.rb".freeze, "templates/app_generators/application/target".freeze, "templates/app_generators/application/target/debug.rb".freeze, "templates/app_generators/application/target/default.rb".freeze, "templates/app_generators/application/target/production.rb".freeze, "templates/app_generators/application/templates".freeze, "templates/app_generators/application/templates/web".freeze, "templates/app_generators/application/templates/web/index.md.erb".freeze, "templates/app_generators/application/templates/web/layouts".freeze, "templates/app_generators/application/templates/web/layouts/_basic.html.erb".freeze, "templates/app_generators/application/templates/web/partials".freeze, "templates/app_generators/application/templates/web/partials/_navbar.html.erb".freeze, "templates/app_generators/application/templates/web/release_notes.md.erb".freeze, "templates/app_generators/new".freeze, "templates/app_generators/new/generator.rb".freeze, "templates/app_generators/new/info.md.erb".freeze, "templates/app_generators/origen_infrastructure".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/config".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/config/load_generators.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/lib".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/lib/application.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/lib/base.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/lib/module.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/lib/plugin.rb".freeze, "templates/app_generators/plugin".freeze, "templates/app_generators/plugin/Gemfile".freeze, "templates/app_generators/plugin/Rakefile".freeze, "templates/app_generators/plugin/config".freeze, "templates/app_generators/plugin/config/boot.rb".freeze, "templates/app_generators/plugin/gemspec.rb".freeze, "templates/app_generators/plugin/lib".freeze, "templates/app_generators/plugin/lib/README".freeze, "templates/app_generators/plugin/lib_dev".freeze, "templates/app_generators/plugin/lib_dev/README".freeze, "templates/app_generators/plugin/templates".freeze, "templates/app_generators/plugin/templates/web".freeze, "templates/app_generators/plugin/templates/web/index.md.erb".freeze, "templates/app_generators/plugin/templates/web/partials".freeze, "templates/app_generators/plugin/templates/web/partials/_navbar_external.html.erb".freeze, "templates/app_generators/plugin/templates/web/partials/_navbar_internal.html.erb".freeze, "templates/app_generators/test_engineering".freeze, "templates/app_generators/test_engineering/stand_alone_application".freeze, "templates/app_generators/test_engineering/stand_alone_application/Gemfile".freeze, "templates/app_generators/test_engineering/stand_alone_application/environment".freeze, "templates/app_generators/test_engineering/stand_alone_application/environment/j750.rb".freeze, "templates/app_generators/test_engineering/stand_alone_application/environment/jlink.rb".freeze, "templates/app_generators/test_engineering/stand_alone_application/environment/uflex.rb".freeze, "templates/app_generators/test_engineering/stand_alone_application/environment/v93k.rb".freeze, "templates/app_generators/test_engineering/stand_alone_application/lib".freeze, "templates/app_generators/test_engineering/stand_alone_application/lib/ip_block.rb".freeze, "templates/app_generators/test_engineering/stand_alone_application/lib/ip_block_controller.rb".freeze, "templates/app_generators/test_engineering/stand_alone_application/lib/top_level.rb".freeze, "templates/app_generators/test_engineering/stand_alone_application/lib/top_level_controller.rb".freeze, "templates/app_generators/test_engineering/stand_alone_application/pattern".freeze, "templates/app_generators/test_engineering/stand_alone_application/pattern/example.rb".freeze, "templates/app_generators/test_engineering/stand_alone_application/target".freeze, "templates/app_generators/test_engineering/stand_alone_application/target/top_level.rb".freeze, "templates/app_generators/test_engineering/test_block".freeze, "templates/app_generators/test_engineering/test_block/environment".freeze, "templates/app_generators/test_engineering/test_block/environment/j750.rb".freeze, "templates/app_generators/test_engineering/test_block/environment/ultraflex.rb".freeze, "templates/app_generators/test_engineering/test_block/environment/v93k.rb".freeze, "templates/app_generators/test_engineering/test_block/lib".freeze, "templates/app_generators/test_engineering/test_block/lib/controller.rb".freeze, "templates/app_generators/test_engineering/test_block/lib/interface.rb".freeze, "templates/app_generators/test_engineering/test_block/lib/model.rb".freeze, "templates/app_generators/test_engineering/test_block/lib_dev".freeze, "templates/app_generators/test_engineering/test_block/lib_dev/dut.rb".freeze, "templates/app_generators/test_engineering/test_block/lib_dev/dut_controller.rb".freeze, "templates/app_generators/test_engineering/test_block/pattern".freeze, "templates/app_generators/test_engineering/test_block/pattern/example.rb".freeze, "templates/app_generators/test_engineering/test_block/program".freeze, "templates/app_generators/test_engineering/test_block/program/prb1.rb".freeze, "templates/app_generators/test_engineering/test_block/target".freeze, "templates/app_generators/test_engineering/test_block/target/default.rb".freeze]
14
14
  s.homepage = "http://origen-sdk.org/origen_app_generators".freeze
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.42.0
4
+ version: 0.42.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-22 00:00:00.000000000 Z
11
+ date: 2019-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport