bgem-new 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
- data/bgem-new.gemspec +1 -1
- data/lib/bgem/lib.rb +2 -1
- data/lib/bgem/templates/gemspec.nested.erb +8 -0
- metadata +5 -4
- /data/lib/bgem/templates/{gemspec.erb → gemspec.top.erb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7db3212a84276d90afc70191bba373b0b7e3f52fa51778b6cc45d4575094c8c
|
4
|
+
data.tar.gz: 444e7bc968b5785f16b5a06e9c3c34bdde7f16200a100187164bacc037e7b63e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dfdecd135576e6f2e4aaa2e2d3d43873615e7056f5f0c8afb90a0a2ab5cc1c0d9beca79b6cfae700fc20284440c408f5d72497faee44b8f8a03c3698c379845
|
7
|
+
data.tar.gz: 83f36c9b6b87afd6d3b7e71eec5967b035dc955890697f525850b0fa7d1f47a3fee544f2e13c2323049ceb0b549175fa85d57af114641cf5be7bb4b476a65a6e
|
data/bgem-new.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |g|
|
2
2
|
g.name = 'bgem-new'
|
3
3
|
g.files = `git ls-files`.split($/)
|
4
|
-
g.version = '0.0.
|
4
|
+
g.version = '0.0.2'
|
5
5
|
g.summary = 'A CLI to generate new Bgem projects.'
|
6
6
|
g.authors = ['Anatoly Chernov']
|
7
7
|
g.homepage = 'https://github.com/ch1c0t/bgem-new'
|
data/lib/bgem/lib.rb
CHANGED
@@ -26,7 +26,6 @@ module Bgem
|
|
26
26
|
|
27
27
|
def create_common
|
28
28
|
Dir.mkdir @root
|
29
|
-
IO.write "#{@root}/#{@gem_name}.gemspec", (template :gemspec)
|
30
29
|
|
31
30
|
copy "#{TEMPLATES}/Gemfile", "#{@root}/Gemfile"
|
32
31
|
copy "#{TEMPLATES}/Rakefile", "#{@root}/Rakefile"
|
@@ -38,6 +37,7 @@ module Bgem
|
|
38
37
|
end
|
39
38
|
|
40
39
|
def create_for_top_constant
|
40
|
+
IO.write "#{@root}/#{@gem_name}.gemspec", (template 'gemspec.top')
|
41
41
|
copy "#{TEMPLATES}/module_stub.rb", "#{@root}/src/#{@name}.module.rb"
|
42
42
|
IO.write "#{@root}/bgem/config.rb", (template 'bgem-config.top')
|
43
43
|
IO.write "#{@root}/spec/helper.rb", (template 'rspec-helper.top')
|
@@ -45,6 +45,7 @@ module Bgem
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def create_for_nested_constant
|
48
|
+
IO.write "#{@root}/#{@gem_name}.gemspec", (template 'gemspec.nested')
|
48
49
|
copy "#{TEMPLATES}/module_stub.rb", "#{@root}/src/#{@constants.last}.module.rb"
|
49
50
|
IO.write "#{@root}/bgem/config.rb", (template 'bgem-config.nested')
|
50
51
|
IO.write "#{@root}/spec/helper.rb", (template 'rspec-helper.nested')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bgem-new
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatoly Chernov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -29,7 +29,8 @@ files:
|
|
29
29
|
- lib/bgem/templates/Rakefile
|
30
30
|
- lib/bgem/templates/bgem-config.nested.erb
|
31
31
|
- lib/bgem/templates/bgem-config.top.erb
|
32
|
-
- lib/bgem/templates/gemspec.erb
|
32
|
+
- lib/bgem/templates/gemspec.nested.erb
|
33
|
+
- lib/bgem/templates/gemspec.top.erb
|
33
34
|
- lib/bgem/templates/gitignore
|
34
35
|
- lib/bgem/templates/main_spec.nested.erb
|
35
36
|
- lib/bgem/templates/main_spec.top.erb
|
@@ -54,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
55
|
- !ruby/object:Gem::Version
|
55
56
|
version: '0'
|
56
57
|
requirements: []
|
57
|
-
rubygems_version: 3.4.
|
58
|
+
rubygems_version: 3.4.18
|
58
59
|
signing_key:
|
59
60
|
specification_version: 4
|
60
61
|
summary: A CLI to generate new Bgem projects.
|
File without changes
|