bgem-new 0.0.0 → 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: 943eb1c6f6d3f90a5d2eef3821c92ce3547163b27138bdd68b8a6adb08fb909b
4
- data.tar.gz: a16e260650b2e9332f85dab1495f22fdbfa53801957b921d5a189fdb230adbfb
3
+ metadata.gz: d7db3212a84276d90afc70191bba373b0b7e3f52fa51778b6cc45d4575094c8c
4
+ data.tar.gz: 444e7bc968b5785f16b5a06e9c3c34bdde7f16200a100187164bacc037e7b63e
5
5
  SHA512:
6
- metadata.gz: bb6b525d0271afe5345bacd8e79c0bb995bc758448e145ac645b88ef2e4412c5e09117a247ab9e3a109181a20742f90445c59e7c35a5caa0d7d7cdb04c3a5be4
7
- data.tar.gz: 9f079e75df03c475aba11345a14e2a3130f264500bcf72af10df766f0517bdb38484bc6fe4eaf8c0387b1b87d1b390eb5de9dbc30d422a9fb69d55956b8a4480
6
+ metadata.gz: 1dfdecd135576e6f2e4aaa2e2d3d43873615e7056f5f0c8afb90a0a2ab5cc1c0d9beca79b6cfae700fc20284440c408f5d72497faee44b8f8a03c3698c379845
7
+ data.tar.gz: 83f36c9b6b87afd6d3b7e71eec5967b035dc955890697f525850b0fa7d1f47a3fee544f2e13c2323049ceb0b549175fa85d57af114641cf5be7bb4b476a65a6e
data/bgem-new.gemspec CHANGED
@@ -1,10 +1,9 @@
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.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
- g.license = 'ISC'
8
7
  g.homepage = 'https://github.com/ch1c0t/bgem-new'
9
8
 
10
9
  g.executables << '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')
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem 'rspec'
4
4
  gem 'rspec-power_assert'
5
+ gem 'typ-rspec-matcher', '>= 0.1.2'
5
6
  gem 'pry'
6
7
  gem 'awesome_print'
7
8
  gem 'rake'
@@ -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
@@ -4,6 +4,5 @@ Gem::Specification.new do |g|
4
4
  g.version = '0.0.0'
5
5
  g.summary = 'A valid summary.'
6
6
  g.authors = ['Anatoly Chernov']
7
- g.email = ["chertoly@gmail.com"]
8
- g.license = 'ISC'
7
+ g.email = ['chertoly@gmail.com']
9
8
  end
@@ -6,4 +6,10 @@ describe <%= name %> do
6
6
  it do
7
7
  assert { <%= name %>.some == 'some value' }
8
8
  end
9
+
10
+ it do
11
+ expect(<%= name %>).to pose {
12
+ its :some, 'some value'
13
+ }
14
+ end
9
15
  end
@@ -4,4 +4,10 @@ describe <%= @name %> do
4
4
  it do
5
5
  assert { <%= @name %>.some == 'some value' }
6
6
  end
7
+
8
+ it do
9
+ expect(<%= @name %>).to pose {
10
+ its :some, 'some value'
11
+ }
12
+ end
7
13
  end
@@ -3,3 +3,5 @@ require '<%= @gem_name.gsub('-', '/') %>'
3
3
  require 'rspec/power_assert'
4
4
  RSpec::PowerAssert.example_assertion_alias :assert
5
5
  RSpec::PowerAssert.example_group_assertion_alias :assert
6
+
7
+ require 'typ/rspec/matcher/pose'
@@ -3,3 +3,5 @@ require '<%= @name.to_snake_case %>'
3
3
  require 'rspec/power_assert'
4
4
  RSpec::PowerAssert.example_assertion_alias :assert
5
5
  RSpec::PowerAssert.example_group_assertion_alias :assert
6
+
7
+ require 'typ/rspec/matcher/pose'
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.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-07-24 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
@@ -37,8 +38,7 @@ files:
37
38
  - lib/bgem/templates/rspec-helper.nested.erb
38
39
  - lib/bgem/templates/rspec-helper.top.erb
39
40
  homepage: https://github.com/ch1c0t/bgem-new
40
- licenses:
41
- - ISC
41
+ licenses: []
42
42
  metadata: {}
43
43
  post_install_message:
44
44
  rdoc_options: []
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  requirements: []
58
- rubygems_version: 3.4.15
58
+ rubygems_version: 3.4.18
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: A CLI to generate new Bgem projects.