bootstrappers 0.2.0.1 → 0.2.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.
- data/CHANGELOG.md +5 -0
- data/lib/bootstrappers/app_builder.rb +5 -0
- data/lib/bootstrappers/generators/app_generator.rb +5 -0
- data/lib/bootstrappers/version.rb +1 -1
- data/templates/Gemfile_additions +6 -0
- data/templates/capistrano/deploy_rb.erb +7 -0
- data/templates/common/_user_nav.html.erb +1 -0
- data/templates/config_yml.erb +2 -0
- metadata +5 -5
data/CHANGELOG.md
CHANGED
@@ -34,6 +34,11 @@ module Bootstrappers
|
|
34
34
|
generate 'devise User'
|
35
35
|
end
|
36
36
|
|
37
|
+
def generate_auto_facebook
|
38
|
+
generate 'auto_facebook:user'
|
39
|
+
generate 'auto_facebook:install'
|
40
|
+
end
|
41
|
+
|
37
42
|
def replace_email_sender_for_devise
|
38
43
|
replace_in_file 'config/initializers/devise.rb', /config\.mailer_sender = \".+\"/ , "config.mailer_sender = Setting.email_sender"
|
39
44
|
end
|
@@ -97,6 +97,7 @@ module Bootstrappers
|
|
97
97
|
def configure_app
|
98
98
|
say 'Configuring app'
|
99
99
|
build :setup_devise
|
100
|
+
build :build_auto_facebook
|
100
101
|
build :build_settings_from_config
|
101
102
|
|
102
103
|
end
|
@@ -111,6 +112,10 @@ module Bootstrappers
|
|
111
112
|
build :replace_email_sender_for_devise
|
112
113
|
end
|
113
114
|
|
115
|
+
def build_auto_facebook
|
116
|
+
build :generate_auto_facebook
|
117
|
+
end
|
118
|
+
|
114
119
|
def customize_error_pages
|
115
120
|
say 'Customizing the 500/404/422 pages'
|
116
121
|
build :customize_error_pages
|
data/templates/Gemfile_additions
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
|
3
|
+
raw_config = File.read("config/config.yml")
|
4
|
+
APP_CONFIG = YAML.load(raw_config)
|
5
|
+
|
3
6
|
require "./config/boot"
|
4
7
|
require "bundler/capistrano"
|
5
8
|
require "rvm-capistrano"
|
@@ -23,6 +26,10 @@ set :git_shallow_clone, 1
|
|
23
26
|
set :use_sudo, false
|
24
27
|
set :rvm_ruby_string, '1.9.3'
|
25
28
|
|
29
|
+
set :hipchat_token, APP_CONFIG["production"]["hipchat_token"]
|
30
|
+
set :hipchat_room_name, APP_CONFIG["production"]["hipchat_room_name"]
|
31
|
+
set :hipchat_announce, false # notify users?
|
32
|
+
|
26
33
|
role :web, "<%= app_name %>.com" # Your HTTP server, Apache/etc
|
27
34
|
role :app, "<%= app_name %>.com" # This may be the same as your `Web` server
|
28
35
|
role :db, "<%= app_name %>.com" , :primary => true # This is where Rails migrations will run
|
data/templates/config_yml.erb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrappers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -109,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
segments:
|
111
111
|
- 0
|
112
|
-
hash: -
|
112
|
+
hash: -2734716052357034420
|
113
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
114
|
none: false
|
115
115
|
requirements:
|
@@ -118,10 +118,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
segments:
|
120
120
|
- 0
|
121
|
-
hash: -
|
121
|
+
hash: -2734716052357034420
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 1.8.
|
124
|
+
rubygems_version: 1.8.25
|
125
125
|
signing_key:
|
126
126
|
specification_version: 3
|
127
127
|
summary: Bootstrappers is the base Rails application using Bootstrap template and
|