origen 0.51.3 → 0.52.0

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: d6b01aa2a6001678a624d9e819007d180711b4955d714bc6a2977f4e739b364f
4
- data.tar.gz: 67bc84c10b253978cfcd7f47447a8299d61693984f1779e993a96bcce1ef4129
3
+ metadata.gz: 66da9dd0e7daf45df9ed1b3296be702222ccfbdd9a7daa9d4258e13b8170a2d9
4
+ data.tar.gz: d4e0594b55959d9d98a8971f08e87d2fd62074f72076c21a5a75b3d667996638
5
5
  SHA512:
6
- metadata.gz: bcb831bda418c0ddb8ba3970a74bc02fbf296f31f7c5a847f23a2157218d0618a6ec291f9f5d1a347aef615fcbcb26a3989590bb02a763a26e5ed61ee68472a5
7
- data.tar.gz: 5480f5d17fd808670ce6109d8a9f4e9f0646b6bb7118b8555877e87a3f75c5f6bfda988d231e3bd8df42898b4b41f97704ad1fd119951a86e6f55faa5a7207f9
6
+ metadata.gz: 25583f8f1033819423e649ddd3743e7b7a4a523b12724985e34b2b06d5dd83d3495e8eae9949cd5e6049b94548374a2c2ee3f9088815667a85c1d3e17633787a
7
+ data.tar.gz: e4d661a56516345b15ad2fa812fdb11ed171a3a067d6b5c86dc837bf4429c11244ab43ebe7677f9db16f442bf882aafbb7dcf2091cf4b14cfb0f14c86627e676
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
- MINOR = 51
4
- BUGFIX = 3
3
+ MINOR = 52
4
+ BUGFIX = 0
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
data/lib/origen.rb CHANGED
@@ -782,6 +782,13 @@ unless defined? RGen::ORIGENTRANSITION
782
782
  end
783
783
  end
784
784
 
785
+ # OS agnostic split of a caller line into file and line number
786
+ def split_caller_line(line)
787
+ arr = line.split(':')
788
+ arr[0] = arr[0] + ':' + arr.delete_at(1) if Origen.os.windows?
789
+ arr
790
+ end
791
+
785
792
  private
786
793
 
787
794
  def current_command=(val)
@@ -298,9 +298,7 @@ module Origen
298
298
  fail "You have already defined a sub-block named #{name} within class #{self.class}"
299
299
  end
300
300
  if respond_to?(name)
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?
301
+ callers = Origen.split_caller_line caller[0]
304
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}"
305
303
  end
306
304
  define_singleton_method name do
@@ -354,9 +352,7 @@ module Origen
354
352
  yield # any sub_block calls within this block will have their ID added to @current_group
355
353
  my_group = @current_group.dup
356
354
  if respond_to?(id)
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?
355
+ callers = Origen.split_caller_line caller[0]
360
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}"
361
357
  end
362
358
  define_singleton_method "#{id}" do
data/lib/tasks/gem.rake CHANGED
@@ -24,7 +24,12 @@ namespace 'gem' do
24
24
  if Origen.app.config.release_externally
25
25
  cmd = "gem push #{built_gem_path}"
26
26
  else
27
- cmd = "gem inabox --host #{Origen.site_config.gem_server!} #{built_gem_path}"
27
+ url = Origen.site_config.gem_server_push || Origen.site_config.gem_server!
28
+ if Origen.site_config.gem_push_cmd
29
+ cmd = Origen.site_config.gem_push_cmd.gsub('+URL+', url).gsub('+GEM+', built_gem_path)
30
+ else
31
+ cmd = "gem push #{built_gem_path} --host #{url}"
32
+ end
28
33
  end
29
34
  sh(cmd) do |ok, _res|
30
35
  if ok
@@ -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-06-10"
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
@@ -1,5 +1,5 @@
1
- <% if (@audience != :external) && Origen.site_config.gem_server -%>
2
- <% Array(Origen.site_config.gem_server).each do |server| -%>
1
+ <% if (@audience != :external) && (Origen.site_config.gem_server_pull || Origen.site_config.gem_server) -%>
2
+ <% Array(Origen.site_config.gem_server_pull || Origen.site_config.gem_server).each do |server| -%>
3
3
  source '<%= server %>'
4
4
  <% end -%>
5
5
  <% else %>
@@ -23,6 +23,11 @@ gem 'byebug', '~>8' # You can remove this version constraint if you don't care
23
23
  # that then you can remove this line
24
24
  gem 'nokogiri', '1.8.5'
25
25
  <% end -%>
