gem_hadar 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/gem_hadar.gemspec +6 -6
- data/lib/gem_hadar.rb +40 -10
- data/lib/gem_hadar/version.rb +1 -1
- metadata +14 -17
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/gem_hadar.gemspec
CHANGED
@@ -2,14 +2,14 @@
|
|
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.4"
|
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-
|
9
|
+
s.date = "2011-12-02"
|
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
|
-
s.extra_rdoc_files = ["README.rdoc", "lib/gem_hadar
|
12
|
+
s.extra_rdoc_files = ["README.rdoc", "lib/gem_hadar.rb", "lib/gem_hadar/version.rb"]
|
13
13
|
s.files = [".gitignore", "Gemfile", "LICENSE", "README.rdoc", "Rakefile", "VERSION", "gem_hadar.gemspec", "lib/gem_hadar.rb", "lib/gem_hadar/version.rb"]
|
14
14
|
s.homepage = "http://github.com/flori/gem_hadar"
|
15
15
|
s.rdoc_options = ["--title", "GemHadar - Library for the development of Ruby Gems", "--main", "README.rdoc"]
|
@@ -21,20 +21,20 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.specification_version = 3
|
22
22
|
|
23
23
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
24
|
-
s.add_development_dependency(%q<gem_hadar>, ["~> 0.1.
|
24
|
+
s.add_development_dependency(%q<gem_hadar>, ["~> 0.1.4"])
|
25
25
|
s.add_runtime_dependency(%q<tins>, [">= 0.3.3"])
|
26
26
|
s.add_runtime_dependency(%q<dslkit>, ["~> 0.2"])
|
27
27
|
s.add_runtime_dependency(%q<sdoc>, ["~> 0.2.20"])
|
28
28
|
s.add_runtime_dependency(%q<rake>, ["~> 0.9.2"])
|
29
29
|
else
|
30
|
-
s.add_dependency(%q<gem_hadar>, ["~> 0.1.
|
30
|
+
s.add_dependency(%q<gem_hadar>, ["~> 0.1.4"])
|
31
31
|
s.add_dependency(%q<tins>, [">= 0.3.3"])
|
32
32
|
s.add_dependency(%q<dslkit>, ["~> 0.2"])
|
33
33
|
s.add_dependency(%q<sdoc>, ["~> 0.2.20"])
|
34
34
|
s.add_dependency(%q<rake>, ["~> 0.9.2"])
|
35
35
|
end
|
36
36
|
else
|
37
|
-
s.add_dependency(%q<gem_hadar>, ["~> 0.1.
|
37
|
+
s.add_dependency(%q<gem_hadar>, ["~> 0.1.4"])
|
38
38
|
s.add_dependency(%q<tins>, [">= 0.3.3"])
|
39
39
|
s.add_dependency(%q<dslkit>, ["~> 0.2"])
|
40
40
|
s.add_dependency(%q<sdoc>, ["~> 0.2.20"])
|
data/lib/gem_hadar.rb
CHANGED
@@ -332,7 +332,6 @@ EOT
|
|
332
332
|
def spec_task
|
333
333
|
if defined?(::RSpec::Core::RakeTask)
|
334
334
|
st = RSpec::Core::RakeTask.new(:run_specs) do |t|
|
335
|
-
t.ruby_opts ||= ''
|
336
335
|
t.ruby_opts << ' -I' << ([ spec_dir ] + require_paths.to_a).uniq * ':'
|
337
336
|
t.pattern = spec_pattern
|
338
337
|
t.verbose = true
|
@@ -362,18 +361,25 @@ EOT
|
|
362
361
|
end
|
363
362
|
end
|
364
363
|
|
364
|
+
def self.start_simplecov
|
365
|
+
filter = "#{File.basename(File.dirname(caller.first))}/"
|
366
|
+
require_maybe 'simplecov'
|
367
|
+
defined?(SimpleCov) and
|
368
|
+
SimpleCov.start do
|
369
|
+
add_filter filter
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
365
373
|
def simplecov_task
|
366
374
|
if defined?(::SimpleCov)
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
load f
|
373
|
-
end
|
375
|
+
tt = ::Rake::TestTask.new(:run_simplecov) do |t|
|
376
|
+
t.test_files = test_files
|
377
|
+
t.ruby_opts << '-I' << ([ test_dir ] + require_paths.to_a).uniq * ':'
|
378
|
+
t.verbose = true
|
379
|
+
t.warning = true
|
374
380
|
end
|
375
381
|
desc 'Run the simplecov code coverage tests'
|
376
|
-
task :simplecov => [ (:compile if extensions.full?),
|
382
|
+
task :simplecov => [ (:compile if extensions.full?), tt.name ].compact
|
377
383
|
clobber 'coverage'
|
378
384
|
else
|
379
385
|
desc 'Run the simplecov code coverage tests'
|
@@ -416,7 +422,7 @@ EOT
|
|
416
422
|
task :tag do
|
417
423
|
begin
|
418
424
|
sh "git tag -a -m 'Version #{version}' #{'-f' if ENV['FORCE']} v#{version}"
|
419
|
-
rescue RuntimeError
|
425
|
+
rescue RuntimeError
|
420
426
|
warn "Call rake with FORCE=1 to overwrite version tag #{version}"
|
421
427
|
exit 1
|
422
428
|
end
|
@@ -424,6 +430,28 @@ EOT
|
|
424
430
|
end
|
425
431
|
end
|
426
432
|
|
433
|
+
def git_remote
|
434
|
+
ENV['GIT_REMOTE'] || 'origin'
|
435
|
+
end
|
436
|
+
|
437
|
+
def version_push_task
|
438
|
+
namespace :version do
|
439
|
+
desc "Push all versions to git remote"
|
440
|
+
task :push do
|
441
|
+
sh "git push #{git_remote} --tags"
|
442
|
+
end
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
446
|
+
def master_push_task
|
447
|
+
namespace :master do
|
448
|
+
desc "Push master to git remote"
|
449
|
+
task :push do
|
450
|
+
sh "git push #{git_remote} master"
|
451
|
+
end
|
452
|
+
end
|
453
|
+
end
|
454
|
+
|
427
455
|
def compile_task
|
428
456
|
for file in extensions
|
429
457
|
dir = File.dirname(file)
|
@@ -471,6 +499,8 @@ EOT
|
|
471
499
|
package_task
|
472
500
|
install_library_task
|
473
501
|
version_tag_task
|
502
|
+
version_push_task
|
503
|
+
master_push_task
|
474
504
|
write_ignore_file
|
475
505
|
write_gemfile
|
476
506
|
if extensions.full?
|
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.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gem_hadar
|
16
|
-
requirement: &
|
16
|
+
requirement: &75864040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.1.
|
21
|
+
version: 0.1.4
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *75864040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: tins
|
27
|
-
requirement: &
|
27
|
+
requirement: &75863790 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.3.3
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *75863790
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dslkit
|
38
|
-
requirement: &
|
38
|
+
requirement: &75863520 !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: *75863520
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sdoc
|
49
|
-
requirement: &
|
49
|
+
requirement: &76359410 !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: *76359410
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rake
|
60
|
-
requirement: &
|
60
|
+
requirement: &76359140 !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: *76359140
|
69
69
|
description: This library contains some useful functionality to support the development
|
70
70
|
of Ruby Gems
|
71
71
|
email: flori@ping.de
|
@@ -73,8 +73,8 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files:
|
75
75
|
- README.rdoc
|
76
|
-
- lib/gem_hadar/version.rb
|
77
76
|
- lib/gem_hadar.rb
|
77
|
+
- lib/gem_hadar/version.rb
|
78
78
|
files:
|
79
79
|
- .gitignore
|
80
80
|
- Gemfile
|
@@ -101,9 +101,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
101
|
- - ! '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
|
-
segments:
|
105
|
-
- 0
|
106
|
-
hash: 972068881576865591
|
107
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
105
|
none: false
|
109
106
|
requirements:
|