bootstrappers 0.2.0.1 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,10 @@
1
1
  alpha
2
2
 
3
+ 0.2.1 (Apr 8, 2013)
4
+
5
+ * add hipchat
6
+ * add auto_facebook
7
+
3
8
  0.2.0.1 (Jan 25, 2013)
4
9
  * fix email_sender
5
10
  * upgrade to Rails 3.2.11
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Bootstrappers
2
- VERSION = "0.2.0.1"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -19,6 +19,12 @@ gem "turbo-sprockets-rails3"
19
19
 
20
20
  gem "rvm-capistrano"
21
21
 
22
+ gem "omniauth"
23
+ gem "omniauth-facebook"
24
+ gem "auto-facebook"
25
+
26
+
27
+ gem "hipchat"
22
28
 
23
29
  # Cache
24
30
  gem "dalli"
@@ -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
@@ -20,6 +20,7 @@
20
20
  <% else %>
21
21
  <li> <%= link_to( "Sign Up" ,new_user_registration_path) %> </li>
22
22
  <li> <%= link_to( "Login", new_user_session_path ) %> </li>
23
+ <li> <%= link_to( "FB Login", "/users/auth/facebook" ) %> </li>
23
24
  <% end %>
24
25
 
25
26
 
@@ -3,6 +3,8 @@ defaults: &defaults
3
3
  domain: "http://<%= app_name %>.dev"
4
4
  facebook_app_id:
5
5
  facebook_secret:
6
+ hipchat_token:
7
+ hipchat_room_name:
6
8
  admin_emails:
7
9
  - ""
8
10
  google_analytics_key: ""
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.0.1
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-01-26 00:00:00.000000000 Z
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: -1269149550668300963
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: -1269149550668300963
121
+ hash: -2734716052357034420
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 1.8.24
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