gem_hadar 0.0.4 → 0.0.5
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 +5 -5
- data/lib/gem_hadar.rb +11 -10
- data/lib/gem_hadar/version.rb +1 -1
- metadata +7 -7
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
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.5"
|
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 = %q{2011-07-
|
9
|
+
s.date = %q{2011-07-17}
|
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 = ["README.rdoc", "lib/gem_hadar.rb", "lib/gem_hadar/version.rb"]
|
@@ -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.0.
|
24
|
+
s.add_development_dependency(%q<gem_hadar>, ["~> 0.0.5"])
|
25
25
|
s.add_runtime_dependency(%q<spruz>, ["~> 0.2.10"])
|
26
26
|
s.add_runtime_dependency(%q<dslkit>, ["~> 0.2.6"])
|
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.0.
|
30
|
+
s.add_dependency(%q<gem_hadar>, ["~> 0.0.5"])
|
31
31
|
s.add_dependency(%q<spruz>, ["~> 0.2.10"])
|
32
32
|
s.add_dependency(%q<dslkit>, ["~> 0.2.6"])
|
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.0.
|
37
|
+
s.add_dependency(%q<gem_hadar>, ["~> 0.0.5"])
|
38
38
|
s.add_dependency(%q<spruz>, ["~> 0.2.10"])
|
39
39
|
s.add_dependency(%q<dslkit>, ["~> 0.2.6"])
|
40
40
|
s.add_dependency(%q<sdoc>, ["~> 0.2.20"])
|
data/lib/gem_hadar.rb
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
require 'rubygems'
|
3
3
|
require 'spruz/xt'
|
4
4
|
require 'rbconfig'
|
5
|
-
if defined?(::
|
6
|
-
include ::Config
|
7
|
-
else
|
5
|
+
if defined?(::RbConfig)
|
8
6
|
include ::RbConfig
|
7
|
+
else
|
8
|
+
include ::Config
|
9
9
|
end
|
10
10
|
require 'rake'
|
11
11
|
begin
|
@@ -27,13 +27,14 @@ def GemHadar(&block)
|
|
27
27
|
end
|
28
28
|
|
29
29
|
class GemHadar
|
30
|
-
if defined?(::
|
31
|
-
include ::Config
|
32
|
-
else
|
30
|
+
if defined?(::RbConfig)
|
33
31
|
include ::RbConfig
|
32
|
+
else
|
33
|
+
include ::Config
|
34
34
|
end
|
35
35
|
include Rake::DSL
|
36
36
|
extend DSLKit::DSLAccessor
|
37
|
+
include Spruz::Write
|
37
38
|
|
38
39
|
def initialize(&block)
|
39
40
|
@dependencies = []
|
@@ -229,7 +230,7 @@ class GemHadar
|
|
229
230
|
task :version do
|
230
231
|
puts m
|
231
232
|
mkdir_p dir = File.join('lib', path_name)
|
232
|
-
|
233
|
+
write(File.join(dir, 'version.rb')) do |v|
|
233
234
|
v.puts <<EOT
|
234
235
|
#{module_type} #{path_module}
|
235
236
|
# #{path_module} version
|
@@ -249,7 +250,7 @@ EOT
|
|
249
250
|
task :gemspec => :version do
|
250
251
|
filename = "#{name}.gemspec"
|
251
252
|
warn "Writing to #{filename.inspect} for #{version}"
|
252
|
-
|
253
|
+
write(filename) do |output|
|
253
254
|
output.write gemspec.to_ruby
|
254
255
|
end
|
255
256
|
end
|
@@ -318,13 +319,13 @@ EOT
|
|
318
319
|
end
|
319
320
|
|
320
321
|
def write_ignore_file
|
321
|
-
|
322
|
+
write('.gitignore') do |output|
|
322
323
|
output.puts(*ignore)
|
323
324
|
end
|
324
325
|
end
|
325
326
|
|
326
327
|
def write_gemfile
|
327
|
-
|
328
|
+
write('Gemfile') do |output|
|
328
329
|
output.puts <<EOT
|
329
330
|
# vim: set filetype=ruby et sw=2 ts=2:
|
330
331
|
|
data/lib/gem_hadar/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_hadar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Florian Frank
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-07-
|
18
|
+
date: 2011-07-17 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 21
|
30
30
|
segments:
|
31
31
|
- 0
|
32
32
|
- 0
|
33
|
-
-
|
34
|
-
version: 0.0.
|
33
|
+
- 5
|
34
|
+
version: 0.0.5
|
35
35
|
type: :development
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|