bones 3.8.5 → 3.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ae61d7e3455091c7a579eb743beb58a2f420105978d1f82c652918df3cecd0d
4
- data.tar.gz: 7bda1f37c9f3a8775c81228432d6fe6b7ebf622f85a0b36604f45f1227b2379c
3
+ metadata.gz: 27c3824dec2977a60b838ff4473dbb68963f13dc101c1eb9841f03192a06e8f5
4
+ data.tar.gz: 2c6ebdb1e83bee76d51a47658472ed65b64503581911783ecd3e562664d67ea7
5
5
  SHA512:
6
- metadata.gz: 7d45ee086cbc272d690e50ef1fa081867e3b9ced46307edc71c3011ce89a27d1dae1246fe28c0270736a93d02434bc4c642d8362b066867c5adfd5a5091209ed
7
- data.tar.gz: 2cea0c0569519433f6db551bfec267ecef661c40ce73e255dbf96bd75b97769e53e387f59722b4c5ac87ab4d1cf7b98911ac871c44517fdef7b188ef6e8e14b2
6
+ metadata.gz: 6999ffc409afbc2d09539ffae0bb98e6646d17074217ab9b32fcecd14e0931ce6047095349b535380c294d641d3032442ed83ffe7019d046760aeb72096a18a1
7
+ data.tar.gz: '0195eaf178b36cbeb5d90e4cc3e611c4e57dc9b9ea88097d465f57121ffc34cf5378ba321e4d4c13341ac66bb3d9f03b37e996ad7a6a5a4f448093f30013363d'
data/.gitignore ADDED
@@ -0,0 +1,14 @@
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
+ vendor
13
+ .yardoc
14
+ .tool-versions
data/History.txt CHANGED
@@ -1,3 +1,13 @@
1
+ == 3.9.0 / 2022-05-26
2
+
3
+ Enhancements
4
+ - use feature detection for rubygems package loading - #45 [thanks @kares]
5
+ - adding license option to the top-level bones configuration - #49
6
+
7
+ Bug Fixes
8
+ - fixing gem naming issue on Ruby 3 - #48
9
+ - fixing the plugins command - #50
10
+
1
11
  == 3.8.5 / 2020-09-27
2
12
 
3
13
  Bug Fixes
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2007-2022 Tim Pease
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -12,6 +12,7 @@ Bones {
12
12
  authors 'Tim Pease'
13
13
  email 'tim.pease@gmail.com'
14
14
  url 'http://rubygems.org/gems/bones'
15
+ license 'MIT'
15
16
 
16
17
  spec.opts.concat %w[--color --format documentation]
17
18
  notes.exclude %w[^README\.rdoc$ ^data/]
data/bones.gemspec ADDED
@@ -0,0 +1,41 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # stub: bones 3.9.0 ruby lib
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "bones".freeze
6
+ s.version = "3.9.0"
7
+
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
+ s.require_paths = ["lib".freeze]
10
+ s.authors = ["Tim Pease".freeze]
11
+ s.date = "2022-05-27"
12
+ s.description = "Mr Bones is a handy tool that creates new Ruby projects from a code\nskeleton. The skeleton contains some starter code and a collection of rake\ntasks to ease the management and deployment of your source code. Several Mr\nBones plugins are available for creating git repositories, creating GitHub\nprojects, running various test suites and source code analysis tools.".freeze
13
+ s.email = "tim.pease@gmail.com".freeze
14
+ s.executables = ["bones".freeze]
15
+ s.extra_rdoc_files = ["History.txt".freeze, "README.rdoc".freeze, "bin/bones".freeze, "default/version.txt".freeze, "spec/data/markdown.txt".freeze, "spec/data/rdoc.txt".freeze]
16
+ s.files = [".autotest".freeze, ".gitignore".freeze, "History.txt".freeze, "LICENSE".freeze, "README.rdoc".freeze, "Rakefile".freeze, "bin/bones".freeze, "default/.bnsignore".freeze, "default/History.txt.bns".freeze, "default/LICENSE.bns".freeze, "default/README.md.bns".freeze, "default/Rakefile.bns".freeze, "default/bin/NAME.bns".freeze, "default/lib/NAME.rb.bns".freeze, "default/spec/NAME_spec.rb.bns".freeze, "default/spec/spec_helper.rb.bns".freeze, "default/test/test_NAME.rb".freeze, "default/version.txt".freeze, "lib/bones.rb".freeze, "lib/bones/annotation_extractor.rb".freeze, "lib/bones/app.rb".freeze, "lib/bones/app/command.rb".freeze, "lib/bones/app/create.rb".freeze, "lib/bones/app/file_manager.rb".freeze, "lib/bones/app/freeze.rb".freeze, "lib/bones/app/info.rb".freeze, "lib/bones/app/plugins.rb".freeze, "lib/bones/app/unfreeze.rb".freeze, "lib/bones/colors.rb".freeze, "lib/bones/gem_package_task.rb".freeze, "lib/bones/helpers.rb".freeze, "lib/bones/plugins/ann.rb".freeze, "lib/bones/plugins/bones_plugin.rb".freeze, "lib/bones/plugins/gem.rb".freeze, "lib/bones/plugins/notes.rb".freeze, "lib/bones/plugins/rdoc.rb".freeze, "lib/bones/plugins/test.rb".freeze, "lib/bones/rake_override_task.rb".freeze, "script/bootstrap".freeze, "spec/bones/app/file_manager_spec.rb".freeze, "spec/bones/app_spec.rb".freeze, "spec/bones/helpers_spec.rb".freeze, "spec/bones_spec.rb".freeze, "spec/data/default/.bnsignore".freeze, "spec/data/default/.rvmrc.bns".freeze, "spec/data/default/History".freeze, "spec/data/default/NAME/NAME.rb.bns".freeze, "spec/data/default/README.md.bns".freeze, "spec/data/default/Rakefile.bns".freeze, "spec/data/default/bin/NAME.bns".freeze, "spec/data/default/lib/NAME.rb.bns".freeze, "spec/data/foo/README.md".freeze, "spec/data/foo/Rakefile".freeze, "spec/data/markdown.txt".freeze, "spec/data/rdoc.txt".freeze, "spec/spec_helper.rb".freeze, "version.txt".freeze]
17
+ s.homepage = "http://rubygems.org/gems/bones".freeze
18
+ s.licenses = ["MIT".freeze]
19
+ s.post_install_message = "--------------------------\n Keep rattlin' dem bones!\n--------------------------\n".freeze
20
+ s.rdoc_options = ["--main".freeze, "README.rdoc".freeze]
21
+ s.rubygems_version = "3.1.2".freeze
22
+ s.summary = "Mr Bones is a handy tool that creates new Ruby projects from a code skeleton.".freeze
23
+
24
+ if s.respond_to? :specification_version then
25
+ s.specification_version = 4
26
+ end
27
+
28
+ if s.respond_to? :add_runtime_dependency then
29
+ s.add_runtime_dependency(%q<rake>.freeze, ["~> 13.0"])
30
+ s.add_runtime_dependency(%q<rdoc>.freeze, ["~> 6.0"])
31
+ s.add_runtime_dependency(%q<little-plugger>.freeze, ["~> 1.1"])
32
+ s.add_runtime_dependency(%q<loquacious>.freeze, ["~> 1.9"])
33
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.5"])
34
+ else
35
+ s.add_dependency(%q<rake>.freeze, ["~> 13.0"])
36
+ s.add_dependency(%q<rdoc>.freeze, ["~> 6.0"])
37
+ s.add_dependency(%q<little-plugger>.freeze, ["~> 1.1"])
38
+ s.add_dependency(%q<loquacious>.freeze, ["~> 1.9"])
39
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.5"])
40
+ end
41
+ end
@@ -0,0 +1,22 @@
1
+ The MIT License
2
+
3
+ Copyright (c) <%= Time.now.year %> FIXME (author)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/default/Rakefile.bns CHANGED
@@ -13,5 +13,6 @@ Bones {
13
13
  authors 'FIXME (who is writing this software)'
14
14
  email 'FIXME (your e-mail)'
15
15
  url 'FIXME (project homepage)'
16
+ license 'MIT'
16
17
  }
17
18
 
@@ -1,112 +1,106 @@
1
1
 
2
2
  module Bones::App
3
- class Plugins < Command
3
+ class Plugins < Command
4
4
 
5
- def self.initialize_plugins
6
- synopsis 'bones plugins [options]'
5
+ def self.initialize_plugins
6
+ synopsis 'bones plugins [options]'
7
7
 
8
- summary 'list available Mr Bones plugins'
8
+ summary 'list available Mr Bones plugins'
9
9
 
10
- description <<-__
10
+ description <<-__
11
11
  Parse the installed gems and then search for Mr Bones plugins related to
12
12
  those gems. Passing in the 'all' flag will show plugins even if the related
13
13
  gems are not installed.
14
- __
14
+ __
15
15
 
16
- option('-a', '--all', 'Show all plugins.', lambda { |_| config[:all] = true })
17
- option(standard_options[:colorize])
18
- end
19
-
20
- def run
21
- stdout.write 'Looking up avaialble Mr Bones plugins ... '
22
- stdout.flush
23
- plugins = find_bones_plugins
24
- stdout.puts 'done!'
25
- stdout.puts
26
-
27
- if all?
28
- plugins.each { |name, version| show_plugin(name, version) }
29
- else
30
- gemspecs = find_gemspecs
31
- plugins.each { |name, version|
32
- gemspecs.each { |gem_name, gem_version|
33
- next unless name.downcase == gem_name.downcase
34
- next if version && version != gem_version
35
- show_plugin(name, version)
36
- }
37
- }
16
+ option('-a', '--all', 'Show all plugins.', lambda { |_| config[:all] = true })
17
+ option(standard_options[:colorize])
38
18
  end
39
19
 
40
- stdout.puts
41
- end
42
-
43
- def all?
44
- config[:all]
45
- end
20
+ def run
21
+ stdout.write 'Looking up avaialble Mr Bones plugins ... '
22
+ stdout.flush
23
+ plugins = find_bones_plugins
24
+ stdout.puts 'done!'
25
+ stdout.puts
26
+
27
+ if all?
28
+ plugins.each {|name, version| show_plugin(name, version)}
29
+ else
30
+ gemspecs = find_gemspecs
31
+ plugins.each { |name, version|
32
+ gemspecs.each { |gem_name, gem_version|
33
+ next unless name.downcase == gem_name.downcase
34
+ next if version && version != gem_version
35
+ show_plugin(name, version)
36
+ }
37
+ }
38
+ end
46
39
 
47
- def show_plugin( name, version )
48
- name = "bones-#{name}"
49
- name << "-#{version}" if version
40
+ stdout.puts
41
+ end
50
42
 
51
- stdout.puts(" [%s] %s" % [installed?(name) ? colorize('installed', :green) : colorize('available', :cyan), name])
52
- end
43
+ def all?
44
+ config[:all]
45
+ end
53
46
 
54
- private
47
+ def show_plugin(name, version)
48
+ name = "bones-#{name}"
49
+ name << "-#{version}" if version
55
50
 
56
- def find_gemspecs
57
- if Gem::Specification.respond_to? :map
58
- specs = Gem::Specification.map { |spec| spec }
59
- else
60
- specs = Gem.source_index.map { |_, spec| spec }
51
+ stdout.puts(" [%s] %s" % [installed?(name) ? colorize('installed', :green) : colorize('available', :cyan), name])
61
52
  end
62
53
 
63
- specs.map! { |s| [s.name, s.version.segments.first] }
64
- specs.sort! { |a, b|
65
- names = a.first <=> b.first
66
- next names if names.nonzero?
67
- b.last <=> a.last
68
- }
54
+ private
69
55
 
70
- specs.uniq!
71
- return specs
72
- end
56
+ def find_gemspecs
57
+ if Gem::Specification.respond_to? :map
58
+ specs = Gem::Specification.map { |spec| spec }
59
+ else
60
+ specs = Gem.source_index.map { |_, spec| spec }
61
+ end
62
+
63
+ specs.map! { |s| [s.name, s.version.segments.first] }
64
+ specs.sort! { |a, b|
65
+ names = a.first <=> b.first
66
+ next names if names.nonzero?
67
+ b.last <=> a.last
68
+ }
73
69
 
74
- def find_bones_plugins
75
- if Gem.const_defined? :Deprecate
76
- # FIXME: this needs to change when rubygems removes the option to pass a regular expression to the Gem::Dependency initializer
77
- dep = Gem::Deprecate.skip_during { Gem::Dependency.new(%r/^bones/i, Gem::Requirement.default) }
78
- else
79
- dep = Gem::Dependency.new(%r/^bones/i, Gem::Requirement.default)
70
+ specs.uniq!
71
+ return specs
80
72
  end
81
73
 
82
- fetcher = Gem::SpecFetcher.fetcher
83
- specs = fetcher.find_matching dep
74
+ def find_bones_plugins
75
+ fetcher = Gem::SpecFetcher.fetcher
76
+ specs = fetcher.detect(:latest) do |name_tuple|
77
+ %r/\Abones/.match?(name_tuple.name)
78
+ end
84
79
 
85
- specs.map! { |(name, _, _), _|
86
- next unless name =~ %r/^bones-(.*?)(?:-(\d+))?$/i
87
- $2 ? [$1, $2.to_i] : $1
88
- }
80
+ specs.map! do |tuple, _|
81
+ next unless tuple.name =~ %r/\Abones-(.*?)(?:-(\d+))?\Z/i
82
+ $2 ? [$1, $2.to_i] : $1
83
+ end
89
84
 
90
- specs.compact!
91
- specs.uniq!
92
- return specs
93
- end
85
+ specs.compact!
86
+ specs.uniq!
87
+ return specs
88
+ end
94
89
 
95
- def installed?( name, version = Gem::Requirement.default )
96
- # FIXME: check for rubygems version 1.8.X
97
- if Gem::Specification.respond_to? :find_by_name
98
- begin
99
- Gem::Specification.find_by_name(name, version)
100
- true
101
- rescue Gem::LoadError
102
- false
90
+ def installed?(name, version = Gem::Requirement.default)
91
+ # FIXME: check for rubygems version 1.8.X
92
+ if Gem::Specification.respond_to? :find_by_name
93
+ begin
94
+ Gem::Specification.find_by_name(name, version)
95
+ true
96
+ rescue Gem::LoadError
97
+ false
98
+ end
99
+ else
100
+ dep = Gem::Dependency.new name, version
101
+ !Gem.source_index.search(dep).empty?
103
102
  end
104
- else
105
- dep = Gem::Dependency.new name, version
106
- !Gem.source_index.search(dep).empty?
107
103
  end
108
104
  end
109
-
110
- end # class Plugins
111
- end # module Bones::App
105
+ end
112
106
 
@@ -2,9 +2,9 @@
2
2
  require 'find'
3
3
  require 'rake/packagetask'
4
4
  require 'rubygems/user_interaction'
5
- if RUBY_VERSION >= "2"
5
+ begin
6
6
  require 'rubygems/package'
7
- else
7
+ rescue LoadError
8
8
  require 'rubygems/builder'
9
9
  end
10
10
 
@@ -47,7 +47,7 @@ class Bones::GemPackageTask < Rake::PackageTask
47
47
  file "#{package_dir_path}/#{gem_file}" => [package_dir_path] + package_files do
48
48
  when_writing("Creating GEM") {
49
49
  chdir(package_dir_path) do
50
- if RUBY_VERSION >= "2"
50
+ if defined? Gem::Package.build
51
51
  Gem::Package.build(gem_spec)
52
52
  else
53
53
  Gem::Builder.new(gem_spec).build
@@ -64,16 +64,12 @@ class Bones::GemPackageTask < Rake::PackageTask
64
64
  end
65
65
  end
66
66
 
67
- #
68
- #
69
67
  def gem_file
70
68
  if @gem_spec.platform == Gem::Platform::RUBY
71
- "#{package_name}.gem"
69
+ "#{gem_spec.full_name}.gem"
72
70
  else
73
- "#{package_name}-#{@gem_spec.platform}.gem"
71
+ "#{gem_spec.full_name}-#{gem_spec.platform}.gem"
74
72
  end
75
73
  end
74
+ end
76
75
 
77
- end # class Bones::GemPackageTask
78
-
79
- # EOF
@@ -38,6 +38,13 @@ module Bones::Plugins::BonesPlugin
38
38
  most current release are included.
39
39
  __
40
40
 
41
+ license nil, :desc => <<-__
42
+ This should just be the name of your license. The full text of the
43
+ license should be in a LICENSE file at the top-level of your gem when
44
+ you build it. The simplest way is to specify the standard SPDX ID
45
+ https://spdx.org/licenses/ for the license.
46
+ __
47
+
41
48
  authors nil, :desc => <<-__
42
49
  This can be a single author (as a string) or an array of authors
43
50
  if more than one person is working on the project.
@@ -173,8 +180,6 @@ module Bones::Plugins::BonesPlugin
173
180
  end
174
181
 
175
182
  def define_tasks
176
- config = ::Bones.config
177
-
178
183
  namespace :bones do
179
184
  desc 'Show the current Mr Bones configuration'
180
185
  task :debug do |t|
@@ -202,9 +207,7 @@ module Bones::Plugins::BonesPlugin
202
207
 
203
208
  ::Bones.help.show(atr, :descriptions => false, :values => false)
204
209
  end
205
-
206
- end # namespace :bones
210
+ end
207
211
  end
208
-
209
- end # module Bones::Plugins::BonesPlugin
212
+ end
210
213
 
@@ -11,8 +11,7 @@ module Bones::Plugins::Gem
11
11
  # Adds the given gem _name_ to the current project's dependency list. An
12
12
  # optional gem _version_ can be given. If omitted, the newest gem version
13
13
  # will be used.
14
- #
15
- def depend_on( name, *args )
14
+ def depend_on(name, *args)
16
15
  opts = Hash === args.last ? args.pop : {}
17
16
  version = args.first || opts[:version]
18
17
  development = opts.key?(:development) ? opts[:development] : opts.key?(:dev) ? opts[:dev] : false
@@ -27,7 +26,7 @@ module Bones::Plugins::Gem
27
26
  spec = Gem.source_index.find_name(name).last
28
27
  end
29
28
 
30
- version = ">= #{spec.version.to_s}" if version.nil? and !spec.nil?
29
+ version = "~> #{spec.version.to_s}" if version.nil? and !spec.nil?
31
30
 
32
31
  dep = case version
33
32
  when nil; [name]
@@ -40,9 +39,8 @@ module Bones::Plugins::Gem
40
39
  nil
41
40
  end
42
41
 
43
- # Add the given _url_ to the list of gem sources.
44
- #
45
- def source( url )
42
+ # Add the given `url` to the list of gem sources.
43
+ def source(url)
46
44
  sources = ::Bones.config.gem.sources
47
45
  sources << url unless sources.include? url
48
46
  nil
@@ -133,7 +131,7 @@ module Bones::Plugins::Gem
133
131
  unless $bones_external_spec
134
132
  config.gem.files ||= manifest
135
133
  config.gem.executables ||= config.gem.files.find_all {|fn| fn =~ %r/^bin/}
136
- config.gem.development_dependencies << ['bones', ">= #{Bones.version}"]
134
+ config.gem.development_dependencies << ['bones', "~> #{Bones.version}"]
137
135
  end
138
136
  end
139
137
 
@@ -149,8 +147,8 @@ module Bones::Plugins::Gem
149
147
  s.authors = Array(config.authors)
150
148
  s.email = config.email
151
149
  s.homepage = Array(config.url).first
152
-
153
150
  s.description = config.description
151
+ s.license = config.license
154
152
 
155
153
  config.gem.dependencies.each do |dep|
156
154
  s.add_dependency(*dep)
@@ -241,10 +239,7 @@ module Bones::Plugins::Gem
241
239
 
242
240
  desc 'Install the gem'
243
241
  task :install => [:clobber, 'gem:package'] do
244
- sh "#{SUDO} #{GEM} install pkg/#{config.gem._spec.full_name}"
245
-
246
- # use this version of the command for rubygems > 1.0.0
247
- # sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{config.gem._spec.full_name}"
242
+ sh "#{SUDO} #{GEM} install pkg/#{config.gem._spec.full_name}.gem"
248
243
  end
249
244
 
250
245
  desc 'Uninstall the gem'
@@ -338,7 +333,7 @@ module Bones::Plugins::Gem
338
333
 
339
334
  # Import configuration from the given gemspec file.
340
335
  #
341
- def import_gemspec( filename )
336
+ def import_gemspec(filename)
342
337
  $bones_external_spec = false
343
338
  spec = load_gemspec(filename)
344
339
  return if spec.nil?
@@ -356,6 +351,7 @@ module Bones::Plugins::Gem
356
351
  config.description = spec.description
357
352
  config.files = spec.files
358
353
  config.libs = spec.require_paths
354
+ config.license = spec.license
359
355
 
360
356
  config.gem.executables = spec.executables
361
357
  if have? :rdoc
@@ -384,7 +380,7 @@ module Bones::Plugins::Gem
384
380
  # This method is stolen from the Bundler gem. It loads the gemspec from a
385
381
  # file if available.
386
382
  #
387
- def load_gemspec( filename )
383
+ def load_gemspec(filename)
388
384
  path = Pathname.new(filename)
389
385
  # Eval the gemspec from its parent directory
390
386
  Dir.chdir(path.dirname) do
@@ -409,6 +405,5 @@ module Bones::Plugins::Gem
409
405
  end
410
406
  end
411
407
  end
412
-
413
- end # Bones::Plugins::Gem
408
+ end
414
409
 
data/lib/bones.rb CHANGED
@@ -17,10 +17,7 @@ module Bones
17
17
  LIBPATH = File.expand_path('..', __FILE__) + File::SEPARATOR
18
18
  VERSION = File.read(PATH + '/version.txt').strip
19
19
  HOME = File.expand_path(ENV['HOME'] || ENV['USERPROFILE'])
20
-
21
- # Ruby Interpreter location - taken from Rake source code
22
- RUBY = File.join(RbConfig::CONFIG['bindir'],
23
- RbConfig::CONFIG['ruby_install_name']).sub(/.*\s.*/m, '"\&"')
20
+ RUBY = 'ruby'
24
21
 
25
22
  module Plugins; end
26
23
  # :startdoc:
data/version.txt CHANGED
@@ -1 +1 @@
1
- 3.8.5
1
+ 3.9.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bones
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.5
4
+ version: 3.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Pease
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-27 00:00:00.000000000 Z
11
+ date: 2022-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -99,13 +99,16 @@ extra_rdoc_files:
99
99
  - spec/data/rdoc.txt
100
100
  files:
101
101
  - ".autotest"
102
- - ".tool-versions"
102
+ - ".gitignore"
103
103
  - History.txt
104
+ - LICENSE
104
105
  - README.rdoc
105
106
  - Rakefile
106
107
  - bin/bones
108
+ - bones.gemspec
107
109
  - default/.bnsignore
108
110
  - default/History.txt.bns
111
+ - default/LICENSE.bns
109
112
  - default/README.md.bns
110
113
  - default/Rakefile.bns
111
114
  - default/bin/NAME.bns
@@ -154,7 +157,8 @@ files:
154
157
  - spec/spec_helper.rb
155
158
  - version.txt
156
159
  homepage: http://rubygems.org/gems/bones
157
- licenses: []
160
+ licenses:
161
+ - MIT
158
162
  metadata: {}
159
163
  post_install_message: |
160
164
  --------------------------
data/.tool-versions DELETED
@@ -1 +0,0 @@
1
- ruby 2.7.1