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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3485813a51905844b116f044e8036d27ebb9f705a30a601af71a5673fcdbfd8e
4
- data.tar.gz: 7476304aa70884ad28db26a99e33f63eb44c15ae773cf06b39ee37d917a99eb1
3
+ metadata.gz: d7db3212a84276d90afc70191bba373b0b7e3f52fa51778b6cc45d4575094c8c
4
+ data.tar.gz: 444e7bc968b5785f16b5a06e9c3c34bdde7f16200a100187164bacc037e7b63e
5
5
  SHA512:
6
- metadata.gz: 96d0c84146af6926e9836efb80c1a32ada09daa2d059913dd263fa88df12c9fb5b45cd9b8fa0e6147dbe339881e9b3df9ee12f31d01c5633b7e9c02d7014d316
7
- data.tar.gz: ded87a797246a3bed4b9a55c0d0a8ef4a6e7b53ca5887f59581c1991965bc98444f296721de092fc26f4fd9dd4d35c50fa5ae86894f428f931a8a5c26166fdd9
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.1'
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')
@@ -0,0 +1,8 @@
1
+ Gem::Specification.new do |g|
2
+ g.name = '<%= @gem_name %>'
3
+ g.files = ['lib/<%= @gem_name.gsub('-', '/') %>.rb']
4
+ g.version = '0.0.0'
5
+ g.summary = 'A valid summary.'
6
+ g.authors = ['Anatoly Chernov']
7
+ g.email = ['chertoly@gmail.com']
8
+ end
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.1
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-09 00:00:00.000000000 Z
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.15
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.