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 +4 -4
- data/README.md +7 -3
- data/barebones.gemspec +1 -1
- data/lib/barebones/generators/app_generator.rb +1 -1
- data/templates/carrierwave.rb +10 -9
- data/templates/secrets.yml.erb +21 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c13d5de5763f292128c4fab1e88af3c9a7b609e8
|
4
|
+
data.tar.gz: ed5f1e08e9f82c445648177f1acb74a4de2042a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 251672ca48b0c8c8f2240f8d7f39be02ee79e10874800be74791a621ee386f60df64bea29a0949c8a9ab83cb502693d1072b8f9d2b0fa1f448e00c6676fa2200
|
7
|
+
data.tar.gz: be4810ec3be2def39d9e2f23916d384d34b2a50b0b76bf9e06b5e772100b3a456d725e75fbec194ae2fece65e24299570c3b485e7c53b4b05efa48edf17a78ff
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
Barebones
|
2
2
|
===
|
3
|
+
[](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
|
-
|
11
|
+
|
12
|
+
gem install barebones
|
11
13
|
|
12
14
|
Then run:
|
13
|
-
|
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
|
-
|
27
|
+
|
28
|
+
barebones [AppName] --skip-api --skip-sorcery
|
25
29
|
|
26
30
|
Gemfile
|
27
31
|
---
|
data/barebones.gemspec
CHANGED
data/templates/carrierwave.rb
CHANGED
@@ -8,12 +8,13 @@
|
|
8
8
|
# config.fog_directory = Rails.application.secrets.cw_bucket
|
9
9
|
# end
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
data/templates/secrets.yml.erb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|