gaudi 0.7.0 → 0.8.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 +4 -4
- data/History.txt +10 -0
- data/lib/gaudi/scaffolding.rb +14 -10
- data/lib/gaudi/version.rb +2 -2
- metadata +11 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10b3e56b9796e079d8c7d93f9ebe89e445c2a64be494e7cea385d8eb4a3bf9db
|
|
4
|
+
data.tar.gz: 1885d36f3791a9da586093645c9d19e6a55f808429b457f337b03e0762813b2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1664f69b5c81bed5bd962d2c57708c589dc75ad50275057421b808e458c1c6f6b5537f80c8ec9b486cb26d71f2b84d3e20cb263cb6ab01f7ccb54208b1634b3
|
|
7
|
+
data.tar.gz: 7d86e6fda79ad43d8d30871901b80622f2ee0fed1d615ca68006d8881e260f0ba4e8fa471f8616f9036b444625e0a529d804d4ed8fc10de4a8dab4f84c19923a
|
data/History.txt
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.8.1
|
|
4
|
+
|
|
5
|
+
* Maintenance release (2026-11-20)
|
|
6
|
+
* Updated gem dependencies (minitar ~>1.2)
|
|
7
|
+
* Lint cleanup of the scaffolding code
|
|
8
|
+
|
|
9
|
+
## 0.8.0
|
|
10
|
+
|
|
11
|
+
* Allow for specifying the revision to pull when scaffolding of pulling a gaudi module
|
|
12
|
+
|
|
3
13
|
## 0.7.0
|
|
4
14
|
|
|
5
15
|
* A module can now be pulled from a standard gaudi installation as well as a repo with a lib/ subdirectory
|
data/lib/gaudi/scaffolding.rb
CHANGED
|
@@ -22,7 +22,7 @@ module Gaudi
|
|
|
22
22
|
options.scaffold = false
|
|
23
23
|
options.update = false
|
|
24
24
|
options.library = false
|
|
25
|
-
options.
|
|
25
|
+
options.revision = "HEAD"
|
|
26
26
|
|
|
27
27
|
opt_parser = OptionParser.new do |opts|
|
|
28
28
|
opts.banner = "Usage: gaudi [options]"
|
|
@@ -59,6 +59,9 @@ module Gaudi
|
|
|
59
59
|
opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
|
|
60
60
|
options.verbose = v
|
|
61
61
|
end
|
|
62
|
+
opts.on("-r", "--revision REVISION", "Revision of source repository to use") do |rev|
|
|
63
|
+
options.revision = rev
|
|
64
|
+
end
|
|
62
65
|
opts.on_tail("-h", "--help", "Show this message") do
|
|
63
66
|
puts opts
|
|
64
67
|
exit
|
|
@@ -76,16 +79,17 @@ module Gaudi
|
|
|
76
79
|
end
|
|
77
80
|
return options
|
|
78
81
|
end
|
|
82
|
+
|
|
79
83
|
# :nodoc:
|
|
80
84
|
def self.run(args)
|
|
81
85
|
opts = options(args)
|
|
82
86
|
begin
|
|
83
87
|
if opts.scaffold
|
|
84
|
-
Gaudi::Gem.new(opts.project_root).project(opts.
|
|
88
|
+
Gaudi::Gem.new(opts.project_root).project(opts.revision)
|
|
85
89
|
elsif opts.update
|
|
86
|
-
Gaudi::Gem.new(opts.project_root).update(opts.
|
|
90
|
+
Gaudi::Gem.new(opts.project_root).update(opts.revision)
|
|
87
91
|
elsif opts.library
|
|
88
|
-
Gaudi::Gem.new(opts.project_root).library(opts.lib, opts.url, opts.
|
|
92
|
+
Gaudi::Gem.new(opts.project_root).library(opts.lib, opts.url, opts.revision)
|
|
89
93
|
end
|
|
90
94
|
rescue Gaudi::GemError
|
|
91
95
|
puts $!.message
|
|
@@ -147,7 +151,7 @@ module Gaudi
|
|
|
147
151
|
puts "Rakefile exists, skipping generation"
|
|
148
152
|
else
|
|
149
153
|
rakefile_content = File.read(File.join(File.dirname(__FILE__), "templates/rakefile.rb.template"))
|
|
150
|
-
File.
|
|
154
|
+
File.binwrite(rakefile, rakefile_content)
|
|
151
155
|
end
|
|
152
156
|
end
|
|
153
157
|
|
|
@@ -158,7 +162,7 @@ module Gaudi
|
|
|
158
162
|
puts "#{MAIN_CONFIG} exists, skipping generation"
|
|
159
163
|
else
|
|
160
164
|
configuration_content = File.read(File.join(File.dirname(__FILE__), "templates/main.cfg.template"))
|
|
161
|
-
File.
|
|
165
|
+
File.binwrite(config_file, configuration_content)
|
|
162
166
|
end
|
|
163
167
|
end
|
|
164
168
|
|
|
@@ -169,7 +173,7 @@ module Gaudi
|
|
|
169
173
|
puts "BUILDSYSTEM.md exists, skipping generation"
|
|
170
174
|
else
|
|
171
175
|
configuration_content = File.read(File.join(File.dirname(__FILE__), "templates/doc.md.template"))
|
|
172
|
-
File.
|
|
176
|
+
File.binwrite(config_file, configuration_content)
|
|
173
177
|
end
|
|
174
178
|
end
|
|
175
179
|
|
|
@@ -179,7 +183,7 @@ module Gaudi
|
|
|
179
183
|
|
|
180
184
|
lib_items.each do |items|
|
|
181
185
|
unpack_target = gaudi_home
|
|
182
|
-
unpack_target = File.expand_path(File.join(gaudi_home, "../..")) if /
|
|
186
|
+
unpack_target = File.expand_path(File.join(gaudi_home, "../..")) if %r{tools/build} =~ items
|
|
183
187
|
pkg = archive(version, File.join(tmp, "gaudi"), project_root, items)
|
|
184
188
|
unpack(pkg, unpack_target)
|
|
185
189
|
rescue GemError
|
|
@@ -196,7 +200,7 @@ module Gaudi
|
|
|
196
200
|
|
|
197
201
|
def archive(version, clone_path, prj_root, lib_items)
|
|
198
202
|
pkg = File.expand_path(File.join(prj_root, "gaudipkg.tar"))
|
|
199
|
-
Dir.chdir(clone_path) do |
|
|
203
|
+
Dir.chdir(clone_path) do |_d|
|
|
200
204
|
puts "Packing #{version} gaudi version in #{pkg}"
|
|
201
205
|
cmdline = "git archive --format=tar -o \"#{pkg}\" #{version} #{lib_items}"
|
|
202
206
|
raise GemError, "Failed to extract library from git" unless system(cmdline)
|
|
@@ -206,7 +210,7 @@ module Gaudi
|
|
|
206
210
|
|
|
207
211
|
def unpack(pkg, home)
|
|
208
212
|
puts "Unpacking in #{home}"
|
|
209
|
-
Dir.chdir(home) do |
|
|
213
|
+
Dir.chdir(home) do |_d|
|
|
210
214
|
Minitar.unpack(pkg, home)
|
|
211
215
|
end
|
|
212
216
|
FileUtils.rm_rf(pkg)
|
data/lib/gaudi/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gaudi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vassilis Rizopoulos
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitar
|
|
@@ -16,48 +16,48 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '1.2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '1.2'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rdoc
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '7.0'
|
|
34
34
|
- - "<"
|
|
35
35
|
- !ruby/object:Gem::Version
|
|
36
|
-
version: '
|
|
36
|
+
version: '9'
|
|
37
37
|
type: :development
|
|
38
38
|
prerelease: false
|
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
|
40
40
|
requirements:
|
|
41
41
|
- - ">="
|
|
42
42
|
- !ruby/object:Gem::Version
|
|
43
|
-
version: '
|
|
43
|
+
version: '7.0'
|
|
44
44
|
- - "<"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '
|
|
46
|
+
version: '9'
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: hoe
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '
|
|
53
|
+
version: '4.7'
|
|
54
54
|
type: :development
|
|
55
55
|
prerelease: false
|
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '
|
|
60
|
+
version: '4.7'
|
|
61
61
|
description: "## DESCRIPTION\n\nThis gem provides setup, scaffolding and maintenance
|
|
62
62
|
functions for [gaudi](http://github.com/damphyr/gaudi) installations.\n\n## USAGE\n\nTo
|
|
63
63
|
create a directory structure for a Gaudi based project:\n\n```bash\ngaudi -s project/root
|
|
@@ -69,7 +69,6 @@ executables:
|
|
|
69
69
|
extensions: []
|
|
70
70
|
extra_rdoc_files:
|
|
71
71
|
- History.txt
|
|
72
|
-
- Manifest.txt
|
|
73
72
|
- README.md
|
|
74
73
|
files:
|
|
75
74
|
- History.txt
|
|
@@ -104,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
104
103
|
- !ruby/object:Gem::Version
|
|
105
104
|
version: '0'
|
|
106
105
|
requirements: []
|
|
107
|
-
rubygems_version: 3.
|
|
106
|
+
rubygems_version: 3.5.22
|
|
108
107
|
signing_key:
|
|
109
108
|
specification_version: 4
|
|
110
109
|
summary: Scaffolding and version management for Gaudi
|