gemaker 0.1.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +103 -0
- data/.circleci/setup-rubygems.sh +3 -0
- data/.coveralls.yml +1 -0
- data/.hound.yml +4 -0
- data/.rspec +2 -0
- data/.rubocop.yml +1038 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +43 -0
- data/Gemfile +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +39 -1
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/gemaker +9 -0
- data/gemaker.gemspec +19 -10
- data/lib/gemaker.rb +23 -1
- data/lib/gemaker/cli.rb +64 -0
- data/lib/gemaker/commands/add_changelog.rb +10 -0
- data/lib/gemaker/commands/add_cli_structure.rb +12 -0
- data/lib/gemaker/commands/add_hound_rules.rb +12 -0
- data/lib/gemaker/commands/add_install_generator.rb +16 -0
- data/lib/gemaker/commands/add_license.rb +11 -0
- data/lib/gemaker/commands/add_readme.rb +16 -0
- data/lib/gemaker/commands/add_ruby_version.rb +10 -0
- data/lib/gemaker/commands/base.rb +24 -0
- data/lib/gemaker/commands/configure_git.rb +24 -0
- data/lib/gemaker/commands/configure_test_env.rb +29 -0
- data/lib/gemaker/commands/configure_travis.rb +15 -0
- data/lib/gemaker/commands/create_gem.rb +45 -0
- data/lib/gemaker/commands/customize_engine.rb +13 -0
- data/lib/gemaker/commands/customize_gemspec.rb +20 -0
- data/lib/gemaker/commands/customize_main_lib_file.rb +10 -0
- data/lib/gemaker/commands/customize_rakefile.rb +20 -0
- data/lib/gemaker/config.rb +66 -0
- data/lib/gemaker/templates/CHANGELOG.md +7 -0
- data/lib/gemaker/templates/LICENSE.txt.erb +21 -0
- data/lib/gemaker/templates/cli.rb.erb +19 -0
- data/lib/gemaker/templates/coveralls.yml +1 -0
- data/lib/gemaker/templates/engine/Guardfile +15 -0
- data/lib/gemaker/templates/engine/README.md.erb +55 -0
- data/lib/gemaker/templates/engine/Rakefile +10 -0
- data/lib/gemaker/templates/engine/engine.rb.erb +15 -0
- data/lib/gemaker/templates/engine/example_class.rb.erb +7 -0
- data/lib/gemaker/templates/engine/gemspec.erb +30 -0
- data/lib/gemaker/templates/engine/gitignore +9 -0
- data/lib/gemaker/templates/engine/initializer.rb.erb +2 -0
- data/lib/gemaker/templates/engine/install_generator.rb.erb +21 -0
- data/lib/gemaker/templates/engine/install_usage.erb +5 -0
- data/lib/gemaker/templates/engine/lib_main_file.rb.erb +25 -0
- data/lib/gemaker/templates/engine/rails_helper.rb.erb +48 -0
- data/lib/gemaker/templates/engine/rspec +3 -0
- data/lib/gemaker/templates/engine/spec_helper.rb.erb +9 -0
- data/lib/gemaker/templates/engine/test_example.rb.erb +16 -0
- data/lib/gemaker/templates/engine/travis.yml.erb +15 -0
- data/lib/gemaker/templates/exe.erb +9 -0
- data/lib/gemaker/templates/image.png +0 -0
- data/lib/gemaker/templates/normal/Guardfile +5 -0
- data/lib/gemaker/templates/normal/README.md.erb +53 -0
- data/lib/gemaker/templates/normal/Rakefile +1 -0
- data/lib/gemaker/templates/normal/gemspec.erb +30 -0
- data/lib/gemaker/templates/normal/spec_helper.rb.erb +24 -0
- data/lib/gemaker/templates/normal/test_example.rb.erb +15 -0
- data/lib/gemaker/templates/normal/travis.yml.erb +13 -0
- data/lib/gemaker/templates/ruby-version.erb +1 -0
- data/lib/gemaker/templates/test_helpers.rb +5 -0
- data/lib/gemaker/templates/video.mp4 +0 -0
- data/lib/gemaker/util.rb +77 -0
- data/lib/gemaker/version.rb +3 -2
- metadata +214 -18
- data/CODE_OF_CONDUCT.md +0 -49
- data/Guardfile +0 -46
@@ -0,0 +1,25 @@
|
|
1
|
+
require "<%= config.gem_name %>/engine"
|
2
|
+
|
3
|
+
module <%= config.gem_class %>
|
4
|
+
extend self
|
5
|
+
|
6
|
+
# You can add, in this module, your own configuration options as in the example below...
|
7
|
+
#
|
8
|
+
# attr_writer :my_option
|
9
|
+
#
|
10
|
+
# def my_option
|
11
|
+
# return "Default Value" unless @my_option
|
12
|
+
# @my_option
|
13
|
+
# end
|
14
|
+
#
|
15
|
+
# Then, you can customize the default behaviour (typically in a Rails initializer) like this:
|
16
|
+
#
|
17
|
+
# <%= config.gem_class %>.setup do |config|
|
18
|
+
# config.root_url = "Another value"
|
19
|
+
# end
|
20
|
+
|
21
|
+
def setup
|
22
|
+
yield self
|
23
|
+
require "<%= config.gem_name %>"
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
require 'coveralls'
|
3
|
+
|
4
|
+
formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
|
5
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter::new(formatters)
|
6
|
+
|
7
|
+
SimpleCov.start do
|
8
|
+
add_filter do |src|
|
9
|
+
r = [
|
10
|
+
src.filename =~ /lib/,
|
11
|
+
src.filename =~ /models/,
|
12
|
+
src.filename =~ /controllers/
|
13
|
+
].uniq
|
14
|
+
r.count == 1 && r.first.nil?
|
15
|
+
end
|
16
|
+
|
17
|
+
add_filter "engine.rb"
|
18
|
+
add_filter "spec.rb"
|
19
|
+
end
|
20
|
+
|
21
|
+
ENV["RAILS_ENV"] ||= "test"
|
22
|
+
require File.expand_path("../../spec/dummy/config/environment", __FILE__)
|
23
|
+
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
24
|
+
require "pry"
|
25
|
+
require "spec_helper"
|
26
|
+
require "rspec/rails"
|
27
|
+
require "factory_bot_rails"
|
28
|
+
|
29
|
+
ActiveRecord::Migration.maintain_test_schema!
|
30
|
+
|
31
|
+
Dir[::Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
32
|
+
|
33
|
+
RSpec.configure do |config|
|
34
|
+
config.fixture_path = "#{::Rails.root}/spec/assets"
|
35
|
+
config.use_transactional_fixtures = true
|
36
|
+
config.infer_spec_type_from_file_location!
|
37
|
+
config.filter_rails_from_backtrace!
|
38
|
+
|
39
|
+
config.filter_run :focus
|
40
|
+
config.run_all_when_everything_filtered = true
|
41
|
+
|
42
|
+
FactoryBot.definition_file_paths = ["#{::Rails.root}/spec/factories"]
|
43
|
+
FactoryBot.find_definitions
|
44
|
+
|
45
|
+
config.include FactoryBot::Syntax::Methods
|
46
|
+
config.include ActionDispatch::TestProcess
|
47
|
+
config.include TestHelpers
|
48
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
describe <%= config.gem_class %>::ExampleClass do
|
4
|
+
before do
|
5
|
+
helper_example
|
6
|
+
end
|
7
|
+
|
8
|
+
it "says hi" do
|
9
|
+
expect(described_class.say_hi).to eq("Hello Platanus developer!")
|
10
|
+
end
|
11
|
+
|
12
|
+
it "uses fixtures" do
|
13
|
+
file = fixture_file_upload("image.png", "image/png")
|
14
|
+
expect(file.original_filename).to eq("image.png")
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
sudo: false
|
2
|
+
language: ruby
|
3
|
+
rvm:
|
4
|
+
- 2.3.1
|
5
|
+
script:
|
6
|
+
- RAILS_ENV=test bundle exec rake db:create db:migrate
|
7
|
+
- bundle exec rspec spec
|
8
|
+
deploy:
|
9
|
+
provider: rubygems
|
10
|
+
api_key:
|
11
|
+
secure: your_secure_secret
|
12
|
+
gem: <%= config.gem_name %>
|
13
|
+
on:
|
14
|
+
tags: true
|
15
|
+
repo: platanus/<%= config.gem_name %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
lib = File.expand_path(File.dirname(__FILE__) + "/../lib")
|
3
|
+
$LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
require "commander"
|
6
|
+
require "<%= config.gem_name %>"
|
7
|
+
require "<%= config.gem_name %>/cli"
|
8
|
+
|
9
|
+
<%= config.gem_class %>::Cli.new.run
|
Binary file
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# <%= config.human_gem_name %>
|
2
|
+
|
3
|
+
<%= config.description.blank? ? "TODO" : config.description %>
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
```bash
|
8
|
+
$ gem install <%= config.gem_name %>
|
9
|
+
```
|
10
|
+
|
11
|
+
Or add to your Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem "<%= config.gem_name %>"
|
15
|
+
```
|
16
|
+
|
17
|
+
```bash
|
18
|
+
bundle install
|
19
|
+
```
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO
|
24
|
+
|
25
|
+
## Testing
|
26
|
+
|
27
|
+
To run the specs you need to execute, **in the root path of the gem**, the following command:
|
28
|
+
|
29
|
+
```bash
|
30
|
+
bundle exec guard
|
31
|
+
```
|
32
|
+
|
33
|
+
You need to put **all your tests** in the `/my_gem/spec/` directory.
|
34
|
+
|
35
|
+
## Contributing
|
36
|
+
|
37
|
+
1. Fork it
|
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 new Pull Request
|
42
|
+
|
43
|
+
## Credits
|
44
|
+
|
45
|
+
Thank you [contributors](https://github.com/platanus/<%= config.gem_name %>/graphs/contributors)!
|
46
|
+
|
47
|
+
<img src="http://platan.us/gravatar_with_text.png" alt="Platanus" width="250"/>
|
48
|
+
|
49
|
+
<%= config.human_gem_name %> is maintained by [platanus](http://platan.us).
|
50
|
+
|
51
|
+
## License
|
52
|
+
|
53
|
+
<%= config.human_gem_name %> is © <%= Time.now.year %> platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.
|
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "<%= config.gem_name %>/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "<%= config.gem_name %>"
|
8
|
+
spec.version = <%= config.gem_class %>::VERSION
|
9
|
+
spec.authors = <%= config.authors.to_s %>
|
10
|
+
spec.email = <%= config.emails.to_s %>
|
11
|
+
spec.homepage = "<%= config.homepage %>"
|
12
|
+
spec.summary = "<%= config.summary %>"
|
13
|
+
spec.description = "<%= config.description %>"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
<% if config.cli? -%>
|
22
|
+
<%= "spec.add_dependency \"commander\", \"~> 4.4\", \">= 4.4.0\"" %>
|
23
|
+
<% end -%>
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.4"
|
27
|
+
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
28
|
+
spec.add_development_dependency "pry"
|
29
|
+
spec.add_development_dependency "coveralls"
|
30
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
require 'coveralls'
|
3
|
+
|
4
|
+
formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
|
5
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter::new(formatters)
|
6
|
+
|
7
|
+
SimpleCov.start do
|
8
|
+
add_filter { |src| !(src.filename =~ /lib/) }
|
9
|
+
add_filter "spec.rb"
|
10
|
+
end
|
11
|
+
|
12
|
+
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
|
13
|
+
require "<%= config.gem_name %>"
|
14
|
+
require "pry"
|
15
|
+
|
16
|
+
path = [File.dirname(__FILE__), "support", "**", "*.rb"]
|
17
|
+
Dir[File.join(path)].each { |f| require f }
|
18
|
+
|
19
|
+
RSpec.configure do |config|
|
20
|
+
config.filter_run :focus
|
21
|
+
config.run_all_when_everything_filtered = true
|
22
|
+
|
23
|
+
config.include TestHelpers
|
24
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe <%= config.gem_class %> do
|
4
|
+
before do
|
5
|
+
helper_example
|
6
|
+
end
|
7
|
+
|
8
|
+
it "has a version number" do
|
9
|
+
expect(<%= config.gem_class %>::VERSION).not_to be nil
|
10
|
+
end
|
11
|
+
|
12
|
+
it "does something useful" do
|
13
|
+
expect(false).to eq(true)
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= config.ruby_version %>
|
Binary file
|
data/lib/gemaker/util.rb
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
module Gemaker
|
2
|
+
module Util
|
3
|
+
def copy_file(source, destination)
|
4
|
+
::FileUtils.cp(get_template_path(source), get_destination_path(destination))
|
5
|
+
end
|
6
|
+
|
7
|
+
def copy_template(source, destination, locales = {})
|
8
|
+
template_path = get_template_path(source) + ".erb"
|
9
|
+
destination_path = get_destination_path(destination)
|
10
|
+
|
11
|
+
input = File.open(template_path)
|
12
|
+
output = File.open(destination_path, "w+")
|
13
|
+
output.write(parse_erb(input.read, locales))
|
14
|
+
output.close
|
15
|
+
input.close
|
16
|
+
end
|
17
|
+
|
18
|
+
def remove_in_gem(path)
|
19
|
+
full_path = File.join(gem_root_path, path)
|
20
|
+
|
21
|
+
if File.exist?(full_path)
|
22
|
+
::FileUtils.rm_rf(File.join(gem_root_path, path))
|
23
|
+
return
|
24
|
+
end
|
25
|
+
|
26
|
+
puts "Can't delete because #{full_path} does not exist"
|
27
|
+
end
|
28
|
+
|
29
|
+
def execute(cmd, error_message = nil)
|
30
|
+
system cmd
|
31
|
+
error(error_message) if $?.exitstatus != 0
|
32
|
+
end
|
33
|
+
|
34
|
+
def execute_in_gem(cmd, error_message = nil)
|
35
|
+
system "cd #{gem_root_path}; #{cmd}"
|
36
|
+
error(error_message) if $?.exitstatus != 0
|
37
|
+
system "cd .."
|
38
|
+
end
|
39
|
+
|
40
|
+
def create_dir(path)
|
41
|
+
::FileUtils.mkdir_p(get_destination_path(path))
|
42
|
+
end
|
43
|
+
|
44
|
+
def get_destination_path(destination)
|
45
|
+
destination_path = File.join(gem_root_path, destination)
|
46
|
+
::FileUtils.mkdir_p(File.dirname(destination_path))
|
47
|
+
destination_path
|
48
|
+
end
|
49
|
+
|
50
|
+
def get_template_path(file_path)
|
51
|
+
File.join(utils_path, "templates", file_path)
|
52
|
+
end
|
53
|
+
|
54
|
+
def gem_root_path
|
55
|
+
File.join(Dir.pwd, @config.gem_name)
|
56
|
+
end
|
57
|
+
|
58
|
+
def utils_path
|
59
|
+
File.dirname(__FILE__)
|
60
|
+
end
|
61
|
+
|
62
|
+
def parse_erb(content, data)
|
63
|
+
b = binding
|
64
|
+
data.each { |k, v| singleton_class.send(:define_method, k) { v } }
|
65
|
+
ERB.new(content, nil, "-").result(b)
|
66
|
+
end
|
67
|
+
|
68
|
+
def info(string)
|
69
|
+
puts string.to_s.green
|
70
|
+
end
|
71
|
+
|
72
|
+
def error(string)
|
73
|
+
return if string.blank?
|
74
|
+
puts string.to_s.red
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
data/lib/gemaker/version.rb
CHANGED
metadata
CHANGED
@@ -1,63 +1,261 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Leandro Segovia
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: power-types
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: commander
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: colorize
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.7'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 0.7.7
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0.7'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.7.7
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: artii
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '2.1'
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 2.1.1
|
85
|
+
type: :runtime
|
86
|
+
prerelease: false
|
87
|
+
version_requirements: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '2.1'
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 2.1.1
|
13
95
|
- !ruby/object:Gem::Dependency
|
14
96
|
name: bundler
|
15
97
|
requirement: !ruby/object:Gem::Requirement
|
16
98
|
requirements:
|
17
99
|
- - "~>"
|
18
100
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
101
|
+
version: 2.2.15
|
20
102
|
type: :development
|
21
103
|
prerelease: false
|
22
104
|
version_requirements: !ruby/object:Gem::Requirement
|
23
105
|
requirements:
|
24
106
|
- - "~>"
|
25
107
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
108
|
+
version: 2.2.15
|
27
109
|
- !ruby/object:Gem::Dependency
|
28
110
|
name: rake
|
29
111
|
requirement: !ruby/object:Gem::Requirement
|
30
112
|
requirements:
|
31
113
|
- - "~>"
|
32
114
|
- !ruby/object:Gem::Version
|
33
|
-
version: '10.
|
115
|
+
version: '10.0'
|
116
|
+
type: :development
|
117
|
+
prerelease: false
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - "~>"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '10.0'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: rspec
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '3.0'
|
130
|
+
type: :development
|
131
|
+
prerelease: false
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - "~>"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '3.0'
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: rspec_junit_formatter
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
- !ruby/object:Gem::Dependency
|
152
|
+
name: rubocop
|
153
|
+
requirement: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - "~>"
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 0.65.0
|
34
158
|
type: :development
|
35
159
|
prerelease: false
|
36
160
|
version_requirements: !ruby/object:Gem::Requirement
|
37
161
|
requirements:
|
38
162
|
- - "~>"
|
39
163
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
-
|
164
|
+
version: 0.65.0
|
165
|
+
- !ruby/object:Gem::Dependency
|
166
|
+
name: coveralls
|
167
|
+
requirement: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - ">="
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0'
|
172
|
+
type: :development
|
173
|
+
prerelease: false
|
174
|
+
version_requirements: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
179
|
+
description: Ruby CLI created to build Platanus' gems
|
42
180
|
email:
|
43
|
-
-
|
44
|
-
executables:
|
181
|
+
- ldlsegovia@gmail.com
|
182
|
+
executables:
|
183
|
+
- gemaker
|
45
184
|
extensions: []
|
46
185
|
extra_rdoc_files: []
|
47
186
|
files:
|
187
|
+
- ".circleci/config.yml"
|
188
|
+
- ".circleci/setup-rubygems.sh"
|
189
|
+
- ".coveralls.yml"
|
48
190
|
- ".gitignore"
|
49
|
-
-
|
191
|
+
- ".hound.yml"
|
192
|
+
- ".rspec"
|
193
|
+
- ".rubocop.yml"
|
194
|
+
- ".ruby-version"
|
195
|
+
- CHANGELOG.md
|
50
196
|
- Gemfile
|
51
|
-
- Guardfile
|
52
197
|
- LICENSE.txt
|
53
198
|
- README.md
|
54
199
|
- Rakefile
|
200
|
+
- bin/console
|
201
|
+
- bin/setup
|
202
|
+
- exe/gemaker
|
55
203
|
- gemaker.gemspec
|
56
204
|
- lib/gemaker.rb
|
205
|
+
- lib/gemaker/cli.rb
|
206
|
+
- lib/gemaker/commands/add_changelog.rb
|
207
|
+
- lib/gemaker/commands/add_cli_structure.rb
|
208
|
+
- lib/gemaker/commands/add_hound_rules.rb
|
209
|
+
- lib/gemaker/commands/add_install_generator.rb
|
210
|
+
- lib/gemaker/commands/add_license.rb
|
211
|
+
- lib/gemaker/commands/add_readme.rb
|
212
|
+
- lib/gemaker/commands/add_ruby_version.rb
|
213
|
+
- lib/gemaker/commands/base.rb
|
214
|
+
- lib/gemaker/commands/configure_git.rb
|
215
|
+
- lib/gemaker/commands/configure_test_env.rb
|
216
|
+
- lib/gemaker/commands/configure_travis.rb
|
217
|
+
- lib/gemaker/commands/create_gem.rb
|
218
|
+
- lib/gemaker/commands/customize_engine.rb
|
219
|
+
- lib/gemaker/commands/customize_gemspec.rb
|
220
|
+
- lib/gemaker/commands/customize_main_lib_file.rb
|
221
|
+
- lib/gemaker/commands/customize_rakefile.rb
|
222
|
+
- lib/gemaker/config.rb
|
223
|
+
- lib/gemaker/templates/CHANGELOG.md
|
224
|
+
- lib/gemaker/templates/LICENSE.txt.erb
|
225
|
+
- lib/gemaker/templates/cli.rb.erb
|
226
|
+
- lib/gemaker/templates/coveralls.yml
|
227
|
+
- lib/gemaker/templates/engine/Guardfile
|
228
|
+
- lib/gemaker/templates/engine/README.md.erb
|
229
|
+
- lib/gemaker/templates/engine/Rakefile
|
230
|
+
- lib/gemaker/templates/engine/engine.rb.erb
|
231
|
+
- lib/gemaker/templates/engine/example_class.rb.erb
|
232
|
+
- lib/gemaker/templates/engine/gemspec.erb
|
233
|
+
- lib/gemaker/templates/engine/gitignore
|
234
|
+
- lib/gemaker/templates/engine/initializer.rb.erb
|
235
|
+
- lib/gemaker/templates/engine/install_generator.rb.erb
|
236
|
+
- lib/gemaker/templates/engine/install_usage.erb
|
237
|
+
- lib/gemaker/templates/engine/lib_main_file.rb.erb
|
238
|
+
- lib/gemaker/templates/engine/rails_helper.rb.erb
|
239
|
+
- lib/gemaker/templates/engine/rspec
|
240
|
+
- lib/gemaker/templates/engine/spec_helper.rb.erb
|
241
|
+
- lib/gemaker/templates/engine/test_example.rb.erb
|
242
|
+
- lib/gemaker/templates/engine/travis.yml.erb
|
243
|
+
- lib/gemaker/templates/exe.erb
|
244
|
+
- lib/gemaker/templates/image.png
|
245
|
+
- lib/gemaker/templates/normal/Guardfile
|
246
|
+
- lib/gemaker/templates/normal/README.md.erb
|
247
|
+
- lib/gemaker/templates/normal/Rakefile
|
248
|
+
- lib/gemaker/templates/normal/gemspec.erb
|
249
|
+
- lib/gemaker/templates/normal/spec_helper.rb.erb
|
250
|
+
- lib/gemaker/templates/normal/test_example.rb.erb
|
251
|
+
- lib/gemaker/templates/normal/travis.yml.erb
|
252
|
+
- lib/gemaker/templates/ruby-version.erb
|
253
|
+
- lib/gemaker/templates/test_helpers.rb
|
254
|
+
- lib/gemaker/templates/video.mp4
|
255
|
+
- lib/gemaker/util.rb
|
57
256
|
- lib/gemaker/version.rb
|
58
257
|
homepage: https://github.com/platanus/gemaker
|
59
|
-
licenses:
|
60
|
-
- MIT
|
258
|
+
licenses: []
|
61
259
|
metadata: {}
|
62
260
|
post_install_message:
|
63
261
|
rdoc_options: []
|
@@ -74,10 +272,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
272
|
- !ruby/object:Gem::Version
|
75
273
|
version: '0'
|
76
274
|
requirements: []
|
77
|
-
|
78
|
-
rubygems_version: 2.6.4
|
275
|
+
rubygems_version: 3.1.6
|
79
276
|
signing_key:
|
80
277
|
specification_version: 4
|
81
|
-
summary:
|
278
|
+
summary: Gem to build gems
|
82
279
|
test_files: []
|
83
|
-
has_rdoc:
|