cartage 2.0.rc1 → 2.0

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: c43e24d4e0f7258cdbd39dcc488e76243f735167
4
- data.tar.gz: f8cbe8898d7a8a7332b41415696c1cc206ddabe9
3
+ metadata.gz: 2eb844544a84e06ad6bccddcc0a728f0fbc60c4b
4
+ data.tar.gz: ec610a1c7412e3be6f0bad168ba11bf7892f6d78
5
5
  SHA512:
6
- metadata.gz: cc9bdac5b457d1954b97a7ef92b32a41e5b60c12993ab7b9d154723870991aa671b2f8dcda9ef1c70e708c4931ac65dc17d38299464a6f6189748f247dd19ecb
7
- data.tar.gz: 1bc2c43ded9eed5e7e18b66c589e2879fa7cb6989c1a714bc9ba9ba2c6f258fb17d167be653b1c0be3650bd8f4cf7e7e81afef9e95ff2c75a84b9da73fe4a86c
6
+ metadata.gz: 4d8b293126b129ed714459adce60cb5c8d6f856f8e3b37c26f2ccb1fc011a0a161a2eef901407a100929a882fb211290d42c4e3667d20380a15c83f726af5716
7
+ data.tar.gz: a6ae8c8df8b6cc3612f60d3b59c0f367b033241c70a4185499f855d8fa2835c83b9b8aa330f04913f60ee797991ba58a591529fd2677c1095cc6da99e0ac9c86
@@ -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
@@ -1,4 +1,4 @@
1
- ### 2.0 / 2016-05-DD
1
+ ### 2.0 / 2016-05-31
2
2
 
3
3
  * Rewrite! Over the last year, a number of deficiencies have been found,
4
4
  especially related to the extensibility and the execution of various
data/Rakefile CHANGED
@@ -52,15 +52,12 @@ module Hoe::Publish #:nodoc:
52
52
  end
53
53
 
54
54
  namespace :test do
55
- if File.exist?('.simplecov-prelude.rb')
56
- task :coverage do
57
- spec.test_prelude = 'load ".simplecov-prelude.rb"'
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'
@@ -10,7 +10,7 @@ require 'cartage/config'
10
10
  ##
11
11
  # Cartage, a reliable package builder.
12
12
  class Cartage
13
- VERSION = '2.0.rc1' #:nodoc:
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
@@ -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 mods.empty?
52
- cli.instance_eval(&block) if block_given?
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
@@ -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.rc1
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-25 00:00:00.000000000 Z
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: 1.3.1
310
+ version: '0'
311
311
  requirements: []
312
312
  rubyforge_project:
313
313
  rubygems_version: 2.6.4