falsework 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/NEWS.rdoc +6 -0
- data/lib/falsework/meta.rb +1 -1
- data/lib/falsework/templates/naive/lib/%%@project%%/trestle.rb.erb +9 -3
- data/lib/falsework/templates/naive/test/helper_trestle.rb.erb +1 -1
- data/lib/falsework/templates/naive/test/rake_git.rb.erb +1 -1
- data/lib/falsework/trestle.rb +8 -2
- metadata +2 -2
data/doc/NEWS.rdoc
CHANGED
data/lib/falsework/meta.rb
CHANGED
@@ -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.
|
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.
|
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.
|
222
|
+
# Don't remove this: falsework/0.2.7/naive/2011-07-17T01:52:43+03:00
|
data/lib/falsework/trestle.rb
CHANGED
@@ -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.
|
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.
|
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.
|
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-
|
13
|
+
date: 2011-07-16 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: git
|