pera1 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/pera1 +19 -20
  4. data.tar.gz.sig +0 -0
  5. metadata +1 -1
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fed738b03425a69c32b26a042eab93be6b9eef69
4
- data.tar.gz: d8cd48719fe68630a2d3100c327b461024f0afe1
3
+ metadata.gz: fc7644a17a960753af8fec8f8ed727d96f2d9616
4
+ data.tar.gz: 7df1192c7ff9c8b8f47b6ef5f7de69d7e98c89e4
5
5
  SHA512:
6
- metadata.gz: 971d9f978584be9eab2420a102974d0dedc241c708ea8352c8984e342f843d350b9bb4a272c05693b46477a404c598be6fdb21d108206a43e09664fabf57244b
7
- data.tar.gz: f5225c400e3c3b2392adcb1dc621c5e2626d40cd87a4223bc76b8bbaf1d2b268c9c2782af532239e9f99146309b446dda956084d8d1e5d284401b4cb6f7b529e
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 = DATA.read
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pera1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seiei Miyagi
metadata.gz.sig CHANGED
Binary file