bundlegem 1.1.0 → 1.2.0.pre.rc.1

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 (85) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -1
  3. data/README.md +26 -37
  4. data/Rakefile +3 -5
  5. data/bin/bundlegem +45 -40
  6. data/bundlegem.gemspec +5 -11
  7. data/changelog +14 -3
  8. data/config/config +1 -1
  9. data/lib/bundlegem/cli/cli.rb +0 -4
  10. data/lib/bundlegem/cli/dir_to_template.rb +16 -13
  11. data/lib/bundlegem/cli/gem.rb +77 -158
  12. data/lib/bundlegem/strings.rb +1 -1
  13. data/lib/bundlegem/template_manager.rb +2 -2
  14. data/lib/bundlegem/templates/test_template/#{name}.rb.tt +1 -0
  15. data/lib/bundlegem/version.rb +1 -1
  16. data/lib/bundlegem.rb +13 -15
  17. data/spec/bundlegem_spec.rb +30 -29
  18. data/spec/data/variable_manifest_test.rb +1 -0
  19. data/spec/spec_helper.rb +1 -2
  20. data/spec/template_manager_spec.rb +1 -1
  21. metadata +7 -113
  22. data/.travis.yml +0 -3
  23. data/lib/bundlegem/cli.rb +0 -166
  24. data/lib/bundlegem/friendly_errors.rb +0 -79
  25. data/lib/bundlegem/templates/Executable +0 -16
  26. data/lib/bundlegem/templates/Executable.standalone +0 -12
  27. data/lib/bundlegem/templates/Gemfile +0 -4
  28. data/lib/bundlegem/templates/c_extension_gem/#{name}.gemspec.tt +0 -28
  29. data/lib/bundlegem/templates/c_extension_gem/.travis.yml.tt +0 -3
  30. data/lib/bundlegem/templates/c_extension_gem/CODE_OF_CONDUCT.md.tt +0 -13
  31. data/lib/bundlegem/templates/c_extension_gem/Gemfile.tt +0 -4
  32. data/lib/bundlegem/templates/c_extension_gem/LICENSE.txt.tt +0 -21
  33. data/lib/bundlegem/templates/c_extension_gem/README.md.tt +0 -39
  34. data/lib/bundlegem/templates/c_extension_gem/Rakefile.tt +0 -13
  35. data/lib/bundlegem/templates/c_extension_gem/bin/#{name}.tt +0 -3
  36. data/lib/bundlegem/templates/c_extension_gem/bin/console.tt +0 -14
  37. data/lib/bundlegem/templates/c_extension_gem/changelog.tt +0 -7
  38. data/lib/bundlegem/templates/c_extension_gem/ext/#{name}/#{name}.c.tt +0 -9
  39. data/lib/bundlegem/templates/c_extension_gem/ext/#{name}/#{name}.h.tt +0 -6
  40. data/lib/bundlegem/templates/c_extension_gem/ext/#{name}/extconf.rb.tt +0 -3
  41. data/lib/bundlegem/templates/c_extension_gem/gitignore.tt +0 -16
  42. data/lib/bundlegem/templates/c_extension_gem/lib/#{name}/version.rb.tt +0 -7
  43. data/lib/bundlegem/templates/c_extension_gem/lib/#{name}.rb.tt +0 -12
  44. data/lib/bundlegem/templates/c_extension_gem/rspec.tt +0 -2
  45. data/lib/bundlegem/templates/c_extension_gem/spec/#{name}_spec.rb.tt +0 -11
  46. data/lib/bundlegem/templates/c_extension_gem/spec/spec_helper.rb.tt +0 -2
  47. data/lib/bundlegem/templates/cli_gem/#{name}.gemspec.tt +0 -42
  48. data/lib/bundlegem/templates/cli_gem/CODE_OF_CONDUCT.md.tt +0 -13
  49. data/lib/bundlegem/templates/cli_gem/Gemfile.tt +0 -4
  50. data/lib/bundlegem/templates/cli_gem/LICENSE.txt.tt +0 -3
  51. data/lib/bundlegem/templates/cli_gem/README.md.tt +0 -38
  52. data/lib/bundlegem/templates/cli_gem/Rakefile.tt +0 -31
  53. data/lib/bundlegem/templates/cli_gem/bin/console.tt +0 -14
  54. data/lib/bundlegem/templates/cli_gem/changelog.tt +0 -7
  55. data/lib/bundlegem/templates/cli_gem/exe/#{name}.tt +0 -12
  56. data/lib/bundlegem/templates/cli_gem/ext/#{name}/#{name}.c.tt +0 -9
  57. data/lib/bundlegem/templates/cli_gem/ext/#{name}/#{name}.h.tt +0 -6
  58. data/lib/bundlegem/templates/cli_gem/ext/#{name}/extconf.rb.tt +0 -3
  59. data/lib/bundlegem/templates/cli_gem/gitignore.tt +0 -15
  60. data/lib/bundlegem/templates/cli_gem/lib/#{name}/config.rb.tt +0 -40
  61. data/lib/bundlegem/templates/cli_gem/lib/#{name}/constants.rb.tt +0 -9
  62. data/lib/bundlegem/templates/cli_gem/lib/#{name}/version.rb.tt +0 -7
  63. data/lib/bundlegem/templates/cli_gem/lib/#{name}.rb.tt +0 -26
  64. data/lib/bundlegem/templates/cli_gem/rspec.tt +0 -2
  65. data/lib/bundlegem/templates/cli_gem/spec/#{name}/config_spec.rb.tt +0 -25
  66. data/lib/bundlegem/templates/cli_gem/spec/#{name}_int.rb.tt +0 -16
  67. data/lib/bundlegem/templates/cli_gem/spec/#{name}_spec.rb.tt +0 -17
  68. data/lib/bundlegem/templates/cli_gem/spec/data/sample_data.json.tt +0 -1
  69. data/lib/bundlegem/templates/cli_gem/spec/spec_helper.rb.tt +0 -2
  70. data/lib/bundlegem/templates/newgem/#{name}.gemspec.tt +0 -33
  71. data/lib/bundlegem/templates/newgem/.gitignore.tt +0 -16
  72. data/lib/bundlegem/templates/newgem/.travis.yml.tt +0 -3
  73. data/lib/bundlegem/templates/newgem/CODE_OF_CONDUCT.md.tt +0 -13
  74. data/lib/bundlegem/templates/newgem/Gemfile.tt +0 -10
  75. data/lib/bundlegem/templates/newgem/LICENSE.txt.tt +0 -21
  76. data/lib/bundlegem/templates/newgem/README.md.tt +0 -41
  77. data/lib/bundlegem/templates/newgem/Rakefile.tt +0 -40
  78. data/lib/bundlegem/templates/newgem/bin/#{name}.tt +0 -3
  79. data/lib/bundlegem/templates/newgem/bin/console.tt +0 -14
  80. data/lib/bundlegem/templates/newgem/changelog.tt +0 -7
  81. data/lib/bundlegem/templates/newgem/lib/#{name}/version.rb.tt +0 -7
  82. data/lib/bundlegem/templates/newgem/lib/#{name}.rb.tt +0 -12
  83. data/lib/bundlegem/templates/newgem/rspec.tt +0 -2
  84. data/lib/bundlegem/templates/newgem/spec/#{name}_spec.rb.tt +0 -11
  85. data/lib/bundlegem/templates/newgem/spec/spec_helper.rb.tt +0 -2
