dopstick 0.0.3 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODEOWNERS +4 -0
  3. data/.github/FUNDING.yml +1 -1
  4. data/.github/dependabot.yml +15 -0
  5. data/.github/workflows/tests.yml +10 -12
  6. data/.rubocop.yml +12 -7
  7. data/CHANGELOG.md +26 -0
  8. data/CONTRIBUTING.md +1 -1
  9. data/README.md +6 -3
  10. data/dopstick.gemspec +4 -2
  11. data/lib/dopstick/cli.rb +41 -12
  12. data/lib/dopstick/{templates → generator/base/templates}/bug_report.erb +1 -1
  13. data/lib/dopstick/{templates/CHANGELOG.md → generator/base/templates/changelog.erb} +0 -0
  14. data/lib/dopstick/{templates → generator/base/templates}/coc.erb +1 -1
  15. data/lib/dopstick/generator/base/templates/codeowners.erb +4 -0
  16. data/lib/dopstick/{templates → generator/base/templates}/contributing.erb +5 -5
  17. data/lib/dopstick/generator/base/templates/dependabot.erb +15 -0
  18. data/lib/dopstick/{templates → generator/base/templates}/feature_request.erb +0 -0
  19. data/lib/dopstick/generator/base/templates/funding.erb +4 -0
  20. data/lib/dopstick/{templates → generator/base/templates}/gitignore.erb +0 -0
  21. data/lib/dopstick/{templates → generator/base/templates}/issue.erb +0 -0
  22. data/lib/dopstick/{templates → generator/base/templates}/license.erb +1 -1
  23. data/lib/dopstick/{templates → generator/base/templates}/pull_request.erb +0 -0
  24. data/lib/dopstick/{templates → generator/base/templates}/setup.erb +0 -0
  25. data/lib/dopstick/generator/gem/generator.rb +173 -0
  26. data/lib/dopstick/generator/gem/options.rb +34 -0
  27. data/lib/dopstick/{templates → generator/gem/templates}/active_record.erb +25 -0
  28. data/lib/dopstick/generator/gem/templates/bin.erb +5 -0
  29. data/lib/dopstick/{templates → generator/gem/templates}/cli.erb +0 -0
  30. data/lib/dopstick/{templates → generator/gem/templates}/cli_class.erb +0 -0
  31. data/lib/dopstick/{templates → generator/gem/templates}/console.erb +1 -1
  32. data/lib/dopstick/generator/gem/templates/entry_file.erb +3 -0
  33. data/lib/dopstick/generator/gem/templates/gem_entry_file.erb +3 -0
  34. data/lib/dopstick/{templates → generator/gem/templates}/gemfile.erb +0 -0
  35. data/lib/dopstick/{templates → generator/gem/templates}/gemspec.erb +14 -13
  36. data/lib/dopstick/{templates → generator/gem/templates}/generator.erb +0 -0
  37. data/lib/dopstick/{templates → generator/gem/templates}/generator_class.erb +0 -0
  38. data/lib/dopstick/{templates → generator/gem/templates}/rakefile.erb +0 -0
  39. data/lib/dopstick/generator/gem/templates/readme.erb +50 -0
  40. data/lib/dopstick/generator/gem/templates/rubocop.erb +12 -0
  41. data/lib/dopstick/{templates → generator/gem/templates}/test_file.erb +1 -1
  42. data/lib/dopstick/{templates → generator/gem/templates}/test_helper.erb +1 -1
  43. data/lib/dopstick/{templates → generator/gem/templates}/tests_workflow.erb +9 -12
  44. data/lib/dopstick/{templates → generator/gem/templates}/version.erb +0 -0
  45. data/lib/dopstick/generator/npm/generator.rb +106 -0
  46. data/lib/dopstick/generator/npm/options.rb +26 -0
  47. data/lib/dopstick/generator/npm/templates/babel.erb +15 -0
  48. data/lib/dopstick/generator/npm/templates/eslint.erb +4 -0
  49. data/lib/dopstick/generator/npm/templates/index.erb +12 -0
  50. data/lib/dopstick/generator/npm/templates/index_test.erb +7 -0
  51. data/lib/dopstick/generator/npm/templates/jest.erb +12 -0
  52. data/lib/dopstick/generator/npm/templates/package.erb +42 -0
  53. data/lib/dopstick/generator/npm/templates/prettier.erb +1 -0
  54. data/lib/dopstick/generator/npm/templates/readme.erb +52 -0
  55. data/lib/dopstick/generator/npm/templates/tests_workflow.erb +49 -0
  56. data/lib/dopstick/generator/npm/templates/tsconfig.erb +14 -0
  57. data/lib/dopstick/generator/npm/templates/webpack.erb +33 -0
  58. data/lib/dopstick/generator/options.rb +65 -0
  59. data/lib/dopstick/generator.rb +3 -208
  60. data/lib/dopstick/version.rb +1 -1
  61. data/lib/dopstick.rb +7 -1
  62. metadata +60 -39
  63. data/lib/dopstick/templates/bin.erb +0 -5
  64. data/lib/dopstick/templates/entry_file.erb +0 -3
  65. data/lib/dopstick/templates/funding.erb +0 -4
  66. data/lib/dopstick/templates/gem_entry_file.erb +0 -3
  67. data/lib/dopstick/templates/readme.erb +0 -50
  68. data/lib/dopstick/templates/rubocop.erb +0 -12
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Dopstick
4
+ module Generator
5
+ class Options
6
+ using Refinements
7
+
8
+ def initialize(options)
9
+ @options = options
10
+ end
11
+
12
+ def [](key)
13
+ @options[key]
14
+ end
15
+
16
+ def merge(other)
17
+ @options.merge(other)
18
+ end
19
+
20
+ def respond_to_missing?(name, _include_all)
21
+ options.key?(name) || super
22
+ end
23
+
24
+ def method_missing(name, *args)
25
+ @options.key?(name) ? @options[name] : super
26
+ end
27
+
28
+ def skip_install?
29
+ @options[:skip_install]
30
+ end
31
+
32
+ def bin?
33
+ !@options[:bin].empty?
34
+ end
35
+
36
+ def user_name
37
+ @user_name ||= @options[:author_name].presence ||
38
+ `git config user.name`.chomp.presence ||
39
+ "Your Name"
40
+ end
41
+
42
+ def user_email
43
+ @user_email ||= @options[:author_email].presence ||
44
+ `git config user.email`.chomp.presence ||
45
+ "your@email.com"
46
+ end
47
+
48
+ def github_user
49
+ @github_user ||= @options[:author_github].presence ||
50
+ `git config user.github`.chomp.presence ||
51
+ "[USER]"
52
+ end
53
+
54
+ def paypal_user
55
+ @paypal_user ||= @options[:author_paypal].presence ||
56
+ `git config user.paypal`.chomp.presence ||
57
+ "[USER]"
58
+ end
59
+
60
+ def github_url
61
+ "https://github.com/#{github_user}/#{package_name}"
62
+ end
63
+ end
64
+ end
65
+ end
@@ -1,214 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dopstick
4
- class Generator < Thor::Group # rubocop:disable Metrics/ClassLength
5
- using Dopstick::Refinements
6
-
7
- include Thor::Actions
8
-
9
- def self.exit_on_failure?
10
- true
11
- end
12
-
13
- attr_accessor :options
14
-
15
- desc "Generate a new gem folder structure"
16
-
17
- def self.source_root
18
- File.join(__dir__, "templates")
19
- end
20
-
21
- def copy_gemspec
22
- template "gemspec.erb", "#{gem_name}.gemspec"
23
- end
24
-
25
- def copy_license
26
- template "license.erb", "LICENSE.md"
27
- end
28
-
29
- def copy_coc
30
- template "coc.erb", "CODE_OF_CONDUCT.md"
31
- end
32
-
33
- def copy_readme
34
- template "readme.erb", "README.md"
35
- end
36
-
37
- def copy_changelog
38
- copy_file "CHANGELOG.md"
39
- end
40
-
41
- def copy_contributing
42
- template "contributing.erb", "CONTRIBUTING.md"
43
- end
44
-
45
- def copy_github_templates
46
- template "funding.erb", ".github/FUNDING.yml"
47
- template "tests_workflow.erb", ".github/workflows/tests.yml"
48
- template "bug_report.erb", ".github/ISSUE_TEMPLATE/bug_report.md"
49
- template "feature_request.erb",
50
- ".github/ISSUE_TEMPLATE/feature_request.md"
51
- template "pull_request.erb", ".github/PULL_REQUEST_TEMPLATE.md"
52
- end
53
-
54
- def copy_rakefile
55
- template "rakefile.erb", "Rakefile"
56
- end
57
-
58
- def copy_rubocop
59
- template "rubocop.erb", ".rubocop.yml"
60
- end
61
-
62
- def copy_gitignore
63
- template "gitignore.erb", ".gitignore"
64
- end
65
-
66
- def copy_gemfile
67
- template "gemfile.erb", "Gemfile"
68
- end
69
-
70
- def copy_bins
71
- template "console.erb", "bin/console"
72
- template "setup.erb", "bin/setup"
73
- in_root { run "chmod +x bin/*" }
74
- end
75
-
76
- def create_entry_file
77
- if entry_path.include?("/")
78
- template "gem_entry_file.erb", "lib/#{gem_name}.rb"
79
- end
80
-
81
- template "entry_file.erb", "lib/#{entry_path}.rb"
82
- end
83
-
84
- def create_version_file
85
- template "version.erb", "lib/#{entry_path}/version.rb"
86
- end
87
-
88
- def copy_test_files
89
- template "test_helper.erb", "test/test_helper.rb"
90
- template "test_file.erb", "test/#{entry_path}_test.rb"
91
- end
92
-
93
- def copy_binary_files
94
- return unless options[:bin].presence
95
-
96
- template "cli.erb", "lib/#{entry_path}/cli.rb"
97
- template "generator.erb", "lib/#{entry_path}/generator.rb"
98
- template "bin.erb", "exe/#{options[:bin]}"
99
- create_file "lib/#{entry_path}/templates/.keep"
100
- in_root { run "chmod +x exe/*" }
101
- end
102
-
103
- def copy_active_record_files
104
- return unless options[:active_record]
105
-
106
- template "active_record.erb", "test/support/active_record.rb"
107
- end
108
-
109
- def initialize_repo
110
- in_root do
111
- run "git init --initial-branch=main", capture: true
112
- run "git add .", capture: true
113
- run "git add bin --force", capture: true
114
- end
115
- end
116
-
117
- no_commands do # rubocop:disable Metrics/BlockLength
118
- def gem_name
119
- options[:gem_name]
120
- end
121
-
122
- def entry_path
123
- options[:entry_path]
124
- end
125
-
126
- def user_name
127
- @user_name ||= options[:author_name].presence ||
128
- `git config --global user.name`.chomp
129
- end
130
-
131
- def user_email
132
- @user_email ||= options[:author_email].presence ||
133
- `git config --global user.email`.chomp
134
- end
135
-
136
- def github_user
137
- @github_user ||= options[:author_github].presence || begin
138
- user = `git config --global user.github`.chomp
139
- user.empty? ? "[USER]" : user
140
- end
141
- end
142
-
143
- def paypal_user
144
- @paypal_user ||= options[:author_paypal].presence || begin
145
- user = `git config --global user.paypal`.chomp
146
- user.empty? ? "[USER]" : user
147
- end
148
- end
149
-
150
- def github_url
151
- "https://github.com/#{github_user}/#{gem_name}"
152
- end
153
-
154
- def ruby_versions
155
- options[:ruby_versions]
156
- end
157
-
158
- def const_names
159
- @const_names ||= options[:namespace].split("::")
160
- end
161
-
162
- def const_names_size
163
- @const_names_size ||= const_names.size
164
- end
165
-
166
- def render_tree(skip_content_spaces = false, &block) # rubocop:disable Style/OptionalBooleanParameter
167
- content = []
168
-
169
- const_names.each_with_index do |name, count|
170
- content << (" " * count) + "module #{name}"
171
- end
172
-
173
- spacer = skip_content_spaces ? "" : " "
174
-
175
- content << (spacer * const_names_size) + block.call
176
-
177
- (const_names_size - 1).downto(0) do |count|
178
- content << "#{' ' * count}end"
179
- end
180
-
181
- content.join("\n")
182
- end
183
-
184
- def erb(file)
185
- ERB.new(File.read("#{__dir__}/templates/#{file}")).result binding
186
- end
187
-
188
- def render_cli
189
- cli_class = erb("cli_class.erb")
190
- .chomp
191
- .gsub(/^(.)/m, "#{' ' * const_names_size}\\1")
192
-
193
- render_tree(true) { cli_class }
194
- end
195
-
196
- def render_generator
197
- generator_class = erb("generator_class.erb")
198
- .chomp
199
- .gsub(/^(.)/m, "#{' ' * const_names_size}\\1")
200
-
201
- render_tree(true) { generator_class }
202
- end
203
-
204
- def oldest_ruby_version
205
- version = options[:ruby_versions]
206
- .map {|v| Gem::Version.new(v) }
207
- .min
208
- .canonical_segments
209
-
210
- [*version, 0].take(3).join(".")
211
- end
4
+ module Generator
5
+ def self.registered
6
+ @registered ||= {}
212
7
  end
