barebones 1.0.0.5 → 1.0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a90979ce5a764eaa7d3275ca4d5d29954fafea68
4
- data.tar.gz: f840ebf7dc6fe6f4e4dbd252cdfa9c5381b4cbba
3
+ metadata.gz: 762d67f76c9987a663825021617a45cde42d2ef2
4
+ data.tar.gz: 27e4dba4b9a0fc0fd9f873defcd1a92e10380e02
5
5
  SHA512:
6
- metadata.gz: 5fd239cfd5c8bff6a76df5a44e6bfc0338612c7be0200af21a7e6d470506cd72ea7637b7b59d77217029abc54c4adad040400bc8f7b254bc5d98422693cee3a6
7
- data.tar.gz: e982e2ecda8dab616929b3246334e00fdba4713470e736250f5c3606a2010e12e747058fef1dc162777e01d7928bf3a7c50806089b782a1241a6918260c14cc9
6
+ metadata.gz: ec1560119d631c231de8b22adf9c697846a91fd3d9022463ff3c752be0eb0eee36c410d305154911bc898103e7c00d4c578b00f681c20e4b8ec455a66e98d057
7
+ data.tar.gz: 101c4bebd962fcf8a7da490b7afaf43284e5209b145b9fa924f63b398bb5d49e19ee604c0ef006a37ef714b1daed8c844443f7026f0f3f7b35bd66dde2f01da0
data/README.md CHANGED
@@ -30,7 +30,7 @@ For example:
30
30
  ## Gemfile
31
31
  Barebones' [Gemfile](templates/Gemfile.erb) includes various preconfigured gems such as:
32
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).
33
+ * [Puma](https://github.com/puma/puma) for our default concurrent webserver. Configured to spawn on free Heroku instances [out of the box](templates/puma.rb#L63).
34
34
 
35
35
 
36
36
  ### File Uploading
@@ -75,7 +75,7 @@ Barebones' [Gemfile](templates/Gemfile.erb) includes various preconfigured gems
75
75
  * [Configurations/Ping endpoint](templates/configs_controller.rb) to test that the API works :)
76
76
 
77
77
  ## Dependencies
78
- Barebones requires the latest version of Ruby (2.3.1), Rails (5.0.0), and
78
+ Barebones requires the latest version of Ruby (2.4.1), Rails (5.1.1), and
79
79
  PostgreSQL (9.4) on your local machine.
80
80
 
81
81
  ## License
@@ -3,7 +3,7 @@ require "date"
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "barebones"
6
- s.version = "1.0.0.5"
6
+ s.version = "1.0.0.6"
7
7
  s.date = Date.today.to_s
8
8
  s.licenses = ['MIT']
9
9
  s.summary = "Rails template generator"
@@ -3,7 +3,7 @@ require 'rails/generators/rails/app/app_generator'
3
3
  module Barebones
4
4
  class AppGenerator < Rails::Generators::AppGenerator
5
5
 
6
- class_option :skip_bundle, type: :boolean, aliases: "-B", default: true,
6
+ class_option :skip_bundle, type: :boolean, aliases: "-B", default: false,
7
7
  desc: "Don't run bundle install"
8
8
 
9
9
  class_option :skip_api, type: :boolean, default: false,
@@ -1,4 +1,4 @@
1
1
  module Barebones
2
- RAILS_VERSION = "~> 5.1"
3
- RUBY_VERSION = "2.4.1"
2
+ RAILS_VERSION = "~> 5.1.4"
3
+ RUBY_VERSION = "2.4.2"
4
4
  end
@@ -12,7 +12,10 @@ gem 'turbolinks', '~> 5'
12
12
  gem 'jbuilder', '~> 2.5'
13
13
  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
14
14
  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
15
-
15
+ <% if options[:webpack] %>
16
+ # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
17
+ gem 'webpacker'
18
+ <% end %>
16
19
  group :development, :test do
17
20
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
18
21
  gem 'pry-byebug'
@@ -10,7 +10,7 @@
10
10
 
11
11
  ### Installing Dependencies
12
12
 
13
- To run this code, you must have Rails 5.0 and Ruby 2.3.1 installed. Then you just have to run:
13
+ To run this code, you must have Rails <%= Barebones::RAILS_VERSION %> and Ruby <%= Barebones::RUBY_VERSION %> installed. Then you just have to run:
14
14
 
15
15
  `bundle install`
16
16
 
@@ -33,7 +33,7 @@ Run `rails s -p [port#]` to start the server.
33
33
  ## The API
34
34
 
35
35
  All local requests to the API should be done through the subdomain: `http://devapi.localhost.local:{PORT#}/`
36
- All API requests default to using an accept header with `application/com.<%= app_name.parameterize.underscore %>_admin.v1` unless otherwise specified.
36
+ All API requests default to using an accept header with `application/com.<%= app_name.parameterize.underscore %>.v1` unless otherwise specified.
37
37
 
38
38
  ### Standard Response Structure
39
39
 
@@ -16,7 +16,7 @@ development:
16
16
 
17
17
  staging:
18
18
  <<: *DEFAULTS
19
- secret_key_base: <%= SecureRandom.hex(64) %>
19
+ secret_key_base: <%%= ENV["SECRET_KEY_BASE"] %>
20
20
  # Redis
21
21
  redis_url:
22
22
  redis_port:
@@ -1,4 +1,4 @@
1
- # To queue with resque-scheduler: TestJob.wait(5.second).perform_later
1
+ # To queue with resque-scheduler: TestJob.wait(5.seconds).perform_later
2
2
 
3
3
  class TestJob < ApplicationJob
4
4
  queue_as :default
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.5
4
+ version: 1.0.0.6
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-06-21 00:00:00.000000000 Z
11
+ date: 2017-10-19 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.1'
19
+ version: 5.1.4
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.1'
26
+ version: 5.1.4
27
27
  description: A personal Rails template generator.
28
28
  email:
29
29
  executables:
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 2.6.6
86
+ rubygems_version: 2.6.13
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: Rails template generator