socialmod 0.1.0 → 0.2.0

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.
Files changed (2) hide show
  1. data/lib/socialmod.rb +11 -0
  2. metadata +3 -3
data/lib/socialmod.rb CHANGED
@@ -14,10 +14,21 @@ module Socialmod
14
14
  self.headers['Authorization'] = key
15
15
  @@api_key = key
16
16
  end
17
+
18
+ def callback_url=(url)
19
+ @@callback_url = url
20
+ end
21
+
22
+ def callback_url
23
+ @@callback_url ||= nil
24
+ end
17
25
  end
18
26
 
19
27
  def initialize(*args)
20
28
  super(*args)
29
+ if Base.callback_url
30
+ attributes["callback_url"] ||= Base.callback_url
31
+ end
21
32
  if respond_to?(:after_initialize)
22
33
  send(:after_initialize)
23
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socialmod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex MacCaw
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-31 00:00:00 +01:00
12
+ date: 2009-07-01 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  requirements: []
62
62
 
63
63
  rubyforge_project:
64
- rubygems_version: 1.3.3
64
+ rubygems_version: 1.3.4
65
65
  signing_key:
66
66
  specification_version: 3
67
67
  summary: Socialmod library