213
8
  end
214
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dopstick
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.7"
5
5
  end
data/lib/dopstick.rb CHANGED
@@ -1,12 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "json"
3
4
  require "date"
4
5
  require "pathname"
5
6
  require "thor"
6
7
 
7
8
  module Dopstick
8
- require_relative "dopstick/refinements"
9
9
  require_relative "dopstick/version"
10
+ require_relative "dopstick/refinements"
10
11
  require_relative "dopstick/generator"
12
+ require_relative "dopstick/generator/options"
13
+ require_relative "dopstick/generator/gem/options"
14
+ require_relative "dopstick/generator/gem/generator"
15
+ require_relative "dopstick/generator/npm/options"
16
+ require_relative "dopstick/generator/npm/generator"
11
17
  require_relative "dopstick/cli"
12
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dopstick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-04 00:00:00.000000000 Z
11
+ date: 2021-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description: Generate a project skeleton for creating a rubygem
125
+ description: Generate a project skeleton for creating a Ruby/NPM package.
126
126
  email:
127
127
  - me@fnando.com
128
128
  executables:
@@ -130,10 +130,12 @@ executables:
130
130
  extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
+ - ".github/CODEOWNERS"
133
134
  - ".github/FUNDING.yml"
134
135
  - ".github/ISSUE_TEMPLATE/bug_report.md"
