railsqs 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/railsqs/app_builder.rb +6 -1
- data/lib/railsqs/generators/app_generator.rb +1 -0
- data/lib/railsqs/version.rb +1 -1
- data/templates/Gemfile.erb +3 -2
- data/templates/Guardfile +26 -0
- data/templates/env.rb +35 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14f5c29848e89abb36e412b58133c1c60ccb9532
|
|
4
|
+
data.tar.gz: 6a9d127ebd0a507cdc04fb77aa7f7d22495934aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 995b754b33563e8dc292c88c6a64b376736ba310acddb06874bb92c5f51085342988537d5306cbcfbea9e88f001f62c11910ebeef66e76d62a807881f0477e65
|
|
7
|
+
data.tar.gz: d92cb66c3c88eb2e2caf4fb11883216b0e34e677a2437df921bd2f8ae2b346379e7ab3d88b37dd6118eefc696e065fc8c4422c389875a00331220a3e9d8d9eea
|
data/.gitignore
CHANGED
data/lib/railsqs/app_builder.rb
CHANGED
|
@@ -187,7 +187,8 @@ end
|
|
|
187
187
|
end
|
|
188
188
|
|
|
189
189
|
def generate_spinach
|
|
190
|
-
|
|
190
|
+
run 'mkdir -p features/support'
|
|
191
|
+
copy_file 'env.rb', 'features/support/env.rb'
|
|
191
192
|
end
|
|
192
193
|
|
|
193
194
|
def setup_puma
|
|
@@ -221,6 +222,10 @@ end
|
|
|
221
222
|
replace_in_file 'config/routes.rb', "get 'homepages/show'", "root 'homepages#show'"
|
|
222
223
|
end
|
|
223
224
|
|
|
225
|
+
def setup_gurad
|
|
226
|
+
copy_file 'Guardfile', 'Guardfile'
|
|
227
|
+
end
|
|
228
|
+
|
|
224
229
|
def init_git
|
|
225
230
|
run 'git init'
|
|
226
231
|
end
|
data/lib/railsqs/version.rb
CHANGED
data/templates/Gemfile.erb
CHANGED
|
@@ -23,12 +23,11 @@ gem 'pg'
|
|
|
23
23
|
gem 'puma'
|
|
24
24
|
gem 'rack-timeout'
|
|
25
25
|
gem 'rails', '<%= Railsqs::RAILS_VERSION %>'
|
|
26
|
-
gem 'ransack', github: 'activerecord-hackery/ransack', branch: 'rails-4.2'
|
|
27
26
|
gem 'recipient_interceptor'
|
|
28
27
|
gem 'sass-rails', '~> 5.0.0.beta1'
|
|
29
28
|
gem 'simple_form'
|
|
30
|
-
gem 'turbolinks'
|
|
31
29
|
gem 'uglifier', '>= 1.3.0'
|
|
30
|
+
gem 'envied'
|
|
32
31
|
|
|
33
32
|
group :development, :test do
|
|
34
33
|
gem 'awesome_print'
|
|
@@ -38,12 +37,14 @@ group :development, :test do
|
|
|
38
37
|
gem 'growl', require: darwin_only('growl')
|
|
39
38
|
gem 'guard'
|
|
40
39
|
gem 'guard-spinach'
|
|
40
|
+
gem 'guard-minitest'
|
|
41
41
|
gem 'launchy'
|
|
42
42
|
gem 'pry'
|
|
43
43
|
gem 'pry-rails'
|
|
44
44
|
gem 'rb-fsevent', require: darwin_only('rb-fsevent')
|
|
45
45
|
gem 'rb-inotify', require: linux_only('rb-inotify')
|
|
46
46
|
gem 'spinach'
|
|
47
|
+
gem 'spinach-rails'
|
|
47
48
|
gem 'spring-commands-spinach'
|
|
48
49
|
gem 'spring'
|
|
49
50
|
gem 'web-console', '~> 2.0.0.beta4'
|
data/templates/Guardfile
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# A sample Guardfile
|
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
|
3
|
+
|
|
4
|
+
guard :minitest, cmd: "spring test", all_on_start: false, all_after_pass: false do
|
|
5
|
+
watch(%r{^spec/.+_spec\.rb$})
|
|
6
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
|
7
|
+
watch('spec/spec_helper.rb') { "spec" }
|
|
8
|
+
|
|
9
|
+
# Rails example
|
|
10
|
+
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
|
11
|
+
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
|
12
|
+
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
|
13
|
+
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
|
14
|
+
watch('config/routes.rb') { "spec/routing" }
|
|
15
|
+
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
|
16
|
+
|
|
17
|
+
# Capybara request specs
|
|
18
|
+
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
guard 'spinach', command_prefix: 'spring' do
|
|
22
|
+
watch(%r|^features/(.*)\.feature|)
|
|
23
|
+
watch(%r|^features/steps/(.*)([^/]+)\.rb|) do |m|
|
|
24
|
+
"features/#{m[1]}#{m[2]}.feature"
|
|
25
|
+
end
|
|
26
|
+
end
|
data/templates/env.rb
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
ENV['RAILS_ENV'] = 'test'
|
|
2
|
+
require './config/environment'
|
|
3
|
+
|
|
4
|
+
require 'minitest/spec'
|
|
5
|
+
require 'spinach/capybara'
|
|
6
|
+
require 'capybara/poltergeist'
|
|
7
|
+
|
|
8
|
+
Capybara.javascript_driver = :poltergeist
|
|
9
|
+
|
|
10
|
+
Capybara.register_driver :poltergeist do |app|
|
|
11
|
+
Capybara::Poltergeist::Driver.new(app, js_errors: false, timeout: 90)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
Spinach.hooks.on_tag("javascript") do
|
|
15
|
+
::Capybara.current_driver = ::Capybara.javascript_driver
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
Capybara.default_wait_time = 60
|
|
19
|
+
Capybara.ignore_hidden_elements = false
|
|
20
|
+
|
|
21
|
+
DatabaseCleaner.strategy = :truncation
|
|
22
|
+
|
|
23
|
+
Spinach.hooks.before_scenario do
|
|
24
|
+
DatabaseCleaner.start
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
Spinach.hooks.after_scenario do
|
|
28
|
+
DatabaseCleaner.clean
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
Spinach.hooks.before_run do
|
|
32
|
+
# TestEnv.init(mailer: false)
|
|
33
|
+
# RSpec::Mocks::setup self
|
|
34
|
+
# include FactoryGirl::Syntax::Methods
|
|
35
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: railsqs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- opendrops
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-10-
|
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bitters
|
|
@@ -82,6 +82,7 @@ files:
|
|
|
82
82
|
- railsqs.gemspec
|
|
83
83
|
- templates/#bin_setup.erb#
|
|
84
84
|
- templates/Gemfile.erb
|
|
85
|
+
- templates/Guardfile
|
|
85
86
|
- templates/Procfile
|
|
86
87
|
- templates/README.md.erb
|
|
87
88
|
- templates/_flashes.html.erb
|
|
@@ -95,6 +96,7 @@ files:
|
|
|
95
96
|
- templates/config_locales_en.yml
|
|
96
97
|
- templates/development_seeds.rb
|
|
97
98
|
- templates/disable_xml_params.rb
|
|
99
|
+
- templates/env.rb
|
|
98
100
|
- templates/errors.rb
|
|
99
101
|
- templates/newrelic.yml.erb
|
|
100
102
|
- templates/postgresql_database.yml.erb
|