mage-hand 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ob_port/campaign.rb +1 -1
- data/lib/ob_port/wiki_page.rb +5 -3
- data/mage-hand.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.7
|
data/lib/ob_port/campaign.rb
CHANGED
data/lib/ob_port/wiki_page.rb
CHANGED
@@ -19,9 +19,9 @@ module MageHand
|
|
19
19
|
attr_instance :campaign
|
20
20
|
inflate_if_nil :campaign
|
21
21
|
|
22
|
-
def self.load_wiki_pages(
|
23
|
-
wiki_hashes = JSON.parse(client.access_token.get(collection_url(
|
24
|
-
wiki_hashes.map {|hash| WikiPage.new(hash)}
|
22
|
+
def self.load_wiki_pages(campaign)
|
23
|
+
wiki_hashes = JSON.parse(campaign.client.access_token.get(collection_url(campaign.id)).body)
|
24
|
+
wiki_hashes.map {|hash| WikiPage.new(campaign.client, hash)}
|
25
25
|
end
|
26
26
|
|
27
27
|
def campaign=(campaign_hash)
|
@@ -61,6 +61,8 @@ module MageHand
|
|
61
61
|
@response = client.access_token.post(self.class.collection_url(self.campaign.id),
|
62
62
|
json_body, {'content-type' => 'application/x-www-form-urlencoded'})
|
63
63
|
puts @response.inspect
|
64
|
+
puts @response.message
|
65
|
+
puts @response.body
|
64
66
|
self.update_attributes!(JSON.parse(@response.body))
|
65
67
|
end
|
66
68
|
end
|
data/mage-hand.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mage-hand
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -221,7 +221,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
221
221
|
version: '0'
|
222
222
|
segments:
|
223
223
|
- 0
|
224
|
-
hash:
|
224
|
+
hash: -1021386638790416384
|
225
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
226
|
none: false
|
227
227
|
requirements:
|