135
136
  - ".github/ISSUE_TEMPLATE/feature_request.md"
136
137
  - ".github/PULL_REQUEST_TEMPLATE.md"
138
+ - ".github/dependabot.yml"
137
139
  - ".github/workflows/tests.yml"
138
140
  - ".gitignore"
139
141
  - ".rubocop.yml"
@@ -152,47 +154,66 @@ files:
152
154
  - lib/dopstick.rb
153
155
  - lib/dopstick/cli.rb
154
156
  - lib/dopstick/generator.rb
157
+ - lib/dopstick/generator/base/templates/bug_report.erb
158
+ - lib/dopstick/generator/base/templates/changelog.erb
159
+ - lib/dopstick/generator/base/templates/coc.erb
160
+ - lib/dopstick/generator/base/templates/codeowners.erb
161
+ - lib/dopstick/generator/base/templates/contributing.erb
162
+ - lib/dopstick/generator/base/templates/dependabot.erb
163
+ - lib/dopstick/generator/base/templates/feature_request.erb
164
+ - lib/dopstick/generator/base/templates/funding.erb
165
+ - lib/dopstick/generator/base/templates/gitignore.erb
166
+ - lib/dopstick/generator/base/templates/issue.erb
167
+ - lib/dopstick/generator/base/templates/license.erb
168
+ - lib/dopstick/generator/base/templates/pull_request.erb
169
+ - lib/dopstick/generator/base/templates/setup.erb
170
+ - lib/dopstick/generator/gem/generator.rb
171
+ - lib/dopstick/generator/gem/options.rb
172
+ - lib/dopstick/generator/gem/templates/active_record.erb
173
+ - lib/dopstick/generator/gem/templates/bin.erb
174
+ - lib/dopstick/generator/gem/templates/cli.erb
175
+ - lib/dopstick/generator/gem/templates/cli_class.erb
176
+ - lib/dopstick/generator/gem/templates/console.erb
177
+ - lib/dopstick/generator/gem/templates/entry_file.erb
178
+ - lib/dopstick/generator/gem/templates/gem_entry_file.erb
179
+ - lib/dopstick/generator/gem/templates/gemfile.erb
180
+ - lib/dopstick/generator/gem/templates/gemspec.erb
181
+ - lib/dopstick/generator/gem/templates/generator.erb
182
+ - lib/dopstick/generator/gem/templates/generator_class.erb
183
+ - lib/dopstick/generator/gem/templates/rakefile.erb
184
+ - lib/dopstick/generator/gem/templates/readme.erb
185
+ - lib/dopstick/generator/gem/templates/rubocop.erb
186
+ - lib/dopstick/generator/gem/templates/test_file.erb
187
+ - lib/dopstick/generator/gem/templates/test_helper.erb
188
+ - lib/dopstick/generator/gem/templates/tests_workflow.erb
189
+ - lib/dopstick/generator/gem/templates/version.erb
190
+ - lib/dopstick/generator/npm/generator.rb
191
+ - lib/dopstick/generator/npm/options.rb
192
+ - lib/dopstick/generator/npm/templates/babel.erb
193
+ - lib/dopstick/generator/npm/templates/eslint.erb
194
+ - lib/dopstick/generator/npm/templates/index.erb
195
+ - lib/dopstick/generator/npm/templates/index_test.erb
196
+ - lib/dopstick/generator/npm/templates/jest.erb
197
+ - lib/dopstick/generator/npm/templates/package.erb
198
+ - lib/dopstick/generator/npm/templates/prettier.erb
199
+ - lib/dopstick/generator/npm/templates/readme.erb
200
+ - lib/dopstick/generator/npm/templates/tests_workflow.erb
201
+ - lib/dopstick/generator/npm/templates/tsconfig.erb
202
+ - lib/dopstick/generator/npm/templates/webpack.erb
203
+ - lib/dopstick/generator/options.rb
155
204
  - lib/dopstick/refinements.rb
