falsework 0.2.6 → 0.2.7

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.
data/doc/NEWS.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.2.7
2
+
3
+ Sun Jul 17 01:23:32 EEST 2011
4
+
5
+ - Fixed a bug with symlinks in Trestle.gem_libdir.
6
+
1
7
  === 0.2.6
2
8
 
3
9
  Fri Jul 15 20:07:45 EEST 2011
@@ -1,7 +1,7 @@
1
1
  module Falsework
2
2
  module Meta
3
3
  NAME = 'falsework'
4
- VERSION = '0.2.6'
4
+ VERSION = '0.2.7'
5
5
  AUTHOR = 'Alexander Gromnitsky'
6
6
  EMAIL = 'alexander.gromnitsky@gmail.com'
7
7
  HOMEPAGE = 'http://github.com/gromnitsky/' + NAME
@@ -25,7 +25,7 @@ module <%= @project.capitalize %>
25
25
 
26
26
  # Return a directory with program libraries.
27
27
  def self.gem_libdir
28
- t = ["#{File.dirname(File.expand_path($0))}/../lib/#{<%= @project.capitalize %>::Meta::NAME}",
28
+ t = ["#{File.dirname(File.realpath($0))}/../lib/#{<%= @project.capitalize %>::Meta::NAME}",
29
29
  "#{Gem.dir}/gems/#{<%= @project.capitalize %>::Meta::NAME}-#{<%= @project.capitalize %>::Meta::VERSION}/lib/#{<%= @project.capitalize %>::Meta::NAME}",
30
30
  "lib/#{<%= @project.capitalize %>::Meta::NAME}"]
31
31
  t.each {|i| return i if File.readable?(i) }
@@ -66,7 +66,7 @@ module <%= @project.capitalize %>
66
66
  @conf[:banner] = "Usage: #{File.basename($0)} [options]"
67
67
  @conf[:config] = Meta::NAME + '.yaml'
68
68
  @conf[:config_dirs] = [ENV['HOME']+'/.'+Meta::NAME,
69
- File.absolute_path("#{File.dirname(File.expand_path($0))}/../etc"),
69
+ File.absolute_path("#{File.dirname(File.realpath($0))}/../etc"),
70
70
  '/usr/etc', '/usr/local/etc', '/etc',
71
71
  "#{Gem.dir}/gems/#{Meta::NAME}-#{Meta::VERSION}/etc"
72
72
  ]
@@ -209,8 +209,14 @@ module <%= @project.capitalize %>
209
209
  Trestle.errx(1, $!.to_s)
210
210
  end
211
211
  end
212
+
213
+ # A handy proc that return a nice formatted current global
214
+ # backtrace.
215
+ def self.get_backtrace
216
+ "#{$!}\n\nBacktrace:\n\n#{$!.backtrace.join("\n")}"
217
+ end
212
218
 
213
219
  end # trestle
214
220
  end
215
221
 
216
- # Don't remove this: falsework/0.2.6/naive/2011-04-30T02:11:00+03:00
222
+ # Don't remove this: falsework/0.2.7/naive/2011-07-17T01:52:43+03:00
@@ -31,4 +31,4 @@ def cmd(c)
31
31
  File.absolute_path('../bin/' + c)
32
32
  end
33
33
 
34
- # Don't remove this: falsework/0.2.6/naive/2011-04-30T02:11:00+03:00
34
+ # Don't remove this: falsework/0.2.7/naive/2011-07-17T01:52:43+03:00
@@ -33,4 +33,4 @@ end
33
33
 
34
34
  pp git_ls('.') if __FILE__ == $0
35
35
 
36
- # Don't remove this: falsework/0.2.6/naive/2011-04-30T02:11:00+03:00
36
+ # Don't remove this: falsework/0.2.7/naive/2011-07-17T01:52:43+03:00
@@ -25,7 +25,7 @@ module Falsework
25
25
 
26
26
  # Return a directory with program libraries.
27
27
  def self.gem_libdir
28
- t = ["#{File.dirname(File.expand_path($0))}/../lib/#{Falsework::Meta::NAME}",
28
+ t = ["#{File.dirname(File.realpath($0))}/../lib/#{Falsework::Meta::NAME}",
29
29
  "#{Gem.dir}/gems/#{Falsework::Meta::NAME}-#{Falsework::Meta::VERSION}/lib/#{Falsework::Meta::NAME}",
30
30
  "lib/#{Falsework::Meta::NAME}"]
31
31
  t.each {|i| return i if File.readable?(i) }
@@ -66,7 +66,7 @@ module Falsework
66
66
  @conf[:banner] = "Usage: #{File.basename($0)} [options]"
67
67
  @conf[:config] = Meta::NAME + '.yaml'
68
68
  @conf[:config_dirs] = [ENV['HOME']+'/.'+Meta::NAME,
69
- File.absolute_path("#{File.dirname(File.expand_path($0))}/../etc"),
69
+ File.absolute_path("#{File.dirname(File.realpath($0))}/../etc"),
70
70
  '/usr/etc', '/usr/local/etc', '/etc',
71
71
  "#{Gem.dir}/gems/#{Meta::NAME}-#{Meta::VERSION}/etc"
72
72
  ]
@@ -209,6 +209,12 @@ module Falsework
209
209
  Trestle.errx(1, $!.to_s)
210
210
  end
211
211
  end
212
+
213
+ # A handy proc that return a nice formatted current global
214
+ # backtrace.
215
+ def self.get_backtrace
216
+ "#{$!}\n\nBacktrace:\n\n#{$!.backtrace.join("\n")}"
217
+ end
212
218
 
213
219
  end # trestle
214
220
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: falsework
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.6
5
+ version: 0.2.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alexander Gromnitsky
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-29 00:00:00 Z
13
+ date: 2011-07-16 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: git