bones 3.8.0 → 3.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -10,4 +10,4 @@ doc
10
10
  pkg
11
11
  manual.txt
12
12
  .yardoc
13
- .rvmrc
13
+ vendor
@@ -1,3 +1,10 @@
1
+ == 3.8.1 / 2013-10-10
2
+
3
+ Bug Fixes
4
+ - compatibility with Ruby 2.0 [thanks @daveworth]
5
+ - fix deprecation warnings [thanks @daveworth]
6
+ - script/bootstrap for development
7
+
1
8
  == 3.8.0 / 2012-03-05
2
9
 
3
10
  Enhancements
@@ -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 - 2010
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 'little-plugger', '~> 1.1.3'
31
- depend_on 'loquacious', '~> 1.9.1'
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
 
@@ -4,7 +4,7 @@ class Bones::App::Command
4
4
 
5
5
  # :stopdoc:
6
6
  DEFAULT_SKELETON = 'default'
7
- Bones.config() { colorize = true }
7
+ Bones.config() { colorize true }
8
8
  # :startdoc:
9
9
 
10
10
  attr_reader :stdout
@@ -41,6 +41,7 @@ skeleton.
41
41
  opts = super args
42
42
  config[:name] = args.empty? ? DEFAULT_SKELETON : args.join('_')
43
43
  config[:output_dir] = File.join(mrbones_dir, name)
44
+ opts
44
45
  end
45
46
 
46
47
  # Freeze the project skeleton to the git or svn repository that the user
@@ -82,7 +82,7 @@ private
82
82
  fetcher = Gem::SpecFetcher.fetcher
83
83
  specs = fetcher.find_matching dep
84
84
 
85
- specs.map! { |(name, version, _), _|
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 => err
101
+ rescue Gem::LoadError
102
102
  false
103
103
  end
104
104
  else
@@ -37,6 +37,7 @@ not given then the default skeleton is removed.
37
37
  opts = super args
38
38
  config[:name] = args.empty? ? DEFAULT_SKELETON : args.join('_')
39
39
  config[:output_dir] = File.join(mrbones_dir, name)
40
+ opts
40
41
  end
41
42
 
42
43
  end # class Unfreeze
@@ -2,7 +2,11 @@
2
2
  require 'find'
3
3
  require 'rake/packagetask'
4
4
  require 'rubygems/user_interaction'
5
- require 'rubygems/builder'
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
- Gem::Builder.new(gem_spec).build
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
  }
@@ -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
- installer.install dep
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
- config.rdoc.opts = spec.rdoc_options
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, params, deps = Rake.application.resolve_args(args.dup)
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)
@@ -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'
@@ -16,17 +16,17 @@ describe Bones::App do
16
16
 
17
17
  before :each do
18
18
  @runner = ::Runner.new
19
- @runner.stub!(:parse).and_return(Hash.new)
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!(:new).
23
+ Bones::App::Create.stub(:new).
24
24
  and_return {@runner.name = :create; @runner}
25
- Bones::App::Freeze.stub!(:new).
25
+ Bones::App::Freeze.stub(:new).
26
26
  and_return {@runner.name = :freeze; @runner}
27
- Bones::App::Unfreeze.stub!(:new).
27
+ Bones::App::Unfreeze.stub(:new).
28
28
  and_return {@runner.name = :unfreeze; @runner}
29
- Bones::App::Info.stub!(:new).
29
+ Bones::App::Info.stub(:new).
30
30
  and_return {@runner.name = :info; @runner}
31
31
  end
32
32
 
@@ -1 +1 @@
1
- 3.8.0
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.0
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: 2012-03-05 00:00:00.000000000Z
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: &2157600460 !ruby/object:Gem::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: *2157600460
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: &2157599900 !ruby/object:Gem::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.3
47
+ version: '1.1'
33
48
  type: :runtime
34
49
  prerelease: false
35
- version_requirements: *2157599900
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: &2157599400 !ruby/object:Gem::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.1
61
+ version: '1.9'
44
62
  type: :runtime
45
63
  prerelease: false
46
- version_requirements: *2157599400
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: &2157598900 !ruby/object:Gem::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: *2157598900
58
- description: ! 'Mr Bones is a handy tool that creates new Ruby projects from a code
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
- post_install_message: ! "--------------------------\n Keep rattlin' dem bones!\n--------------------------\n"
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: 1.8.11
180
+ rubygems_version: 2.0.3
156
181
  signing_key:
157
- specification_version: 3
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: []