fig18 0.1.45-i386-mingw32 → 0.1.46-i386-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Changes +2 -0
- data/README.md +3 -0
- data/VERSION +1 -1
- data/lib/fig.rb +4 -2
- data/lib/fig/environment.rb +3 -3
- metadata +1 -1
data/Changes
CHANGED
data/README.md
CHANGED
@@ -270,6 +270,9 @@ package name (minus the version).
|
|
270
270
|
$ cat lib/hello-lib/hello.foo
|
271
271
|
print 'hello'
|
272
272
|
|
273
|
+
### Building the gem ###
|
274
|
+
Use `rake figbuild` instead of `rake build`, due to a glitch with "gem build's" naming of i386 gems as 'x86', which causes problems with a subsequent `gem install fig18` command; it picks the wrong Fig gem to install.
|
275
|
+
|
273
276
|
Community
|
274
277
|
=========
|
275
278
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.46
|
data/lib/fig.rb
CHANGED
@@ -196,11 +196,13 @@ module Fig
|
|
196
196
|
package_name, config_name, version_name = parse_descriptor(argv.shift)
|
197
197
|
env.include_config(package, package_name, config_name, version_name, {}, nil)
|
198
198
|
env.execute_config(package, package_name, config_name, nil, argv) { |cmd| os.shell_exec cmd }
|
199
|
-
elsif
|
199
|
+
elsif not argv.empty?
|
200
200
|
env.execute_config(package, nil, options[:config], nil, argv) { |cmd| os.shell_exec cmd }
|
201
|
-
elsif
|
201
|
+
elsif not repos.updating?
|
202
|
+
$stderr.puts "Nothing to do.\n"
|
202
203
|
$stderr.puts USAGE
|
203
204
|
$stderr.puts %q<Run "fig --help" for a full list of commands.>
|
205
|
+
return 1
|
204
206
|
end
|
205
207
|
|
206
208
|
return 0
|
data/lib/fig/environment.rb
CHANGED
@@ -38,7 +38,7 @@ module Fig
|
|
38
38
|
def register_package(package)
|
39
39
|
name = package.package_name
|
40
40
|
if @packages[name]
|
41
|
-
|
41
|
+
Logging.fatal %Q<There is already a package with the name "#{name}".>
|
42
42
|
raise RepositoryError.new
|
43
43
|
end
|
44
44
|
@packages[name] = package
|
@@ -157,7 +157,7 @@ module Fig
|
|
157
157
|
backtrace.dump(string_handle) if backtrace
|
158
158
|
package.backtrace.dump(string_handle) if package.backtrace
|
159
159
|
stacktrace = string_handle.to_s
|
160
|
-
|
160
|
+
Logging.fatal \
|
161
161
|
"Version mismatch: #{package_name}" \
|
162
162
|
+ stacktrace.empty? ? '' : "\n#{stacktrace}"
|
163
163
|
raise RepositoryError.new
|
@@ -206,7 +206,7 @@ module Fig
|
|
206
206
|
arg.gsub(/\@([a-zA-Z0-9\-\.]+)/) do |match|
|
207
207
|
package = @packages[$1]
|
208
208
|
if package.nil?
|
209
|
-
|
209
|
+
Logging.fatal "Package not found: #{$1}"
|
210
210
|
raise RepositoryError.new
|
211
211
|
end
|
212
212
|
package.directory
|