superpowers 0.1.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a51fe4c3133c24cd4677563044b1efa08aa25aac28c78e6cf13b44960dda5df3
4
+ data.tar.gz: d2231c5394e5c0cd100e74a1a27d326e76874648ab8076f7d752070d832de35f
5
+ SHA512:
6
+ metadata.gz: e820e34fe9f7a9e4b8d3b927d6de00b23b52db8dd5a1e94b4a30ae14362ca56b6b0c4b410a4df08207b6a194f0250f70fed7a33133ad2f68c0fee597a4185d51
7
+ data.tar.gz: d7c8a357a203680d9dd8aef08472e9da1eaa29acb1f19e155db03ae6c0ce63d09f19a6b97c1a4f0c887c5cbb4175053ff2613faf58adc996b37a4807bfbb19ed
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 1.17.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at hi@jespr.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in superpowers.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Jesper Christiansen
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.
data/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # Superpowers
2
+
3
+ Superpowers provides some generators to ease your Rails work:
4
+
5
+ - generate scoped/nested scaffolds easily
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'superpowers'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install superpowers
22
+
23
+ ## Usage
24
+
25
+ ### Create scoped scaffold
26
+
27
+ Many apps relies on users being logged in. This scaffold will make it easy for you to create a resource that is scoped to `current_user` but the route remains un-nested:
28
+
29
+ `rails g superpowers:scaffold Project title --scope=current_user`
30
+
31
+ The above command will generate a scaffold named Project, which is scoped to `current_user`. It will create a `ProjectsController` where every ActiveRecord reference to `project`
32
+ is scoped like so `current_user.projects`.
33
+
34
+ ### Create scoped scaffold with nested routes
35
+
36
+ `rails g superpowers:scaffold Task name --scope=project --nested_route`
37
+
38
+ This command will create a scaffold scoped to `Project` and nested under the `resources :projects` route. It will create a `TasksController` where task is scoped to Project like so
39
+ `@project.tasks` - it also inserts a `before_action :set_project` which will look up the project: `@project = Project.find(params[:project_id]`.
40
+
41
+ ## Planned Work
42
+
43
+ - Make it possible to create a scaffold where the resource is scoped to `--scope` and the model declared in `--scope` is scoped to let's say `current_user`.
44
+
45
+
46
+ ## Development
47
+
48
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
49
+
50
+ 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`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
51
+
52
+ ## Contributing
53
+
54
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jespr/superpowers. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
55
+
56
+ ## License
57
+
58
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
59
+
60
+ ## Code of Conduct
61
+
62
+ Everyone interacting in the Superpowers project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/jespr/superpowers/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "superpowers"
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(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,29 @@
1
+ Description:
2
+
3
+ Generates scaffold scoped (and with nested resources if passed as an option) to your resource of choice.
4
+
5
+ Examples:
6
+
7
+ Resource scoped to `current_user` with regular non-nested routes:
8
+ -----------------------------------------------------------------
9
+ rails g superpowers:scaffold Project title --scope=current_user
10
+
11
+ This will generate:
12
+ views
13
+ controller (with project scoped like so: `current_user.projects.find(...)` etc.)
14
+ associations (user: `has_many :projects` - project: `belongs_to :user`)
15
+ route (`resources :users`)
16
+
17
+
18
+ Resource scoped to a parent resource with nested routes:
19
+ -----------------------------------------------------------------
20
+ rails g superpowers:scaffold Task name --scope=project --nested_route
21
+
22
+ This will generate:
23
+ views
24
+ controller (with task scoped like so: `@project.tasks.find(...)` and a `before_action :set_project`)
25
+ associations (project: `has_many :tasks` - task: `belongs_to :project`)
26
+ nested route:
27
+ resources :projects do
28
+ resources :tasks
29
+ end
@@ -0,0 +1,124 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/named_base'
3
+ require 'rails/generators/resource_helpers'
4
+ # require 'rails/generators/active_record/migration'
5
+
6
+ module Superpowers
7
+ module Generators
8
+ class ScaffoldGenerator < Rails::Generators::NamedBase
9
+ include Rails::Generators::ResourceHelpers
10
+
11
+ source_root File.expand_path('../templates', __FILE__)
12
+
13
+ class_option :orm, banner: "NAME", type: :string, required: true, desc: "ORM to generate the controller for"
14
+ class_option :scope, banner: "SCOPE", type: :string, desc: "Instance/model to scope for. Example: current_user or Project"
15
+ class_option :nested_route, type: :boolean, default: false
16
+
17
+ argument :attributes, type: :array, default: [], banner: "field:type field:type"
18
+
19
+ hook_for :helper, in: :rails
20
+
21
+ hook_for :assets, in: :rails
22
+
23
+ remove_hook_for :resource_route
24
+ # override
25
+ def add_resource_route
26
+ return if options[:actions].present?
27
+
28
+ route_config = "resources :#{file_name.pluralize}\n"
29
+
30
+ if @options[:nested_route]
31
+ route_config = "resources :#{plural_nested_parent_name} do\n" \
32
+ " resources :#{file_name.pluralize}\n" \
33
+ "end\n"
34
+ end
35
+
36
+ route route_config
37
+
38
+ gsub_file 'config/routes.rb', / *resources :#{plural_nested_parent_name}\n/, ''
39
+ end
40
+
41
+ def initialize(args, *options) #:nodoc:
42
+ super
43
+ end
44
+
45
+ def create_controller
46
+ template "controller.rb", File.join('app/controllers', "#{controller_file_name}_controller.rb"), behavior: self.behavior
47
+ end
48
+
49
+ def scaffold_views
50
+ invoke "erb:scaffold", [singular_name, migration_attributes], behavior: self.behavior
51
+ end
52
+
53
+ def generate_model_and_insert_association
54
+ case self.behavior
55
+ when :invoke
56
+ invoke :model, [singular_name, migration_attributes, scoped_by_reference].flatten, behavior: :invoke
57
+ inject_into_file scoped_by_file_path, "\n has_many :#{plural_name}", after: "ApplicationRecord"
58
+ when :revoke
59
+ # gsub_file doesn't work for some reason, so this is a quick temp solution
60
+ content = File.read(scoped_by_file_path).gsub(/\s*has_many :#{plural_name}/, '')
61
+ File.open(scoped_by_file_path, 'wb') { |file| file.write(content) }
62
+
63
+ invoke :model, [singular_name], behavior: :revoke
64
+ end
65
+ end
66
+
67
+ private
68
+
69
+ def migration_attributes
70
+ attributes.map { |a| "#{a.name}:#{a.type}" if a.type }
71
+ end
72
+
73
+ def scoped_by_reference
74
+ if scoped_arg.start_with?('current_')
75
+ klass = scoped_arg.gsub('current_', '')
76
+ end
77
+ [klass, ':', 'references'].join('')
78
+ end
79
+
80
+ def nested_parent_name
81
+ scoped_arg.gsub('current_', '').singularize
82
+ end
83
+
84
+ def plural_nested_parent_name
85
+ nested_parent_name.pluralize
86
+ end
87
+
88
+ def scoped_by_file_path
89
+ file_name = scoped_arg.gsub('current_', '')
90
+ "app/models/#{file_name}.rb"
91
+ end
92
+
93
+ def scoped_arg
94
+ if @options["scope"].start_with?('current_')
95
+ @options["scope"]
96
+ end
97
+ end
98
+
99
+ def scoped_class
100
+ scoped_arg.classify
101
+ end
102
+
103
+ def resource_arg
104
+ name.split('/').last.downcase.singularize
105
+ end
106
+
107
+ def resource_plural
108
+ resource_arg.pluralize
109
+ end
110
+
111
+ def nested_routes?
112
+ @options[:nested_route]
113
+ end
114
+
115
+ def scoped_resource
116
+ if nested_routes?
117
+ ["@#{nested_parent_name}", resource_plural].join('.')
118
+ else
119
+ [scoped_arg, resource_plural].join('.')
120
+ end
121
+ end
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,77 @@
1
+ <% if namespaced? -%>
2
+ require_dependency "<%= namespaced_path %>/application_controller"
3
+
4
+ <% end -%>
5
+ <% module_namespacing do -%>
6
+ class <%= controller_class_name %>Controller < ApplicationController
7
+ before_action :set_<%= singular_table_name %>, only: [:show, :edit, :update, :destroy]
8
+ <%- if nested_routes? -%>
9
+ before_action :set_<%= nested_parent_name %>, only: [:show, :edit, :update, :destroy]
10
+ <%- end -%>
11
+
12
+ # GET <%= route_url %>
13
+ def index
14
+ @pagy, @<%= plural_table_name %> = pagy(<%= orm_class.all(scoped_resource) %>)
15
+ end
16
+
17
+ # GET <%= route_url %>/1
18
+ def show
19
+ end
20
+
21
+ # GET <%= route_url %>/new
22
+ def new
23
+ @<%= singular_table_name %> = <%= orm_class.build(scoped_resource) %>
24
+ end
25
+
26
+ # GET <%= route_url %>/1/edit
27
+ def edit
28
+ end
29
+
30
+ # POST <%= route_url %>
31
+ def create
32
+ @<%= singular_table_name %> = <%= orm_class.build(scoped_resource, "#{singular_table_name}_params") %>
33
+
34
+ if @<%= orm_instance.save %>
35
+ redirect_to <%= redirect_resource_name %>, notice: <%= "'#{human_name} was successfully created.'" %>
36
+ else
37
+ render :new
38
+ end
39
+ end
40
+
41
+ # PATCH/PUT <%= route_url %>/1
42
+ def update
43
+ if @<%= orm_instance.update("#{singular_table_name}_params") %>
44
+ redirect_to <%= redirect_resource_name %>, notice: <%= "'#{human_name} was successfully updated.'" %>
45
+ else
46
+ render :edit
47
+ end
48
+ end
49
+
50
+ # DELETE <%= route_url %>/1
51
+ def destroy
52
+ @<%= orm_instance.destroy %>
53
+ redirect_to <%= index_helper %>_url, notice: <%= "'#{human_name} was successfully destroyed.'" %>
54
+ end
55
+
56
+ private
57
+ # Use callbacks to share common setup or constraints between actions.
58
+ def set_<%= singular_table_name %>
59
+ @<%= singular_table_name %> = <%= orm_class.find(scoped_resource, "params[:id]") %>
60
+ end
61
+
62
+ <%- if nested_routes? -%>
63
+ def set_<%= nested_parent_name %>
64
+ @<%= nested_parent_name %> = <%= orm_class.find(nested_parent_name.classify, "params[:#{[nested_parent_name, 'id'].join('_')}]") %>
65
+ end
66
+ <%- end -%>
67
+
68
+ # Only allow a trusted parameter "white list" through.
69
+ def <%= "#{singular_table_name}_params" %>
70
+ <%- if attributes_names.empty? -%>
71
+ params.fetch(:<%= singular_table_name %>, {})
72
+ <%- else -%>
73
+ params.require(:<%= singular_table_name %>).permit(<%= attributes_names.map { |name| ":#{name}" }.join(', ') %>)
74
+ <%- end -%>
75
+ end
76
+ end
77
+ <% end -%>
@@ -0,0 +1,6 @@
1
+ require "superpowers/version"
2
+
3
+ module Superpowers
4
+ class Error < StandardError; end
5
+ # Your code goes here...
6
+ end
@@ -0,0 +1,3 @@
1
+ module Superpowers
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,32 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "superpowers/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "superpowers"
8
+ spec.version = Superpowers::VERSION
9
+ spec.authors = ["Jesper Christiansen"]
10
+ spec.email = ["hi@jespr.com"]
11
+
12
+ spec.summary = "Rails generators that gives you super powers"
13
+ spec.description = "Useful rails generators"
14
+ spec.homepage = "https://github.com/jespr/superpowers"
15
+ spec.license = "MIT"
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.add_development_dependency "bundler", "~> 1.17"
27
+ spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "minitest", "~> 5.0"
29
+ spec.add_runtime_dependency 'actionpack', ['>= 5.2']
30
+ spec.add_runtime_dependency 'railties', ['>= 5.2']
31
+ spec.add_development_dependency "rails", ">= 5.2"
32
+ end
metadata ADDED
@@ -0,0 +1,142 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: superpowers
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jesper Christiansen
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-06-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.17'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.17'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: actionpack
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '5.2'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '5.2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: railties
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '5.2'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '5.2'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '5.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '5.2'
97
+ description: Useful rails generators
98
+ email:
99
+ - hi@jespr.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".travis.yml"
106
+ - CODE_OF_CONDUCT.md
107
+ - Gemfile
108
+ - LICENSE.txt
109
+ - README.md
110
+ - Rakefile
111
+ - bin/console
112
+ - bin/setup
113
+ - lib/generators/superpowers/scaffold/USAGE
114
+ - lib/generators/superpowers/scaffold/scaffold_generator.rb
115
+ - lib/generators/superpowers/scaffold/templates/controller.rb.tt
116
+ - lib/superpowers.rb
117
+ - lib/superpowers/version.rb
118
+ - superpowers.gemspec
119
+ homepage: https://github.com/jespr/superpowers
120
+ licenses:
121
+ - MIT
122
+ metadata: {}
123
+ post_install_message:
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ requirements: []
138
+ rubygems_version: 3.0.3
139
+ signing_key:
140
+ specification_version: 4
141
+ summary: Rails generators that gives you super powers
142
+ test_files: []