ilinkmaker 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,7 +26,7 @@ module Ilinkmaker
26
26
  if @partner_id && @linkshare_url
27
27
  url = "#{@linkshare_url}#{url}?partner_id=#{@partner_id}"
28
28
  elsif options[:partner_id] && options[:linkshare_url]
29
- url = "#{options[:linkshare_url]}#{url}?partner_id=#{options[:partner_id]}"
29
+ url = "#{options[:linkshare_url]}#{url}?partnerId=#{options[:partner_id]}"
30
30
  end
31
31
  end
32
32
 
@@ -1,3 +1,3 @@
1
1
  module Ilinkmaker
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -30,7 +30,7 @@ class IlinkmakerTest < Test::Unit::TestCase
30
30
 
31
31
  stub_get("http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/wa/wsSearch?term=tribes&media=ebook", "search.json")
32
32
  search_result = @client.search(:term => "tribes", :media => "ebook", :limit => 25)
33
- @client.get_affiliate_link(search_result["results"].first, {:partner_id => "wtf", :linkshare_url => "http://click.linksynergy.com/fs-bin/stat?id=XXXXXXXX&offerid=XXXXX&type=X&subid=X&tmpid=XXXX&RD_PARM1="}).should == "http://click.linksynergy.com/fs-bin/stat?id=XXXXXXXX&offerid=XXXXX&type=X&subid=X&tmpid=XXXX&RD_PARM1=http://itunes.apple.com/us/book/tribes/id361926215?mt=11&uo=4?partner_id=wtf"
33
+ @client.get_affiliate_link(search_result["results"].first, {:partner_id => "wtf", :linkshare_url => "http://click.linksynergy.com/fs-bin/stat?id=XXXXXXXX&offerid=XXXXX&type=X&subid=X&tmpid=XXXX&RD_PARM1="}).should == "http://click.linksynergy.com/fs-bin/stat?id=XXXXXXXX&offerid=XXXXX&type=X&subid=X&tmpid=XXXX&RD_PARM1=http://itunes.apple.com/us/book/tribes/id361926215?mt=11&uo=4?partnerId=wtf"
34
34
  end
35
35
  end
36
36
 
@@ -43,7 +43,7 @@ class IlinkmakerTest < Test::Unit::TestCase
43
43
  stub_get("http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/wa/wsLookup?id=361926215", "lookup.json")
44
44
  result = @client.lookup(:id => '361926215')
45
45
  result["results"].first["trackViewUrl"].should == "http://itunes.apple.com/us/book/tribes/id361926215?mt=11&uo=4"
46
- @client.get_affiliate_link(result["results"].first, {:partner_id => "wtf", :linkshare_url => "http://click.linksynergy.com/fs-bin/stat?id=XXXXXXXX&offerid=XXXXX&type=X&subid=X&tmpid=XXXX&RD_PARM1="}).should == "http://click.linksynergy.com/fs-bin/stat?id=XXXXXXXX&offerid=XXXXX&type=X&subid=X&tmpid=XXXX&RD_PARM1=http://itunes.apple.com/us/book/tribes/id361926215?mt=11&uo=4?partner_id=wtf"
46
+ @client.get_affiliate_link(result["results"].first, {:partner_id => "wtf", :linkshare_url => "http://click.linksynergy.com/fs-bin/stat?id=XXXXXXXX&offerid=XXXXX&type=X&subid=X&tmpid=XXXX&RD_PARM1="}).should == "http://click.linksynergy.com/fs-bin/stat?id=XXXXXXXX&offerid=XXXXX&type=X&subid=X&tmpid=XXXX&RD_PARM1=http://itunes.apple.com/us/book/tribes/id361926215?mt=11&uo=4?partnerId=wtf"
47
47
  end
48
48
 
49
49
  should "find by id and get entity" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ilinkmaker
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Johnny Khai Nguyen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-26 00:00:00 -05:00
18
+ date: 2011-07-27 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21