cartage 2.0.rc1 → 2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Contributing.md +1 -0
- data/History.md +1 -1
- data/Rakefile +4 -7
- data/lib/cartage.rb +1 -1
- data/lib/cartage/cli.rb +2 -2
- data/lib/cartage/gli_ext.rb +12 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2eb844544a84e06ad6bccddcc0a728f0fbc60c4b
|
4
|
+
data.tar.gz: ec610a1c7412e3be6f0bad168ba11bf7892f6d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d8b293126b129ed714459adce60cb5c8d6f856f8e3b37c26f2ccb1fc011a0a161a2eef901407a100929a882fb211290d42c4e3667d20380a15c83f726af5716
|
7
|
+
data.tar.gz: a6ae8c8df8b6cc3612f60d3b59c0f367b033241c70a4185499f855d8fa2835c83b9b8aa330f04913f60ee797991ba58a591529fd2677c1095cc6da99e0ac9c86
|
data/Contributing.md
CHANGED
@@ -64,6 +64,7 @@ Here's the most direct way to get your work merged into the project:
|
|
64
64
|
### Contributors
|
65
65
|
|
66
66
|
* Austin Ziegler created Cartage.
|
67
|
+
* Jero Sutlovic
|
67
68
|
|
68
69
|
[Minitest]: https://github.com/seattlerb/minitest
|
69
70
|
[quality commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
data/History.md
CHANGED
data/Rakefile
CHANGED
@@ -52,15 +52,12 @@ module Hoe::Publish #:nodoc:
|
|
52
52
|
end
|
53
53
|
|
54
54
|
namespace :test do
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
Rake::Task['test'].execute
|
60
|
-
end
|
55
|
+
task :coverage do
|
56
|
+
spec.test_prelude = 'load ".simplecov-prelude.rb"'
|
57
|
+
Rake::Task['test'].execute
|
61
58
|
end
|
62
59
|
|
63
60
|
CLOBBER << 'coverage'
|
64
|
-
end
|
61
|
+
end if File.exist?('.simplecov-prelude.rb')
|
65
62
|
|
66
63
|
CLOBBER << 'tmp'
|
data/lib/cartage.rb
CHANGED
@@ -10,7 +10,7 @@ require 'cartage/config'
|
|
10
10
|
##
|
11
11
|
# Cartage, a reliable package builder.
|
12
12
|
class Cartage
|
13
|
-
VERSION = '2.0
|
13
|
+
VERSION = '2.0' #:nodoc:
|
14
14
|
|
15
15
|
# Creates a new Cartage instance. If provided a Cartage::Config object in
|
16
16
|
# +config+, sets the configuration and resolves it. If +config+ is not
|
data/lib/cartage/cli.rb
CHANGED
@@ -48,8 +48,8 @@ class Cartage
|
|
48
48
|
# +mods+ are the modules to extend onto Cartage::CLI. +block+ is the
|
49
49
|
# block that contains CLI command extensions (using the GLI DSL).
|
50
50
|
def extend(*mods, &block)
|
51
|
-
super(*mods) unless
|
52
|
-
cli.instance_eval(&block)
|
51
|
+
return super(*mods) unless block_given?
|
52
|
+
cli.instance_eval(&block)
|
53
53
|
end
|
54
54
|
|
55
55
|
# Run the application. Should only be run from +bin/cartage+. +args+ are
|
data/lib/cartage/gli_ext.rb
CHANGED
@@ -55,4 +55,16 @@ class GLI::Command #:nodoc:
|
|
55
55
|
def hide!
|
56
56
|
singleton_class.send(:define_method, :nodoc) { true }
|
57
57
|
end
|
58
|
+
|
59
|
+
def plugin_version_command(*plugin_classes)
|
60
|
+
desc 'Show the plug-in version'
|
61
|
+
command 'version' do |version|
|
62
|
+
version.hide!
|
63
|
+
version.action do |_g, _o, _a|
|
64
|
+
plugin_classes.each do |plugin_class|
|
65
|
+
puts "cartage-#{plugin_class.plugin_name}: #{plugin_class.version}"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
58
70
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cartage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: '2.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austin Ziegler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -305,9 +305,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
305
305
|
version: '2.0'
|
306
306
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
307
307
|
requirements:
|
308
|
-
- - "
|
308
|
+
- - ">="
|
309
309
|
- !ruby/object:Gem::Version
|
310
|
-
version:
|
310
|
+
version: '0'
|
311
311
|
requirements: []
|
312
312
|
rubyforge_project:
|
313
313
|
rubygems_version: 2.6.4
|