bones 3.8.0 → 3.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -1
- data/History.txt +7 -0
- data/README.rdoc +15 -1
- data/Rakefile +3 -2
- data/lib/bones/app/command.rb +1 -1
- data/lib/bones/app/freeze.rb +1 -0
- data/lib/bones/app/plugins.rb +2 -2
- data/lib/bones/app/unfreeze.rb +1 -0
- data/lib/bones/gem_package_task.rb +10 -2
- data/lib/bones/plugins/gem.rb +11 -3
- data/lib/bones/rake_override_task.rb +1 -1
- data/script/bootstrap +19 -0
- data/spec/bones/app_spec.rb +5 -5
- data/version.txt +1 -1
- metadata +56 -31
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: adfdfdef41d2ecc2685c06b629bb27677e2e1fce
|
4
|
+
data.tar.gz: 89e60be873c7224f57739008e58f4bba2f1c4846
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a16b9736311f9a5d04350d496287273bd633e1316e04539b702a2daf40e81fe179a2600c3703d535ecd18ff2242121bbc3e4cc71d25f1544a4101802d8dd3204
|
7
|
+
data.tar.gz: 369912dc197aaea51810166a1e370b8fbe11505bae5b6b3d7a9038799cec089b7209a01b9ec78758214448c00aa38a3f7399c68cb9acfba6f36eb05a799abc07
|
data/.gitignore
CHANGED
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -88,6 +88,20 @@ The 'bones-git' gem provides command line options for generating a git
|
|
88
88
|
repository and pushing to github upon creation. Rake tasks for working with
|
89
89
|
the git repository are also provided.
|
90
90
|
|
91
|
+
== DEVELOPMENT:
|
92
|
+
|
93
|
+
Download a copy of the source code from GitHub
|
94
|
+
|
95
|
+
* git clone https://github.com/TwP/bones.git
|
96
|
+
|
97
|
+
Run the bootstrap script to install the development dependencies
|
98
|
+
|
99
|
+
* script/bootstrap
|
100
|
+
|
101
|
+
You should now be able to run the test specs and see them pass
|
102
|
+
|
103
|
+
* rake spec
|
104
|
+
|
91
105
|
== ACKNOWLEDGEMENTS:
|
92
106
|
|
93
107
|
Ryan Davis and Eric Hodel and their Hoe gem (from which much of the Mr Bones
|
@@ -98,7 +112,7 @@ Howard for letting me squat in the codeforpeople rubyforge project.
|
|
98
112
|
== LICENSE:
|
99
113
|
|
100
114
|
MIT License
|
101
|
-
Copyright (c) 2007 -
|
115
|
+
Copyright (c) 2007 - 2013
|
102
116
|
|
103
117
|
Permission is hereby granted, free of charge, to any person obtaining
|
104
118
|
a copy of this software and associated documentation files (the
|
data/Rakefile
CHANGED
@@ -27,8 +27,9 @@ Bones {
|
|
27
27
|
use_gmail
|
28
28
|
|
29
29
|
depend_on 'rake', '>= 0.8.7'
|
30
|
-
depend_on '
|
31
|
-
depend_on '
|
30
|
+
depend_on 'rdoc', '~> 3.0'
|
31
|
+
depend_on 'little-plugger', '~> 1.1'
|
32
|
+
depend_on 'loquacious', '~> 1.9'
|
32
33
|
|
33
34
|
depend_on 'rspec', '~> 2.6', :development => true
|
34
35
|
|
data/lib/bones/app/command.rb
CHANGED
data/lib/bones/app/freeze.rb
CHANGED
data/lib/bones/app/plugins.rb
CHANGED
@@ -82,7 +82,7 @@ private
|
|
82
82
|
fetcher = Gem::SpecFetcher.fetcher
|
83
83
|
specs = fetcher.find_matching dep
|
84
84
|
|
85
|
-
specs.map! { |(name,
|
85
|
+
specs.map! { |(name, _, _), _|
|
86
86
|
next unless name =~ %r/^bones-(.*?)(?:-(\d+))?$/i
|
87
87
|
$2 ? [$1, $2.to_i] : $1
|
88
88
|
}
|
@@ -98,7 +98,7 @@ private
|
|
98
98
|
begin
|
99
99
|
Gem::Specification.find_by_name(name, version)
|
100
100
|
true
|
101
|
-
rescue Gem::LoadError
|
101
|
+
rescue Gem::LoadError
|
102
102
|
false
|
103
103
|
end
|
104
104
|
else
|
data/lib/bones/app/unfreeze.rb
CHANGED
@@ -2,7 +2,11 @@
|
|
2
2
|
require 'find'
|
3
3
|
require 'rake/packagetask'
|
4
4
|
require 'rubygems/user_interaction'
|
5
|
-
|
5
|
+
if RUBY_VERSION >= "2"
|
6
|
+
require 'rubygems/package'
|
7
|
+
else
|
8
|
+
require 'rubygems/builder'
|
9
|
+
end
|
6
10
|
|
7
11
|
class Bones::GemPackageTask < Rake::PackageTask
|
8
12
|
|
@@ -43,7 +47,11 @@ class Bones::GemPackageTask < Rake::PackageTask
|
|
43
47
|
file "#{package_dir_path}/#{gem_file}" => [package_dir_path] + package_files do
|
44
48
|
when_writing("Creating GEM") {
|
45
49
|
chdir(package_dir_path) do
|
46
|
-
|
50
|
+
if RUBY_VERSION >= "2"
|
51
|
+
Gem::Package.build(gem_spec)
|
52
|
+
else
|
53
|
+
Gem::Builder.new(gem_spec).build
|
54
|
+
end
|
47
55
|
verbose(true) {
|
48
56
|
mv gem_file, "../#{gem_file}"
|
49
57
|
}
|
data/lib/bones/plugins/gem.rb
CHANGED
@@ -249,7 +249,7 @@ module Bones::Plugins::Gem
|
|
249
249
|
sh "#{SUDO} #{GEM} install pkg/#{config.gem._spec.full_name}"
|
250
250
|
|
251
251
|
# use this version of the command for rubygems > 1.0.0
|
252
|
-
#sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{config.gem._spec.full_name}"
|
252
|
+
# sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{config.gem._spec.full_name}"
|
253
253
|
end
|
254
254
|
|
255
255
|
desc 'Uninstall the gem'
|
@@ -284,7 +284,13 @@ module Bones::Plugins::Gem
|
|
284
284
|
end
|
285
285
|
|
286
286
|
$stdout.puts "Installing #{dep.name}"
|
287
|
-
|
287
|
+
begin
|
288
|
+
installer.install dep
|
289
|
+
rescue
|
290
|
+
$stdout.puts(' '+Bones::Colors.colorize("Could not install #{dep.name}!", :white, :on_red))
|
291
|
+
$stdout.puts(' '+Bones::Colors.colorize("The gem does not appear to exist in any known repository.", :cyan))
|
292
|
+
next
|
293
|
+
end
|
288
294
|
installer.installed_gems.each {|spec|
|
289
295
|
$stdout.puts "Successfully installed #{spec.full_name}"
|
290
296
|
}
|
@@ -358,7 +364,9 @@ module Bones::Plugins::Gem
|
|
358
364
|
config.rubyforge_project = spec.rubyforge_project
|
359
365
|
|
360
366
|
config.gem.executables = spec.executables
|
361
|
-
|
367
|
+
if have? :rdoc
|
368
|
+
config.rdoc.opts = spec.rdoc_options
|
369
|
+
end
|
362
370
|
config.test.file = spec.test_file if spec.test_file
|
363
371
|
config.test.files = spec.test_files if spec.test_files
|
364
372
|
|
@@ -21,7 +21,7 @@ def alias_task( fq_name )
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def override_task( *args, &block )
|
24
|
-
name
|
24
|
+
name = Rake.application.resolve_args(args.dup).first
|
25
25
|
fq_name = Rake.application.instance_variable_get(:@scope).dup.push(name).join(':')
|
26
26
|
alias_task(fq_name)
|
27
27
|
Rake::Task.define_task(*args, &block)
|
data/script/bootstrap
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env sh
|
2
|
+
|
3
|
+
function gem_install {
|
4
|
+
gem list -i $1 >/dev/null 2>&1
|
5
|
+
rc=$?
|
6
|
+
if [[ $rc != 0 ]]; then
|
7
|
+
gem install $1
|
8
|
+
fi
|
9
|
+
}
|
10
|
+
|
11
|
+
gem_install 'little-plugger'
|
12
|
+
gem_install 'loquacious'
|
13
|
+
|
14
|
+
rake gem:install_dependencies
|
15
|
+
|
16
|
+
gem_install 'bones-git'
|
17
|
+
gem_install 'bones-rspec'
|
18
|
+
|
19
|
+
# gem uninstall -a -I -x 'bones'
|
data/spec/bones/app_spec.rb
CHANGED
@@ -16,17 +16,17 @@ describe Bones::App do
|
|
16
16
|
|
17
17
|
before :each do
|
18
18
|
@runner = ::Runner.new
|
19
|
-
@runner.stub
|
19
|
+
@runner.stub(:parse).and_return(Hash.new)
|
20
20
|
|
21
21
|
@app = Bones::App::Main.new(:stdout => @out, :stderr => @err)
|
22
22
|
|
23
|
-
Bones::App::Create.stub
|
23
|
+
Bones::App::Create.stub(:new).
|
24
24
|
and_return {@runner.name = :create; @runner}
|
25
|
-
Bones::App::Freeze.stub
|
25
|
+
Bones::App::Freeze.stub(:new).
|
26
26
|
and_return {@runner.name = :freeze; @runner}
|
27
|
-
Bones::App::Unfreeze.stub
|
27
|
+
Bones::App::Unfreeze.stub(:new).
|
28
28
|
and_return {@runner.name = :unfreeze; @runner}
|
29
|
-
Bones::App::Info.stub
|
29
|
+
Bones::App::Info.stub(:new).
|
30
30
|
and_return {@runner.name = :info; @runner}
|
31
31
|
end
|
32
32
|
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.8.
|
1
|
+
3.8.1
|
metadata
CHANGED
@@ -1,69 +1,91 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bones
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.8.
|
5
|
-
prerelease:
|
4
|
+
version: 3.8.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tim Pease
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-10-11 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 0.8.7
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.8.7
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
25
41
|
- !ruby/object:Gem::Dependency
|
26
42
|
name: little-plugger
|
27
|
-
requirement:
|
28
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
29
44
|
requirements:
|
30
45
|
- - ~>
|
31
46
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.1
|
47
|
+
version: '1.1'
|
33
48
|
type: :runtime
|
34
49
|
prerelease: false
|
35
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.1'
|
36
55
|
- !ruby/object:Gem::Dependency
|
37
56
|
name: loquacious
|
38
|
-
requirement:
|
39
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
40
58
|
requirements:
|
41
59
|
- - ~>
|
42
60
|
- !ruby/object:Gem::Version
|
43
|
-
version: 1.9
|
61
|
+
version: '1.9'
|
44
62
|
type: :runtime
|
45
63
|
prerelease: false
|
46
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.9'
|
47
69
|
- !ruby/object:Gem::Dependency
|
48
70
|
name: rspec
|
49
|
-
requirement:
|
50
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
51
72
|
requirements:
|
52
73
|
- - ~>
|
53
74
|
- !ruby/object:Gem::Version
|
54
75
|
version: '2.6'
|
55
76
|
type: :development
|
56
77
|
prerelease: false
|
57
|
-
version_requirements:
|
58
|
-
|
59
|
-
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.6'
|
83
|
+
description: |-
|
84
|
+
Mr Bones is a handy tool that creates new Ruby projects from a code
|
60
85
|
skeleton. The skeleton contains some starter code and a collection of rake
|
61
|
-
|
62
86
|
tasks to ease the management and deployment of your source code. Several Mr
|
63
|
-
|
64
87
|
Bones plugins are available for creating git repositories, creating GitHub
|
65
|
-
|
66
|
-
projects, running various test suites and source code analysis tools.'
|
88
|
+
projects, running various test suites and source code analysis tools.
|
67
89
|
email: tim.pease@gmail.com
|
68
90
|
executables:
|
69
91
|
- bones
|
@@ -112,6 +134,7 @@ files:
|
|
112
134
|
- lib/bones/plugins/rdoc.rb
|
113
135
|
- lib/bones/plugins/test.rb
|
114
136
|
- lib/bones/rake_override_task.rb
|
137
|
+
- script/bootstrap
|
115
138
|
- spec/bones/app/file_manager_spec.rb
|
116
139
|
- spec/bones/app_spec.rb
|
117
140
|
- spec/bones/helpers_spec.rb
|
@@ -132,28 +155,30 @@ files:
|
|
132
155
|
- version.txt
|
133
156
|
homepage: http://rubygems.org/gems/bones
|
134
157
|
licenses: []
|
135
|
-
|
158
|
+
metadata: {}
|
159
|
+
post_install_message: |
|
160
|
+
--------------------------
|
161
|
+
Keep rattlin' dem bones!
|
162
|
+
--------------------------
|
136
163
|
rdoc_options:
|
137
164
|
- --main
|
138
165
|
- README.rdoc
|
139
166
|
require_paths:
|
140
167
|
- lib
|
141
168
|
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
-
none: false
|
143
169
|
requirements:
|
144
|
-
- -
|
170
|
+
- - '>='
|
145
171
|
- !ruby/object:Gem::Version
|
146
172
|
version: '0'
|
147
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
-
none: false
|
149
174
|
requirements:
|
150
|
-
- -
|
175
|
+
- - '>='
|
151
176
|
- !ruby/object:Gem::Version
|
152
177
|
version: '0'
|
153
178
|
requirements: []
|
154
179
|
rubyforge_project: bones
|
155
|
-
rubygems_version:
|
180
|
+
rubygems_version: 2.0.3
|
156
181
|
signing_key:
|
157
|
-
specification_version:
|
182
|
+
specification_version: 4
|
158
183
|
summary: Mr Bones is a handy tool that creates new Ruby projects from a code skeleton.
|
159
184
|
test_files: []
|