hoe 1.12.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,11 +2,10 @@
2
2
 
3
3
  require 'rubygems'
4
4
  require 'hoe'
5
- require './lib/<%= project %>.rb'
6
5
 
7
- Hoe.new('<%= project %>', <%= klass %>::VERSION) do |p|
8
- # p.rubyforge_name = '<%= project %>x' # if different than lowercase project name
6
+ Hoe.spec '<%= project %>' do
7
+ # self.rubyforge_name = '<%= project %>x' # if different than '<%= project %>'
9
8
  # p.developer('<%= XIF %>', '<%= XIF %>@example.com')
10
9
  end
11
10
 
12
- # vim: syntax=Ruby
11
+ # vim: syntax=ruby
@@ -32,8 +32,6 @@ class TestHoe < MiniTest::Unit::TestCase
32
32
  deps:list
33
33
  docs
34
34
  email
35
- flay
36
- flog
37
35
  generate_key
38
36
  install_gem
39
37
  multi
@@ -48,11 +46,9 @@ class TestHoe < MiniTest::Unit::TestCase
48
46
  test_deps)
49
47
  expected += boring
50
48
 
51
- expected.delete "flay" unless defined? ::FlayTask
52
- expected.delete "flog" unless defined? ::FlogTask
53
-
54
- spec = Hoe.new('blah', '1.0.0') do |h|
55
- h.developer("name", "email")
49
+ spec = Hoe.spec('blah') do
50
+ self.version = '1.0.0'
51
+ developer("name", "email")
56
52
  end
57
53
 
58
54
  assert_equal ["name"], spec.author
@@ -60,14 +56,16 @@ class TestHoe < MiniTest::Unit::TestCase
60
56
 
61
57
  tasks = Rake.application.tasks
62
58
  public_tasks = tasks.reject { |t| t.comment.nil? }.map { |t| t.name }.sort
59
+ public_tasks -= %w(flay flog)
63
60
 
64
61
  assert_equal expected.sort, public_tasks
65
62
  end
66
63
 
67
64
  def test_possibly_better
68
65
  t = Gem::Specification::TODAY
69
- hoe = Hoe.new("blah", '1.2.3') do |h|
70
- h.developer 'author', 'email'
66
+ hoe = Hoe.spec("blah") do
67
+ self.version = '1.2.3'
68
+ developer 'author', 'email'
71
69
  end
72
70
 
73
71
  files = File.read("Manifest.txt").split(/\n/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -30,7 +30,7 @@ cert_chain:
30
30
  FBHgymkyj/AOSqKRIpXPhjC6
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2009-04-16 00:00:00 -07:00
33
+ date: 2009-06-02 00:00:00 -07:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
@@ -54,41 +54,24 @@ dependencies:
54
54
  version: 0.8.4
55
55
  version:
56
56
  description: |-
57
- Hoe is a simple rake/rubygems helper for project Rakefiles. It
58
- generates all the usual tasks for projects including rdoc generation,
59
- testing, packaging, and deployment.
57
+ Hoe is a rake/rubygems helper for project Rakefiles. It helps generate
58
+ rubygems and includes a dynamic plug-in system allowing for easy
59
+ extensibility. Hoe ships with plug-ins for all your usual project
60
+ tasks including rdoc generation, testing, packaging, and deployment.
60
61
 
61
- Tasks Provided:
62
+ Plug-ins Provided:
62
63
 
63
- * announce - Create news email file and post to rubyforge.
64
- * audit - Run ZenTest against the package.
65
- * check_extra_deps - Install missing dependencies.
66
- * check_manifest - Verify the manifest.
67
- * clean - Clean up all the extras.
68
- * config_hoe - Create a fresh ~/.hoerc file.
69
- * debug_gem - Show information about the gem.
70
- * default - Run the default task(s).
71
- * deps:email - Print a contact list for gems dependent on this gem
72
- * deps:fetch - Fetch all the dependent gems of this gem into tarballs
73
- * deps:list - List all the dependent gems of this gem
74
- * docs - Build the docs HTML Files
75
- * email - Generate email announcement file.
76
- * flay - Analyze for code duplication.
77
- * flog - Analyze code complexity.
78
- * gem - Build the gem file hoe-1.9.0.gem
79
- * generate_key - Generate a key for signing your gems.
80
- * install_gem - Install the package as a gem.
81
- * multi - Run the test suite using multiruby.
82
- * package - Build all the packages
83
- * post_blog - Post announcement to blog.
84
- * post_news - Post announcement to rubyforge.
85
- * publish_docs - Publish RDoc to RubyForge.
86
- * rcov - Analyze code coverage with tests
87
- * release - Package and upload the release to rubyforge.
88
- * ridocs - Generate ri locally for testing.
89
- * tasks - Generate a list of tasks for doco.
90
- * test - Run the test suite.
91
- * test_deps - Show which test files fail when run alone.
64
+ * Hoe::Clean
65
+ * Hoe::Debug
66
+ * Hoe::Deps
67
+ * Hoe::Flay
68
+ * Hoe::Flog
69
+ * Hoe::Inline
70
+ * Hoe::Package
71
+ * Hoe::Publish
72
+ * Hoe::RCov
73
+ * Hoe::Signing
74
+ * Hoe::Test
92
75
 
93
76
  See class rdoc for help. Hint: ri Hoe
94
77
  email:
@@ -108,6 +91,18 @@ files:
108
91
  - Rakefile
109
92
  - bin/sow
110
93
  - lib/hoe.rb
94
+ - lib/hoe/clean.rb
95
+ - lib/hoe/debug.rb
96
+ - lib/hoe/deps.rb
97
+ - lib/hoe/flay.rb
98
+ - lib/hoe/flog.rb
99
+ - lib/hoe/inline.rb
100
+ - lib/hoe/package.rb
101
+ - lib/hoe/publish.rb
102
+ - lib/hoe/rake.rb
103
+ - lib/hoe/rcov.rb
104
+ - lib/hoe/signing.rb
105
+ - lib/hoe/test.rb
111
106
  - template/.autotest.erb
112
107
  - template/History.txt.erb
113
108
  - template/Manifest.txt.erb
@@ -137,14 +132,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
132
  requirements:
138
133
  - - ">="
139
134
  - !ruby/object:Gem::Version
140
- version: "0"
135
+ version: 1.3.1
141
136
  version:
142
137
  requirements: []
143
138
 
144
139
  rubyforge_project: seattlerb
145
- rubygems_version: 1.3.2
140
+ rubygems_version: 1.3.4
146
141
  signing_key:
147
142
  specification_version: 3
148
- summary: Hoe is a simple rake/rubygems helper for project Rakefiles
143
+ summary: Hoe is a rake/rubygems helper for project Rakefiles
149
144
  test_files:
150
145
  - test/test_hoe.rb
metadata.gz.sig CHANGED
Binary file