methadone 1.9.2 → 1.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +3 -4
- data/README.rdoc +11 -7
- data/bin/methadone +2 -2
- data/features/step_definitions/license_steps.rb +1 -1
- data/lib/methadone/main.rb +6 -1
- data/lib/methadone/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73ecdb0d6a25a0d70df1947d8e7b61d5f868af3d
|
4
|
+
data.tar.gz: c03e55ac49781b39210bffe3f823d1bb41dd057a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee0591fea3543e5e919e42362a24e94619a03492e3b0b8c1d17ffab6b474d9cfd649d8add9b6db62474c55a102a55025faee9b78d1a770ce3472716d59b844bd
|
7
|
+
data.tar.gz: bf91fbbcf892e295b1e59885da690d60b1030bf8a2b44fe35b9ef1b24bf2784a6572eb25d5252bf09a6cb6a0e16ccc361c51db6d297415407b806a8f9fca9b45
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.1
|
data/.travis.yml
CHANGED
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
|
-
|
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
|
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
|
data/lib/methadone/main.rb
CHANGED
@@ -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 =
|
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)
|
data/lib/methadone/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|