plataforma_social 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/plataforma_social/helpers.rb +19 -21
- data/lib/plataforma_social/version.rb +1 -1
- metadata +96 -148
@@ -94,30 +94,28 @@ module PlataformaSocial
|
|
94
94
|
params.present? && params[:controller].present? && params[:controller].index(PlataformaSocial.admin_controller_name) == 0
|
95
95
|
end
|
96
96
|
|
97
|
-
def
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
97
|
+
def link_to_facebook *args, &block
|
98
|
+
if block_given?
|
99
|
+
href = capture(&block)
|
100
|
+
|
101
|
+
args.unshift(href)
|
102
|
+
|
103
|
+
link_to_facebook *args
|
102
104
|
else
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
end
|
113
|
-
|
114
|
-
args[2][:target] = '_top'
|
115
|
-
else
|
116
|
-
super
|
117
|
-
end
|
105
|
+
args[2] ||= {}
|
106
|
+
|
107
|
+
server_domain = request.env['HTTP_HOST']
|
108
|
+
url = 'apps.facebook.com/' + PlataformaSocial.facebook_app_namespace
|
109
|
+
|
110
|
+
if args[1].include? server_domain
|
111
|
+
args[1].gsub! server_domain, url
|
112
|
+
else
|
113
|
+
args[1] = request.protocol + url + args[1]
|
118
114
|
end
|
115
|
+
|
116
|
+
args[2][:target] = '_top'
|
119
117
|
|
120
|
-
|
118
|
+
return link_to *args
|
121
119
|
end
|
122
120
|
end
|
123
121
|
end
|
metadata
CHANGED
@@ -1,183 +1,127 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: plataforma_social
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.24
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- Marcos Nogueira
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
|
12
|
+
date: 2013-10-10 00:00:00 -03:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
15
16
|
name: capistrano
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
17
|
type: :runtime
|
23
|
-
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
- !ruby/object:Gem::Dependency
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
31
26
|
name: rsa
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 0.1.4
|
38
27
|
type: :runtime
|
39
|
-
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
|
42
|
-
requirements:
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
43
31
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
32
|
+
- !ruby/object:Gem::Version
|
45
33
|
version: 0.1.4
|
46
|
-
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
47
36
|
name: koala
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 1.6.0
|
54
37
|
type: :runtime
|
55
|
-
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
|
58
|
-
requirements:
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
59
41
|
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
42
|
+
- !ruby/object:Gem::Version
|
61
43
|
version: 1.6.0
|
62
|
-
|
44
|
+
version:
|
45
|
+
- !ruby/object:Gem::Dependency
|
63
46
|
name: httparty
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 0.10.0
|
70
47
|
type: :runtime
|
71
|
-
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
|
74
|
-
requirements:
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
75
51
|
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
52
|
+
- !ruby/object:Gem::Version
|
77
53
|
version: 0.10.0
|
78
|
-
|
54
|
+
version:
|
55
|
+
- !ruby/object:Gem::Dependency
|
79
56
|
name: json
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ! '>='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: 1.7.7
|
86
57
|
type: :development
|
87
|
-
|
88
|
-
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
- !ruby/object:Gem::Version
|
58
|
+
version_requirement:
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
93
63
|
version: 1.7.7
|
94
|
-
|
64
|
+
version:
|
65
|
+
- !ruby/object:Gem::Dependency
|
95
66
|
name: bundler
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: 1.1.0
|
102
67
|
type: :development
|
103
|
-
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
- !ruby/object:Gem::Version
|
68
|
+
version_requirement:
|
69
|
+
version_requirements: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
109
73
|
version: 1.1.0
|
110
|
-
|
74
|
+
version:
|
75
|
+
- !ruby/object:Gem::Dependency
|
111
76
|
name: rake
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ~>
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 0.9.2.2
|
118
77
|
type: :development
|
119
|
-
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
|
122
|
-
requirements:
|
78
|
+
version_requirement:
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
123
81
|
- - ~>
|
124
|
-
- !ruby/object:Gem::Version
|
82
|
+
- !ruby/object:Gem::Version
|
125
83
|
version: 0.9.2.2
|
126
|
-
|
84
|
+
version:
|
85
|
+
- !ruby/object:Gem::Dependency
|
127
86
|
name: rspec
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ~>
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: 2.8.0
|
134
87
|
type: :development
|
135
|
-
|
136
|
-
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
|
138
|
-
requirements:
|
88
|
+
version_requirement:
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
139
91
|
- - ~>
|
140
|
-
- !ruby/object:Gem::Version
|
92
|
+
- !ruby/object:Gem::Version
|
141
93
|
version: 2.8.0
|
142
|
-
|
94
|
+
version:
|
95
|
+
- !ruby/object:Gem::Dependency
|
143
96
|
name: vcr
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
|
-
requirements:
|
147
|
-
- - ~>
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: 2.0.1
|
150
97
|
type: :development
|
151
|
-
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
|
154
|
-
requirements:
|
98
|
+
version_requirement:
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
155
101
|
- - ~>
|
156
|
-
- !ruby/object:Gem::Version
|
102
|
+
- !ruby/object:Gem::Version
|
157
103
|
version: 2.0.1
|
158
|
-
|
104
|
+
version:
|
105
|
+
- !ruby/object:Gem::Dependency
|
159
106
|
name: fakeweb
|
160
|
-
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
|
-
requirements:
|
163
|
-
- - ~>
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: 1.3.0
|
166
107
|
type: :development
|
167
|
-
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
|
170
|
-
requirements:
|
108
|
+
version_requirement:
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
171
111
|
- - ~>
|
172
|
-
- !ruby/object:Gem::Version
|
112
|
+
- !ruby/object:Gem::Version
|
173
113
|
version: 1.3.0
|
114
|
+
version:
|
174
115
|
description: Plataforma Social's integration gem
|
175
|
-
email:
|
116
|
+
email:
|
176
117
|
- marcos.nogueira@dito.com.br
|
177
118
|
executables: []
|
119
|
+
|
178
120
|
extensions: []
|
121
|
+
|
179
122
|
extra_rdoc_files: []
|
180
|
-
|
123
|
+
|
124
|
+
files:
|
181
125
|
- .DS_Store
|
182
126
|
- .gitignore
|
183
127
|
- .rspec
|
@@ -287,31 +231,35 @@ files:
|
|
287
231
|
- spec/plataforma_social/ranking/general_spec.rb
|
288
232
|
- spec/plataforma_social/ranking_spec.rb
|
289
233
|
- spec/spec_helper.rb
|
234
|
+
has_rdoc: true
|
290
235
|
homepage: http://www.dito.com.br/
|
291
236
|
licenses: []
|
237
|
+
|
292
238
|
post_install_message:
|
293
239
|
rdoc_options: []
|
294
|
-
|
240
|
+
|
241
|
+
require_paths:
|
295
242
|
- lib
|
296
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
243
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
244
|
+
requirements:
|
245
|
+
- - ">="
|
246
|
+
- !ruby/object:Gem::Version
|
247
|
+
version: "0"
|
248
|
+
version:
|
249
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
250
|
+
requirements:
|
251
|
+
- - ">="
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: "0"
|
254
|
+
version:
|
308
255
|
requirements: []
|
256
|
+
|
309
257
|
rubyforge_project:
|
310
|
-
rubygems_version: 1.
|
258
|
+
rubygems_version: 1.3.5
|
311
259
|
signing_key:
|
312
260
|
specification_version: 3
|
313
261
|
summary: Plataforma Social's integration gem
|
314
|
-
test_files:
|
262
|
+
test_files:
|
315
263
|
- spec/.DS_Store
|
316
264
|
- spec/cassettes/PlataformaSocial_Badge/CREATE_a_new_badge/when_request_is_successful.yml
|
317
265
|
- spec/cassettes/PlataformaSocial_Badge/GIVE_points_to_user/when_request_is_successful_and_badges_is_array.yml
|