pera1 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/pera1 +19 -20
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc7644a17a960753af8fec8f8ed727d96f2d9616
|
4
|
+
data.tar.gz: 7df1192c7ff9c8b8f47b6ef5f7de69d7e98c89e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0e4149968f2d0d3eb96371024b30aa9163302697d3d54d13dbbfc5445ae55851aff2dfc4e75a7db2ba8a7e0adcf4852512dbb7a27398ff0e3584e12c3c17c10
|
7
|
+
data.tar.gz: 585865fe9f6ed2487905643649d86b35eff10ccea9769c25df547a788c3a682fbc68f73ca3007b2e0e6da9f135ce0a2ef895f6595c4e093bd9dcdd713fcdf55b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/pera1
CHANGED
@@ -13,7 +13,25 @@ unless File.exist?(file)
|
|
13
13
|
end
|
14
14
|
|
15
15
|
require 'erb'
|
16
|
-
template =
|
16
|
+
template = <<~GEMSPEC
|
17
|
+
Gem::Specification.new do |s|
|
18
|
+
s.name = <%= name.inspect %>
|
19
|
+
s.version = <%= version.inspect %>
|
20
|
+
s.license = <%= license.inspect %>
|
21
|
+
s.summary = <%= summary.inspect %>
|
22
|
+
s.author = <%= author.inspect %>
|
23
|
+
<%- unless email.empty? -%>
|
24
|
+
s.email = <%= email.inspect %>
|
25
|
+
<%- end -%>
|
26
|
+
<%- unless homepage.empty? -%>
|
27
|
+
s.homepage = <%= homepage.inspect %>
|
28
|
+
<%- end -%>
|
29
|
+
<%- if File.executable?(file) -%>
|
30
|
+
s.bindir = '.'
|
31
|
+
s.executables << <%= file.inspect %>
|
32
|
+
<%- end -%>
|
33
|
+
end
|
34
|
+
GEMSPEC
|
17
35
|
|
18
36
|
default = lambda do
|
19
37
|
name = File.basename(file, '.rb')
|
@@ -44,22 +62,3 @@ gemspec = ERB.new(template, nil, '-').result(config)
|
|
44
62
|
dir = File.dirname(file)
|
45
63
|
gemspec_path = File.join(dir, "#{config.local_variable_get('name')}.gemspec")
|
46
64
|
File.write(gemspec_path, gemspec)
|
47
|
-
|
48
|
-
__END__
|
49
|
-
Gem::Specification.new do |s|
|
50
|
-
s.name = <%= name.inspect %>
|
51
|
-
s.version = <%= version.inspect %>
|
52
|
-
s.license = <%= license.inspect %>
|
53
|
-
s.summary = <%= summary.inspect %>
|
54
|
-
s.author = <%= author.inspect %>
|
55
|
-
<%- unless email.empty? -%>
|
56
|
-
s.email = <%= email.inspect %>
|
57
|
-
<%- end -%>
|
58
|
-
<%- unless homepage.empty? -%>
|
59
|
-
s.homepage = <%= homepage.inspect %>
|
60
|
-
<%- end -%>
|
61
|
-
<%- if File.executable?(file) -%>
|
62
|
-
s.bindir = '.'
|
63
|
-
s.executables << <%= file.inspect %>
|
64
|
-
<%- end -%>
|
65
|
-
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|