origen 0.60.12 → 0.60.14
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72edbb6af81e08f3dae27340b8adb75a2bd0a328e24b398c7c493923e568fff5
|
4
|
+
data.tar.gz: '0711789ba34b72bf554ff6b57af5772229a36dd2d0dbbeae35f307c660c45d78'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b30d5368c8ac8c113047ac370d874db601b8b32cdbb6f0f5389b0d44b29140a06d1c782e5198a895b13f22928f45a90bd3c1a79815718c7319ee9b4f83cf7735
|
7
|
+
data.tar.gz: 59c09425ebf952b780a4bd7b6992185b0db5df2e6582bbd5fe9b3ebf4c8121e14783376c5481aec026441612a04f889145c66204d787a7efb1c8f801acb5807c
|
data/config/version.rb
CHANGED
data/lib/origen/chip_package.rb
CHANGED
@@ -254,6 +254,23 @@ module Origen
|
|
254
254
|
test_string[0, 1]
|
255
255
|
end
|
256
256
|
|
257
|
+
def method_missing(m, *args, &block)
|
258
|
+
ivar = "@#{m.to_s.gsub('=', '')}"
|
259
|
+
ivar_sym = ":#{ivar}"
|
260
|
+
if m.to_s =~ /=$/
|
261
|
+
define_singleton_method(m) do |val|
|
262
|
+
instance_variable_set(ivar, val)
|
263
|
+
end
|
264
|
+
elsif instance_variables.include? ivar_sym
|
265
|
+
instance_variable_get(ivar)
|
266
|
+
else
|
267
|
+
define_singleton_method(m) do
|
268
|
+
instance_variable_get(ivar)
|
269
|
+
end
|
270
|
+
end
|
271
|
+
send(m, *args, &block)
|
272
|
+
end
|
273
|
+
|
257
274
|
# .plot can be called explicitly and accepts string arguments with
|
258
275
|
# or without regex styling. For example:
|
259
276
|
#
|
@@ -139,13 +139,13 @@ module Origen
|
|
139
139
|
if File.exist?("#{dir}/.initial_populate_successful")
|
140
140
|
FileUtils.rm_f(version_file) if File.exist?(version_file)
|
141
141
|
rc = RevisionControl.new remote: rc_url, local: dir
|
142
|
-
rc.send rc.remotes_method, version: prefix_tag(tag), force: true
|
142
|
+
rc.send rc.remotes_method, version: prefix_tag(tag, remote), force: true
|
143
143
|
File.open(version_file, 'w') do |f|
|
144
144
|
f.write tag
|
145
145
|
end
|
146
146
|
else
|
147
147
|
rc = RevisionControl.new remote: rc_url, local: dir
|
148
|
-
rc.send rc.remotes_method, version: prefix_tag(tag), force: true
|
148
|
+
rc.send rc.remotes_method, version: prefix_tag(tag, remote), force: true
|
149
149
|
FileUtils.touch "#{dir}/.initial_populate_successful"
|
150
150
|
File.open(version_file, 'w') do |f|
|
151
151
|
f.write tag
|
@@ -342,13 +342,13 @@ module Origen
|
|
342
342
|
if File.exist?("#{dir}/.initial_populate_successful")
|
343
343
|
FileUtils.rm_f(version_file) if File.exist?(version_file)
|
344
344
|
rc = RevisionControl.new remote: rc_url, local: dir
|
345
|
-
rc.send rc.remotes_method, version: prefix_tag(tag), force: true
|
345
|
+
rc.send rc.remotes_method, version: prefix_tag(tag, remote), force: true
|
346
346
|
File.open(version_file, 'w') do |f|
|
347
347
|
f.write tag
|
348
348
|
end
|
349
349
|
else
|
350
350
|
rc = RevisionControl.new remote: rc_url, local: dir
|
351
|
-
rc.send rc.remotes_method, version: prefix_tag(tag), force: true
|
351
|
+
rc.send rc.remotes_method, version: prefix_tag(tag, remote), force: true
|
352
352
|
FileUtils.touch "#{dir}/.initial_populate_successful"
|
353
353
|
File.open(version_file, 'w') do |f|
|
354
354
|
f.write tag
|
@@ -382,10 +382,14 @@ module Origen
|
|
382
382
|
end
|
383
383
|
|
384
384
|
# If the supplied tag looks like a semantic version number, then make sure it has the
|
385
|
-
# 'v' prefix
|
386
|
-
def prefix_tag(tag)
|
385
|
+
# 'v' prefix unless the remote has explicitly disallowed the prefix
|
386
|
+
def prefix_tag(tag, remote = {})
|
387
|
+
remote = {
|
388
|
+
disable_tag_prefix: false
|
389
|
+
}.merge(remote)
|
390
|
+
|
387
391
|
tag = Origen::VersionString.new(tag)
|
388
|
-
if tag.semantic?
|
392
|
+
if tag.semantic? && !remote[:disable_tag_prefix]
|
389
393
|
tag.prefixed
|
390
394
|
else
|
391
395
|
tag
|
@@ -47,7 +47,9 @@ module Origen
|
|
47
47
|
|
48
48
|
version = options[:version] || current_branch
|
49
49
|
|
50
|
-
|
50
|
+
# Not trying to do a VersionString comparison, just determine if the
|
51
|
+
# string literal value of version == HEAD, hence the .to_s call
|
52
|
+
if version.to_s == 'HEAD'
|
51
53
|
puts "Sorry, but you are not currently on a branch and I don't know which branch you want to checkout"
|
52
54
|
puts 'Please supply a branch name as the version to checkout the latest version of it, e.g. origen rc co -v develop'
|
53
55
|
exit 1
|
@@ -8,16 +8,16 @@ 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 = "2023-
|
11
|
+
s.date = "2023-11-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
|
15
15
|
s.licenses = ["MIT".freeze]
|
16
16
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.3".freeze)
|
17
|
-
s.rubygems_version = "3.
|
17
|
+
s.rubygems_version = "3.2.3".freeze
|
18
18
|
s.summary = "Origen application generators".freeze
|
19
19
|
|
20
|
-
s.installed_by_version = "3.
|
20
|
+
s.installed_by_version = "3.2.3" if s.respond_to? :installed_by_version
|
21
21
|
|
22
22
|
if s.respond_to? :specification_version then
|
23
23
|
s.specification_version = 4
|
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.60.
|
4
|
+
version: 0.60.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -731,7 +731,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
731
731
|
- !ruby/object:Gem::Version
|
732
732
|
version: 1.8.11
|
733
733
|
requirements: []
|
734
|
-
rubygems_version: 3.
|
734
|
+
rubygems_version: 3.2.3
|
735
735
|
signing_key:
|
736
736
|
specification_version: 4
|
737
737
|
summary: The Semiconductor Developer's Kit
|