gaudi 0.6.0 → 0.8.0

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: 54ee50618544fa80d9edcc2bf32a730a6c3f551656d08ba73339a24218bb4649
4
- data.tar.gz: cee8a55f8f84381fa1e63c8af2f189499c327f0ae567e20798cd34d1d0bf4377
3
+ metadata.gz: d425c65ff8ab197db1de6387afbe72de23694f6d9a0ba73a6e3d0a43e285cf18
4
+ data.tar.gz: a433974a1491487d6988caa842faf062490d6942ac6c05946aaeec262ae97bff
5
5
  SHA512:
6
- metadata.gz: be7d986ff41897aa4a15f9b001d5e56c257b4f92ff401dfd6498267420ba96e3918ca9dc4b49bdf8ebb8e85f8fe19b20a1662796602b6be9763ae61581dbdbea
7
- data.tar.gz: c7c8c80828f100eeee72ddfc73759049af2f25f6283c81bba56188c02d53e307aa3dfb9175b03bb4082ef12a9208bf510045a1d59109818d3fba38e7f430bfbb
6
+ metadata.gz: 4b4f19b172304c589d0fe8b15a89c481bd10b39f5693cb9737dd71a4880c925adcd5bfc68c9fdc88d075bc0a16af56eae30afb540a43583a7571f2e753d99789
7
+ data.tar.gz: 5da13e53d589312716b8b4b8c7d1a7da23f3cbbca2491a57782cb7cad78be40c1754dbfa53669921583e7b1d7d104082a6aa761ffc2c808f5a1dc91b3c503599
data/History.txt CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.0
4
+
5
+ * Allow for specifying the revision to pull when scaffolding of pulling a gaudi module
6
+
7
+ ## 0.7.0
8
+
9
+ * A module can now be pulled from a standard gaudi installation as well as a repo with a lib/ subdirectory
10
+
3
11
  ## 0.6.0
4
12
 
5
13
  * Scaffolding now generates only the files necessary for the core gaudi functionality
@@ -2,7 +2,6 @@ require "ostruct"
2
2
  require "optparse"
3
3
  require "fileutils"
4
4
  require "tmpdir"
5
- require "rubygems"
6
5
  require "minitar"
7
6
 
8
7
  module Gaudi
@@ -23,7 +22,7 @@ module Gaudi
23
22
  options.scaffold = false
24
23
  options.update = false
25
24
  options.library = false
26
- options.version = "HEAD"
25
+ options.revision = "HEAD"
27
26
 
28
27
  opt_parser = OptionParser.new do |opts|
29
28
  opts.banner = "Usage: gaudi [options]"
@@ -60,6 +59,9 @@ module Gaudi
60
59
  opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
61
60
  options.verbose = v
62
61
  end
62
+ opts.on("-r", "--revision REVISION", "Revision of source repository to use") do |rev|
63
+ options.revision = rev
64
+ end
63
65
  opts.on_tail("-h", "--help", "Show this message") do
64
66
  puts opts
65
67
  exit
@@ -82,11 +84,11 @@ module Gaudi
82
84
  opts = options(args)
83
85
  begin
84
86
  if opts.scaffold
85
- Gaudi::Gem.new(opts.project_root).project(opts.version)
87
+ Gaudi::Gem.new(opts.project_root).project(opts.revision)
86
88
  elsif opts.update
87
- Gaudi::Gem.new(opts.project_root).update(opts.version)
89
+ Gaudi::Gem.new(opts.project_root).update(opts.revision)
88
90
  elsif opts.library
89
- Gaudi::Gem.new(opts.project_root).library(opts.lib, opts.url, opts.version)
91
+ Gaudi::Gem.new(opts.project_root).library(opts.lib, opts.url, opts.revision)
90
92
  end
91
93
  rescue Gaudi::GemError
92
94
  puts $!.message
@@ -107,7 +109,7 @@ module Gaudi
107
109
  rakefile
108
110
  main_config
109
111
  api_doc
110
- core(REPO, version, "lib/gaudi.rb lib/gaudi")
112
+ core(REPO, version, ["lib/gaudi.rb lib/gaudi"])
111
113
  end
112
114
 
113
115
  def update(version)
@@ -116,7 +118,7 @@ module Gaudi
116
118
  check_for_git
117
119
  puts "Removing old gaudi installation"
118
120
  FileUtils.rm_rf(File.join(gaudi_home, "lib/gaudi"))
119
- core(REPO, version, "lib/gaudi lib/gaudi.rb")
121
+ core(REPO, version, ["lib/gaudi lib/gaudi.rb"])
120
122
  end
121
123
 
122
124
  def library(lib, source_url, version)
@@ -125,7 +127,7 @@ module Gaudi
125
127
  puts "Removing old #{lib} installation"
126
128
  FileUtils.rm_rf(File.join(gaudi_home, "lib/#{lib}"))
127
129
  puts "Pulling #{version} from #{source_url}"
128
- core(source_url, version, "lib/#{lib}")
130
+ core(source_url, version, ["lib/#{lib}", "tools/build/lib/#{lib}"])
129
131
  end
130
132
 
131
133
  # :stopdoc:
@@ -178,8 +180,14 @@ module Gaudi
178
180
  Dir.mktmpdir do |tmp|
179
181
  raise GemError, "Cloning the Gaudi repo failed. Check that git is on the PATH and that #{REPO} is accessible" unless pull_from_repo(url, tmp)
180
182
 
181
- pkg = archive(version, File.join(tmp, "gaudi"), project_root, lib_items)
182
- unpack(pkg, gaudi_home)
183
+ lib_items.each do |items|
184
+ unpack_target = gaudi_home
185
+ unpack_target = File.expand_path(File.join(gaudi_home, "../..")) if /tools\/build/ =~ items
186
+ pkg = archive(version, File.join(tmp, "gaudi"), project_root, items)
187
+ unpack(pkg, unpack_target)
188
+ rescue GemError
189
+ next
190
+ end
183
191
  end
184
192
  end
185
193
 
data/lib/gaudi/version.rb CHANGED
@@ -5,7 +5,7 @@ module Gaudi
5
5
  # Major version
6
6
  MAJOR = 0
7
7
  # Minor version
8
- MINOR = 6
8
+ MINOR = 8
9
9
  # Tiny version
10
10
  TINY = 0
11
11
  # All-in-one
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.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vassilis Rizopoulos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2025-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitar
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '3.23'
53
+ version: '4.0'
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: '3.23'
60
+ version: '4.0'
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
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubygems_version: 3.1.6
107
+ rubygems_version: 3.5.9
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: Scaffolding and version management for Gaudi