@@ -1,7 +0,0 @@
1
- <%- config[:constant_array].each_with_index do |c,i| -%>
2
- <%= ' '*i %>module <%= c %>
3
- <%- end -%>
4
- <%= ' '*config[:constant_array].size %>VERSION = "0.1.0"
5
- <%- (config[:constant_array].size-1).downto(0) do |i| -%>
6
- <%= ' '*i %>end
7
- <%- end -%>
@@ -1,12 +0,0 @@
1
- require "<%=config[:namespaced_path]%>/version"
2
- <%- if config[:ext] -%>
3
- require "<%=config[:namespaced_path]%>/<%=config[:underscored_name]%>"
4
- <%- end -%>
5
-
6
- <%- config[:constant_array].each_with_index do |c,i| -%>
7
- <%= ' '*i %>module <%= c %>
8
- <%- end -%>
9
- <%= ' '*config[:constant_array].size %># Your code goes here...
10
- <%- (config[:constant_array].size-1).downto(0) do |i| -%>
11
- <%= ' '*i %>end
12
- <%- end -%>
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
@@ -1,11 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe <%= config[:constant_name] %> do
4
- it 'has a version number' do
5
- expect(<%= config[:constant_name] %>::VERSION).not_to be nil
6
- end
7
-
8
- it 'does something useful' do
9
- expect(false).to eq(true)
10
- end
11
- end
@@ -1,2 +0,0 @@
1
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
- require '<%= config[:namespaced_path] %>'
@@ -1,42 +0,0 @@
1
- # coding: utf-8
2
- require_relative 'lib/<%=config[:namespaced_path]%>/version'
3
-
4
- version = <%=config[:constant_name]%>::VERSION
5
-
6
- Gem::Specification.new do |s|
7
- s.name = <%=config[:name].inspect%>
8
- s.version = version
9
- s.authors = [<%=config[:author].inspect%>]
10
- s.email = [<%=config[:email].inspect%>]
11
-
12
- s.summary = %q{A gem}
13
-
14
- s.homepage = "https://github.com/<%=config[:author]%>/<%=config[:name]%>"
15
- s.required_ruby_version = ">= 3.0.0"
16
-
17
- s.metadata["allowed_push_host"] = "https://localhost.com" # prevents accidental gem pushes for private projects
18
-
19
- s.metadata["homepage_uri"] = s.homepage
20
- s.metadata["source_code_uri"] = s.homepage
21
- s.metadata["changelog_uri"] = s.homepage
22
-
23
- # Specify which files should be added to the gem when it is released.
24
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
- gemspec = File.basename(__FILE__)
26
- s.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
27
- ls.readlines("\x0", chomp: true).reject do |f|
28
- (f == gemspec) ||
29
- f.start_with?(*%w[bin/ test/ spec/ features/ .git .gitlab-ci.yml appveyor Gemfile])
30
- end
31
- end
32
- s.bindir = "exe"
33
- s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
- s.require_paths = ["lib"]
35
-
36
- # s.add_dependency "bundler", "~> <%= config[:bundler_version] %>"
37
-
38
- s.add_development_dependency "bundler", "~> <%= config[:bundler_version] %>"
39
- s.add_development_dependency "rake", "~> 13.0"
40
- s.add_development_dependency "rspec"
41
- s.add_development_dependency "pry"
42
- end
@@ -1,13 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
-
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
-
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
-
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
-
13
- This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in <%=config[:name]%>.gemspec
4
- gemspec
@@ -1,3 +0,0 @@
1
- TODO: Decide license and include here.
2
-
3
- If this message is visible, please open a GH issue and assume Copyright and closed source is the intent of this repo.
@@ -1,38 +0,0 @@
1
- # <%=config[:constant_name]%>
2
-
3
- TODO: Describe your gem/ CLI tool
4
-
5
-
6
- ## Installation
7
-
8
- To install this from source, just run
9
-
10
- $ rake install
11
-
12
-
13
- ## Usage
14
-
15
- As a cli, run `<%=config[:constant_name].downcase%>`
16
-
17
-
18
- ## Development
19
-
20
- Install dependencies with...
21
-
22
- $ bundle
23
-
24
- Mark individual tests with `, current: true` and run them with...
25
-
26
- $ rake c
27
-
28
- Run the entire unit test suite with...
29
-
30
- $ rake
31
-
32
- Run the integration test suite with...
33
-
34
- $ rake integration
35
-
36
- If a CLI is being developed, see `exe/<%=config[:constant_name].downcase%>` and consider adopting Thor or its alternatives if this will be a heavy CLI tool.
37
-
38
- For open source projects, releasing a new version is done with an update to the version number in `version.rb`. Then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). By default you'll need to tweak the gemspec file in root to enable pushes.
@@ -1,31 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec) do |t|
7
- t.verbose = false
8
- end
9
-
10
- RSpec::Core::RakeTask.new(:integration) do |t|
11
- t.verbose = false
12
- t.pattern = "spec/**/*_int.rb"
13
- end
14
-
15
- # this is for running tests that you've marked current... eg: it 'should work', :current => true do
16
- # I waffle between this work flow and the one defined in spec_helper.rb which uses focus: true
17
- # which overrides the entire test suite... not better
18
- RSpec::Core::RakeTask.new(:current) do |t|
19
- t.verbose = false
20
- t.pattern = 'spec/**/*_{spec,int}.rb'
21
- t.rspec_opts = ['--tag current']
22
- end
23
-
24
- # alias for current
25
- RSpec::Core::RakeTask.new(:c) do |t|
26
- t.verbose = false
27
- t.pattern = 'spec/**/*_{spec,int}.rb'
28
- t.rspec_opts = ['--tag current']
29
- end
30
-
31
- task default: :spec
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "<%= config[:namespaced_path] %>"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
@@ -1,7 +0,0 @@
1
- ** 0.0.x **
2
- TODO: List off what features you'll be including at some point in the
3
- future.
4
-
5
- ** 0.0.1 **
6
- TODO: List off what features you'll be including in the first release
7
-
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "<%= config[:namespaced_path] %>"
4
-
5
- command = ARGV.count > 0 ? ARGV[0].chomp.strip : ''
6
-
7
- if command == "help" || command == "--help" || command == "-h"
8
- puts <%= config[:constant_name] %>.help
9
- return
10
- end
11
-
12
- puts <%= config[:constant_name] %>.main
@@ -1,9 +0,0 @@
1
- #include "<%=config[:underscored_name]%>.h"
2
-
3
- VALUE rb_m<%=config[:constant_array].join%>;
4
-
5
- void
6
- Init_<%=config[:underscored_name]%>(void)
7
- {
8
- rb_m<%=config[:constant_array].join%> = rb_define_module(<%=config[:constant_name].inspect%>);
9
- }
@@ -1,6 +0,0 @@
1
- #ifndef <%=config[:underscored_name].upcase%>_H
2
- #define <%=config[:underscored_name].upcase%>_H 1
3
-
4
- #include "ruby.h"
5
-
6
- #endif /* <%=config[:underscored_name].upcase%>_H */
@@ -1,3 +0,0 @@
1
- require "mkmf"
2
-
3
- create_makefile(<%= config[:makefile_path].inspect %>)
@@ -1,15 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- <%- if config[:ext] -%>
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
15
- <%- end -%>
@@ -1,40 +0,0 @@
1
- <%- config[:constant_array].each_with_index do |c,i| -%>
2
- <%= ' '*i %>module <%= c %>
3
- <%- end -%>
4
-
5
- class Config
6
-
7
- def initialize(c = {})
8
- @root_folder = c[:root_folder]
9
- @config_file = c[:config_file]
10
- @database_url = c[:database_url]
11
- end
12
-
13
- def root_folder
14
- @root_folder ||= gather_parameters('ROOT_FOLDER')
15
- end
16
-
17
- def config_file
18
- @config_file ||= gather_parameters('CONFIG_FILE')
19
- end
20
-
21
- def database_url
22
- @database_url ||= gather_parameters('DATABASE_URL')
23
- end
24
-
25
- # private
26
-
27
- def gather_parameters(param_name)
28
- ENV["<%=config[:constant_name].upcase%>_#{param_name.upcase}"] || default_constant_or_nil(param_name)
29
- end
30
-
31
- def default_constant_or_nil(param_name)
32
- const_name = 'DEFAULT_' + param_name
33
- root_module = Module.nesting.last
34
- root_module.const_get(const_name) if root_module.const_defined?(const_name)
35
- end
36
- end
37
-
38
- <%- (config[:constant_array].size-1).downto(0) do |i| -%>
39
- <%= ' '*i %>end
40
- <%- end -%>
@@ -1,9 +0,0 @@
1
- <%- config[:constant_array].each_with_index do |c,i| -%>
2
- <%= ' '*i %>module <%= c %>
3
- <%- end -%>
4
- DEFAULT_ROOT_FOLDER = '..'
5
- DEFAULT_CONFIG_FILE = '../env.yaml'
6
- DEFAULT_DATABASE_URL = '..'
7
- <%- (config[:constant_array].size-1).downto(0) do |i| -%>
8
- <%= ' '*i %>end
9
- <%- end -%>
@@ -1,7 +0,0 @@
1
- <%- config[:constant_array].each_with_index do |c,i| -%>
2
- <%= ' '*i %>module <%= c %>
3
- <%- end -%>
4
- <%= ' '*config[:constant_array].size %>VERSION = "0.1.0"
5
- <%- (config[:constant_array].size-1).downto(0) do |i| -%>
6
- <%= ' '*i %>end
7
- <%- end -%>
@@ -1,26 +0,0 @@
1
- require "<%=config[:namespaced_path]%>/version"
2
- require "<%=config[:namespaced_path]%>/constants"
3
- require "<%=config[:namespaced_path]%>/config"
4
-
5
-
6
- <%- config[:constant_array].each_with_index do |c,i| -%>
7
- <%= ' '*i %>module <%= c %>
8
- <%- end -%>
9
- # Your code goes here...
10
- def self.main
11
- "test"
12
- end
13
-
14
- def self.help
15
- msg = <<-EOF
16
- <%=config[:constant_name].downcase%>
17
- TODO: Update this to be correct to this tool!
18
- Commands:
19
- ls - List things
20
- run - Run things
21
- status - Show status
22
- EOF
23
- end
24
- <%- (config[:constant_array].size-1).downto(0) do |i| -%>
25
- <%= ' '*i %>end
26
- <%- end -%>
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
@@ -1,25 +0,0 @@
1
- require 'spec_helper'
2
-
3
- module <%= config[:constant_name] %>
4
-
5
- describe Config do
6
-
7
- before :each do
8
- ENV['<%= config[:constant_name].upcase %>_ROOT_FOLDER'] = nil
9
- end
10
-
11
- after :each do
12
- ENV['<%= config[:constant_name].upcase %>_ROOT_FOLDER'] = nil
13
- end
14
-
15
- it 'returns the ROOT_FOLDER set by the environment variable' do
16
- ENV['<%= config[:constant_name].upcase %>_ROOT_FOLDER'] = "/tmp/blah"
17
-
18
- c = Config.new
19
-
20
- expect(c.root_folder).to eq("/tmp/blah")
21
- end
22
-
23
- end
24
-
25
- end
@@ -1,16 +0,0 @@
1
- require 'spec_helper'
2
-
3
-
4
- # This file ends in _int because it's an integration test and can use the file
5
- # system and network to assert the applications correctness
6
-
7
- module <%= config[:constant_name] %>
8
-
9
- describe <%= config[:constant_name] %> do
10
- it 'does something useful' do
11
- result = <%= config[:constant_name] %>.main
12
- expect(result).to eq("test")
13
- end
14
- end
15
-
16
- end
@@ -1,17 +0,0 @@
1
- require 'spec_helper'
2
-
3
-
4
- module <%= config[:constant_name] %>
5
-
6
- describe <%= config[:constant_name] %> do
7
- it 'has a version number' do
8
- expect(<%= config[:constant_name] %>::VERSION).not_to be nil
9
- end
10
-
11
- it 'does something useful', current: true do
12
- result = <%= config[:constant_name] %>.main
13
- expect(result).to eq("test")
14
- end
15
- end
16
-
17
- end
@@ -1 +0,0 @@
1
- { "I'm some sample data": "used in a test" }
@@ -1,2 +0,0 @@
1
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
- require '<%= config[:namespaced_path] %>'
@@ -1,33 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require '<%=config[:namespaced_path]%>/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = <%=config[:name].inspect%>
8
- spec.version = <%=config[:constant_name]%>::VERSION
9
- spec.authors = [<%=config[:author].inspect%>]
10
- spec.email = [<%=config[:email].inspect%>]
11
-
12
- spec.summary = %q{Write a short summary, because Rubygems requires one.}
13
- # spec.description = %q{TODO: delete this line since you're in a hurry.}
14
- spec.homepage = "https://github.com/<%=config[:author]%>/<%=config[:name]%>"
15
- spec.required_ruby_version = ">= 3.0.0"
16
-
17
- spec.metadata["allowed_push_host"] = "https://localhost.com" # prevents unexpected data loss
18
-
19
- spec.metadata["homepage_uri"] = spec.homepage
20
- spec.metadata["source_code_uri"] = "https://localhost.com"
21
- spec.metadata["changelog_uri"] = "https://localhost.com"
22
-
23
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
- spec.bindir = "exe"
25
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
- spec.require_paths = ["lib"]
27
-
28
-
29
- spec.add_development_dependency "bundler"
30
- spec.add_development_dependency "rake", "~> 10.0"
31
- spec.add_development_dependency "rspec"
32
- spec.add_development_dependency "pry"
33
- end
@@ -1,16 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- <%- if config[:ext] -%>
11
- *.bundle
12
- *.so
13
- *.o
14
- *.a
15
- mkmf.log
16
- <%- end -%>
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - <%= RUBY_VERSION %>
@@ -1,13 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
-
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
-
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
-
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
-
13
- This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in blah.gemspec
6
- gemspec
7
-
8
- gem "rake", "~> 13.0"
9
-
10
- gem "rspec", "~> 3.0"
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) <%=Time.now.year%> <%=config[:author]%>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,41 +0,0 @@
1
- # <%=config[:constant_name]%>
2
-
3
- NOTE: I'm tempted to deprecate this in favor of `cli_gem`. I'm going to make updates to that exclusively in the meantime.
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/<%=config[:namespaced_path]%>`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
- TODO: Delete this and the text above, and describe your gem
8
-
9
- ## Installation
10
-
11
- Add this line to your application's Gemfile:
12
-
13
- ```ruby
14
- gem '<%=config[:name]%>'
15
- ```
16
-
17
- And then execute:
18
-
19
- $ bundle
20
-
21
- Or install it yourself as:
22
-
23
- $ gem install <%=config[:name]%>
24
-
25
- ## Usage
26
-
27
- TODO: Write usage instructions here
28
-
29
- ## Development
30
-
31
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.<% if config[:bin] %> Run `bundle exec <%= config[:name] %>` to use the code located in this directory, ignoring other installed copies of this gem.<% end %>
32
-
33
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
-
35
- ## Contributing
36
-
37
- 1. Fork it ( https://github.com/[my-github-username]/<%=config[:name]%>/fork )
38
- 2. Create your feature branch (`git checkout -b my-new-feature`)
39
- 3. Commit your changes (`git commit -am 'Add some feature'`)
40
- 4. Push to the branch (`git push origin my-new-feature`)
41
- 5. Create a new Pull Request
@@ -1,40 +0,0 @@
1
- require 'rake'
2
-
3
- require 'bundler'
4
- Bundler::GemHelper.install_tasks
5
-
6
- require 'rspec/core/rake_task'
7
-
8
- desc "Run unit specs"
9
- RSpec::Core::RakeTask.new(:unit) do |t|
10
- t.rspec_opts = %w(-fd -c)
11
- t.pattern = "./spec/unit/**/*_spec.rb"
12
- end
13
-
14
- desc "Run integration specs that are very high level"
15
- RSpec::Core::RakeTask.new(:integration) do |t|
16
- t.rspec_opts = %w(-fd -c)
17
- t.pattern = "./spec/integration/**/*_spec.rb"
18
- end
19
-
20
- desc "Run all specs"
21
- RSpec::Core::RakeTask.new(:spec) do |t|
22
- t.rspec_opts = %w(-fd -c)
23
- end
24
-
25
- # this is for running tests that you've marked current... eg: it 'should work', :current => true do
26
- RSpec::Core::RakeTask.new(:current) do |spec|
27
- spec.pattern = 'spec/**/*_spec.rb'
28
- spec.rspec_opts = ['--tag current']
29
- end
30
-
31
- # alias for current
32
- RSpec::Core::RakeTask.new(:c) do |spec|
33
- spec.pattern = 'spec/**/*_spec.rb'
34
- spec.rspec_opts = ['--tag current']
35
- end
36
-
37
- task :default => :spec
38
- task :test => :spec
39
-
40
-
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "<%= config[:namespaced_path] %>"
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "<%= config[:namespaced_path] %>"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
@@ -1,7 +0,0 @@
1
- ** 0.0.x **
2
- TODO: List off what features you'll be including at some point in the
3
- future.
4
-
5
- ** 0.0.1 **
6
- TODO: List off what features you'll be including in the first release
7
-
@@ -1,7 +0,0 @@
1
- <%- config[:constant_array].each_with_index do |c,i| -%>
2
- <%= ' '*i %>module <%= c %>
3
- <%- end -%>
4
- <%= ' '*config[:constant_array].size %>VERSION = "0.1.0"
5
- <%- (config[:constant_array].size-1).downto(0) do |i| -%>
6
- <%= ' '*i %>end
7
- <%- end -%>