156
- - lib/dopstick/templates/CHANGELOG.md
157
- - lib/dopstick/templates/active_record.erb
158
- - lib/dopstick/templates/bin.erb
159
- - lib/dopstick/templates/bug_report.erb
160
- - lib/dopstick/templates/cli.erb
161
- - lib/dopstick/templates/cli_class.erb
162
- - lib/dopstick/templates/coc.erb
163
- - lib/dopstick/templates/console.erb
164
- - lib/dopstick/templates/contributing.erb
165
- - lib/dopstick/templates/entry_file.erb
166
- - lib/dopstick/templates/feature_request.erb
167
- - lib/dopstick/templates/funding.erb
168
- - lib/dopstick/templates/gem_entry_file.erb
169
- - lib/dopstick/templates/gemfile.erb
170
- - lib/dopstick/templates/gemspec.erb
171
- - lib/dopstick/templates/generator.erb
172
- - lib/dopstick/templates/generator_class.erb
173
- - lib/dopstick/templates/gitignore.erb
174
- - lib/dopstick/templates/issue.erb
175
- - lib/dopstick/templates/license.erb
176
- - lib/dopstick/templates/pull_request.erb
177
- - lib/dopstick/templates/rakefile.erb
178
- - lib/dopstick/templates/readme.erb
179
- - lib/dopstick/templates/rubocop.erb
180
- - lib/dopstick/templates/setup.erb
181
- - lib/dopstick/templates/test_file.erb
182
- - lib/dopstick/templates/test_helper.erb
183
- - lib/dopstick/templates/tests_workflow.erb
184
- - lib/dopstick/templates/version.erb
185
205
  - lib/dopstick/version.rb