26
+ <% if (@audience != :external) && Origen.site_config.gem_push_plugins -%>
27
+ <% Array(Origen.site_config.gem_push_plugins).each do |plugin| -%>
28
+ gem <%= plugin.map{ |d| "\"#{d}\"" }.join(', ') %>
29
+ <% end -%>
30
+ <% end -%>
26
31
 
27
32
  # Uncomment these if you want to use a visual debugger (e.g. Visual Studio Code) to debug your app
28
33
  #gem 'ruby-debug-ide'
@@ -1,5 +1,5 @@
1
- <% if (@audience != :external) && Origen.site_config.gem_server -%>
2
- <% Array(Origen.site_config.gem_server).each do |server| -%>
1
+ <% if (@audience != :external) && (Origen.site_config.gem_server_pull || Origen.site_config.gem_server) -%>
2
+ <% Array(Origen.site_config.gem_server_pull || Origen.site_config.gem_server).each do |server| -%>
3
3
  source '<%= server %>'
4
4
  <% end -%>
5
5
  <% else %>
@@ -17,6 +17,11 @@ gem 'byebug', '~>8' # You can remove this version constraint if you don't care
17
17
  # supporting earlier versions of Ruby 2
18
18
  gem 'ripper-tags'
19
19
  gem 'origen_doc_helpers'
20
+ <% if (@audience != :external) && Origen.site_config.gem_push_plugins -%>
21
+ <% Array(Origen.site_config.gem_push_plugins).each do |plugin| -%>
22
+ gem <%= plugin.map{ |d| "\"#{d}\"" }.join(', ') %>
23
+ <% end -%>
24
+ <% end -%>
20
25
 
21
26
  # Uncomment these if you want to use a visual debugger (e.g. Visual Studio Code) to debug your app
22
27
  #gem 'ruby-debug-ide'
@@ -43,8 +43,24 @@ centralized_site_config_verify_ssl: true
43
43
 
44
44
  # GEM SETUP
45
45
 
46
- # If your company has an internal gem server enter it here
47
- #gem_server: http://gems.company.net:9292
46
+ # If your company has an internal gem server enter it here:
47
+ #gem_server: https://gems.company.net:9292
48
+ # or here, if you need to use different urls for push and pull (write and read):
49
+ #gem_server_push: https://gems.company.net:9292
50
+ #gem_server_pull: https://gems.company.net:9292
51
+
52
+ # By default, the Origen 'rake gem:release' task (called by the 'origen rc tag' command), will use
53
+ # the standard Ruby 'gem push' command to push gems to your company gem server.
54
+ # If you need to use a different command, define it here as a string using, +GEM+ where you want
55
+ # the gem name to be referenced, and +URL+ to reference your company gem server.
56
+ #gem_push_cmd: "gem inabox --host +URL+ +GEM+"
57
+ #gem_push_cmd: "gem nexus +GEM+ --url +URL+ --clear-repo --ignore-ssl-errors"
58
+
59
+ # If your custom gem_push_cmd requires a gem plugin(s), add the gem names here and they will be
60
+ # included in new applications generated via the 'origen new' command.
61
+ #gem_push_plugins:
62
+ # - geminabox
63
+ # - nexus
48
64
 
49
65
  # When true Origen will configure and run Bundler in a consistent way for every
50
66
  # user (recommended)
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.3
4
+ version: 0.52.0
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-31 00:00:00.000000000 Z
11
+ date: 2019-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -276,34 +276,6 @@ dependencies:
276
276
  - - "~>"
277
277
  - !ruby/object:Gem::Version
278
278
  version: '1.7'
279
- - !ruby/object:Gem::Dependency
280
- name: geminabox
281
- requirement: !ruby/object:Gem::Requirement
282
- requirements:
283
- - - '='
284
- - !ruby/object:Gem::Version
285
- version: 0.12.4
286
- type: :runtime
287
- prerelease: false
288
- version_requirements: !ruby/object:Gem::Requirement
289
- requirements:
290
- - - '='
291
- - !ruby/object:Gem::Version
292
- version: 0.12.4
293
- - !ruby/object:Gem::Dependency
294
- name: sinatra
295
- requirement: !ruby/object:Gem::Requirement
296
- requirements:
297
- - - "~>"
298
- - !ruby/object:Gem::Version
299
- version: '1'
300
- type: :runtime
301
- prerelease: false
302
- version_requirements: !ruby/object:Gem::Requirement
303
- requirements:
304
- - - "~>"
305
- - !ruby/object:Gem::Version
306
- version: '1'
307
279
  - !ruby/object:Gem::Dependency
308
280
  name: dentaku
309
281
  requirement: !ruby/object:Gem::Requirement