methadone 1.9.2 → 1.9.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48ba73fa6edc0c968dd40fbe2f057bbcfb1d9fc4
4
- data.tar.gz: 42749413caadbd0f281144f5a1d8ee05328d3e5b
3
+ metadata.gz: 73ecdb0d6a25a0d70df1947d8e7b61d5f868af3d
4
+ data.tar.gz: c03e55ac49781b39210bffe3f823d1bb41dd057a
5
5
  SHA512:
6
- metadata.gz: d202dfb514d464a0ae9579eaaabdecc08cf25767e3b1155d6a91471a4fb0c0980f369a7e184887fbd753c7722a0a549d529ada6e96e512c49234bd32f2676a1d
7
- data.tar.gz: 7b142ed9d6faf27649dcd06abbc8dc74560ba71057278ee1a3a5b293b705f4d7e3f3c926c45273a3704eb4d806b06f764fda0522d279a6909d29573b12892ad3
6
+ metadata.gz: ee0591fea3543e5e919e42362a24e94619a03492e3b0b8c1d17ffab6b474d9cfd649d8add9b6db62474c55a102a55025faee9b78d1a770ce3472716d59b844bd
7
+ data.tar.gz: bf91fbbcf892e295b1e59885da690d60b1030bf8a2b44fe35b9ef1b24bf2784a6572eb25d5252bf09a6cb6a0e16ccc361c51db6d297415407b806a8f9fca9b45
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.2
1
+ 2.3.1
data/.travis.yml CHANGED
@@ -3,9 +3,8 @@ notifications:
3
3
  on_success: always
4
4
  script: 'bundle exec rake'
5
5
  rvm:
6
- - 1.9.3
7
6
  - 2.0.0
8
- - 2.1.0
9
- - 2.2.0
10
- - 2.2.2
7
+ - 2.1.8
8
+ - 2.2.4
9
+ - 2.3.1
11
10
  - jruby-19mode
data/README.rdoc CHANGED
@@ -31,16 +31,20 @@ http://a1.mzstatic.com/us/r30/Publication/v4/2c/f7/90/2cf7902f-f709-9125-c73d-87
31
31
 
32
32
  == Platforms
33
33
 
34
- * The build runs on Travis for:
35
- * MRI Ruby 1.9.2
36
- * MRI Ruby 1.9.3
37
- * MRI Ruby 2.0.0
38
- * MRI Ruby 2.1.0
39
- * JRuby in both 1.8 and 1.9 mode
34
+ In general, we try to support {supported MRI Rubies}[https://www.ruby-lang.org/en/downloads/] as well as JRuby, however see the {Travis config file}[./.travis.yml] for specifics.
40
35
 
41
36
  == Bootstrapping a new CLI App
42
37
 
43
- The +methadone+ command-line app will bootstrap a new command-line app, setting up a proper gem structure, unit tests, and cucumber-based tests with aruba:
38
+ The +methadone+ command-line app will bootstrap a new command-line app, setting up a proper gem structure, unit tests, and cucumber-based tests with aruba.
39
+
40
+ It assumes you are using a standard Ruby development environment, which includes:
41
+
42
+ * Some sort of Ruby version manager to allow you to manage Ruby as yourself and not as root/system
43
+ * Bundler
44
+ * Git
45
+
46
+ _(Note that apps *powered* by this gem have no particular runtime dependencies as classes this gem provides depend only on the standard library)_
47
+
44
48
 
45
49
  $ methadone --help
46
50
  Usage: methadone [options] app_name
data/bin/methadone CHANGED
@@ -57,7 +57,7 @@ main do |app_name|
57
57
  warn "warning: your app has no license" unless license
58
58
  license = nil if license == 'NONE'
59
59
  if license
60
- copy_file "#{options[:license]}_LICENSE.txt", :as => "LICENSE.txt"
60
+ copy_file "#{options[:license]}_LICENSE.txt", :as => "LICENSE.txt"
61
61
  else
62
62
  #Remove the MIT license generated by `bundle gem`
63
63
  debug "Making sure no LICENSE.txt file exists at the root of the repo"
@@ -69,7 +69,7 @@ main do |app_name|
69
69
  if gemspec_content =~ /(^\s*#{gem_variable}\.license\s*=\s*).*/
70
70
  gemspec_content.gsub!(/(^\s*#{gem_variable}\.license\s*=\s*).*/,"\\1#{license.to_s.inspect}")
71
71
  else
72
- gemspec_content.gsub!(/(^\s*#{gem_variable}\.name\s*=\s*.*)/,"\\1\n #{gem_variable}.license=#{license.to_s.inspect}")
72
+ gemspec_content.gsub!(/(^\s*#{gem_variable}\.name\s*=\s*.*)/,"\\1\n#{" #{gem_variable}.license".ljust(20)} = #{license.to_s.inspect.upcase}")
73
73
  end
74
74
  File.open(gemspec,'w') {|f| f.write gemspec_content }
75
75
 
@@ -5,7 +5,7 @@ end
5
5
  Then /^newgem's license should be the (\w+) license/ do |license|
6
6
  @license = license
7
7
  step %(a file named "tmp/newgem/LICENSE.txt" should exist)
8
- step %(the file "tmp/newgem/newgem.gemspec" should match /#{@license}/)
8
+ step %(the file "tmp/newgem/newgem.gemspec" should match /#{@license.upcase}/)
9
9
  end
10
10
 
11
11
  Then /^the README should reference this license$/ do
@@ -353,7 +353,12 @@ module Methadone
353
353
  def set_defaults_from_rc_file
354
354
  if @rc_file && File.exists?(@rc_file)
355
355
  File.open(@rc_file) do |file|
356
- parsed = YAML::load(file)
356
+ parsed = begin
357
+ YAML::load(file)
358
+ rescue => ex
359
+ logger.error ex.message unless no_message? ex
360
+ nil
361
+ end
357
362
  if parsed.kind_of? String
358
363
  parse_string_for_argv(parsed).each do |arg|
359
364
  ::ARGV.unshift(arg)
@@ -1,3 +1,3 @@
1
1
  module Methadone #:nodoc:
2
- VERSION = "1.9.2" #:nodoc:
2
+ VERSION = "1.9.3" #:nodoc:
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: methadone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.2
4
+ version: 1.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - davetron5000
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-19 00:00:00.000000000 Z
11
+ date: 2016-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  version: '0'
262
262
  requirements: []
263
263
  rubyforge_project: methadone
264
- rubygems_version: 2.4.8
264
+ rubygems_version: 2.5.1
265
265
  signing_key:
266
266
  specification_version: 4
267
267
  summary: Kick the bash habit and start your command-line apps off right