hoe 3.3.1 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,10 @@
1
+ === 3.4.0 / 2012-12-18
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * Splatted version arg on require_rubygems_version and require_ruby_version.
6
+ * Switch default template test file to minitest
7
+
1
8
  === 3.3.1 / 2012-11-23
2
9
 
3
10
  * 1 minor enhancement:
data/lib/hoe.rb CHANGED
@@ -91,7 +91,7 @@ class Hoe
91
91
  include Rake::DSL if defined?(Rake::DSL)
92
92
 
93
93
  # duh
94
- VERSION = '3.3.1'
94
+ VERSION = '3.4.0'
95
95
 
96
96
  @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
97
97
  :publish, :gemcutter, :signing, :test]
@@ -798,15 +798,15 @@ class Hoe
798
798
  ##
799
799
  # Declare that your gem requires a specific rubygems version. Last one wins.
800
800
 
801
- def require_rubygems_version version
802
- spec_extras[:required_rubygems_version] = version
801
+ def require_rubygems_version *versions
802
+ spec_extras[:required_rubygems_version] = versions
803
803
  end
804
804
 
805
805
  ##
806
806
  # Declare that your gem requires a specific ruby version. Last one wins.
807
807
 
808
- def require_ruby_version version
809
- spec_extras[:required_ruby_version] = version
808
+ def require_ruby_version *versions
809
+ spec_extras[:required_ruby_version] = versions
810
810
  end
811
811
 
812
812
  ##
@@ -1,13 +1,15 @@
1
1
  # -*- ruby -*-
2
2
 
3
- require 'autotest/restart'
3
+ require "autotest/restart"
4
4
 
5
5
  # Autotest.add_hook :initialize do |at|
6
+ # at.testlib = "minitest/unit"
7
+ #
6
8
  # at.extra_files << "../some/external/dependency.rb"
7
9
  #
8
10
  # at.libs << ":../some/external"
9
11
  #
10
- # at.add_exception 'vendor'
12
+ # at.add_exception "vendor"
11
13
  #
12
14
  # at.add_mapping(/dependency.rb/) do |f, _|
13
15
  # at.files_matching(/test_.*rb$/)
@@ -1,7 +1,7 @@
1
1
  # -*- ruby -*-
2
2
 
3
- require 'rubygems'
4
- require 'hoe'
3
+ require "rubygems"
4
+ require "hoe"
5
5
 
6
6
  <%=
7
7
  found = Gem.find_files("hoe/*.rb").map { |f| File.basename(f, ".rb").to_sym }
@@ -9,16 +9,16 @@ require 'hoe'
9
9
  extra.map { |name| "# Hoe.plugin #{name.inspect}" }.sort.uniq.join("\n")
10
10
  %>
11
11
 
12
- Hoe.spec '<%= project %>' do
12
+ Hoe.spec "<%= project %>" do
13
13
  # HEY! If you fill these out in ~/.hoe_template/Rakefile.erb then
14
14
  # you'll never have to touch them again!
15
15
  # (delete this comment too, of course)
16
16
 
17
- # developer('<%= XIF %>', '<%= XIF %>@example.com')
17
+ # developer("<%= XIF %>", "<%= XIF %>@example.com")
18
18
 
19
- # self.rubyforge_name = '<%= project %>x' # if different than '<%= project %>'
19
+ # self.rubyforge_name = "<%= project %>x" # if different than "<%= project %>"
20
20
 
21
- # license 'MIT' # this should match the license in the README
21
+ # license "MIT" # this should match the license in the README
22
22
  end
23
23
 
24
24
  # vim: syntax=ruby
@@ -1,4 +1,4 @@
1
1
  <%= make_sub_modules klass %>
2
2
  class <%= klass %>
3
- VERSION = '1.0.0'
3
+ VERSION = "1.0.0"
4
4
  end
@@ -1,8 +1,8 @@
1
- require "test/unit"
1
+ require "minitest/autorun"
2
2
  require "<%= file_name %>"
3
3
 
4
4
  <%= make_sub_modules test_klass %>
5
- class <%= test_klass %> < Test::Unit::TestCase
5
+ class <%= test_klass %> < Minitest::Unit::TestCase
6
6
  def test_sanity
7
7
  flunk "write tests or I will kneecap you"
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
- - 3
9
- - 1
10
- version: 3.3.1
8
+ - 4
9
+ - 0
10
+ version: 3.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Davis
@@ -36,7 +36,7 @@ cert_chain:
36
36
  FBHgymkyj/AOSqKRIpXPhjC6
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2012-11-23 00:00:00 Z
39
+ date: 2012-12-18 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
@@ -68,11 +68,11 @@ dependencies:
68
68
  requirements:
69
69
  - - ~>
70
70
  - !ruby/object:Gem::Version
71
- hash: 31
71
+ hash: 29
72
72
  segments:
73
73
  - 4
74
- - 2
75
- version: "4.2"
74
+ - 3
75
+ version: "4.3"
76
76
  type: :development
77
77
  version_requirements: *id002
78
78
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
Binary file