gem_hadar 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/gem_hadar.gemspec +8 -8
- data/lib/gem_hadar.rb +7 -9
- data/lib/gem_hadar/version.rb +1 -1
- metadata +54 -95
data/Rakefile
CHANGED
@@ -13,8 +13,8 @@ GemHadar do
|
|
13
13
|
ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock'
|
14
14
|
readme 'README.rdoc'
|
15
15
|
|
16
|
-
dependency 'spruz', '~>0.2
|
17
|
-
dependency 'dslkit', '~>0.2
|
16
|
+
dependency 'spruz', '~>0.2'
|
17
|
+
dependency 'dslkit', '~>0.2'
|
18
18
|
dependency 'sdoc', '~>0.2.20'
|
19
19
|
#dependency 'rcov', '~>0.9.9' # Doesn't work on all platforms
|
20
20
|
dependency 'rake', '~>0.9.2'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.10
|
data/gem_hadar.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{gem_hadar}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.10"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = [%q{Florian Frank}]
|
9
|
-
s.date = %q{2011-08-
|
9
|
+
s.date = %q{2011-08-05}
|
10
10
|
s.description = %q{This library contains some useful functionality to support the development of Ruby Gems}
|
11
11
|
s.email = %q{flori@ping.de}
|
12
12
|
s.extra_rdoc_files = [%q{README.rdoc}, %q{lib/gem_hadar.rb}, %q{lib/gem_hadar/version.rb}]
|
@@ -22,21 +22,21 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
24
24
|
s.add_development_dependency(%q<gem_hadar>, ["~> 0.0.9"])
|
25
|
-
s.add_runtime_dependency(%q<spruz>, ["~> 0.2
|
26
|
-
s.add_runtime_dependency(%q<dslkit>, ["~> 0.2
|
25
|
+
s.add_runtime_dependency(%q<spruz>, ["~> 0.2"])
|
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
30
|
s.add_dependency(%q<gem_hadar>, ["~> 0.0.9"])
|
31
|
-
s.add_dependency(%q<spruz>, ["~> 0.2
|
32
|
-
s.add_dependency(%q<dslkit>, ["~> 0.2
|
31
|
+
s.add_dependency(%q<spruz>, ["~> 0.2"])
|
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
37
|
s.add_dependency(%q<gem_hadar>, ["~> 0.0.9"])
|
38
|
-
s.add_dependency(%q<spruz>, ["~> 0.2
|
39
|
-
s.add_dependency(%q<dslkit>, ["~> 0.2
|
38
|
+
s.add_dependency(%q<spruz>, ["~> 0.2"])
|
39
|
+
s.add_dependency(%q<dslkit>, ["~> 0.2"])
|
40
40
|
s.add_dependency(%q<sdoc>, ["~> 0.2.20"])
|
41
41
|
s.add_dependency(%q<rake>, ["~> 0.9.2"])
|
42
42
|
end
|
data/lib/gem_hadar.rb
CHANGED
@@ -34,7 +34,7 @@ class GemHadar
|
|
34
34
|
end
|
35
35
|
include Rake::DSL
|
36
36
|
extend DSLKit::DSLAccessor
|
37
|
-
include Spruz::
|
37
|
+
include Spruz::SecureWrite
|
38
38
|
|
39
39
|
def initialize(&block)
|
40
40
|
@dependencies = []
|
@@ -253,7 +253,7 @@ class GemHadar
|
|
253
253
|
task :version do
|
254
254
|
puts m
|
255
255
|
mkdir_p dir = File.join('lib', path_name)
|
256
|
-
|
256
|
+
secure_write(File.join(dir, 'version.rb')) do |v|
|
257
257
|
v.puts <<EOT
|
258
258
|
#{module_type} #{path_module}
|
259
259
|
# #{path_module} version
|
@@ -273,9 +273,7 @@ EOT
|
|
273
273
|
task :gemspec => :version do
|
274
274
|
filename = "#{name}.gemspec"
|
275
275
|
warn "Writing to #{filename.inspect} for #{version}"
|
276
|
-
|
277
|
-
output.write gemspec.to_ruby
|
278
|
-
end
|
276
|
+
seecure_write(filename, gemspec.to_ruby)
|
279
277
|
end
|
280
278
|
end
|
281
279
|
|
@@ -336,19 +334,19 @@ EOT
|
|
336
334
|
else
|
337
335
|
desc 'Run the rcov code coverage tests'
|
338
336
|
task :rcov => [ (:compile if extensions.full?) ].compact do
|
339
|
-
warn "rcov doesn't work for some reason"
|
337
|
+
warn "rcov doesn't work for some reason, have you tried 'gem install rcov'?"
|
340
338
|
end
|
341
339
|
end
|
342
340
|
end
|
343
341
|
|
344
342
|
def write_ignore_file
|
345
|
-
|
343
|
+
secure_write('.gitignore') do |output|
|
346
344
|
output.puts(*ignore.sort)
|
347
345
|
end
|
348
346
|
end
|
349
347
|
|
350
348
|
def write_gemfile
|
351
|
-
|
349
|
+
secure_write('Gemfile') do |output|
|
352
350
|
output.puts <<EOT
|
353
351
|
# vim: set filetype=ruby et sw=2 ts=2:
|
354
352
|
|
@@ -393,7 +391,7 @@ EOT
|
|
393
391
|
def rvm_task
|
394
392
|
desc 'Create .rvmrc file'
|
395
393
|
task :rvm do
|
396
|
-
|
394
|
+
secure_write('.rvmrc') do |output|
|
397
395
|
output.write <<EOT
|
398
396
|
rvm use #{rvm.use}
|
399
397
|
rvm gemset create #{rvm.gemset}
|
data/lib/gem_hadar/version.rb
CHANGED
metadata
CHANGED
@@ -1,113 +1,81 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_hadar
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.10
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 9
|
10
|
-
version: 0.0.9
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Florian Frank
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-08-05 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: gem_hadar
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2156966340 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 13
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
- 0
|
32
|
-
- 9
|
20
|
+
- !ruby/object:Gem::Version
|
33
21
|
version: 0.0.9
|
34
22
|
type: :development
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: spruz
|
38
23
|
prerelease: false
|
39
|
-
|
24
|
+
version_requirements: *2156966340
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: spruz
|
27
|
+
requirement: &2156965860 !ruby/object:Gem::Requirement
|
40
28
|
none: false
|
41
|
-
requirements:
|
29
|
+
requirements:
|
42
30
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
segments:
|
46
|
-
- 0
|
47
|
-
- 2
|
48
|
-
- 10
|
49
|
-
version: 0.2.10
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.2'
|
50
33
|
type: :runtime
|
51
|
-
version_requirements: *id002
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
name: dslkit
|
54
34
|
prerelease: false
|
55
|
-
|
35
|
+
version_requirements: *2156965860
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: dslkit
|
38
|
+
requirement: &2156965400 !ruby/object:Gem::Requirement
|
56
39
|
none: false
|
57
|
-
requirements:
|
40
|
+
requirements:
|
58
41
|
- - ~>
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
|
61
|
-
segments:
|
62
|
-
- 0
|
63
|
-
- 2
|
64
|
-
- 7
|
65
|
-
version: 0.2.7
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0.2'
|
66
44
|
type: :runtime
|
67
|
-
version_requirements: *id003
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
|
-
name: sdoc
|
70
45
|
prerelease: false
|
71
|
-
|
46
|
+
version_requirements: *2156965400
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: sdoc
|
49
|
+
requirement: &2156964940 !ruby/object:Gem::Requirement
|
72
50
|
none: false
|
73
|
-
requirements:
|
51
|
+
requirements:
|
74
52
|
- - ~>
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
hash: 63
|
77
|
-
segments:
|
78
|
-
- 0
|
79
|
-
- 2
|
80
|
-
- 20
|
53
|
+
- !ruby/object:Gem::Version
|
81
54
|
version: 0.2.20
|
82
55
|
type: :runtime
|
83
|
-
version_requirements: *id004
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: rake
|
86
56
|
prerelease: false
|
87
|
-
|
57
|
+
version_requirements: *2156964940
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rake
|
60
|
+
requirement: &2156964520 !ruby/object:Gem::Requirement
|
88
61
|
none: false
|
89
|
-
requirements:
|
62
|
+
requirements:
|
90
63
|
- - ~>
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
hash: 63
|
93
|
-
segments:
|
94
|
-
- 0
|
95
|
-
- 9
|
96
|
-
- 2
|
64
|
+
- !ruby/object:Gem::Version
|
97
65
|
version: 0.9.2
|
98
66
|
type: :runtime
|
99
|
-
|
100
|
-
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *2156964520
|
69
|
+
description: This library contains some useful functionality to support the development
|
70
|
+
of Ruby Gems
|
101
71
|
email: flori@ping.de
|
102
72
|
executables: []
|
103
|
-
|
104
73
|
extensions: []
|
105
|
-
|
106
|
-
extra_rdoc_files:
|
74
|
+
extra_rdoc_files:
|
107
75
|
- README.rdoc
|
108
76
|
- lib/gem_hadar.rb
|
109
77
|
- lib/gem_hadar/version.rb
|
110
|
-
files:
|
78
|
+
files:
|
111
79
|
- .gitignore
|
112
80
|
- Gemfile
|
113
81
|
- LICENSE
|
@@ -119,39 +87,30 @@ files:
|
|
119
87
|
- lib/gem_hadar/version.rb
|
120
88
|
homepage: http://github.com/flori/gem_hadar
|
121
89
|
licenses: []
|
122
|
-
|
123
90
|
post_install_message:
|
124
|
-
rdoc_options:
|
91
|
+
rdoc_options:
|
125
92
|
- --title
|
126
93
|
- GemHadar - Library for the development of Ruby Gems
|
127
94
|
- --main
|
128
95
|
- README.rdoc
|
129
|
-
require_paths:
|
96
|
+
require_paths:
|
130
97
|
- lib
|
131
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
132
99
|
none: false
|
133
|
-
requirements:
|
134
|
-
- -
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
|
137
|
-
|
138
|
-
- 0
|
139
|
-
version: "0"
|
140
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
105
|
none: false
|
142
|
-
requirements:
|
143
|
-
- -
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
|
146
|
-
segments:
|
147
|
-
- 0
|
148
|
-
version: "0"
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
149
110
|
requirements: []
|
150
|
-
|
151
111
|
rubyforge_project:
|
152
112
|
rubygems_version: 1.8.6
|
153
113
|
signing_key:
|
154
114
|
specification_version: 3
|
155
115
|
summary: Library for the development of Ruby Gems
|
156
116
|
test_files: []
|
157
|
-
|