ezstartforme 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +0 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/lib/ezstartforme.rb +2 -0
- data/lib/ezstartforme/version.rb +3 -0
- data/lib/generators/ez/set_up_generator.rb +52 -0
- data/lib/generators/ez/templates/Capfile +31 -0
- data/lib/generators/ez/templates/Gemfile +105 -0
- data/lib/generators/ez/templates/application.css +18 -0
- data/lib/generators/ez/templates/application.js +20 -0
- data/lib/generators/ez/templates/database.yml +22 -0
- data/lib/generators/ez/templates/pages_controller.rb +7 -0
- data/lib/generators/ez/templates/route.rb +66 -0
- data/spec/generators/set_up_generator_spec.rb +20 -0
- data/spec/spec_helper.rb +94 -0
- metadata +103 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3741ad026309f8e4478e8c2f0068ab0423774dcf
|
4
|
+
data.tar.gz: 64018d1e5dcbe8a2b3545c21dd2a5e292080f41d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 37c50ded610ad718c1bedf6052f98649724a9ba8c96cdfa5ab2970b198925d91c55dcfad956a6f09e76822cbf7a72e9378364dbf2abb50d809f7f0c3bfb4ea5d
|
7
|
+
data.tar.gz: f33b51c096b3670077eb82f41fff37600dc77c3d8b2b06f9ad88e3b1a4eeba3a12855c07413b7bb487f31ab1128ace3fd2ed2bda9ad64c5c9eef5503a7e69d7f
|
data/CHANGELOG.md
ADDED
File without changes
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 TODO: Write your name
|
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,45 @@
|
|
1
|
+
# Ezstartforme
|
2
|
+
|
3
|
+
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/ezstartforme`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'ezstartforme'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install ezstartforme
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Create new rails project
|
26
|
+
|
27
|
+
$ rails new test_app
|
28
|
+
|
29
|
+
Then install ezstartfome and set up project by command
|
30
|
+
|
31
|
+
$ rails generate ez:set_up
|
32
|
+
|
33
|
+
## Development
|
34
|
+
|
35
|
+
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.
|
36
|
+
|
37
|
+
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).
|
38
|
+
|
39
|
+
## Contributing
|
40
|
+
|
41
|
+
1. Fork it ( https://github.com/[my-github-username]/ezstartforme/fork )
|
42
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
43
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
44
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
45
|
+
5. Create a new Pull Request
|
data/lib/ezstartforme.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Ez
|
4
|
+
module Generators
|
5
|
+
class SetUpGenerator < Rails::Generators::NamedBase
|
6
|
+
source_root File.expand_path("../templates", __FILE__)
|
7
|
+
|
8
|
+
desc 'This generator setups rails project templates '
|
9
|
+
|
10
|
+
def initialize(args, *options)
|
11
|
+
super
|
12
|
+
f= File.new File.join SetUpGenerator::source_root,'Gemfile'
|
13
|
+
@content = f.readlines
|
14
|
+
end
|
15
|
+
|
16
|
+
def create_gemfile_and_config
|
17
|
+
copy_file 'Gemfile', 'Gemfile'
|
18
|
+
template 'database.yml', 'config/database.yml'
|
19
|
+
|
20
|
+
Bundler.with_clean_env do
|
21
|
+
run "bundle install"
|
22
|
+
end
|
23
|
+
run 'rake rails:update:bin'
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
def set_up_gems
|
28
|
+
generate 'simple_form:install --bootstrap' if gems? 'simple_form'
|
29
|
+
generate 'nested_form:install' if gems? 'nested_form'
|
30
|
+
run 'compass install bootstrap -r bootstrap-sass'
|
31
|
+
generate 'rspec:install' if gems? 'rspec'
|
32
|
+
generate 'html5:install' if gems? 'compass-h5bp'
|
33
|
+
rake 'haml:erb2haml' if gems? 'haml-rails'
|
34
|
+
run 'cap install' if gems? 'capistrano'
|
35
|
+
copy_file 'Capfile','Capfile'
|
36
|
+
end
|
37
|
+
|
38
|
+
private
|
39
|
+
|
40
|
+
def gems? gem_name
|
41
|
+
|
42
|
+
@content.each do |line|
|
43
|
+
next if line.to_s.strip[0] == '#'
|
44
|
+
return true if line.include? gem_name
|
45
|
+
end
|
46
|
+
false
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Load DSL and set up stages
|
2
|
+
require 'capistrano/setup'
|
3
|
+
|
4
|
+
# Include default deployment tasks
|
5
|
+
require 'capistrano/deploy'
|
6
|
+
|
7
|
+
# Include ec2
|
8
|
+
require "cap-ec2/capistrano"
|
9
|
+
# Include tasks from other gems included in your Gemfile
|
10
|
+
#
|
11
|
+
# For documentation on these, see for example:
|
12
|
+
#
|
13
|
+
# https://github.com/capistrano/rvm
|
14
|
+
# https://github.com/capistrano/rbenv
|
15
|
+
# https://github.com/capistrano/chruby
|
16
|
+
# https://github.com/capistrano/bundler
|
17
|
+
# https://github.com/capistrano/rails
|
18
|
+
# https://github.com/capistrano/passenger
|
19
|
+
#
|
20
|
+
# require 'capistrano/rvm'
|
21
|
+
# require 'capistrano/rbenv'
|
22
|
+
# require 'capistrano/chruby'
|
23
|
+
# require 'capistrano/bundler'
|
24
|
+
# require 'capistrano/rails/assets'
|
25
|
+
# require 'capistrano/rails/migrations'
|
26
|
+
# require 'capistrano/passenger'
|
27
|
+
|
28
|
+
require 'capistrano/rails'
|
29
|
+
|
30
|
+
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
31
|
+
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
@@ -0,0 +1,105 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
|
4
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
5
|
+
gem 'rails', '4.1.8'
|
6
|
+
|
7
|
+
# database
|
8
|
+
gem 'pg'
|
9
|
+
gem 'postgres_ext'
|
10
|
+
|
11
|
+
# styling
|
12
|
+
gem 'bootstrap-sass', '~> 3.3.4'
|
13
|
+
gem 'sass-rails', '~> 4.0.3'
|
14
|
+
gem 'font-awesome-rails'
|
15
|
+
gem "autoprefixer-rails"
|
16
|
+
gem "respond-rails", "~> 1.0"
|
17
|
+
|
18
|
+
#angular
|
19
|
+
gem 'angularjs-rails'
|
20
|
+
gem 'angular-rails-templates'
|
21
|
+
|
22
|
+
# browser support
|
23
|
+
gem 'html5-rails'
|
24
|
+
gem 'jquery-ui-rails'
|
25
|
+
gem 'haml-rails'
|
26
|
+
|
27
|
+
# Use Uglifier as compressor for JavaScript assets
|
28
|
+
gem 'uglifier', '>= 1.3.0'
|
29
|
+
# Use CoffeeScript for .js.coffee assets and views
|
30
|
+
gem 'coffee-rails', '~> 4.0.0'
|
31
|
+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
32
|
+
gem 'therubyracer'
|
33
|
+
|
34
|
+
|
35
|
+
# Use jquery as the JavaScript library
|
36
|
+
gem 'jquery-rails'
|
37
|
+
gem 'fancybox2-rails'
|
38
|
+
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
39
|
+
gem 'turbolinks'
|
40
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
41
|
+
gem 'jbuilder', '~> 2.0'
|
42
|
+
# bundle exec rake doc:rails generates the API under doc/api.
|
43
|
+
gem 'sdoc', '~> 0.4.0', group: :doc
|
44
|
+
|
45
|
+
# Use ActiveModel has_secure_password
|
46
|
+
gem 'bcrypt', '~> 3.1.7'
|
47
|
+
|
48
|
+
# Authentification
|
49
|
+
gem 'devise'
|
50
|
+
gem 'cancan'
|
51
|
+
|
52
|
+
# form
|
53
|
+
gem 'simple_form'
|
54
|
+
gem 'nested_form'
|
55
|
+
gem 'paperclip', '~> 4.2'
|
56
|
+
|
57
|
+
# background job
|
58
|
+
gem 'delayed_job_active_record'
|
59
|
+
|
60
|
+
# pagination
|
61
|
+
gem 'kaminari'
|
62
|
+
|
63
|
+
# authentication
|
64
|
+
gem 'omniauth', '~> 1.2.2'
|
65
|
+
|
66
|
+
# SEO
|
67
|
+
gem 'meta-tags'
|
68
|
+
|
69
|
+
# exception handling
|
70
|
+
gem 'exception_notification', '~> 4.0.1'
|
71
|
+
# Redis
|
72
|
+
gem 'redis-rails'
|
73
|
+
|
74
|
+
# money gateway
|
75
|
+
# gem 'stripe', :git => 'https://github.com/stripe/stripe-ruby'
|
76
|
+
|
77
|
+
|
78
|
+
group :development, :test do
|
79
|
+
gem 'byebug'
|
80
|
+
gem 'simplecov'
|
81
|
+
gem 'factory_girl_rails', '~> 4.0'
|
82
|
+
gem 'rspec-rails', '~>3.0'
|
83
|
+
gem 'capybara'
|
84
|
+
gem 'thin'
|
85
|
+
end
|
86
|
+
|
87
|
+
group :development do
|
88
|
+
# Use Capistrano for deployment
|
89
|
+
gem 'capistrano', '~> 3.1'
|
90
|
+
gem 'capistrano-rails', '~> 1.1'
|
91
|
+
gem "cap-ec2"
|
92
|
+
gem 'better_errors'
|
93
|
+
gem 'binding_of_caller'
|
94
|
+
gem 'spring'
|
95
|
+
gem 'ezstartforme', git: 'https://git@github.com/lutusu/ezstartforme.git'
|
96
|
+
end
|
97
|
+
|
98
|
+
group :production do
|
99
|
+
gem 'unicorn'
|
100
|
+
end
|
101
|
+
|
102
|
+
group :assets do
|
103
|
+
gem 'compass-rails', git: 'https://git@github.com/lutusu/compass-rails.git'
|
104
|
+
gem 'compass-h5bp'
|
105
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
+
* file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*= bootstrap
|
16
|
+
*= font-awesome-rails
|
17
|
+
*= jquery-ui
|
18
|
+
*/
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require h5bp
|
14
|
+
//= require jquery
|
15
|
+
//= require jquery_ujs
|
16
|
+
//= require jquery_nested_form
|
17
|
+
//= require jquery-ui
|
18
|
+
//= require bootstrap//= require h5bp
|
19
|
+
//= require_tree ./templates
|
20
|
+
//= require turbolinks
|
@@ -0,0 +1,22 @@
|
|
1
|
+
default: &default
|
2
|
+
adapter: postgresql
|
3
|
+
encoding: unicode
|
4
|
+
pool: 5
|
5
|
+
username: postgres
|
6
|
+
timeout: 5000
|
7
|
+
|
8
|
+
development:
|
9
|
+
<<: *default
|
10
|
+
database: <%= application_name %>_development
|
11
|
+
|
12
|
+
# Warning: The database defined as "test" will be erased and
|
13
|
+
# re-generated from your development database when you run "rake".
|
14
|
+
# Do not set this db to the same as development or production.
|
15
|
+
test:
|
16
|
+
<<: *default
|
17
|
+
database: <%= application_name %>_test
|
18
|
+
|
19
|
+
production:
|
20
|
+
<<: *default
|
21
|
+
database: <%= application_name %>_production
|
22
|
+
|
@@ -0,0 +1,66 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
|
3
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
4
|
+
# See how all your routes lay out with "rake routes".
|
5
|
+
|
6
|
+
# You can have the root of your site routed with "root"
|
7
|
+
root 'pages#index'
|
8
|
+
|
9
|
+
|
10
|
+
resources :pages do
|
11
|
+
get 'view', to: 'pages#view', on: :collection
|
12
|
+
end
|
13
|
+
|
14
|
+
# Example of regular route:
|
15
|
+
# get 'products/:id' => 'catalog#view'
|
16
|
+
# get '/:title' => 'pages#show'
|
17
|
+
|
18
|
+
# get '/donation', to: 'donations#new', as: :donation
|
19
|
+
# post '/donation', to: 'donation#create'
|
20
|
+
# # post
|
21
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
22
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
23
|
+
|
24
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
25
|
+
# resources :products
|
26
|
+
|
27
|
+
# Example resource route with options:
|
28
|
+
# resources :products do
|
29
|
+
# member do
|
30
|
+
# get 'short'
|
31
|
+
# post 'toggle'
|
32
|
+
# end
|
33
|
+
#
|
34
|
+
# collection do
|
35
|
+
# get 'sold'
|
36
|
+
# end
|
37
|
+
# end
|
38
|
+
|
39
|
+
# Example resource route with sub-resources:
|
40
|
+
# resources :products do
|
41
|
+
# resources :comments, :sales
|
42
|
+
# resource :seller
|
43
|
+
# end
|
44
|
+
|
45
|
+
# Example resource route with more complex sub-resources:
|
46
|
+
# resources :products do
|
47
|
+
# resources :comments
|
48
|
+
# resources :sales do
|
49
|
+
# get 'recent', on: :collection
|
50
|
+
# end
|
51
|
+
# end
|
52
|
+
|
53
|
+
# Example resource route with concerns:
|
54
|
+
# concern :toggleable do
|
55
|
+
# post 'toggle'
|
56
|
+
# end
|
57
|
+
# resources :posts, concerns: :toggleable
|
58
|
+
# resources :photos, concerns: :toggleable
|
59
|
+
|
60
|
+
# Example resource route within a namespace:
|
61
|
+
# namespace :admin do
|
62
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
63
|
+
# # (app/controllers/admin/products_controller.rb)
|
64
|
+
# resources :products
|
65
|
+
# end
|
66
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Ez
|
4
|
+
module Generators
|
5
|
+
describe SetUpGenerator do
|
6
|
+
before :each do
|
7
|
+
@g = SetUpGenerator.new ['ezstartforme']
|
8
|
+
root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
|
9
|
+
Dir.chdir File.join(root,'lib','generators','ez')
|
10
|
+
end
|
11
|
+
it 'identifies if a gem is presented' do
|
12
|
+
|
13
|
+
expect(@g.send 'gems?', 'simple_form').to be true
|
14
|
+
expect(@g.send 'gems?', 'dwadwad').to be false
|
15
|
+
expect(@g.send 'gems?', 'byebug').to be true
|
16
|
+
expect(@g.send 'gems?', 'stripe').to be false
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
4
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
5
|
+
# files.
|
6
|
+
#
|
7
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
8
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
9
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
10
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
11
|
+
# a separate helper file that requires the additional dependencies and performs
|
12
|
+
# the additional setup, and require it from the spec files that actually need
|
13
|
+
# it.
|
14
|
+
#
|
15
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
16
|
+
# users commonly want.
|
17
|
+
#
|
18
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
19
|
+
RSpec.configure do |config|
|
20
|
+
# rspec-expectations config goes here. You can use an alternate
|
21
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
22
|
+
# assertions if you prefer.
|
23
|
+
config.expect_with :rspec do |expectations|
|
24
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
25
|
+
# and `failure_message` of custom matchers include text for helper methods
|
26
|
+
# defined using `chain`, e.g.:
|
27
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
28
|
+
# # => "be bigger than 2 and smaller than 4"
|
29
|
+
# ...rather than:
|
30
|
+
# # => "be bigger than 2"
|
31
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
32
|
+
end
|
33
|
+
|
34
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
35
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
36
|
+
config.mock_with :rspec do |mocks|
|
37
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
38
|
+
# a real object. This is generally recommended, and will default to
|
39
|
+
# `true` in RSpec 4.
|
40
|
+
mocks.verify_partial_doubles = true
|
41
|
+
end
|
42
|
+
|
43
|
+
# The settings below are suggested to provide a good initial experience
|
44
|
+
# with RSpec, but feel free to customize to your heart's content.
|
45
|
+
=begin
|
46
|
+
# These two settings work together to allow you to limit a spec run
|
47
|
+
# to individual examples or groups you care about by tagging them with
|
48
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
49
|
+
# get run.
|
50
|
+
config.filter_run :focus
|
51
|
+
config.run_all_when_everything_filtered = true
|
52
|
+
|
53
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
54
|
+
# recommended. For more details, see:
|
55
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
56
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
57
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
58
|
+
config.disable_monkey_patching!
|
59
|
+
|
60
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
61
|
+
# be too noisy due to issues in dependencies.
|
62
|
+
config.warnings = true
|
63
|
+
|
64
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
65
|
+
# file, and it's useful to allow more verbose output when running an
|
66
|
+
# individual spec file.
|
67
|
+
if config.files_to_run.one?
|
68
|
+
# Use the documentation formatter for detailed output,
|
69
|
+
# unless a formatter has already been configured
|
70
|
+
# (e.g. via a command-line flag).
|
71
|
+
config.default_formatter = 'doc'
|
72
|
+
end
|
73
|
+
|
74
|
+
# Print the 10 slowest examples and example groups at the
|
75
|
+
# end of the spec run, to help surface which specs are running
|
76
|
+
# particularly slow.
|
77
|
+
config.profile_examples = 10
|
78
|
+
|
79
|
+
# Run specs in random order to surface order dependencies. If you find an
|
80
|
+
# order dependency and want to debug it, you can fix the order by providing
|
81
|
+
# the seed, which is printed after each run.
|
82
|
+
# --seed 1234
|
83
|
+
config.order = :random
|
84
|
+
|
85
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
86
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
87
|
+
# test failures related to randomization by passing the same `--seed` value
|
88
|
+
# as the one that triggered the failure.
|
89
|
+
Kernel.srand config.seed
|
90
|
+
=end
|
91
|
+
end
|
92
|
+
|
93
|
+
require 'require_all'
|
94
|
+
require_rel '../lib/generators/ez/*.rb'
|
metadata
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ezstartforme
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- lutusu
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-26 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.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
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
|
+
description:
|
56
|
+
email:
|
57
|
+
- tripplewheels@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- CHANGELOG.md
|
63
|
+
- LICENSE.txt
|
64
|
+
- README.md
|
65
|
+
- lib/ezstartforme.rb
|
66
|
+
- lib/ezstartforme/version.rb
|
67
|
+
- lib/generators/ez/set_up_generator.rb
|
68
|
+
- lib/generators/ez/templates/Capfile
|
69
|
+
- lib/generators/ez/templates/Gemfile
|
70
|
+
- lib/generators/ez/templates/application.css
|
71
|
+
- lib/generators/ez/templates/application.js
|
72
|
+
- lib/generators/ez/templates/database.yml
|
73
|
+
- lib/generators/ez/templates/pages_controller.rb
|
74
|
+
- lib/generators/ez/templates/route.rb
|
75
|
+
- spec/generators/set_up_generator_spec.rb
|
76
|
+
- spec/spec_helper.rb
|
77
|
+
homepage:
|
78
|
+
licenses:
|
79
|
+
- MIT
|
80
|
+
metadata: {}
|
81
|
+
post_install_message:
|
82
|
+
rdoc_options: []
|
83
|
+
require_paths:
|
84
|
+
- lib
|
85
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '2.0'
|
90
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
requirements: []
|
96
|
+
rubyforge_project:
|
97
|
+
rubygems_version: 2.4.7
|
98
|
+
signing_key:
|
99
|
+
specification_version: 4
|
100
|
+
summary: This gem setups a project template for me personally
|
101
|
+
test_files:
|
102
|
+
- spec/spec_helper.rb
|
103
|
+
- spec/generators/set_up_generator_spec.rb
|