gem_hadar 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/gem_hadar.gemspec +2 -2
- data/lib/gem_hadar.rb +30 -3
- data/lib/gem_hadar/version.rb +1 -1
- metadata +12 -12
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/gem_hadar.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "gem_hadar"
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Florian Frank"]
|
9
|
-
s.date = "2011-09-
|
9
|
+
s.date = "2011-09-27"
|
10
10
|
s.description = "This library contains some useful functionality to support the development of Ruby Gems"
|
11
11
|
s.email = "flori@ping.de"
|
12
12
|
s.extra_rdoc_files = ["README.rdoc", "lib/gem_hadar.rb", "lib/gem_hadar/version.rb"]
|
data/lib/gem_hadar.rb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
|
2
2
|
require 'rubygems'
|
3
|
-
require 'tins/xt'
|
4
|
-
require 'tins/secure_write'
|
5
3
|
require 'rbconfig'
|
6
4
|
if defined?(::RbConfig)
|
7
5
|
include ::RbConfig
|
8
6
|
else
|
9
7
|
include ::Config
|
10
8
|
end
|
9
|
+
begin
|
10
|
+
require 'simplecov'
|
11
|
+
rescue LoadError
|
12
|
+
end
|
11
13
|
require 'rake'
|
12
14
|
begin
|
13
15
|
require 'rubygems/package_task'
|
@@ -17,6 +19,8 @@ begin
|
|
17
19
|
require 'rcov/rcovtask'
|
18
20
|
rescue LoadError
|
19
21
|
end
|
22
|
+
require 'tins/xt'
|
23
|
+
require 'tins/secure_write'
|
20
24
|
require 'rake/clean'
|
21
25
|
require 'rake/testtask'
|
22
26
|
require 'dslkit/polite'
|
@@ -335,14 +339,36 @@ EOT
|
|
335
339
|
end
|
336
340
|
desc 'Run the rcov code coverage tests'
|
337
341
|
task :rcov => [ (:compile if extensions.full?), rt.name ].compact
|
342
|
+
clobber 'coverage'
|
338
343
|
else
|
339
344
|
desc 'Run the rcov code coverage tests'
|
340
|
-
task :rcov
|
345
|
+
task :rcov do
|
341
346
|
warn "rcov doesn't work for some reason, have you tried 'gem install rcov'?"
|
342
347
|
end
|
343
348
|
end
|
344
349
|
end
|
345
350
|
|
351
|
+
def simplecov_task
|
352
|
+
if defined?(::SimpleCov)
|
353
|
+
rt = ::Rake::Task.define_task(:run_simplecov) do
|
354
|
+
SimpleCov.start
|
355
|
+
require 'test/unit'
|
356
|
+
$:.unshift test_dir, *require_paths
|
357
|
+
for f in test_files
|
358
|
+
load f
|
359
|
+
end
|
360
|
+
end
|
361
|
+
desc 'Run the simplecov code coverage tests'
|
362
|
+
task :simplecov => [ (:compile if extensions.full?), rt.name ].compact
|
363
|
+
clobber 'coverage'
|
364
|
+
else
|
365
|
+
desc 'Run the simplecov code coverage tests'
|
366
|
+
task :simplecov do
|
367
|
+
warn "simplecov doesn't work for some reason, have you tried 'gem install simplecov'?"
|
368
|
+
end
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
346
372
|
def write_ignore_file
|
347
373
|
secure_write('.gitignore') do |output|
|
348
374
|
output.puts(*ignore.sort)
|
@@ -416,6 +442,7 @@ EOT
|
|
416
442
|
if test_dir
|
417
443
|
test_task
|
418
444
|
rcov_task
|
445
|
+
simplecov_task
|
419
446
|
end
|
420
447
|
package_task
|
421
448
|
install_library_task
|
data/lib/gem_hadar/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_hadar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-
|
12
|
+
date: 2011-09-27 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gem_hadar
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152703320 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.1.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2152703320
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: tins
|
27
|
-
requirement: &
|
27
|
+
requirement: &2152702860 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0.3'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2152702860
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dslkit
|
38
|
-
requirement: &
|
38
|
+
requirement: &2152702420 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0.2'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2152702420
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sdoc
|
49
|
-
requirement: &
|
49
|
+
requirement: &2152701960 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.2.20
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2152701960
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rake
|
60
|
-
requirement: &
|
60
|
+
requirement: &2152701500 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: 0.9.2
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2152701500
|
69
69
|
description: This library contains some useful functionality to support the development
|
70
70
|
of Ruby Gems
|
71
71
|
email: flori@ping.de
|