bones 3.8.0 → 3.8.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4ae61d7e3455091c7a579eb743beb58a2f420105978d1f82c652918df3cecd0d
4
+ data.tar.gz: 7bda1f37c9f3a8775c81228432d6fe6b7ebf622f85a0b36604f45f1227b2379c
5
+ SHA512:
6
+ metadata.gz: 7d45ee086cbc272d690e50ef1fa081867e3b9ced46307edc71c3011ce89a27d1dae1246fe28c0270736a93d02434bc4c642d8362b066867c5adfd5a5091209ed
7
+ data.tar.gz: 2cea0c0569519433f6db551bfec267ecef661c40ce73e255dbf96bd75b97769e53e387f59722b4c5ac87ab4d1cf7b98911ac871c44517fdef7b188ef6e8e14b2
@@ -0,0 +1 @@
1
+ ruby 2.7.1
@@ -1,3 +1,16 @@
1
+ == 3.8.5 / 2020-09-27
2
+
3
+ Bug Fixes
4
+ - updating gem dependencies
5
+ - cleaning up ERB usage
6
+
7
+ == 3.8.1 / 2013-10-10
8
+
9
+ Bug Fixes
10
+ - compatibility with Ruby 2.0 [thanks @daveworth]
11
+ - fix deprecation warnings [thanks @daveworth]
12
+ - script/bootstrap for development
13
+
1
14
  == 3.8.0 / 2012-03-05
2
15
 
3
16
  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
@@ -26,11 +26,12 @@ Bones {
26
26
 
27
27
  use_gmail
28
28
 
29
- depend_on 'rake', '>= 0.8.7'
30
- depend_on 'little-plugger', '~> 1.1.3'
31
- depend_on 'loquacious', '~> 1.9.1'
29
+ depend_on 'rake', '~> 13.0'
30
+ depend_on 'rdoc', '~> 6.0'
31
+ depend_on 'little-plugger', '~> 1.1'
32
+ depend_on 'loquacious', '~> 1.9'
32
33
 
33
- depend_on 'rspec', '~> 2.6', :development => true
34
+ depend_on 'rspec', '~> 3.5', :development => true
34
35
 
35
36
  # These are commented out to avoid circular dependencies when installing
36
37
  # bones-git or bones-rspec in development mode
@@ -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
@@ -128,7 +128,7 @@ class FileManager
128
128
  new_fn = fn.sub(%r/\.bns$/, '')
129
129
  creating(new_fn)
130
130
 
131
- txt = ERB.new(File.read(fn), nil, '-').result(binding)
131
+ txt = ERB.new(File.read(fn), trim_mode: '-').result(binding)
132
132
  File.open(new_fn, 'w') {|fd| fd.write(txt)}
133
133
  FileUtils.chmod(File.stat(fn).mode, new_fn)
134
134
  FileUtils.rm_f(fn)
@@ -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
  }
@@ -55,8 +55,8 @@ module Bones::Helpers
55
55
  single_section = true
56
56
  end
57
57
 
