hoe 1.9.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ ��8C�
2
+ �6Y؊�|Y��X������%�u�z��@= �)[�>H����D%C�[�]�u�ށ#��$sH�z�h3^�K9�}��U����<��@��j枵H��Q���J-�ϫ��K�`��Q�w�����^��e��d�)�\�Xظ��p��D��
3
+ �7&�G�/}���v
@@ -1,3 +1,14 @@
1
+ === 1.10.0 / 2009-03-09
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * Switched to flay's new FlayTask, added flay_threshold
6
+ * generate_key now creates the certificate package automatically.
7
+
8
+ * 1 bug fix:
9
+
10
+ * Fixed generate_key if more than one developer on the project.
11
+
1
12
  === 1.9.0 / 2009-02-26:
2
13
 
3
14
  * 7 minor enhancements:
data/Rakefile CHANGED
@@ -2,11 +2,14 @@
2
2
 
3
3
  require './lib/hoe.rb'
4
4
 
5
+ Hoe.add_include_dirs("../../minitest/dev/lib")
6
+
5
7
  Hoe.new("hoe", Hoe::VERSION) do |hoe|
6
8
  hoe.rubyforge_name = "seattlerb"
7
9
 
8
10
  hoe.developer("Ryan Davis", "ryand-ruby@zenspider.com")
9
11
 
12
+ hoe.testlib = :minitest
10
13
  hoe.blog_categories << "Seattle.rb" << "Ruby"
11
14
  end
12
15
 
data/lib/hoe.rb CHANGED
@@ -130,7 +130,7 @@ end
130
130
  #
131
131
 
132
132
  class Hoe
133
- VERSION = '1.9.0'
133
+ VERSION = '1.10.0'
134
134
  GEMURL = URI.parse 'http://gems.rubyforge.org' # for namespace :deps below
135
135
 
136
136
  ruby_prefix = Config::CONFIG['prefix']
@@ -239,6 +239,11 @@ class Hoe
239
239
 
240
240
  attr_accessor :extra_rdoc_files
241
241
 
242
+ ##
243
+ # Optional: flay threshold to determine threshold failure. [default: 200]
244
+
245
+ attr_accessor :flay_threshold
246
+
242
247
  ##
243
248
  # Optional: The filename for the project history. [default: History.txt]
244
249
 
@@ -390,6 +395,7 @@ class Hoe
390
395
  self.extra_deps = []
391
396
  self.extra_dev_deps = []
392
397
  self.extra_rdoc_files = []
398
+ self.flay_threshold = 200
393
399
  self.history_file = "History.txt"
394
400
  self.multiruby_skip = []
395
401
  self.need_tar = true
@@ -557,9 +563,11 @@ class Hoe
557
563
  # skip
558
564
  end
559
565
 
560
- desc "Analyze for code duplication."
561
- task :flay do
562
- sh "find lib test -name \*.rb | xargs flay"
566
+ begin
567
+ require 'flay_task'
568
+ FlayTask.new :flay, self.flay_threshold
569
+ rescue LoadError
570
+ # skip
563
571
  end
564
572
 
565
573
  desc "Analyze code complexity."
@@ -1047,7 +1055,7 @@ class Hoe
1047
1055
 
1048
1056
  desc 'Generate a key for signing your gems.'
1049
1057
  task :generate_key do
1050
- email = spec.email
1058
+ email = Array(spec.email)
1051
1059
  abort "No email in your gemspec" if email.nil? or email.empty?
1052
1060
 
1053
1061
  key_file = with_config { |config, _| config['signing_key_file'] }
@@ -1065,7 +1073,9 @@ class Hoe
1065
1073
  cert_file = File.expand_path cert_file
1066
1074
 
1067
1075
  unless File.exist? key_file or File.exist? cert_file then
1068
- sh "gem cert --build #{email}"
1076
+ warn "NOTICE: using #{email.first} for certificate" if email.size > 1
1077
+
1078
+ sh "gem cert --build #{email.first}"
1069
1079
  mv "gem-private_key.pem", key_file, :verbose => true
1070
1080
  mv "gem-public_cert.pem", cert_file, :verbose => true
1071
1081
 
@@ -1086,15 +1096,15 @@ class Hoe
1086
1096
  rf.lookup('release', cert_package)['certificates']
1087
1097
  rf.add_file rubyforge_name, cert_package, 'certificates', cert_file
1088
1098
  rescue
1099
+ rf.create_package rubyforge_name, cert_package
1089
1100
  rf.add_release rubyforge_name, cert_package, 'certificates', cert_file
1090
1101
  end
1091
1102
 
1092
1103
  puts "Uploaded certificate to release \"certificates\" in package #{cert_package}"
1093
1104
  else
1094
- puts "Keys already exist."
1105
+ puts "Keys already exist: #{key_file} and #{cert_file}"
1095
1106
  end
1096
1107
  end
1097
-
1098
1108
  end # end define
1099
1109
 
1100
1110
  def run_tests(multi=false) # :nodoc:
@@ -1,10 +1,9 @@
1
-
2
- require 'test/unit/testcase'
1
+ require 'minitest/autorun'
3
2
  require 'hoe'
4
3
 
5
4
  $rakefile = nil # shuts up a warning in rdoctask.rb
6
5
 
7
- class TestHoe < Test::Unit::TestCase
6
+ class TestHoe < MiniTest::Unit::TestCase
8
7
  def setup
9
8
  Rake.application.clear
10
9
  end
@@ -49,6 +48,8 @@ class TestHoe < Test::Unit::TestCase
49
48
  test_deps)
50
49
  expected += boring
51
50
 
51
+ expected.delete "flay" unless defined? ::FlayTask
52
+
52
53
  spec = Hoe.new('blah', '1.0.0') do |h|
53
54
  h.developer("name", "email")
54
55
  end
metadata CHANGED
@@ -1,15 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDPjCCAiagAwIBAgIBADANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
+ ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
+ GRYDY29tMB4XDTA5MDMwNjE4NTMxNVoXDTEwMDMwNjE4NTMxNVowRTETMBEGA1UE
16
+ AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
+ JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
+ b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
19
+ taCPaLmfYIaFcHHCSY4hYDJijRQkLxPeB3xbOfzfLoBDbjvx5JxgJxUjmGa7xhcT
20
+ oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
21
+ GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
22
+ qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
23
+ gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
+ HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
25
+ AQAY59gYvDxqSqgC92nAP9P8dnGgfZgLxP237xS6XxFGJSghdz/nI6pusfCWKM8m
26
+ vzjjH2wUMSSf3tNudQ3rCGLf2epkcU13/rguI88wO6MrE0wi4ZqLQX+eZQFskJb/
27
+ w6x9W1ur8eR01s397LSMexySDBrJOh34cm2AlfKr/jokKCTwcM0OvVZnAutaovC0
28
+ l1SVZ0ecg88bsWHA0Yhh7NFxK1utWoIhtB6AFC/+trM0FQEB/jZkIS8SaNzn96Rl
29
+ n0sZEf77FLf5peR8TP/PtmIg7Cyqz23sLM4mCOoTGIy5OcZ8TdyiyINUHtb5ej/T
30
+ FBHgymkyj/AOSqKRIpXPhjC6
31
+ -----END CERTIFICATE-----
11
32
 
12
- date: 2009-02-26 00:00:00 -08:00
33
+ date: 2009-03-09 00:00:00 -07:00
13
34
  default_executable:
14
35
  dependencies:
15
36
  - !ruby/object:Gem::Dependency
@@ -30,7 +51,7 @@ dependencies:
30
51
  requirements:
31
52
  - - ">="
32
53
  - !ruby/object:Gem::Version
33
- version: 0.8.3
54
+ version: 0.8.4
34
55
  version:
35
56
  description: "Hoe is a simple rake/rubygems helper for project Rakefiles. It generates all the usual tasks for projects including rdoc generation, testing, packaging, and deployment. Tasks Provided: * announce - Create news email file and post to rubyforge. * audit - Run ZenTest against the package. * check_extra_deps - Install missing dependencies. * check_manifest - Verify the manifest. * clean - Clean up all the extras. * config_hoe - Create a fresh ~/.hoerc file. * debug_gem - Show information about the gem. * default - Run the default task(s). * deps:email - Print a contact list for gems dependent on this gem * deps:fetch - Fetch all the dependent gems of this gem into tarballs * deps:list - List all the dependent gems of this gem * docs - Build the docs HTML Files * email - Generate email announcement file. * flay - Analyze for code duplication. * flog - Analyze code complexity. * gem - Build the gem file hoe-1.9.0.gem * generate_key - Generate a key for signing your gems. * install_gem - Install the package as a gem. * multi - Run the test suite using multiruby. * package - Build all the packages * post_blog - Post announcement to blog. * post_news - Post announcement to rubyforge. * publish_docs - Publish RDoc to RubyForge. * rcov - Analyze code coverage with tests * release - Package and upload the release to rubyforge. * ridocs - Generate ri locally for testing. * tasks - Generate a list of tasks for doco. * test - Run the test suite. * test_deps - Show which test files fail when run alone. See class rdoc for help. Hint: ri Hoe"
36
57
  email:
Binary file