bones 2.3.1 → 2.4.0
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/History.txt +7 -0
- data/Rakefile +2 -13
- data/lib/bones.rb +1 -1
- data/lib/bones/app/file_manager.rb +5 -6
- data/lib/bones/app/freeze_command.rb +1 -0
- data/spec/bones/app_spec.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ PROJ.authors = 'Tim Pease'
|
|
9
9
|
PROJ.email = 'tim.pease@gmail.com'
|
10
10
|
PROJ.url = 'http://codeforpeople.rubyforge.org/bones'
|
11
11
|
PROJ.version = Bones::VERSION
|
12
|
-
PROJ.release_name = '
|
12
|
+
PROJ.release_name = 'Zygomatic'
|
13
13
|
PROJ.ruby_opts = %w[-W0]
|
14
14
|
PROJ.readme_file = 'README.rdoc'
|
15
15
|
PROJ.ignore_file = '.gitignore'
|
@@ -34,18 +34,7 @@ PROJ.gem.extras[:post_install_message] = <<-MSG
|
|
34
34
|
MSG
|
35
35
|
|
36
36
|
PROJ.ann.paragraphs = %w[install synopsis features requirements]
|
37
|
-
PROJ.ann.text =
|
38
|
-
== FUN FACT
|
39
|
-
|
40
|
-
Twenty-five percent of a human's bones are in its feet.
|
41
|
-
|
42
|
-
== POST SCRIPT
|
43
|
-
|
44
|
-
Blessings,
|
45
|
-
TwP
|
46
|
-
|
47
|
-
#{PROJ.gem.extras[:post_install_message]}
|
48
|
-
ANN
|
37
|
+
PROJ.ann.text = PROJ.gem.extras[:post_install_message]
|
49
38
|
|
50
39
|
task :default => 'spec:specdoc'
|
51
40
|
task 'ann:prereqs' do
|
data/lib/bones.rb
CHANGED
@@ -124,14 +124,13 @@ class FileManager
|
|
124
124
|
obj = Object.new
|
125
125
|
class << obj
|
126
126
|
alias :__binding__ :binding
|
127
|
-
instance_methods.each
|
128
|
-
|
127
|
+
instance_methods.each {|m| undef_method m unless m[%r/^(__|object_id)/]}
|
128
|
+
def binding(name)
|
129
|
+
classname = name.tr('-','_').split('_').map {|x| x.capitalize}.join
|
130
|
+
__binding__
|
129
131
|
end
|
130
|
-
attr_accessor :name, :classname
|
131
132
|
end
|
132
|
-
obj.
|
133
|
-
obj.classname = name.tr('-','_').split('_').map {|x| x.capitalize}.join
|
134
|
-
obj.__send__(:__binding__)
|
133
|
+
obj.binding name
|
135
134
|
end
|
136
135
|
|
137
136
|
# Returns a list of the files to copy from the source directory to
|
@@ -59,6 +59,7 @@ class FreezeCommand < Command
|
|
59
59
|
# reposiory using the name passed in on the command line.
|
60
60
|
#
|
61
61
|
def freeze_to_repository
|
62
|
+
FileUtils.mkdir_p(File.dirname(output_dir))
|
62
63
|
File.open(output_dir, 'w') {|fd| fd.puts repository}
|
63
64
|
@out.puts "Project skeleton #{name.inspect} " <<
|
64
65
|
"has been frozen to #{repository.inspect}"
|
data/spec/bones/app_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bones
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Pease
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-01
|
12
|
+
date: 2009-02-01 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|