186
206
  homepage: https://github.com/fnando/dopstick
187
207
  licenses:
188
208
  - MIT
189
209
  metadata:
210
+ rubygems_mfa_required: 'true'
190
211
  homepage_uri: https://github.com/fnando/dopstick
191
212
  bug_tracker_uri: https://github.com/fnando/dopstick/issues
192
- source_code_uri: https://github.com/fnando/dopstick/tree/v0.0.3
193
- changelog_uri: https://github.com/fnando/dopstick/tree/v0.0.3/CHANGELOG.md
194
- documentation_uri: https://github.com/fnando/dopstick/tree/v0.0.3/README.md
195
- license_uri: https://github.com/fnando/dopstick/tree/v0.0.3/LICENSE.md
213
+ source_code_uri: https://github.com/fnando/dopstick/tree/v0.0.7
214
+ changelog_uri: https://github.com/fnando/dopstick/tree/v0.0.7/CHANGELOG.md
215
+ documentation_uri: https://github.com/fnando/dopstick/tree/v0.0.7/README.md
216
+ license_uri: https://github.com/fnando/dopstick/tree/v0.0.7/LICENSE.md
196
217
  post_install_message:
197
218
  rdoc_options: []
198
219
  require_paths:
@@ -201,15 +222,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
222
  requirements:
202
223
  - - ">="
203
224
  - !ruby/object:Gem::Version
204
- version: 2.6.0
225
+ version: 2.7.0
205
226
  required_rubygems_version: !ruby/object:Gem::Requirement
206
227
  requirements:
207
228
  - - ">="
208
229
  - !ruby/object:Gem::Version
209
230
  version: '0'
210
231
  requirements: []
211
- rubygems_version: 3.1.4
232
+ rubygems_version: 3.2.32
212
233
  signing_key:
213
234
  specification_version: 4
214
- summary: Generate a project skeleton for creating a rubygem
235
+ summary: Generate a project skeleton for creating a Ruby/NPM package.
215
236
  test_files: []
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require_relative "../lib/<%= gem_name %>"
5
- <%= options[:namespace] %>::CLI.start
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- <%= render_tree { %[require "#{entry_path}/version"] } %>
@@ -1,4 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- github: [<%= github_user %>]
4
- custom: ["https://paypal.me/<%= paypal_user %>/🍕"]
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require <%= entry_path.inspect %>
@@ -1,50 +0,0 @@
1
- # <%= gem_name %>
2
-
3
- [![Tests](<%= github_url %>/workflows/Tests/badge.svg)](https://github.com/fnando/<%= gem_name %>)
4
- [![Code Climate](https://codeclimate.com/github/<%= github_user %>/<%= gem_name %>/badges/gpa.svg)](https://codeclimate.com/github/<%= github_user %>/<%= gem_name %>)
5
- [![Gem](https://img.shields.io/gem/v/<%= gem_name %>.svg)](https://rubygems.org/gems/<%= gem_name %>)
6
- [![Gem](https://img.shields.io/gem/dt/<%= gem_name %>.svg)](https://rubygems.org/gems/<%= gem_name %>)
7
-
8
- TODO: Add project description here
9
-
10
- ## Installation
11
-
12
- ```bash
13
- gem install <%= gem_name %>
14
- ```
15
-
16
- Or add the following line to your project's Gemfile:
17
-
18
- ```ruby
19
- gem "<%= gem_name %>"
20
- ```
21
-
22
- ## Usage
23
-
24
- TODO: Write gem usage
25
-
26
- ## Maintainer
27
-
28
- - [<%= user_name %>](https://github.com/<%= github_user %>)
29
-
30
- ## Contributors
31
-
32
- - <%= github_url %>/contributors
33
-
34
- ## Contributing
35
-
36
- For more details about how to contribute, please read
37
- <%= github_url %>/blob/main/CONTRIBUTING.md.
38
-
39
-
40
- ## License
41
-
42
- The gem is available as open source under the terms of the
43
- [MIT License](https://opensource.org/licenses/MIT). A copy of the license can be
44
- found at <%= github_url %>/blob/main/LICENSE.md.
45
-
46
- ## Code of Conduct
47
-
48
- Everyone interacting in the <%= gem_name %> project's codebases, issue trackers,
49
- chat rooms and mailing lists is expected to follow the
50
- [code of conduct](<%= github_url %>/blob/main/CODE_OF_CONDUCT.md).
@@ -1,12 +0,0 @@
1
- ---
2
- inherit_gem:
3
- rubocop-fnando: .rubocop.yml
4
-
5
- AllCops:
6
- TargetRubyVersion: <%= oldest_ruby_version.split(".").take(2).join(".") %>
7
- NewCops: enable
8
- <%- if gem_name.include?("-") -%>
9
- Naming/FileName:
10
- Exclude:
11
- - lib/<%= gem_name %>.rb
12
- <%- end -%>