58
- start_rgxp = [%r/\A=+\s*#{title}/i, %r/\A#{title}\n[=-]+\s*\Z/i]
59
- end_rgxp = [%r/\A=+/i, %r/\A.+\n[=-]+\s*\Z/i]
58
+ start_rgxp = [%r/\A[=#]+\s*#{title}/i, %r/\A#{title}\n[=-]+\s*\Z/i]
59
+ end_rgxp = [%r/\A[=#]+/i, %r/\A.+\n[=-]+\s*\Z/i]
60
60
 
61
61
  result = []
62
62
  matching = false
@@ -21,7 +21,7 @@ module Bones::Plugins::Gem
21
21
  if Gem::Specification.respond_to? :find_by_name
22
22
  begin
23
23
  spec = Gem::Specification.find_by_name(name)
24
- rescue Gem::LoadError => err
24
+ rescue Gem::LoadError
25
25
  end
26
26
  else
27
27
  spec = Gem.source_index.find_name(name).last
@@ -149,11 +149,6 @@ module Bones::Plugins::Gem
149
149
  s.authors = Array(config.authors)
150
150
  s.email = config.email
151
151
  s.homepage = Array(config.url).first
152
- s.rubyforge_project = config.name
153
-
154
- if !config.rubyforge.nil? and config.rubyforge.name
155
- s.rubyforge_project = config.rubyforge.name
156
- end
157
152
 
158
153
  s.description = config.description
159
154
 
@@ -249,7 +244,7 @@ module Bones::Plugins::Gem
249
244
  sh "#{SUDO} #{GEM} install pkg/#{config.gem._spec.full_name}"
250
245
 
251
246
  # 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}"
247
+ # sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{config.gem._spec.full_name}"
253
248
  end
254
249
 
255
250
  desc 'Uninstall the gem'
@@ -284,7 +279,13 @@ module Bones::Plugins::Gem
284
279
  end
285
280
 
286
281
  $stdout.puts "Installing #{dep.name}"
287
- installer.install dep
282
+ begin
283
+ installer.install dep
284
+ rescue
285
+ $stdout.puts(' '+Bones::Colors.colorize("Could not install #{dep.name}!", :white, :on_red))
286
+ $stdout.puts(' '+Bones::Colors.colorize("The gem does not appear to exist in any known repository.", :cyan))
287
+ next
288
+ end
288
289
  installer.installed_gems.each {|spec|
289
290
  $stdout.puts "Successfully installed #{spec.full_name}"
290
291
  }
@@ -355,10 +356,11 @@ module Bones::Plugins::Gem
355
356
  config.description = spec.description
356
357
  config.files = spec.files
357
358
  config.libs = spec.require_paths
358
- config.rubyforge_project = spec.rubyforge_project
359
359
 
360
360
  config.gem.executables = spec.executables
361
- config.rdoc.opts = spec.rdoc_options
361
+ if have? :rdoc
362
+ config.rdoc.opts = spec.rdoc_options
363
+ end
362
364
  config.test.file = spec.test_file if spec.test_file
363
365
  config.test.files = spec.test_files if spec.test_files
364
366
 
@@ -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,18 +16,14 @@ 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).
24
- and_return {@runner.name = :create; @runner}
25
- Bones::App::Freeze.stub!(:new).
26
- and_return {@runner.name = :freeze; @runner}
27
- Bones::App::Unfreeze.stub!(:new).
28
- and_return {@runner.name = :unfreeze; @runner}
29
- Bones::App::Info.stub!(:new).
30
- and_return {@runner.name = :info; @runner}
23
+ Bones::App::Create.stub(:new) {@runner.name = :create; @runner}
24
+ Bones::App::Freeze.stub(:new) {@runner.name = :freeze; @runner}
25
+ Bones::App::Unfreeze.stub(:new) {@runner.name = :unfreeze; @runner}
26
+ Bones::App::Info.stub(:new) {@runner.name = :info; @runner}
31
27
  end
32
28
 
33
29
  after :each do
@@ -1 +1 @@
1
- 3.8.0
1
+ 3.8.5
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.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tim Pease
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-03-05 00:00:00.000000000Z
11
+ date: 2020-09-27 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
- version: 0.8.7
19
+ version: '13.0'
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: '13.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rdoc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '6.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '6.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
- version: '2.6'
75
+ version: '3.5'
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: '3.5'
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
@@ -76,8 +98,8 @@ extra_rdoc_files:
76
98
  - spec/data/markdown.txt
77
99
  - spec/data/rdoc.txt
78
100
  files:
79
- - .autotest
80
- - .gitignore
101
+ - ".autotest"
102
+ - ".tool-versions"
81
103
  - History.txt
82
104
  - README.rdoc
83
105
  - Rakefile
@@ -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,29 @@ 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
- - --main
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
- rubyforge_project: bones
155
- rubygems_version: 1.8.11
156
- signing_key:
157
- specification_version: 3
179
+ rubygems_version: 3.1.2
180
+ signing_key:
181
+ specification_version: 4
158
182
  summary: Mr Bones is a handy tool that creates new Ruby projects from a code skeleton.
159
183
  test_files: []
data/.gitignore DELETED
@@ -1,13 +0,0 @@
1
- # git-ls-files --others --exclude-from=.git/info/exclude
2
- # Lines that start with '#' are comments.
3
- # For a project mostly in C, the following would be a good set of
4
- # exclude patterns (uncomment them if you want to use them):
5
- # *.[oa]
6
- # *~
7
- announcement.txt
8
- coverage
9
- doc
10
- pkg
11
- manual.txt
12
- .yardoc
13
- .rvmrc