blueprint 0.2.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 +7 -0
- data/.editorconfig +15 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.rubocop.yml +19 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +126 -0
- data/Rakefile +6 -0
- data/bin/blueprint +5 -0
- data/bin/console +14 -0
- data/bin/rspec +4 -0
- data/bin/setup +7 -0
- data/blueprint.gemspec +38 -0
- data/circle.yml +3 -0
- data/lib/blueprint.rb +5 -0
- data/lib/blueprint/cli.rb +18 -0
- data/lib/blueprint/generator/base.rb +65 -0
- data/lib/blueprint/generator/base/template_rendering.rb +27 -0
- data/lib/blueprint/generator/rails_app.rb +44 -0
- data/lib/blueprint/generator/templates/rails_app/.editorconfig +15 -0
- data/lib/blueprint/generator/templates/rails_app/.gitignore +30 -0
- data/lib/blueprint/generator/templates/rails_app/.ruby-version +1 -0
- data/lib/blueprint/generator/templates/rails_app/Gemfile.erb +19 -0
- data/lib/blueprint/generator/templates/rails_app/database.yml.erb +16 -0
- data/lib/blueprint/generator/templates/rails_app/views/application.slim.erb +14 -0
- data/lib/blueprint/version.rb +3 -0
- metadata +184 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a2e6ce14d37f31768240fe665d81d2c486ad3c84
|
4
|
+
data.tar.gz: 7dcfe99d824c4bb364d1f9267ae387f86f5b9728
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ffb27520a7a3077dbdbfdb9943661e40e842f0232a8a0654ae9c271b5c28b15582aea028a7809758eac564af6f6f2a83ce21517d4111a2d8dbd1be12befa7165
|
7
|
+
data.tar.gz: f14dc34283275d6a2f2bce5e49554f33871b7a95282173cc038a9fd95d8d3d9a4b2eacef49cfdb9c811bcb502d75f17e89bd281920c9ec4bef0f278e82f00351
|
data/.editorconfig
ADDED
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Metrics/LineLength:
|
2
|
+
Max: 120
|
3
|
+
|
4
|
+
Style/SpaceInsideHashLiteralBraces:
|
5
|
+
EnforcedStyle: no_space
|
6
|
+
EnforcedStyleForEmptyBraces: no_space
|
7
|
+
|
8
|
+
Style/Documentation:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Style/IndentationConsistency:
|
12
|
+
EnforcedStyle: rails
|
13
|
+
|
14
|
+
AllCops:
|
15
|
+
TargetRubyVersion: 2.2
|
16
|
+
|
17
|
+
# long script methods
|
18
|
+
Metrics/MethodLength:
|
19
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.3
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Datarockets
|
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,126 @@
|
|
1
|
+
# Blueprint
|
2
|
+
|
3
|
+
Blueprint is the Rails application starter used at [datarockets](datarockets.com).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
TODO: fix it
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'blueprint'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install blueprint
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
For creating rails application run:
|
26
|
+
|
27
|
+
$ blueprint new APP_NAME
|
28
|
+
|
29
|
+
### Create custom generator
|
30
|
+
|
31
|
+
Guide for creating and editing generators.
|
32
|
+
|
33
|
+
#### Step 1: create command for calling generator
|
34
|
+
|
35
|
+
Add command for generator in `lib/blueprint/generator/cli.rb`.
|
36
|
+
|
37
|
+
Example:
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
command :new do |c|
|
41
|
+
c.syntax = 'blueprint new APP_PATH'
|
42
|
+
c.summary = 'Generate rails application'
|
43
|
+
c.description = 'Generate rails application with default settings and dependecies'
|
44
|
+
c.action do |args, _options|
|
45
|
+
Blueprint::Generator::RailsApp.new(name: args[0]).run!
|
46
|
+
end
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
#### Step 2: Create generator class
|
51
|
+
|
52
|
+
Extending class of `Blueprint::Generator::Base`:
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
require 'blueprint/generator/base'
|
56
|
+
|
57
|
+
module Blueprint
|
58
|
+
module Generator
|
59
|
+
class RailsApp < Base
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
```
|
64
|
+
|
65
|
+
#### Step 3: Create folder with files
|
66
|
+
|
67
|
+
Create folder for files and templates for your application on folder `lib/blueprint/generator/templates/` and override folder name on generator class
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
def self.template_path
|
71
|
+
'rails_app'
|
72
|
+
end
|
73
|
+
```
|
74
|
+
|
75
|
+
#### Step 4: Create ask question step for generator
|
76
|
+
|
77
|
+
Override `ask_questions` method for creating `config` hash. [Question list.](https://github.com/commander-rb/commander#highline)
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
def ask_questions
|
81
|
+
config[:bootstrap] = agree("Would you like initialize bootstrap on your application?")
|
82
|
+
end
|
83
|
+
```
|
84
|
+
|
85
|
+
#### Step 5: Create generator script
|
86
|
+
|
87
|
+
Override `execute` method for creating generator script.
|
88
|
+
|
89
|
+
```ruby
|
90
|
+
def execute
|
91
|
+
shell "rails new #{name} --skip-bundle --database=postgresql --no-rc --skip-test-unit"
|
92
|
+
end
|
93
|
+
```
|
94
|
+
|
95
|
+
List with commands for creating execute script:
|
96
|
+
|
97
|
+
Command | Description | Example
|
98
|
+
--- | --- | ---
|
99
|
+
`cmd_title(string)` | Puts string on console | `cmd_title('Start script')`
|
100
|
+
`shell(cmd)` | Run shell command | `shell('mkdir examples')`
|
101
|
+
`cd_path(path)` | Change current path | `cd_path(name)`
|
102
|
+
`copy_file(from, to)` | Copy file from templates path to project. If second argument exist, copy file to tepmlates path | `copy_file('.editorconfig')`
|
103
|
+
`copy_file_from_template(from, to)` | Copy `erb` file from templates path to project with parsing. If second argument exist, copy file to tepmlates path | `copy_file_from_template('Gemfile')`
|
104
|
+
|
105
|
+
Variable lists in generator class and erb templates
|
106
|
+
|
107
|
+
Variable | Description
|
108
|
+
--- | ---
|
109
|
+
name | First argument on running script
|
110
|
+
config | Generated on `ask_question` step
|
111
|
+
|
112
|
+
## Development
|
113
|
+
|
114
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
115
|
+
|
116
|
+
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).
|
117
|
+
|
118
|
+
## Contributing
|
119
|
+
|
120
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/blueprint. 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.
|
121
|
+
|
122
|
+
|
123
|
+
## License
|
124
|
+
|
125
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
126
|
+
|
data/Rakefile
ADDED
data/bin/blueprint
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'blueprint'
|
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
|
data/bin/rspec
ADDED
data/bin/setup
ADDED
data/blueprint.gemspec
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'blueprint/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'blueprint'
|
8
|
+
spec.version = Blueprint::VERSION
|
9
|
+
spec.authors = ['Datarockets']
|
10
|
+
spec.email = ['hello@datarockets.com']
|
11
|
+
|
12
|
+
spec.summary = 'Rails application generator'
|
13
|
+
spec.description = 'Generate application with custom settings'
|
14
|
+
spec.homepage = 'https://github.com/datarockets/blueprint'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
# if spec.respond_to?(:metadata)
|
20
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
+
# else
|
22
|
+
# raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
|
23
|
+
# end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.executables = ['blueprint']
|
27
|
+
spec.require_paths = ['lib']
|
28
|
+
|
29
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
30
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
31
|
+
%w(rspec simplecov rubocop pry rails).each do |dependecy|
|
32
|
+
spec.add_development_dependency dependecy
|
33
|
+
end
|
34
|
+
|
35
|
+
%w(commander).each do |dependecy|
|
36
|
+
spec.add_dependency dependecy
|
37
|
+
end
|
38
|
+
end
|
data/circle.yml
ADDED
data/lib/blueprint.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'commander/import'
|
3
|
+
|
4
|
+
require 'blueprint'
|
5
|
+
require 'blueprint/generator/rails_app'
|
6
|
+
|
7
|
+
program :name, 'blueprint'
|
8
|
+
program :version, Blueprint::VERSION
|
9
|
+
program :description, 'Rails application starter used at datarockets'
|
10
|
+
|
11
|
+
command :new do |c|
|
12
|
+
c.syntax = 'blueprint new APP_PATH'
|
13
|
+
c.summary = 'Generate rails application'
|
14
|
+
c.description = 'Generate rails application with default settings and dependecies'
|
15
|
+
c.action do |args, _options|
|
16
|
+
Blueprint::Generator::RailsApp.new(name: args[0]).run!
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'blueprint/generator/base/template_rendering'
|
2
|
+
|
3
|
+
module Blueprint
|
4
|
+
module Generator
|
5
|
+
class Base
|
6
|
+
attr_reader :name, :config
|
7
|
+
|
8
|
+
def initialize(name:)
|
9
|
+
@name = name
|
10
|
+
@config = {}
|
11
|
+
end
|
12
|
+
|
13
|
+
def run!
|
14
|
+
ask_questions
|
15
|
+
execute
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.template_path
|
19
|
+
''
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def ask_questions
|
25
|
+
end
|
26
|
+
|
27
|
+
def execute
|
28
|
+
end
|
29
|
+
|
30
|
+
def shell(cmd)
|
31
|
+
cmd_title("Run #{cmd}")
|
32
|
+
system(cmd)
|
33
|
+
end
|
34
|
+
|
35
|
+
def copy_file(from, to = nil)
|
36
|
+
cmd_title("Copy file #{from}")
|
37
|
+
to = from if to.nil?
|
38
|
+
FileUtils.cp(template_path + from, to)
|
39
|
+
end
|
40
|
+
|
41
|
+
def copy_file_from_template(from, to = nil)
|
42
|
+
cmd_title("Copy file #{from} from template")
|
43
|
+
to = from if to.nil?
|
44
|
+
|
45
|
+
template = TemplateRendering.new(name, config)
|
46
|
+
template.save(template_path + from + '.erb', to)
|
47
|
+
end
|
48
|
+
|
49
|
+
def cd_path(path)
|
50
|
+
cmd_title("Cnahge the current directory to #{path}")
|
51
|
+
FileUtils.cd(path)
|
52
|
+
end
|
53
|
+
|
54
|
+
def template_path
|
55
|
+
File.expand_path(File.dirname(__FILE__)) + '/templates/' + self.class.template_path + '/'
|
56
|
+
end
|
57
|
+
|
58
|
+
def cmd_title(title)
|
59
|
+
puts
|
60
|
+
puts title
|
61
|
+
puts
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'erb'
|
2
|
+
|
3
|
+
module Blueprint
|
4
|
+
module Generator
|
5
|
+
class Base
|
6
|
+
class TemplateRendering
|
7
|
+
attr_reader :name, :config
|
8
|
+
|
9
|
+
def initialize(name, config)
|
10
|
+
@name = name
|
11
|
+
@config = config
|
12
|
+
end
|
13
|
+
|
14
|
+
def render(template_file)
|
15
|
+
template = File.open(template_file).read
|
16
|
+
ERB.new(template, 0, '%<>').result(binding)
|
17
|
+
end
|
18
|
+
|
19
|
+
def save(from, to)
|
20
|
+
File.open(to, 'w+') do |f|
|
21
|
+
f.write(render(from))
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'blueprint/generator/base'
|
2
|
+
|
3
|
+
module Blueprint
|
4
|
+
module Generator
|
5
|
+
class RailsApp < Base
|
6
|
+
def self.template_path
|
7
|
+
'rails_app'
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def ask_questions
|
13
|
+
config[:title] = ask("Application title: ")
|
14
|
+
end
|
15
|
+
|
16
|
+
def execute
|
17
|
+
cmd_title("Generate rails application with path #{name}")
|
18
|
+
|
19
|
+
# Create application
|
20
|
+
shell "rails new #{name} --skip-bundle --database=postgresql --no-rc --skip-test-unit"
|
21
|
+
cd_path(name)
|
22
|
+
|
23
|
+
# Copy dotfiles
|
24
|
+
copy_file('.editorconfig')
|
25
|
+
copy_file('.gitignore')
|
26
|
+
copy_file('.ruby-version')
|
27
|
+
|
28
|
+
# Create config/examples
|
29
|
+
cmd_title('Create config\'s examples')
|
30
|
+
shell 'mkdir config/examples'
|
31
|
+
shell 'rm config/database.yml'
|
32
|
+
shell 'mv config/secrets.yml config/examples/secrets.yml'
|
33
|
+
copy_file_from_template('database.yml', 'config/examples/database.yml')
|
34
|
+
|
35
|
+
# Create Gemfile
|
36
|
+
copy_file_from_template('Gemfile')
|
37
|
+
|
38
|
+
# Init views
|
39
|
+
shell 'rm app/views/layouts/application.html.erb'
|
40
|
+
copy_file_from_template('views/application.slim', 'app/views/layouts/application.html.slim')
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
+
|
7
|
+
# Ignore bundler config.
|
8
|
+
/.bundle
|
9
|
+
|
10
|
+
# Ignore WebStorm IDE config.
|
11
|
+
/.idea
|
12
|
+
|
13
|
+
# And bundled gems.
|
14
|
+
/vendor/bundle
|
15
|
+
|
16
|
+
# Ignore all logfiles and tempfiles.
|
17
|
+
/log/*.log
|
18
|
+
/tmp
|
19
|
+
|
20
|
+
# Ignore configs which is different on different machines
|
21
|
+
/config/database.yml
|
22
|
+
/config/secrets.yml
|
23
|
+
|
24
|
+
# Ignore code coverage by tests.
|
25
|
+
/coverage
|
26
|
+
|
27
|
+
# Ignore assets and uploads.
|
28
|
+
/public/assets
|
29
|
+
/public/system
|
30
|
+
/public/uploads
|
@@ -0,0 +1 @@
|
|
1
|
+
2.2.3
|
@@ -0,0 +1,19 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gem 'rails', '4.2.5.1'
|
4
|
+
gem 'pg', '~> 0.15'
|
5
|
+
|
6
|
+
gem 'slim-rails'
|
7
|
+
gem 'sass-rails', '~> 5.0'
|
8
|
+
gem 'uglifier', '>= 1.3.0'
|
9
|
+
gem 'jquery-rails'
|
10
|
+
|
11
|
+
group :development, :test do
|
12
|
+
gem 'pry-byebug'
|
13
|
+
end
|
14
|
+
|
15
|
+
group :development do
|
16
|
+
gem 'web-console', '~> 2.0'
|
17
|
+
gem 'spring'
|
18
|
+
end
|
19
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
default: &default
|
2
|
+
adapter: postgresql
|
3
|
+
pool: 5
|
4
|
+
timeout: 5000
|
5
|
+
|
6
|
+
development:
|
7
|
+
<<: *default
|
8
|
+
database: <%= name%>_development
|
9
|
+
|
10
|
+
test:
|
11
|
+
<<: *default
|
12
|
+
database: <%= name%>_test
|
13
|
+
|
14
|
+
production:
|
15
|
+
<<: *default
|
16
|
+
database: <%= name%>_production
|
@@ -0,0 +1,14 @@
|
|
1
|
+
doctype html
|
2
|
+
|
3
|
+
html
|
4
|
+
head
|
5
|
+
title <%= config[:title].empty? ? name : config[:title]%>
|
6
|
+
|
7
|
+
= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
|
8
|
+
|
9
|
+
= javascript_include_tag "application", "data-turbolinks-track" => true
|
10
|
+
|
11
|
+
= csrf_meta_tags
|
12
|
+
body
|
13
|
+
|
14
|
+
== yield
|
metadata
ADDED
@@ -0,0 +1,184 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: blueprint
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Datarockets
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-03-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.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
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: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
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: simplecov
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: commander
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: Generate application with custom settings
|
126
|
+
email:
|
127
|
+
- hello@datarockets.com
|
128
|
+
executables:
|
129
|
+
- blueprint
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".editorconfig"
|
134
|
+
- ".gitignore"
|
135
|
+
- ".rspec"
|
136
|
+
- ".rubocop.yml"
|
137
|
+
- ".ruby-version"
|
138
|
+
- Gemfile
|
139
|
+
- LICENSE.txt
|
140
|
+
- README.md
|
141
|
+
- Rakefile
|
142
|
+
- bin/blueprint
|
143
|
+
- bin/console
|
144
|
+
- bin/rspec
|
145
|
+
- bin/setup
|
146
|
+
- blueprint.gemspec
|
147
|
+
- circle.yml
|
148
|
+
- lib/blueprint.rb
|
149
|
+
- lib/blueprint/cli.rb
|
150
|
+
- lib/blueprint/generator/base.rb
|
151
|
+
- lib/blueprint/generator/base/template_rendering.rb
|
152
|
+
- lib/blueprint/generator/rails_app.rb
|
153
|
+
- lib/blueprint/generator/templates/rails_app/.editorconfig
|
154
|
+
- lib/blueprint/generator/templates/rails_app/.gitignore
|
155
|
+
- lib/blueprint/generator/templates/rails_app/.ruby-version
|
156
|
+
- lib/blueprint/generator/templates/rails_app/Gemfile.erb
|
157
|
+
- lib/blueprint/generator/templates/rails_app/database.yml.erb
|
158
|
+
- lib/blueprint/generator/templates/rails_app/views/application.slim.erb
|
159
|
+
- lib/blueprint/version.rb
|
160
|
+
homepage: https://github.com/datarockets/blueprint
|
161
|
+
licenses:
|
162
|
+
- MIT
|
163
|
+
metadata: {}
|
164
|
+
post_install_message:
|
165
|
+
rdoc_options: []
|
166
|
+
require_paths:
|
167
|
+
- lib
|
168
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: '0'
|
178
|
+
requirements: []
|
179
|
+
rubyforge_project:
|
180
|
+
rubygems_version: 2.4.5.1
|
181
|
+
signing_key:
|
182
|
+
specification_version: 4
|
183
|
+
summary: Rails application generator
|
184
|
+
test_files: []
|