origen 0.51.1 → 0.51.2

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: 04054ba3497f3d1f4423748468f8039445971cc1f2415b38b62d24992653e575
4
- data.tar.gz: 60c7ab624890e6452d5e5b867f53c11211c7f967599f330eedbcfa896ae8f8d7
3
+ metadata.gz: eda912bc0e1bb63358db06e630e5d87515cbf063349ae4e8d5c80905a4a914fc
4
+ data.tar.gz: f7d359b09d280721560963184dafa8b42d52b5e0712770ef76524ddf29f20b92
5
5
  SHA512:
6
- metadata.gz: ecc819defb6a25fd795fc8c886466c22116bf858ea6e67cb8d13b63fde1bb5a97ddc1bf113bf025f4d3b6dfde90fa1c608c93ecf517f18a0f752667117adc265
7
- data.tar.gz: da18b23a23999c13fc4fba58ce002e5ea2681a5b392771dea269db4050ab36c6c657de9119b55a2ccdd4a3d5bf9c6393ed22d474c4157b2a312a66f87f2b1e99
6
+ metadata.gz: ba07103f5ab19e1ac3fc026321ba9dd975ee0897c9c9ba2417d9b4d3d10fdcaaebea50a08f7bdfebc0e61bb75996b539761a71003484429cf0a1522f9e4b3a96
7
+ data.tar.gz: 50a88f26bb2d24a5f419c12bbac9acae8760e13a38dbaa649d00d0dfca8878f5c883248af3df1c4087bfa63e71bf182657c436ee836ac00055769af8110379dc
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 51
4
- BUGFIX = 1
4
+ BUGFIX = 2
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -50,6 +50,8 @@ module Origen
50
50
  Origen.register_application(app)
51
51
  end
52
52
  app.add_lib_to_load_path!
53
+ # Also blow this cache as a new app has just been added
54
+ @apps_by_namespace = nil
53
55
  end
54
56
  end
55
57
  end
@@ -135,11 +137,6 @@ module Origen
135
137
  #
136
138
  # Returns a lookup table for all block definitions (app/blocks) that the app contains
137
139
  def blocks_files
138
- # There seems to be some issue with this cache being corrupted when running the test suite
139
- # in Travis, but don't believe that this is really an issue in practice and cannot replicate
140
- # it locally. Therefore maintaining the cache of this potentially expensive operation except
141
- # from when running in CI.
142
- @blocks_files = nil if ENV['CONTINUOUS_INTEGRATION']
143
140
  @blocks_files ||= begin
144
141
  files = {}
145
142
  block_dir = Pathname.new(File.join(root, 'app', 'blocks'))
@@ -167,7 +164,7 @@ module Origen
167
164
  type = file.basename('.rb').to_s.to_sym
168
165
  unless type == :model || type == :controller
169
166
  files[path][type] ||= []
170
- files[path][type] << file
167
+ files[path][type] << file.to_s
171
168
  end
172
169
  end
173
170
  derivatives = current_dir.join('derivatives')
data/lib/origen/loader.rb CHANGED
@@ -94,8 +94,12 @@ module Origen
94
94
 
95
95
  # @api private
96
96
  def self.load_block_file(file, model)
97
- e = File.exist?(file.to_s)
98
- model.instance_eval(file.read, file.to_s) if e
97
+ file = file.to_s
98
+ if File.exist?(file)
99
+ File.open(file, 'r') do |f|
100
+ model.instance_eval(f.read, file)
101
+ end
102
+ end
99
103
  true
100
104
  end
101
105
 
@@ -299,6 +299,8 @@ module Origen
299
299
  end
300
300
  if respond_to?(name)
301
301
  callers = caller[0].split(':')
302
+ # reunite the drive and path if on windows os
303
+ callers[0] = callers[0] + ':' + callers.delete_at(1) if Origen.os.windows?
302
304
  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
305
  end
304
306
  define_singleton_method name do
@@ -353,6 +355,8 @@ module Origen
353
355
  my_group = @current_group.dup
354
356
  if respond_to?(id)
355
357
  callers = caller[0].split(':')
358
+ # reunite the drive and path if on windows os
359
+ callers[0] = callers[0] + ':' + callers.delete_at(1) if Origen.os.windows?
356
360
  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
361
  end
358
362
  define_singleton_method "#{id}" do
@@ -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-05-27"
11
+ s.date = "2019-05-28"
12
12
  s.email = ["stephen.f.mcginty@gmail.com".freeze]
13
13
  s.files = ["bin/boot.rb".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/new_app_tests.rb".freeze, "lib/origen_app_generators/origen_infrastructure/app_generator_plugin.rb".freeze, "lib/origen_app_generators/plugin.rb".freeze, "lib/origen_app_generators/test_engineering/common.rb".freeze, "lib/origen_app_generators/test_engineering/stand_alone_application.rb".freeze, "lib/origen_app_generators/test_engineering/test_block.rb".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/app".freeze, "templates/app_generators/application/app/blocks".freeze, "templates/app_generators/application/app/blocks/top_level.rb".freeze, "templates/app_generators/application/app/lib".freeze, "templates/app_generators/application/app/lib/module.rb".freeze, "templates/app_generators/application/app/templates".freeze, "templates/app_generators/application/app/templates/web".freeze, "templates/app_generators/application/app/templates/web/index.md.erb".freeze, "templates/app_generators/application/app/templates/web/layouts".freeze, "templates/app_generators/application/app/templates/web/layouts/_basic.html.erb".freeze, "templates/app_generators/application/app/templates/web/partials".freeze, "templates/app_generators/application/app/templates/web/partials/_navbar.html.erb".freeze, "templates/app_generators/application/app/templates/web/release_notes.md.erb".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/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/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/app".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/application.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/base.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/module.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/plugin.rb".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/plugin".freeze, "templates/app_generators/plugin/Gemfile".freeze, "templates/app_generators/plugin/Rakefile".freeze, "templates/app_generators/plugin/app".freeze, "templates/app_generators/plugin/app/templates".freeze, "templates/app_generators/plugin/app/templates/web".freeze, "templates/app_generators/plugin/app/templates/web/index.md.erb".freeze, "templates/app_generators/plugin/app/templates/web/partials".freeze, "templates/app_generators/plugin/app/templates/web/partials/_navbar_external.html.erb".freeze, "templates/app_generators/plugin/app/templates/web/partials/_navbar_internal.html.erb".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/test_engineering".freeze, "templates/app_generators/test_engineering/environment".freeze, "templates/app_generators/test_engineering/environment/j750.rb".freeze, "templates/app_generators/test_engineering/environment/uflex.rb".freeze, "templates/app_generators/test_engineering/environment/v93k.rb".freeze, "templates/app_generators/test_engineering/stand_alone_application".freeze, "templates/app_generators/test_engineering/stand_alone_application/.keep".freeze, "templates/app_generators/test_engineering/test_block".freeze, "templates/app_generators/test_engineering/test_block/.keep".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.51.1
4
+ version: 0.51.2
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-05-28 00:00:00.000000000 Z
11
+ date: 2019-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport