hoe 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +3 -3
- data/History.txt +8 -1
- data/lib/hoe.rb +25 -17
- data/test/test_hoe.rb +1 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
��
|
2
|
-
�
|
3
|
-
�
|
1
|
+
8�<��!���=x��EŁM:#T���v�ZXx?��z�η�����D�
|
2
|
+
���g�?ߦU��3[��Vj�ɒ9��|ޗ`3�C�1��xv�&��X�&�ĝϩ�~�;o�
|
3
|
+
�u#��҉#-���������LXvf�c0�����V
|
data/History.txt
CHANGED
@@ -1,8 +1,15 @@
|
|
1
|
+
=== 1.11.0 / 2009-03-16
|
2
|
+
|
3
|
+
* 2 minor enhancements:
|
4
|
+
|
5
|
+
* Added timebomb method. Set flay/flog thresholds to degrade over time.
|
6
|
+
* Switched to flog's new FlogTask, added flog_threshold.
|
7
|
+
|
1
8
|
=== 1.10.0 / 2009-03-09
|
2
9
|
|
3
10
|
* 2 minor enhancements:
|
4
11
|
|
5
|
-
* Switched to flay's new FlayTask, added flay_threshold
|
12
|
+
* Switched to flay's new FlayTask, added flay_threshold.
|
6
13
|
* generate_key now creates the certificate package automatically.
|
7
14
|
|
8
15
|
* 1 bug fix:
|
data/lib/hoe.rb
CHANGED
@@ -130,7 +130,7 @@ end
|
|
130
130
|
#
|
131
131
|
|
132
132
|
class Hoe
|
133
|
-
VERSION = '1.
|
133
|
+
VERSION = '1.11.0'
|
134
134
|
GEMURL = URI.parse 'http://gems.rubyforge.org' # for namespace :deps below
|
135
135
|
|
136
136
|
ruby_prefix = Config::CONFIG['prefix']
|
@@ -240,10 +240,15 @@ class Hoe
|
|
240
240
|
attr_accessor :extra_rdoc_files
|
241
241
|
|
242
242
|
##
|
243
|
-
# Optional: flay threshold to determine threshold failure. [default:
|
243
|
+
# Optional: flay threshold to determine threshold failure. [default: 1200-100]
|
244
244
|
|
245
245
|
attr_accessor :flay_threshold
|
246
246
|
|
247
|
+
##
|
248
|
+
# Optional: flog threshold to determine threshold failure. [default: 1500-200]
|
249
|
+
|
250
|
+
attr_accessor :flog_threshold
|
251
|
+
|
247
252
|
##
|
248
253
|
# Optional: The filename for the project history. [default: History.txt]
|
249
254
|
|
@@ -381,6 +386,15 @@ class Hoe
|
|
381
386
|
warn " run `sow blah` and look at its text files"
|
382
387
|
end
|
383
388
|
|
389
|
+
def timebomb n, m, finis = '2010-04-01', start = '2009-03-14'
|
390
|
+
finis = Time.parse finis
|
391
|
+
start = Time.parse start
|
392
|
+
rest = (finis - Time.now)
|
393
|
+
full = (finis - start)
|
394
|
+
|
395
|
+
((n - m) * rest / full).to_i + m
|
396
|
+
end
|
397
|
+
|
384
398
|
def initialize(name, version) # :nodoc:
|
385
399
|
self.name = name
|
386
400
|
self.version = version
|
@@ -395,7 +409,8 @@ class Hoe
|
|
395
409
|
self.extra_deps = []
|
396
410
|
self.extra_dev_deps = []
|
397
411
|
self.extra_rdoc_files = []
|
398
|
-
self.flay_threshold =
|
412
|
+
self.flay_threshold = timebomb 1200, 100 # 80% of average :(
|
413
|
+
self.flog_threshold = timebomb 1500, 1000 # 80% of average :(
|
399
414
|
self.history_file = "History.txt"
|
400
415
|
self.multiruby_skip = []
|
401
416
|
self.need_tar = true
|
@@ -564,26 +579,19 @@ class Hoe
|
|
564
579
|
end
|
565
580
|
|
566
581
|
begin
|
582
|
+
require 'flay'
|
567
583
|
require 'flay_task'
|
568
584
|
FlayTask.new :flay, self.flay_threshold
|
569
585
|
rescue LoadError
|
570
586
|
# skip
|
571
587
|
end
|
572
588
|
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
print "test: "
|
580
|
-
sh "flog -s test"
|
581
|
-
end
|
582
|
-
|
583
|
-
if File.directory? "spec" then
|
584
|
-
print "spec: "
|
585
|
-
sh "flog -s spec"
|
586
|
-
end
|
589
|
+
begin
|
590
|
+
require 'flog'
|
591
|
+
require 'flog_task'
|
592
|
+
FlogTask.new :flog, self.flog_threshold
|
593
|
+
rescue LoadError
|
594
|
+
# skip
|
587
595
|
end
|
588
596
|
|
589
597
|
############################################################
|
data/test/test_hoe.rb
CHANGED
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.
|
4
|
+
version: 1.11.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-03-
|
33
|
+
date: 2009-03-16 00:00:00 -07:00
|
34
34
|
default_executable:
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
Binary file
|