bones 3.4.4 → 3.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/lib/bones.rb +2 -30
- data/lib/bones/helpers.rb +3 -3
- data/version.txt +1 -1
- metadata +8 -8
data/History.txt
CHANGED
data/lib/bones.rb
CHANGED
@@ -109,40 +109,13 @@ module Kernel
|
|
109
109
|
plugins = ::Bones.initialize_plugins.values
|
110
110
|
return ::Bones unless block
|
111
111
|
|
112
|
-
|
113
|
-
extend_method = Object.instance_method(:extend).bind(config)
|
114
|
-
instance_eval_method = Object.instance_method(:instance_eval).bind(config)
|
115
|
-
|
112
|
+
extend_method = Object.instance_method(:extend).bind(::Bones.config)
|
116
113
|
plugins.each { |plugin|
|
117
114
|
ps = plugin.const_get :Syntax rescue next
|
118
115
|
extend_method.call ps
|
119
116
|
}
|
120
117
|
|
121
|
-
|
122
|
-
instance_eval_method.call(&block)
|
123
|
-
rescue NoMethodError => err
|
124
|
-
raise unless err.backtrace
|
125
|
-
|
126
|
-
_, fn, line_number = %r/^([^:]+):(\d+)/.match(err.backtrace.first).to_a
|
127
|
-
raise unless fn =~ %r/Rakefile$/
|
128
|
-
|
129
|
-
line = File.readlines(fn)[line_number.to_i-1]
|
130
|
-
STDERR.puts <<-__
|
131
|
-
There is an error on line #{line_number} of your Rakefile:
|
132
|
-
|
133
|
-
#{err.message}
|
134
|
-
[#{line_number}] #{line.chomp}
|
135
|
-
|
136
|
-
Please ensure required gems are installed, otherwise Mr Bones will
|
137
|
-
not generate default configuration settings and values. This can lead
|
138
|
-
to undefined method errors on nil values.
|
139
|
-
__
|
140
|
-
exit 42
|
141
|
-
rescue StandardError
|
142
|
-
abort
|
143
|
-
end
|
144
|
-
|
145
|
-
# config.exclude << "^#{Regexp.escape(config.rcov.dir)}/"
|
118
|
+
::Bones.config(&block)
|
146
119
|
|
147
120
|
plugins.each { |plugin| plugin.post_load if plugin.respond_to? :post_load }
|
148
121
|
plugins.each { |plugin| plugin.define_tasks if plugin.respond_to? :define_tasks }
|
@@ -152,4 +125,3 @@ to undefined method errors on nil values.
|
|
152
125
|
end
|
153
126
|
end
|
154
127
|
|
155
|
-
# EOF
|
data/lib/bones/helpers.rb
CHANGED
@@ -4,9 +4,9 @@ module Bones::Helpers
|
|
4
4
|
DEV_NULL = File.exist?('/dev/null') ? '/dev/null' : 'NUL:'
|
5
5
|
SUDO = if system("which sudo > #{DEV_NULL} 2>&1") then 'sudo'
|
6
6
|
else '' end unless defined? SUDO
|
7
|
-
RCOV = "#{RUBY} -S rcov"
|
8
|
-
RDOC = "#{RUBY} -S rdoc"
|
9
|
-
GEM = "#{RUBY} -S gem"
|
7
|
+
RCOV = "#{Bones::RUBY} -S rcov"
|
8
|
+
RDOC = "#{Bones::RUBY} -S rdoc"
|
9
|
+
GEM = "#{Bones::RUBY} -S gem"
|
10
10
|
HAVE_SVN = (Dir.entries(Dir.pwd).include?('.svn') and
|
11
11
|
system("svn --version 2>&1 > #{DEV_NULL}"))
|
12
12
|
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.4.
|
1
|
+
3.4.5
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 3
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 3.4.
|
8
|
+
- 5
|
9
|
+
version: 3.4.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Tim Pease
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-08 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -55,8 +55,8 @@ dependencies:
|
|
55
55
|
segments:
|
56
56
|
- 1
|
57
57
|
- 6
|
58
|
-
-
|
59
|
-
version: 1.6.
|
58
|
+
- 4
|
59
|
+
version: 1.6.4
|
60
60
|
type: :runtime
|
61
61
|
version_requirements: *id003
|
62
62
|
- !ruby/object:Gem::Dependency
|
@@ -71,7 +71,7 @@ dependencies:
|
|
71
71
|
- 3
|
72
72
|
- 0
|
73
73
|
version: 1.3.0
|
74
|
-
type: :
|
74
|
+
type: :runtime
|
75
75
|
version_requirements: *id004
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: bones-git
|
@@ -85,7 +85,7 @@ dependencies:
|
|
85
85
|
- 1
|
86
86
|
- 2
|
87
87
|
version: 1.1.2
|
88
|
-
type: :
|
88
|
+
type: :runtime
|
89
89
|
version_requirements: *id005
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: bones-extras
|
@@ -99,7 +99,7 @@ dependencies:
|
|
99
99
|
- 2
|
100
100
|
- 4
|
101
101
|
version: 1.2.4
|
102
|
-
type: :
|
102
|
+
type: :runtime
|
103
103
|
version_requirements: *id006
|
104
104
|
description: |-
|
105
105
|
Mr Bones is a handy tool that creates new Ruby projects from a code
|