barebones 0.1.2 → 0.1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c50dbad588962d819a5d8ea6b4ef12c8cca8f34
4
- data.tar.gz: 61bd6b108f68d1e3f4e352e388bbfe8104b5cf33
3
+ metadata.gz: c13d5de5763f292128c4fab1e88af3c9a7b609e8
4
+ data.tar.gz: ed5f1e08e9f82c445648177f1acb74a4de2042a1
5
5
  SHA512:
6
- metadata.gz: c3e1f4f1350a7fa832aa5c0b5fa8e343a7b63229c272f1cee1d436247fdcc667f6cd2a8395d59cf3bf3d1c332bc006207de45e9950b6fbc723ddf130b6e3405c
7
- data.tar.gz: c56b1905de256a8e38cb19ad20d56d4c3aa88b7c138156b0487d89364b889f268339b6751cc6ccae657464e82265ef76505da7611d0dc10b8a3bc30587fc1653
6
+ metadata.gz: 251672ca48b0c8c8f2240f8d7f39be02ee79e10874800be74791a621ee386f60df64bea29a0949c8a9ab83cb502693d1072b8f9d2b0fa1f448e00c6676fa2200
7
+ data.tar.gz: be4810ec3be2def39d9e2f23916d384d34b2a50b0b76bf9e06b5e772100b3a456d725e75fbec194ae2fece65e24299570c3b485e7c53b4b05efa48edf17a78ff
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  Barebones
2
2
  ===
3
+ [![Gem Version](https://badge.fury.io/rb/barebones.svg)](https://badge.fury.io/rb/barebones)
3
4
  Barebones is my personal base Rails application. After developing a
4
5
  couple of Rails applications, I thought that there were some common
5
6
  gems and patterns that would be nice to have out of the box.
@@ -7,10 +8,12 @@ gems and patterns that would be nice to have out of the box.
7
8
  Installation
8
9
  ---
9
10
  Install the gem:
10
- `gem install barebones`
11
+
12
+ gem install barebones
11
13
 
12
14
  Then run:
13
- `barebones [AppName]`
15
+
16
+ barebones [AppName]
14
17
 
15
18
  #### Flags
16
19
  If you don't like using any of the below gems or configurations for whatever reason, you can skip them:
@@ -21,7 +24,8 @@ If you don't like using any of the below gems or configurations for whatever rea
21
24
  * --skip-carrierwave
22
25
 
23
26
  For example:
24
- `barebones [AppName] --skip-api --skip-sorcery`
27
+
28
+ barebones [AppName] --skip-api --skip-sorcery
25
29
 
26
30
  Gemfile
27
31
  ---
data/barebones.gemspec CHANGED
@@ -3,7 +3,7 @@ require "date"
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "barebones"
6
- s.version = "0.1.2"
6
+ s.version = "0.1.3.1"
7
7
  s.date = Date.today.to_s
8
8
  s.licenses = ['MIT']
9
9
  s.summary = "Rails template generator"
@@ -37,7 +37,7 @@ module Barebones
37
37
  end
38
38
 
39
39
  def setup_api
40
- if options[:with_api]
40
+ unless options[:skip_api]
41
41
  say "Setting up an API..."
42
42
  build :customize_routes
43
43
  build :setup_oj
@@ -8,12 +8,13 @@
8
8
  # config.fog_directory = Rails.application.secrets.cw_bucket
9
9
  # end
10
10
 
11
- CarrierWave.configure do |config|
12
- config.fog_credentials = {
13
- :provider => 'AWS',
14
- :aws_access_key_id => Rails.application.secrets.cw_access_key_id, # required
15
- :aws_secret_access_key => Rails.application.secrets.cw_secret_access_key, # required
16
- #:region => Rails.application.secrets.cw_region # optional, defaults to 'us-east-1'
17
- }
18
- config.fog_directory = Rails.application.secrets.cw_bucket # required
19
- end
11
+ # Uncomment for Amazon AWS
12
+ # CarrierWave.configure do |config|
13
+ # config.fog_credentials = {
14
+ # :provider => 'AWS',
15
+ # :aws_access_key_id => Rails.application.secrets.cw_access_key_id, # required
16
+ # :aws_secret_access_key => Rails.application.secrets.cw_secret_access_key, # required
17
+ # #:region => Rails.application.secrets.cw_region # optional, defaults to 'us-east-1'
18
+ # }
19
+ # config.fog_directory = Rails.application.secrets.cw_bucket # required
20
+ # end
@@ -3,28 +3,48 @@ defaults: &DEFAULTS
3
3
  development:
4
4
  <<: *DEFAULTS
5
5
  secret_key_base: <%= SecureRandom.hex(64) %>
6
+ # Redis
6
7
  redis_url: "redis://localhost"
7
8
  redis_port: 6379
8
9
  redis_db: 0
9
10
  redis_namespace_default: "redis_default"
11
+ # Carrierwave
12
+ cw_access_key_id:
13
+ cw_secret_access_key:
14
+ cw_bucket:
10
15
 
11
16
  staging:
12
17
  <<: *DEFAULTS
13
18
  secret_key_base: <%= SecureRandom.hex(64) %>
19
+ # Redis
14
20
  redis_url:
15
21
  redis_port:
16
22
  redis_namespace_default:
23
+ # Carrierwave
24
+ cw_access_key_id:
25
+ cw_secret_access_key:
26
+ cw_bucket:
17
27
 
18
28
  production:
19
29
  <<: *DEFAULTS
20
30
  secret_key_base: <%%= ENV["SECRET_KEY_BASE"] %>
31
+ # Redis
21
32
  redis_url:
22
33
  redis_port:
23
34
  redis_namespace_default:
35
+ # Carrierwave
36
+ cw_access_key_id:
37
+ cw_secret_access_key:
38
+ cw_bucket:
24
39
 
25
40
  test:
26
41
  <<: *DEFAULTS
27
42
  secret_key_base: <%= SecureRandom.hex(64) %>
43
+ # Redis
28
44
  redis_url:
29
45
  redis_port:
30
- redis_namespace_default:
46
+ redis_namespace_default:
47
+ # Carrierwave
48
+ cw_access_key_id:
49
+ cw_secret_access_key:
50
+ cw_bucket:
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: 0.1.2
4
+ version: 0.1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Yu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-20 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails