barebones 1.0.0.4 → 1.0.0.5
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/README.md +19 -13
- data/barebones.gemspec +1 -1
- data/lib/barebones/builders/app_builder.rb +24 -2
- data/lib/barebones/generators/app_generator.rb +34 -8
- data/lib/barebones/version.rb +2 -2
- data/templates/Gemfile.erb +45 -30
- data/templates/Procfile +1 -0
- data/templates/puma.rb +68 -0
- data/templates/{redis.rb → redis.rb.erb} +12 -2
- data/templates/resque.rb +1 -1
- data/templates/secrets.yml.erb +4 -0
- data/templates/sidekiq.rb +7 -0
- data/templates/test_job.rb +1 -1
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a90979ce5a764eaa7d3275ca4d5d29954fafea68
|
4
|
+
data.tar.gz: f840ebf7dc6fe6f4e4dbd252cdfa9c5381b4cbba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fd239cfd5c8bff6a76df5a44e6bfc0338612c7be0200af21a7e6d470506cd72ea7637b7b59d77217029abc54c4adad040400bc8f7b254bc5d98422693cee3a6
|
7
|
+
data.tar.gz: e982e2ecda8dab616929b3246334e00fdba4713470e736250f5c3606a2010e12e747058fef1dc162777e01d7928bf3a7c50806089b782a1241a6918260c14cc9
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ Barebones is my personal base Rails application. After developing a
|
|
5
5
|
couple of Rails applications, I thought that there were some common
|
6
6
|
gems and patterns that would be nice to have out of the box.
|
7
7
|
|
8
|
-
|
8
|
+
## Installation
|
9
9
|
Install the gem:
|
10
10
|
|
11
11
|
gem install barebones
|
@@ -14,10 +14,11 @@ Then run:
|
|
14
14
|
|
15
15
|
barebones [AppName]
|
16
16
|
|
17
|
-
|
17
|
+
### Flags
|
18
18
|
If you don't like using any of the below gems or configurations for whatever reason, you can skip them:
|
19
19
|
* --skip-api
|
20
20
|
* --skip-resque
|
21
|
+
* --skip-sidekiq
|
21
22
|
* --skip-minitest
|
22
23
|
* --skip-factory-girl
|
23
24
|
* --skip-carrierwave
|
@@ -26,53 +27,58 @@ For example:
|
|
26
27
|
|
27
28
|
barebones [AppName] --skip-api --skip-minitest
|
28
29
|
|
29
|
-
|
30
|
+
## Gemfile
|
30
31
|
Barebones' [Gemfile](templates/Gemfile.erb) includes various preconfigured gems such as:
|
31
|
-
|
32
|
+
### Webserver
|
33
|
+
* [Puma](https://github.com/puma/puma) for our default concurrent webserver. Configured to spawn on free Heroku instances [out of the box](config/puma.rb).
|
34
|
+
|
35
|
+
|
36
|
+
### File Uploading
|
32
37
|
* [Carrierwave](https://github.com/carrierwaveuploader/carrierwave) for file uploading
|
33
38
|
* [Fog](https://github.com/fog/fog) for AWS/Google cloud storage
|
34
39
|
* [MiniMagick](https://github.com/minimagick/minimagick) for image cropping/resizing and all that good stuff
|
35
40
|
|
36
|
-
|
41
|
+
### Background Processing
|
42
|
+
* [Sidekiq](https://github.com/mperham/sidekiq) for background workers. This is the default option.
|
37
43
|
* [Resque](https://github.com/resque/resque) for background workers
|
38
44
|
* [Resque-Scheduler](https://github.com/resque/resque-scheduler) for queueing workers in the future
|
39
45
|
|
40
|
-
|
46
|
+
### Database
|
41
47
|
* [Postgres](https://rubygems.org/gems/pg/versions/0.18.3)
|
42
48
|
|
43
|
-
|
49
|
+
### Dev/Testing
|
44
50
|
* [Byebug](https://github.com/deivid-rodriguez/byebug) for debugging
|
45
51
|
* [Pry Byebug](https://github.com/deivid-rodriguez/pry-byebug) for debugging background jobs
|
46
52
|
* [Web Console](https://github.com/rails/web-console) for debugging views
|
47
53
|
* [Awesome Print](https://github.com/awesome-print/awesome_print) for pretty printing command line objects
|
48
54
|
|
49
|
-
|
55
|
+
### Testing
|
50
56
|
* [Minitest](https://github.com/blowmage/minitest-rails) for TDD/BDD
|
51
57
|
* [Minitest Reporters](https://github.com/kern/minitest-reporters) for customizable Minitest output formats
|
52
58
|
* [Minitest Around](https://github.com/splattael/minitest-around) for database setup/teardown
|
53
59
|
* [Mocha](https://github.com/freerange/mocha) for mocking and stubbing
|
54
60
|
* [Database Cleaner](https://github.com/DatabaseCleaner/database_cleaner) to ensure a clean state during tests
|
55
61
|
|
56
|
-
|
62
|
+
### API
|
57
63
|
* [Jbuilder](https://github.com/rails/jbuilder) for building JSON structures
|
58
64
|
* [oj](https://github.com/ohler55/oj) for faster JSON parsing (and a faster Jbuilder)
|
59
65
|
* [oj_mimic_json](https://github.com/ohler55/oj_mimic_json)
|
60
66
|
* [MultiJSON](https://github.com/intridea/multi_json)
|
61
67
|
|
62
|
-
|
68
|
+
## Design Patterns
|
63
69
|
* Services (Pre-made folder)
|
64
70
|
* [Custom Decorator Class](templates/barebones_decorator.rb.erb) (A custom subclass of SimpleDelegator)
|
65
71
|
|
66
|
-
|
72
|
+
## API
|
67
73
|
* [Routes](templates/routes.rb.erb) with API subdomain and version namespacing
|
68
74
|
* [ApiConstraints](templates/api_constraints.rb.erb) for API version control
|
69
75
|
* [Configurations/Ping endpoint](templates/configs_controller.rb) to test that the API works :)
|
70
76
|
|
71
|
-
|
77
|
+
## Dependencies
|
72
78
|
Barebones requires the latest version of Ruby (2.3.1), Rails (5.0.0), and
|
73
79
|
PostgreSQL (9.4) on your local machine.
|
74
80
|
|
75
|
-
|
81
|
+
## License
|
76
82
|
Barebones is copyright © 2015-2016 Danny Yu.
|
77
83
|
It is free software, and may be redistributed under the terms specified in the [LICENSE] file.
|
78
84
|
|
data/barebones.gemspec
CHANGED
@@ -37,6 +37,10 @@ module Barebones
|
|
37
37
|
create_file ".ruby-version", "#{Barebones::RUBY_VERSION}"
|
38
38
|
end
|
39
39
|
|
40
|
+
def set_gemset
|
41
|
+
create_file ".ruby-gemset", "#{app_name.parameterize.underscore}"
|
42
|
+
end
|
43
|
+
|
40
44
|
def setup_autoload_paths
|
41
45
|
application_class_end_line = "#{spaces(2)}end\nend"
|
42
46
|
inject_into_file "config/application.rb",
|
@@ -146,7 +150,7 @@ module Barebones
|
|
146
150
|
|
147
151
|
end
|
148
152
|
|
149
|
-
def
|
153
|
+
def configure_active_job_for_resque
|
150
154
|
application_class_end_line = "#{spaces(2)}end\nend"
|
151
155
|
inject_into_file "config/application.rb",
|
152
156
|
before: application_class_end_line do
|
@@ -155,14 +159,27 @@ module Barebones
|
|
155
159
|
end
|
156
160
|
end
|
157
161
|
|
162
|
+
def configure_active_job_for_sidekiq
|
163
|
+
application_class_end_line = "#{spaces(2)}end\nend"
|
164
|
+
inject_into_file "config/application.rb",
|
165
|
+
before: application_class_end_line do
|
166
|
+
"\n#{spaces(4)}# Set ActiveJob to use Sidekiq\n"\
|
167
|
+
"#{spaces(4)}config.active_job.queue_adapter = :sidekiq\n"
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
158
171
|
def configure_redis
|
159
|
-
template "redis.rb", "config/initializers/redis.rb"
|
172
|
+
template "redis.rb.erb", "config/initializers/redis.rb"
|
160
173
|
end
|
161
174
|
|
162
175
|
def configure_resque
|
163
176
|
template "resque.rb", "config/initializers/resque.rb"
|
164
177
|
end
|
165
178
|
|
179
|
+
def configure_sidekiq
|
180
|
+
template "sidekiq.rb", "config/initializers/sidekiq.rb"
|
181
|
+
end
|
182
|
+
|
166
183
|
def create_test_job
|
167
184
|
template "test_job.rb", "app/jobs/test_job.rb"
|
168
185
|
end
|
@@ -175,5 +192,10 @@ module Barebones
|
|
175
192
|
template "carrierwave.rb", "config/initializers/carrierwave.rb"
|
176
193
|
end
|
177
194
|
|
195
|
+
def configure_puma
|
196
|
+
template "Procfile", "Procfile"
|
197
|
+
template "puma.rb", "config/puma.rb", force: true
|
198
|
+
end
|
199
|
+
|
178
200
|
end
|
179
201
|
end
|
@@ -9,8 +9,11 @@ module Barebones
|
|
9
9
|
class_option :skip_api, type: :boolean, default: false,
|
10
10
|
desc: "Skip creating an API. Default is false."
|
11
11
|
|
12
|
-
class_option :skip_resque, type: :boolean, default:
|
13
|
-
desc: "Skip using Resque. Default is
|
12
|
+
class_option :skip_resque, type: :boolean, default: true,
|
13
|
+
desc: "Skip using Resque. Default is true."
|
14
|
+
|
15
|
+
class_option :skip_sidekiq, type: :boolean, default: false,
|
16
|
+
desc: "Skip using Sidekiq. Default is false."
|
14
17
|
|
15
18
|
class_option :skip_minitest, type: :boolean, default: false,
|
16
19
|
desc: "Skip using Minitest. Default is false."
|
@@ -25,6 +28,7 @@ module Barebones
|
|
25
28
|
say "Invoking customizations..."
|
26
29
|
invoke :setup_ruby
|
27
30
|
invoke :configure_app
|
31
|
+
invoke :setup_webserver
|
28
32
|
invoke :setup_routes
|
29
33
|
invoke :setup_api
|
30
34
|
invoke :setup_secrets
|
@@ -36,11 +40,7 @@ module Barebones
|
|
36
40
|
def setup_ruby
|
37
41
|
say "Setting ruby version..."
|
38
42
|
build :set_ruby_version
|
39
|
-
|
40
|
-
|
41
|
-
def setup_routes
|
42
|
-
say "Setting up custom routes..."
|
43
|
-
build :customize_routes
|
43
|
+
build :set_gemset
|
44
44
|
end
|
45
45
|
|
46
46
|
def configure_app
|
@@ -48,6 +48,16 @@ module Barebones
|
|
48
48
|
build :setup_autoload_paths
|
49
49
|
end
|
50
50
|
|
51
|
+
def setup_webserver
|
52
|
+
say "Setting up webserver..."
|
53
|
+
invoke :setup_puma
|
54
|
+
end
|
55
|
+
|
56
|
+
def setup_routes
|
57
|
+
say "Setting up custom routes..."
|
58
|
+
build :customize_routes
|
59
|
+
end
|
60
|
+
|
51
61
|
def setup_api
|
52
62
|
unless options[:skip_api]
|
53
63
|
say "Setting up an API..."
|
@@ -86,6 +96,7 @@ module Barebones
|
|
86
96
|
invoke :setup_minitest
|
87
97
|
invoke :setup_factory_girl
|
88
98
|
invoke :setup_resque
|
99
|
+
invoke :setup_sidekiq
|
89
100
|
invoke :setup_carrierwave
|
90
101
|
end
|
91
102
|
|
@@ -106,7 +117,7 @@ module Barebones
|
|
106
117
|
def setup_resque
|
107
118
|
unless options[:skip_resque]
|
108
119
|
say "Setting up Resque/Redis gems..."
|
109
|
-
build :
|
120
|
+
build :configure_active_job_for_resque
|
110
121
|
build :configure_redis
|
111
122
|
build :configure_resque
|
112
123
|
build :create_test_job
|
@@ -114,6 +125,16 @@ module Barebones
|
|
114
125
|
end
|
115
126
|
end
|
116
127
|
|
128
|
+
def setup_sidekiq
|
129
|
+
unless options[:skip_sidekiq]
|
130
|
+
say "Setting up Sidekiq/Redis gems..."
|
131
|
+
build :configure_active_job_for_sidekiq
|
132
|
+
build :configure_redis
|
133
|
+
build :configure_sidekiq
|
134
|
+
build :create_test_job
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
117
138
|
def setup_carrierwave
|
118
139
|
unless options[:setup_carrierwave]
|
119
140
|
say "Setting up Carrierwave gem..."
|
@@ -121,6 +142,11 @@ module Barebones
|
|
121
142
|
end
|
122
143
|
end
|
123
144
|
|
145
|
+
def setup_puma
|
146
|
+
say "Setting up Puma..."
|
147
|
+
build :configure_puma
|
148
|
+
end
|
149
|
+
|
124
150
|
def outro
|
125
151
|
say "\e[34mSweet, we're done!\e[0m"
|
126
152
|
end
|
data/lib/barebones/version.rb
CHANGED
data/templates/Gemfile.erb
CHANGED
@@ -1,53 +1,68 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
ruby
|
3
|
+
ruby '<%= Barebones::RUBY_VERSION %>'
|
4
4
|
|
5
5
|
# Defaults
|
6
|
-
gem
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
gem
|
6
|
+
gem 'rails', '<%= Barebones::RAILS_VERSION %>'
|
7
|
+
gem 'puma'
|
8
|
+
gem 'sass-rails', '~> 5.0'
|
9
|
+
gem 'uglifier', '>= 1.3.0'
|
10
|
+
gem 'jquery-rails'
|
11
|
+
gem 'turbolinks', '~> 5'
|
12
|
+
gem 'jbuilder', '~> 2.5'
|
13
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
14
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
12
15
|
|
13
16
|
group :development, :test do
|
14
|
-
gem
|
15
|
-
gem
|
16
|
-
|
17
|
-
gem '
|
18
|
-
gem
|
19
|
-
gem '
|
20
|
-
gem "awesome_print"
|
17
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
18
|
+
gem 'pry-byebug'
|
19
|
+
# Adds support for Capybara system testing and selenium driver
|
20
|
+
gem 'capybara', '~> 2.13'
|
21
|
+
gem 'selenium-webdriver'
|
22
|
+
gem 'awesome_print'
|
21
23
|
<% unless options[:skip_minitest] %>
|
22
|
-
gem
|
23
|
-
gem
|
24
|
-
gem
|
25
|
-
gem
|
26
|
-
gem
|
24
|
+
gem 'minitest-rails'
|
25
|
+
gem 'minitest-reporters'
|
26
|
+
gem 'minitest-around'
|
27
|
+
gem 'mocha'
|
28
|
+
gem 'database_cleaner'
|
27
29
|
<% end %>
|
28
30
|
<% unless options[:skip_factory_girl] %>
|
29
|
-
gem
|
31
|
+
gem 'factory_girl_rails', '~> 4.0'
|
30
32
|
<% end %>
|
31
33
|
end
|
32
34
|
|
35
|
+
group :development do
|
36
|
+
gem 'web-console', '>= 3.3.0'
|
37
|
+
gem 'listen', '>= 3.0.5', '< 3.2'
|
38
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
39
|
+
gem 'spring'
|
40
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
41
|
+
end
|
42
|
+
|
33
43
|
<% unless options[:skip_carrierwave] %>
|
34
44
|
# File Uploads
|
35
|
-
gem
|
36
|
-
gem
|
37
|
-
gem
|
45
|
+
gem 'fog-aws'
|
46
|
+
gem 'mini_magick'
|
47
|
+
gem 'carrierwave'
|
38
48
|
<% end %>
|
39
49
|
|
40
50
|
<% unless options[:skip_resque] %>
|
41
51
|
# Background Processing
|
42
|
-
gem
|
43
|
-
gem
|
52
|
+
gem 'resque'
|
53
|
+
gem 'resque-scheduler'
|
44
54
|
gem 'sinatra', github: 'sinatra/sinatra', branch: 'master'
|
45
55
|
<% end %>
|
46
56
|
|
57
|
+
<% unless options[:skip_sidekiq] %>
|
58
|
+
# Background Processing
|
59
|
+
gem 'sidekiq'
|
60
|
+
<% end %>
|
61
|
+
|
47
62
|
# Database
|
48
|
-
gem
|
63
|
+
gem 'pg', '~> 0.18.4'
|
49
64
|
|
50
65
|
# Faster JSON Parsing
|
51
|
-
gem
|
52
|
-
gem
|
53
|
-
gem
|
66
|
+
gem 'oj'
|
67
|
+
gem 'oj_mimic_json'
|
68
|
+
gem 'multi_json'
|
data/templates/Procfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
web: bundle exec puma -p ${PORT:-3000} -e ${RACK_ENV:-development} -C config/puma.rb
|
data/templates/puma.rb
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
+
# The `threads` method setting takes two numbers a minimum and maximum.
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
+
# and maximum, this matches the default thread size of Active Record.
|
6
|
+
#
|
7
|
+
# threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
|
8
|
+
# threads threads_count, threads_count
|
9
|
+
|
10
|
+
# Specifies the `port` that Puma will listen on to receive requests, default is 3000.
|
11
|
+
#
|
12
|
+
# port ENV.fetch("PORT") { 3000 }
|
13
|
+
|
14
|
+
# Specifies the `environment` that Puma will run in.
|
15
|
+
#
|
16
|
+
# environment ENV.fetch("RAILS_ENV") { "development" }
|
17
|
+
|
18
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
19
|
+
# Workers are forked webserver processes. If using threads and workers together
|
20
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
21
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
22
|
+
# processes).
|
23
|
+
#
|
24
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
25
|
+
|
26
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
27
|
+
# This directive tells Puma to first boot the application and load code
|
28
|
+
# before forking the application. This takes advantage of Copy On Write
|
29
|
+
# process behavior so workers use less memory. If you use this option
|
30
|
+
# you need to make sure to reconnect any threads in the `on_worker_boot`
|
31
|
+
# block.
|
32
|
+
#
|
33
|
+
# preload_app!
|
34
|
+
|
35
|
+
# The code in the `on_worker_boot` will be called if you are using
|
36
|
+
# clustered mode by specifying a number of `workers`. After each worker
|
37
|
+
# process is booted this block will be run, if you are using `preload_app!`
|
38
|
+
# option you will want to use this block to reconnect to any threads
|
39
|
+
# or connections that may have been created at application boot, Ruby
|
40
|
+
# cannot share connections between processes.
|
41
|
+
#
|
42
|
+
# on_worker_boot do
|
43
|
+
# ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
|
44
|
+
# end
|
45
|
+
|
46
|
+
# Allow puma to be restarted by `rails restart` command.
|
47
|
+
plugin :tmp_restart
|
48
|
+
|
49
|
+
# Custom
|
50
|
+
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
|
51
|
+
threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5)
|
52
|
+
threads threads_count, threads_count
|
53
|
+
|
54
|
+
preload_app!
|
55
|
+
|
56
|
+
rackup DefaultRackup
|
57
|
+
port ENV['PORT'] || 3000
|
58
|
+
environment ENV['RACK_ENV'] || 'development'
|
59
|
+
|
60
|
+
on_worker_boot do
|
61
|
+
unless Rails.env.development?
|
62
|
+
# https://coderwall.com/p/fprnhg/free-background-jobs-on-heroku
|
63
|
+
@sidekiq_pid ||= spawn("bundle exec sidekiq -c 2")
|
64
|
+
end
|
65
|
+
# Worker specific setup for Rails 4.1+
|
66
|
+
# See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
|
67
|
+
ActiveRecord::Base.establish_connection
|
68
|
+
end
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
<% unless options[:skip_resque] %>
|
2
|
+
$redis_db_0 = Redis.new(
|
2
3
|
:url => Rails.application.secrets.redis_url,
|
3
4
|
:port => Rails.application.secrets.redis_port,
|
4
5
|
:db => Rails.application.secrets.redis_db,
|
@@ -8,6 +9,7 @@ $redis_default = Redis::Namespace.new(
|
|
8
9
|
Rails.application.secrets.redis_namespace_default,
|
9
10
|
:redis => redis_db_0
|
10
11
|
)
|
12
|
+
<% end %>
|
11
13
|
|
12
14
|
# http://www.rubydoc.info/github/redis/redis-rb/Redis/Client
|
13
15
|
# :url => lambda { ENV["REDIS_URL"] },
|
@@ -23,4 +25,12 @@ $redis_default = Redis::Namespace.new(
|
|
23
25
|
# :id => nil,
|
24
26
|
# :tcp_keepalive => 0,
|
25
27
|
# :reconnect_attempts => 1,
|
26
|
-
# :inherit_socket => false
|
28
|
+
# :inherit_socket => false
|
29
|
+
|
30
|
+
<% unless options[:skip_sidekiq] %>
|
31
|
+
$redis = Redis.new(
|
32
|
+
:url => Rails.application.secrets.redis_url,
|
33
|
+
:port => Rails.application.secrets.redis_port,
|
34
|
+
:db => Rails.application.secrets.redis_db,
|
35
|
+
)
|
36
|
+
<% end %>
|
data/templates/resque.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Resque.redis = $redis_default
|
1
|
+
Resque.redis = $redis_default
|
data/templates/secrets.yml.erb
CHANGED
@@ -8,6 +8,7 @@ development:
|
|
8
8
|
redis_port: 6379
|
9
9
|
redis_db: 0
|
10
10
|
redis_namespace_default: "redis_default"
|
11
|
+
redis_provider: <%%= ENV["REDIS_PROVIDER"] %>
|
11
12
|
# Carrierwave
|
12
13
|
cw_access_key_id:
|
13
14
|
cw_secret_access_key:
|
@@ -20,6 +21,7 @@ staging:
|
|
20
21
|
redis_url:
|
21
22
|
redis_port:
|
22
23
|
redis_namespace_default:
|
24
|
+
redis_provider: <%%= ENV["REDIS_PROVIDER"] %>
|
23
25
|
# Carrierwave
|
24
26
|
cw_access_key_id:
|
25
27
|
cw_secret_access_key:
|
@@ -32,6 +34,7 @@ production:
|
|
32
34
|
redis_url:
|
33
35
|
redis_port:
|
34
36
|
redis_namespace_default:
|
37
|
+
redis_provider: <%%= ENV["REDIS_PROVIDER"] %>
|
35
38
|
# Carrierwave
|
36
39
|
cw_access_key_id:
|
37
40
|
cw_secret_access_key:
|
@@ -44,6 +47,7 @@ test:
|
|
44
47
|
redis_url:
|
45
48
|
redis_port:
|
46
49
|
redis_namespace_default:
|
50
|
+
redis_provider: <%%= ENV["REDIS_PROVIDER"] %>
|
47
51
|
# Carrierwave
|
48
52
|
cw_access_key_id:
|
49
53
|
cw_secret_access_key:
|
data/templates/test_job.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barebones
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Yu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.
|
19
|
+
version: '5.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.
|
26
|
+
version: '5.1'
|
27
27
|
description: A personal Rails template generator.
|
28
28
|
email:
|
29
29
|
executables:
|
@@ -42,6 +42,7 @@ files:
|
|
42
42
|
- lib/barebones/text_format_helpers.rb
|
43
43
|
- lib/barebones/version.rb
|
44
44
|
- templates/Gemfile.erb
|
45
|
+
- templates/Procfile
|
45
46
|
- templates/README.md.erb
|
46
47
|
- templates/api_application_controller.rb
|
47
48
|
- templates/api_constraints.rb.erb
|
@@ -54,11 +55,13 @@ files:
|
|
54
55
|
- templates/database.yml.erb
|
55
56
|
- templates/layout.json.jbuilder
|
56
57
|
- templates/multi_json.rb
|
57
|
-
- templates/
|
58
|
+
- templates/puma.rb
|
59
|
+
- templates/redis.rb.erb
|
58
60
|
- templates/resque.rake
|
59
61
|
- templates/resque.rb
|
60
62
|
- templates/routes.rb.erb
|
61
63
|
- templates/secrets.yml.erb
|
64
|
+
- templates/sidekiq.rb
|
62
65
|
- templates/test_job.rb
|
63
66
|
homepage: https://github.com/dannyyu92/barebones
|
64
67
|
licenses:
|