gaudi 0.6.0 → 0.7.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: 54ee50618544fa80d9edcc2bf32a730a6c3f551656d08ba73339a24218bb4649
4
- data.tar.gz: cee8a55f8f84381fa1e63c8af2f189499c327f0ae567e20798cd34d1d0bf4377
3
+ metadata.gz: 77321df0111eaf2148d6b74d0ae49d30bf0f2bbb73ba3b6e2639155d8933416b
4
+ data.tar.gz: 5a0778512d78e357e55203d53fc5e937ed7ca666aaa9c587efabba7c8a2608bf
5
5
  SHA512:
6
- metadata.gz: be7d986ff41897aa4a15f9b001d5e56c257b4f92ff401dfd6498267420ba96e3918ca9dc4b49bdf8ebb8e85f8fe19b20a1662796602b6be9763ae61581dbdbea
7
- data.tar.gz: c7c8c80828f100eeee72ddfc73759049af2f25f6283c81bba56188c02d53e307aa3dfb9175b03bb4082ef12a9208bf510045a1d59109818d3fba38e7f430bfbb
6
+ metadata.gz: 88cd01d9ed7749596dc4e69ddd08b9f146d0a725e242fa014989a5443b2ffed8429b73ef157acf0ed3eb9e82f5e1b942e2c7fccf0c0afa4bcaf3af464c175074
7
+ data.tar.gz: ce265298b4cbdba522adb46734b67a71a334a11591b63dff1d5f7b38e9a52148288bbe563be8d4f13d199ee0826ec73010b28c58d6b21f97b8b04446ac37e2f8
data/History.txt CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0
4
+
5
+ * A module can now be pulled from a standard gaudi installation as well as a repo with a lib/ subdirectory
6
+
3
7
  ## 0.6.0
4
8
 
5
9
  * 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
@@ -107,7 +106,7 @@ module Gaudi
107
106
  rakefile
108
107
  main_config
109
108
  api_doc
110
- core(REPO, version, "lib/gaudi.rb lib/gaudi")
109
+ core(REPO, version, ["lib/gaudi.rb lib/gaudi"])
111
110
  end
112
111
 
113
112
  def update(version)
@@ -116,7 +115,7 @@ module Gaudi
116
115
  check_for_git
117
116
  puts "Removing old gaudi installation"
118
117
  FileUtils.rm_rf(File.join(gaudi_home, "lib/gaudi"))
119
- core(REPO, version, "lib/gaudi lib/gaudi.rb")
118
+ core(REPO, version, ["lib/gaudi lib/gaudi.rb"])
120
119
  end
121
120
 
122
121
  def library(lib, source_url, version)
@@ -125,7 +124,7 @@ module Gaudi
125
124
  puts "Removing old #{lib} installation"
126
125
  FileUtils.rm_rf(File.join(gaudi_home, "lib/#{lib}"))
127
126
  puts "Pulling #{version} from #{source_url}"
128
- core(source_url, version, "lib/#{lib}")
127
+ core(source_url, version, ["lib/#{lib}", "tools/build/lib/#{lib}"])
129
128
  end
130
129
 
131
130
  # :stopdoc:
@@ -178,8 +177,14 @@ module Gaudi
178
177
  Dir.mktmpdir do |tmp|
179
178
  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
179
 
181
- pkg = archive(version, File.join(tmp, "gaudi"), project_root, lib_items)
182
- unpack(pkg, gaudi_home)
180
+ lib_items.each do |items|
181
+ unpack_target = gaudi_home
182
+ unpack_target = File.expand_path(File.join(gaudi_home, "../..")) if /tools\/build/ =~ items
183
+ pkg = archive(version, File.join(tmp, "gaudi"), project_root, items)
184
+ unpack(pkg, unpack_target)
185
+ rescue GemError
186
+ next
187
+ end
183
188
  end
184
189
  end
185
190
 
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 = 7
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.7.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: 2022-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitar