fig 0.1.47-java → 0.1.48-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/fig/environment.rb +3 -3
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.47
1
+ 0.1.48
@@ -68,7 +68,7 @@ module Fig
68
68
  with_environment do
69
69
  # TODO nil check
70
70
  commands.each do |command|
71
- result = yield expand_arg("#{command.command} #{args.join(' ')}").gsub('@',package.directory).split(' ')
71
+ result = yield expand_arg("#{command.command} #{args.join(' ')}").gsub('@', package.directory).split(' ')
72
72
  end
73
73
  end
74
74
  result
@@ -156,7 +156,7 @@ module Fig
156
156
  string_handle = StringIO.new
157
157
  backtrace.dump(string_handle) if backtrace
158
158
  package.backtrace.dump(string_handle) if package.backtrace
159
- stacktrace = string_handle.to_s
159
+ stacktrace = string_handle.string
160
160
  Logging.fatal \
161
161
  "Version mismatch: #{package_name}" \
162
162
  + ( stacktrace.empty? ? '' : "\n#{stacktrace}" )
@@ -203,7 +203,7 @@ module Fig
203
203
  end
204
204
 
205
205
  def expand_arg(arg)
206
- arg.gsub(/\@([a-zA-Z0-9\-\.]+)/) do |match|
206
+ arg.gsub( / @ ( [a-zA-Z0-9.-]+ ) /x ) do |match|
207
207
  package = @packages[$1]
208
208
  if package.nil?
209
209
  Logging.fatal "Package not found: #{$1}"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: fig
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.47
5
+ version: 0.1.48
6
6
  platform: java
7
7
  authors:
8
8
  - Matthew Foemmel
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-11-15 00:00:00 Z
13
+ date: 2011-11-16 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline