plataforma_social 0.0.35 → 0.0.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module PlataformaSocial
2
- VERSION = "0.0.35"
2
+ VERSION = "0.0.36"
3
3
  end
@@ -9,53 +9,54 @@ require "plataforma_social/ranking"
9
9
  require "plataforma_social/ranking/custom"
10
10
  require "plataforma_social/ranking/general"
11
11
  require "plataforma_social/badge"
12
+ require "plataforma_social/utm"
12
13
 
13
14
  module PlataformaSocial
14
15
  class << self
15
16
  def configuration
16
17
  @configuration ||= Configuration.new
17
18
  end
18
-
19
+
19
20
  def configure
20
21
  yield(configuration)
21
22
  end
22
-
23
+
23
24
  def api_key
24
25
  configuration.api_key
25
26
  end
26
-
27
+
27
28
  def secret
28
29
  configuration.secret
29
30
  end
30
-
31
+
31
32
  def facebook_app_id
32
33
  configuration.facebook_app_id
33
34
  end
34
-
35
+
35
36
  def facebook_app_secret
36
37
  configuration.facebook_app_secret
37
38
  end
38
-
39
+
39
40
  def facebook_app_namespace
40
41
  configuration.facebook_app_namespace
41
42
  end
42
-
43
+
43
44
  def facebook_scope
44
45
  configuration.facebook_scope
45
46
  end
46
-
47
+
47
48
  def facebook_callback_url
48
49
  protocol = Rails.env.development? || Rails.env.staging? ? 'http' : 'https'
49
50
  configuration.facebook_callback_url || "#{protocol}://apps.facebook.com/#{configuration.facebook_app_namespace}/"
50
51
  end
51
-
52
+
52
53
  def admin_controller_name
53
54
  configuration.admin_controller_name || 'admin'
54
55
  end
55
-
56
+
56
57
  def environment
57
58
  configuration.environment || Rails.env.to_s
58
59
  end
59
-
60
- end
61
- end
60
+
61
+ end
62
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plataforma_social
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.35
4
+ version: 0.0.36
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: 2014-04-15 00:00:00.000000000 Z
12
+ date: 2014-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano