fig 0.1.45 → 0.1.46

Sign up to get free protection for your applications and to get access to all the features.
data/Changes CHANGED
@@ -2,6 +2,8 @@ v0.1.xx
2
2
 
3
3
  - "file:" protocol works for FIG_REMOTE_HOME.
4
4
 
5
+ - Complains if it has nothing to do.
6
+
5
7
  - Testing no longer requires ssh.
6
8
 
7
9
 
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.45
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 input
199
+ elsif not argv.empty?
200
200
  env.execute_config(package, nil, options[:config], nil, argv) { |cmd| os.shell_exec cmd }
201
- elsif !repos.updating?
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
@@ -38,7 +38,7 @@ module Fig
38
38
  def register_package(package)
39
39
  name = package.package_name
40
40
  if @packages[name]
41
- Fig::Logging.fatal %Q<There is already a package with the name "#{name}".>
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
- Fig::Logging.fatal \
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
- Fig::Logging.fatal "Package not found: #{$1}"
209
+ Logging.fatal "Package not found: #{$1}"
210
210
  raise RepositoryError.new
211
211
  end
212
212
  package.directory
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: fig
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.45
5
+ version: 0.1.46
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matthew Foemmel