origen_app_generators 2.2.0 → 2.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64a1039908eba30b3a33e2da0d8696af09c414f91a7a42cea5aa90982586129b
4
- data.tar.gz: fab5ecfe17f9cf65c765c651b8447081ad9081c5b04c60511dcfabbad200a4e8
3
+ metadata.gz: c301bc4489fbdc30b08fd2a4a16a5520d3f5216ddd46cbb63a72424b10c88711
4
+ data.tar.gz: 29a166f84f4ff2a9f6d097b56073231c6fa70928a121a487cb3653a5dc3b9f2a
5
5
  SHA512:
6
- metadata.gz: 2f7a4bf3e601713cade91fffd45e866f4c9e66fbd0554afbf222e303d6efa9d12f65f9a9574f7f766657c8cf5dacc3e7de5bc4b910533d92be679fef07402322
7
- data.tar.gz: 29c49bae93ea8ef4970d06f5f3bf9ed98304b8e24ada166a5136049a93609e4bf229c53bb18c40aaa2e95ab2498d71e70b15e4759525d0328d6ab6e2c4f7d9bb
6
+ metadata.gz: 6a505bd3b6d6bbb1374ad561f4a9ee5abef74fb69edc2cd0f2f09535c91a82b4c5f27c93a3722302157a56c73e5cead11b65a2045eef2a6c69653dbd4b84472d
7
+ data.tar.gz: 70a66e2ffb5b418d0d4133329303b7fc6bf68522cbbf7d6e3f07f80268c95a0429b126fcd5dd131c8e294c3a9672b5979891066a5529496ed9eeabeb4ea84e58
data/bin/boot.rb CHANGED
@@ -12,12 +12,18 @@ $LOAD_PATH.unshift ARGV.shift
12
12
  require 'fileutils'
13
13
  require 'origen'
14
14
 
15
+ # Resolve temp build dir with precedence:
16
+ # 1. ORIGEN_APP_GEN_TMP_DIR env var (highest, linux-like override)
17
+ # 2. site_config :app_gen_tmp_dir
18
+ # 3. hardcoded platform default (legacy behavior)
15
19
  # Prevent the bundle from loading by running this outside of the
16
- if Origen.os.windows?
17
- tmp_dir = 'C:/tmp/my_app_generators/new_app'
18
- else
19
- tmp_dir = '/tmp/my_app_generators/new_app'
20
- end
20
+ default_tmp = Origen.os.windows? ? 'C:/tmp/my_app_generators/new_app'
21
+ : '/tmp/my_app_generators/new_app'
22
+
23
+ tmp_dir = ENV['ORIGEN_APP_GEN_TMP_DIR'] ||
24
+ (Origen.site_config.respond_to?(:app_gen_tmp_dir) && Origen.site_config.app_gen_tmp_dir) ||
25
+ default_tmp
26
+
21
27
  FileUtils.rm_rf tmp_dir if File.exist?(tmp_dir)
22
28
  FileUtils.mkdir_p tmp_dir
23
29
 
@@ -33,7 +39,12 @@ begin
33
39
  OrigenAppGenerators.invoke('my_app')
34
40
  end
35
41
  ensure
36
- FileUtils.mv "#{tmp_dir}/my_app", 'output' if File.exist?("#{tmp_dir}/my_app")
42
+ src = "#{tmp_dir}/my_app"
43
+ if File.exist?(src)
44
+ FileUtils.mkdir_p('output')
45
+ FileUtils.cp_r(src, 'output') # cross-device safe
46
+ FileUtils.rm_rf(src)
47
+ end
37
48
  puts
38
49
  puts "Ignore the above, your new app is in: output/my_app"
39
50
  end
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module OrigenAppGenerators
2
2
  MAJOR = 2
3
3
  MINOR = 2
4
- BUGFIX = 0
4
+ BUGFIX = 1
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -1,6 +1,6 @@
1
1
  require 'origen'
2
2
  <% if @type == :plugin -%>
3
- require_relative '../../config/application.rb'
3
+ require_relative '../../config/application'
4
4
  <% end -%>
5
5
  module <%= @namespace %>
6
6
  end
@@ -15,14 +15,12 @@ module <%= @namespace %>
15
15
  # array.
16
16
  #
17
17
  # You can also execute all sets of test inputs by running: 'origen app_gen:test -r'
18
- TEST_INPUTS = [
19
- ] # END_OF_TEST_INPUTS Don't remove this comment, it is used by the app_gen:new command!
18
+ TEST_INPUTS = [] # END_OF_TEST_INPUTS Don't remove this comment, it is used by the app_gen:new command!
20
19
 
21
20
  # As you add new generators to this app they will be entered here, this enables the
22
21
  # mechanism to register them with the 'origen new' command.
23
22
  # You should generally not modify this by hand, instead use the 'origen app_gen:new'
24
23
  # command every time you want to create a new generator, and this will be filled in
25
24
  # for you.
26
- AVAILABLE = {
27
- }
25
+ AVAILABLE = {}
28
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_app_generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.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: 2020-12-03 00:00:00.000000000 Z
11
+ date: 2026-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  - !ruby/object:Gem::Version
113
113
  version: 1.8.11
114
114
  requirements: []
115
- rubygems_version: 3.0.3
115
+ rubygems_version: 3.4.10
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Origen application generators