blue_velvet 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,7 @@ class Facebook::PageController < ApplicationController
30
30
  attribute = Facebook::Attribute.new \
31
31
  name: attribute_name.parameterize,
32
32
  title: attribute_name.titleize,
33
- body: attribute_content
33
+ body: attribute_content.html_safe
34
34
  render partial: 'page_attribute', locals: { attribute: attribute }
35
35
  else
36
36
  render partial: 'attribute_not_found', locals: { attribute_name: "#{attribute_name}" }
@@ -1,3 +1,3 @@
1
1
  module BlueVelvet
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -1,13 +1,12 @@
1
1
  module Facebook
2
2
  # Generate configuration for BlueVelvet and Koala.
3
3
  class ConfigGenerator < Rails::Generators::Base
4
- desc "Copies Facebook/Koala configuration to your application"
4
+ desc "Copies Facebook configuration to your application"
5
5
  source_root File.expand_path('../templates', __FILE__)
6
6
 
7
7
  # Edit this file with your Facebook app details
8
8
  def copy_configuration
9
9
  copy_file "facebook.yml", "config/facebook.yml"
10
- copy_file "koala.rb", "config/initializers/koala.rb"
11
10
  end
12
11
  end
13
12
  end
@@ -995,3 +995,216 @@ Processing by Facebook::PageController#about as HTML
995
995
  Rendered /Users/necromancer/Code/blue_velvet/app/views/facebook/page/_page_attribute.html.erb (0.9ms)
996
996
  Completed 200 OK in 151ms (Views: 2.4ms | ActiveRecord: 0.0ms)
997
997
   (0.3ms) rollback transaction
998
+ Connecting to database specified by database.yml
999
+  (2.9ms) begin transaction
1000
+  (0.1ms) rollback transaction
1001
+  (0.1ms) begin transaction
1002
+  (0.1ms) rollback transaction
1003
+  (0.1ms) begin transaction
1004
+ Connecting to database specified by database.yml
1005
+  (0.4ms) begin transaction
1006
+  (0.1ms) rollback transaction
1007
+  (0.1ms) begin transaction
1008
+  (0.1ms) rollback transaction
1009
+  (0.0ms) begin transaction
1010
+  (0.1ms) rollback transaction
1011
+  (0.1ms) begin transaction
1012
+  (0.1ms) rollback transaction
1013
+  (0.0ms) begin transaction
1014
+  (0.1ms) rollback transaction
1015
+  (0.0ms) begin transaction
1016
+  (0.1ms) rollback transaction
1017
+  (0.0ms) begin transaction
1018
+  (0.1ms) rollback transaction
1019
+  (0.1ms) begin transaction
1020
+  (0.0ms) rollback transaction
1021
+  (0.0ms) begin transaction
1022
+  (0.0ms) rollback transaction
1023
+  (0.1ms) begin transaction
1024
+  (0.0ms) rollback transaction
1025
+  (0.1ms) begin transaction
1026
+ Processing by Facebook::PageController#about as HTML
1027
+ Completed 500 Internal Server Error in 129ms
1028
+  (0.1ms) rollback transaction
1029
+  (0.0ms) begin transaction
1030
+ Processing by Facebook::PageController#events as HTML
1031
+ Completed 500 Internal Server Error in 11ms
1032
+  (0.1ms) rollback transaction
1033
+ Connecting to database specified by database.yml
1034
+  (0.5ms) begin transaction
1035
+  (0.1ms) rollback transaction
1036
+  (0.1ms) begin transaction
1037
+  (0.0ms) rollback transaction
1038
+  (0.0ms) begin transaction
1039
+  (0.1ms) rollback transaction
1040
+  (0.0ms) begin transaction
1041
+  (0.1ms) rollback transaction
1042
+  (0.0ms) begin transaction
1043
+  (0.1ms) rollback transaction
1044
+  (0.1ms) begin transaction
1045
+  (0.1ms) rollback transaction
1046
+  (0.0ms) begin transaction
1047
+  (0.1ms) rollback transaction
1048
+  (0.1ms) begin transaction
1049
+  (0.0ms) rollback transaction
1050
+  (0.0ms) begin transaction
1051
+  (0.0ms) rollback transaction
1052
+  (0.0ms) begin transaction
1053
+  (0.0ms) rollback transaction
1054
+  (0.1ms) begin transaction
1055
+ Processing by Facebook::PageController#about as HTML
1056
+ Completed 500 Internal Server Error in 11ms
1057
+  (0.1ms) rollback transaction
1058
+  (0.0ms) begin transaction
1059
+ Processing by Facebook::PageController#events as HTML
1060
+ Completed 500 Internal Server Error in 11ms
1061
+  (0.1ms) rollback transaction
1062
+ Connecting to database specified by database.yml
1063
+  (0.5ms) begin transaction
1064
+  (0.1ms) rollback transaction
1065
+  (0.1ms) begin transaction
1066
+  (0.1ms) rollback transaction
1067
+  (0.1ms) begin transaction
1068
+  (0.1ms) rollback transaction
1069
+  (0.0ms) begin transaction
1070
+  (0.1ms) rollback transaction
1071
+  (0.0ms) begin transaction
1072
+  (0.1ms) rollback transaction
1073
+  (0.0ms) begin transaction
1074
+  (0.1ms) rollback transaction
1075
+  (0.0ms) begin transaction
1076
+  (0.1ms) rollback transaction
1077
+  (0.1ms) begin transaction
1078
+  (0.0ms) rollback transaction
1079
+  (0.0ms) begin transaction
1080
+  (0.0ms) rollback transaction
1081
+  (0.0ms) begin transaction
1082
+  (0.0ms) rollback transaction
1083
+  (0.0ms) begin transaction
1084
+ Processing by Facebook::PageController#about as HTML
1085
+ Completed 500 Internal Server Error in 11ms
1086
+  (0.1ms) rollback transaction
1087
+  (0.0ms) begin transaction
1088
+ Processing by Facebook::PageController#events as HTML
1089
+ Completed 500 Internal Server Error in 12ms
1090
+  (0.1ms) rollback transaction
1091
+ Connecting to database specified by database.yml
1092
+  (0.5ms) begin transaction
1093
+  (0.1ms) rollback transaction
1094
+  (0.1ms) begin transaction
1095
+  (0.0ms) rollback transaction
1096
+  (0.0ms) begin transaction
1097
+  (0.1ms) rollback transaction
1098
+  (0.0ms) begin transaction
1099
+  (0.1ms) rollback transaction
1100
+  (0.0ms) begin transaction
1101
+  (0.1ms) rollback transaction
1102
+  (0.0ms) begin transaction
1103
+  (0.1ms) rollback transaction
1104
+  (0.0ms) begin transaction
1105
+  (0.1ms) rollback transaction
1106
+  (0.1ms) begin transaction
1107
+  (0.0ms) rollback transaction
1108
+  (0.0ms) begin transaction
1109
+  (0.0ms) rollback transaction
1110
+  (0.0ms) begin transaction
1111
+  (0.0ms) rollback transaction
1112
+  (0.1ms) begin transaction
1113
+ Processing by Facebook::PageController#about as HTML
1114
+ Completed 500 Internal Server Error in 12ms
1115
+  (0.1ms) rollback transaction
1116
+  (0.0ms) begin transaction
1117
+ Processing by Facebook::PageController#events as HTML
1118
+ Completed 500 Internal Server Error in 12ms
1119
+  (0.1ms) rollback transaction
1120
+ Connecting to database specified by database.yml
1121
+  (2.9ms) begin transaction
1122
+  (0.1ms) rollback transaction
1123
+  (0.1ms) begin transaction
1124
+  (0.1ms) rollback transaction
1125
+  (0.1ms) begin transaction
1126
+  (0.1ms) rollback transaction
1127
+  (0.0ms) begin transaction
1128
+  (0.1ms) rollback transaction
1129
+  (0.0ms) begin transaction
1130
+  (0.1ms) rollback transaction
1131
+  (0.0ms) begin transaction
1132
+  (0.1ms) rollback transaction
1133
+  (0.0ms) begin transaction
1134
+  (0.1ms) rollback transaction
1135
+  (0.1ms) begin transaction
1136
+  (0.1ms) rollback transaction
1137
+  (0.1ms) begin transaction
1138
+  (0.1ms) rollback transaction
1139
+  (0.1ms) begin transaction
1140
+  (0.1ms) rollback transaction
1141
+  (0.1ms) begin transaction
1142
+ Processing by Facebook::PageController#about as HTML
1143
+ Completed 500 Internal Server Error in 13ms
1144
+  (0.1ms) rollback transaction
1145
+  (0.0ms) begin transaction
1146
+ Processing by Facebook::PageController#events as HTML
1147
+ Completed 500 Internal Server Error in 13ms
1148
+  (0.1ms) rollback transaction
1149
+ Connecting to database specified by database.yml
1150
+  (0.4ms) begin transaction
1151
+  (0.1ms) rollback transaction
1152
+  (0.1ms) begin transaction
1153
+  (0.0ms) rollback transaction
1154
+  (0.0ms) begin transaction
1155
+  (0.1ms) rollback transaction
1156
+  (0.0ms) begin transaction
1157
+  (0.1ms) rollback transaction
1158
+  (0.0ms) begin transaction
1159
+  (0.1ms) rollback transaction
1160
+  (0.1ms) begin transaction
1161
+  (0.1ms) rollback transaction
1162
+  (0.0ms) begin transaction
1163
+  (0.1ms) rollback transaction
1164
+  (0.1ms) begin transaction
1165
+  (0.0ms) rollback transaction
1166
+  (0.0ms) begin transaction
1167
+  (0.0ms) rollback transaction
1168
+  (0.0ms) begin transaction
1169
+  (0.0ms) rollback transaction
1170
+  (0.1ms) begin transaction
1171
+ Processing by Facebook::PageController#about as HTML
1172
+ Rendered /Users/necromancer/Code/blue_velvet/app/views/facebook/page/_page_attribute.html.erb (3.9ms)
1173
+ Completed 200 OK in 326ms (Views: 74.6ms | ActiveRecord: 0.0ms)
1174
+  (0.1ms) rollback transaction
1175
+  (0.0ms) begin transaction
1176
+ Processing by Facebook::PageController#events as HTML
1177
+ Rendered /Users/necromancer/Code/blue_velvet/app/views/facebook/page/_attribute_not_found.html.erb (0.9ms)
1178
+ Completed 200 OK in 34ms (Views: 17.8ms | ActiveRecord: 0.0ms)
1179
+  (0.1ms) rollback transaction
1180
+ Connecting to database specified by database.yml
1181
+  (0.4ms) begin transaction
1182
+  (0.1ms) rollback transaction
1183
+  (0.1ms) begin transaction
1184
+  (0.0ms) rollback transaction
1185
+  (0.1ms) begin transaction
1186
+  (0.1ms) rollback transaction
1187
+  (0.1ms) begin transaction
1188
+  (0.1ms) rollback transaction
1189
+  (0.1ms) begin transaction
1190
+  (0.1ms) rollback transaction
1191
+  (0.1ms) begin transaction
1192
+  (0.1ms) rollback transaction
1193
+  (0.0ms) begin transaction
1194
+  (0.1ms) rollback transaction
1195
+  (0.1ms) begin transaction
1196
+  (0.1ms) rollback transaction
1197
+  (0.1ms) begin transaction
1198
+  (0.0ms) rollback transaction
1199
+  (0.0ms) begin transaction
1200
+  (0.0ms) rollback transaction
1201
+  (0.1ms) begin transaction
1202
+ Processing by Facebook::PageController#about as HTML
1203
+ Rendered /Users/necromancer/Code/blue_velvet/app/views/facebook/page/_page_attribute.html.erb (2.5ms)
1204
+ Completed 200 OK in 183ms (Views: 12.1ms | ActiveRecord: 0.0ms)
1205
+  (0.1ms) rollback transaction
1206
+  (0.0ms) begin transaction
1207
+ Processing by Facebook::PageController#events as HTML
1208
+ Rendered /Users/necromancer/Code/blue_velvet/app/views/facebook/page/_attribute_not_found.html.erb (0.5ms)
1209
+ Completed 200 OK in 23ms (Views: 2.0ms | ActiveRecord: 0.0ms)
1210
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blue_velvet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
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: 2012-07-29 00:00:00.000000000 Z
12
+ date: 2012-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -83,7 +83,6 @@ files:
83
83
  - lib/blue_velvet.rb
84
84
  - lib/generators/facebook/config/config_generator.rb
85
85
  - lib/generators/facebook/config/templates/facebook.yml
86
- - lib/generators/facebook/config/templates/koala.rb
87
86
  - lib/generators/facebook/config/USAGE
88
87
  - lib/generators/facebook/views/USAGE
89
88
  - lib/generators/facebook/views/views_generator.rb
@@ -1,29 +0,0 @@
1
- require 'koala'
2
-
3
- module Facebook
4
- def self.config
5
- if Rails.env.staging?
6
- ActiveSupport::HashWithIndifferentAccess.new \
7
- app_id: ENV['FB_APP_ID'],
8
- secret_key: ENV['FB_SECRET_KEY'],
9
- page_id: ENV['FB_PAGE_ID']
10
- else
11
- ActiveSupport::HashWithIndifferentAccess.new \
12
- YAML.load_file(Rails.root.join("config/facebook.yml"))[Rails.env]
13
- end
14
- end
15
- end
16
-
17
- Koala::Facebook::OAuth.class_eval do
18
- def initialize_with_default_settings(*args)
19
- case args.size
20
- when 0, 1
21
- raise "application id and/or secret are not specified in the config" unless Facebook.config[:app_id].present? && Facebook.config[:secret_key].present?
22
- initialize_without_default_settings(Facebook.config[:app_id], Facebook.config[:secret], args.first)
23
- when 2, 3
24
- initialize_without_default_settings(*args)
25
- end
26
- end
27
-
28
- alias_method_chain :initialize, :default_settings
29
- end