majestic_seo_api 1.1.2.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/majestic_seo/api/item_info.rb +3 -2
- data/lib/majestic_seo_api.rb +1 -1
- data/majestic_seo_api.gemspec +1 -2
- data/spec/majestic_seo/item_info_response_spec.rb +96 -26
- metadata +34 -34
- data/VERSION +0 -1
@@ -39,7 +39,7 @@ module MajesticSeo
|
|
39
39
|
attr_accessor :get_top_backlinks_analysis_results_unit_cost, :referring_ip_addresses, :referring_subnets
|
40
40
|
attr_accessor :referring_edu_domains, :external_edu_backlinks, :referring_gov_domains, :external_gov_backlinks
|
41
41
|
attr_accessor :exact_referring_edu_domains, :exact_external_edu_backlinks, :exact_referring_gov_domains, :exact_external_gov_backlinks
|
42
|
-
attr_accessor :crawled, :last_crawl_date, :last_crawl_result, :redirecting, :final_redirect_result
|
42
|
+
attr_accessor :crawled, :last_crawl_date, :last_crawl_result, :redirecting, :final_redirect_result, :last_seen
|
43
43
|
attr_accessor :outbound_domain_links, :outbound_external_backliks, :outbound_internal_backlinks
|
44
44
|
attr_accessor :title, :redirecting_to
|
45
45
|
|
@@ -75,6 +75,7 @@ module MajesticSeo
|
|
75
75
|
"LastCrawlResult" => {:last_crawl_result => :string},
|
76
76
|
"RedirectFlag" => {:redirecting => :boolean},
|
77
77
|
"FinalRedirectResult" => {:final_redirect_result => :string},
|
78
|
+
"LastSeen" => {:last_seen => :string},
|
78
79
|
"OutDomainsExternal" => {:outbound_domain_links => :integer},
|
79
80
|
"OutLinksExternal" => {:outbound_external_backliks => :integer},
|
80
81
|
"OutLinksInternal" => {:outbound_internal_backlinks => :integer},
|
@@ -99,7 +100,7 @@ module MajesticSeo
|
|
99
100
|
end
|
100
101
|
|
101
102
|
self.send("#{column}=", converted_value)
|
102
|
-
end if (value)
|
103
|
+
end if (mapping && !mapping.empty? && value)
|
103
104
|
end
|
104
105
|
|
105
106
|
set_result_status
|
data/lib/majestic_seo_api.rb
CHANGED
data/majestic_seo_api.gemspec
CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
|
4
4
|
|
5
5
|
s.name = 'majestic_seo_api'
|
6
|
-
s.version = '1.1.
|
6
|
+
s.version = '1.1.3'
|
7
7
|
|
8
8
|
s.homepage = "http://developer-support.majesticseo.com/connectors/"
|
9
9
|
s.email = "sebastian@agiley.se"
|
@@ -26,7 +26,6 @@ Gem::Specification.new do |s|
|
|
26
26
|
LICENSE.txt
|
27
27
|
README.markdown
|
28
28
|
Rakefile
|
29
|
-
VERSION
|
30
29
|
lib/generators/majestic_seo/majestic_seo_generator.rb
|
31
30
|
lib/generators/templates/majestic_seo.template.yml
|
32
31
|
lib/majestic_seo/api/client.rb
|
@@ -3,18 +3,17 @@ require File.expand_path('../../spec_helper', __FILE__)
|
|
3
3
|
|
4
4
|
describe MajesticSeo::Api::ItemInfoResponse do
|
5
5
|
|
6
|
-
#Example XML:
|
7
|
-
#<?xml version="1.0" encoding="utf-8"?>
|
8
|
-
#<Result Code="OK" ErrorMessage="" FullError="">
|
9
|
-
# <GlobalVars FirstBackLinkDate="2006-06-06" IndexBuildDate="04/01/2012 09:14:02" IndexType="0" MostRecentBackLinkDate="2011-12-18" RecentBackLinksFromDate="2011-09-19" ServerBuild="2011-11-07 13:20:36" ServerName="PWRGURU" ServerVersion="1.0.4328.24018"/>
|
10
|
-
# <DataTables Count="1">
|
11
|
-
# <DataTable Name="Results" RowsCount="2" Headers="ItemNum|Item|ResultCode|Status|ExtBackLinks|RefDomains|AnalysisResUnitsCost|ACRank|ItemType|IndexedURLs|GetTopBackLinksAnalysisResUnitsCost|RefIPs|RefSubNets|RefDomainsEDU|ExtBackLinksEDU|RefDomainsGOV|ExtBackLinksGOV|RefDomainsEDU_Exact|ExtBackLinksEDU_Exact|RefDomainsGOV_Exact|ExtBackLinksGOV_Exact|CrawledFlag|LastCrawlDate|LastCrawlResult|RedirectFlag|FinalRedirectResult|OutDomainsExternal|OutLinksExternal|OutLinksInternal|LastSeen|Title|RedirectTo">
|
12
|
-
# <Row>0|google.com|OK|Found|33536625553|15560001|33536625553|-1|1|5087871285|5000|2135470|363423|31636|147893369|22859|39850401|5833|43625720|6237|6983793|False| | |False| |0|0|0| | |http://www.google.nl</Row>
|
13
|
-
# <Row>1|yahoo.com|OK|Found|16814018765|8374570|16814018765|-1|1|3845667299|5000|1345597|266044|17992|24506182|10441|12766565|4284|5810404|1217|1338346|False| | |False| |0|0|0| | |http://pl.yahoo.com/?p=us</Row>
|
14
|
-
# </DataTable>
|
15
|
-
# </DataTables>
|
16
|
-
#</Result>
|
17
|
-
|
6
|
+
#Example XML:
|
7
|
+
#<?xml version="1.0" encoding="utf-8"?>
|
8
|
+
#<Result Code="OK" ErrorMessage="" FullError="">
|
9
|
+
# <GlobalVars FirstBackLinkDate="2006-06-06" IndexBuildDate="04/01/2012 09:14:02" IndexType="0" MostRecentBackLinkDate="2011-12-18" RecentBackLinksFromDate="2011-09-19" ServerBuild="2011-11-07 13:20:36" ServerName="PWRGURU" ServerVersion="1.0.4328.24018"/>
|
10
|
+
# <DataTables Count="1">
|
11
|
+
# <DataTable Name="Results" RowsCount="2" Headers="ItemNum|Item|ResultCode|Status|ExtBackLinks|RefDomains|AnalysisResUnitsCost|ACRank|ItemType|IndexedURLs|GetTopBackLinksAnalysisResUnitsCost|RefIPs|RefSubNets|RefDomainsEDU|ExtBackLinksEDU|RefDomainsGOV|ExtBackLinksGOV|RefDomainsEDU_Exact|ExtBackLinksEDU_Exact|RefDomainsGOV_Exact|ExtBackLinksGOV_Exact|CrawledFlag|LastCrawlDate|LastCrawlResult|RedirectFlag|FinalRedirectResult|OutDomainsExternal|OutLinksExternal|OutLinksInternal|LastSeen|Title|RedirectTo">
|
12
|
+
# <Row>0|google.com|OK|Found|33536625553|15560001|33536625553|-1|1|5087871285|5000|2135470|363423|31636|147893369|22859|39850401|5833|43625720|6237|6983793|False| | |False| |0|0|0| | |http://www.google.nl</Row>
|
13
|
+
# <Row>1|yahoo.com|OK|Found|16814018765|8374570|16814018765|-1|1|3845667299|5000|1345597|266044|17992|24506182|10441|12766565|4284|5810404|1217|1338346|False| | |False| |0|0|0| | |http://pl.yahoo.com/?p=us</Row>
|
14
|
+
# </DataTable>
|
15
|
+
# </DataTables>
|
16
|
+
#</Result>
|
18
17
|
describe "successful ASCII response from MajesticSeo" do
|
19
18
|
before(:each) do
|
20
19
|
#We need to keep the XML on one line - JRuby goes bonanza otherwise
|
@@ -70,20 +69,92 @@ describe MajesticSeo::Api::ItemInfoResponse do
|
|
70
69
|
yahoo_row.status.should == "Found"
|
71
70
|
yahoo_row.indexed_urls.should == 3845667299
|
72
71
|
end
|
73
|
-
|
74
72
|
end
|
73
|
+
|
74
|
+
#Example XML:
|
75
|
+
#<?xml version="1.0" encoding="utf-8"?>
|
76
|
+
#<Result Code="OK" ErrorMessage="" FullError="">
|
77
|
+
# <GlobalVars FirstBackLinkDate="2006-06-06" IndexBuildDate="04/01/2012 09:14:02" IndexType="0" MostRecentBackLinkDate="2011-12-18" RecentBackLinksFromDate="2011-09-19" ServerBuild="2011-11-07 13:20:36" ServerName="PWRGURU" ServerVersion="1.0.4328.24018"/>
|
78
|
+
# <DataTables Count="1">
|
79
|
+
# <DataTable Name="Results" RowsCount="20" Headers="ItemNum|Item|ResultCode|Status|ExtBackLinks|RefDomains|AnalysisResUnitsCost|ACRank|ItemType|IndexedURLs|GetTopBackLinksAnalysisResUnitsCost|RefIPs|RefSubNets|RefDomainsEDU|ExtBackLinksEDU|RefDomainsGOV|ExtBackLinksGOV|RefDomainsEDU_Exact|ExtBackLinksEDU_Exact|RefDomainsGOV_Exact|ExtBackLinksGOV_Exact|CrawledFlag|LastCrawlDate|LastCrawlResult|RedirectFlag|FinalRedirectResult|OutDomainsExternal|OutLinksExternal|OutLinksInternal|LastSeen|Title|RedirectTo">
|
80
|
+
# <Row>0|http://www.playedonline.com|OK|Found|1870925|14631|1870925|10|3|1|5000|9229|6280|28|76|2|3|15|24|0|0|True|2011-12-18|DownloadedSuccessfully|False| |11|11|56| |Free Online Games - Free Games Played Online| </Row>
|
81
|
+
# <Row>1|playedonline.com|OK|Found|3346330|23456|3346330|-1|1|413472|5000|14377|9381|44|118|2|5|16|34|0|0|False| | |False| |0|0|0| |Free Online Games - Free Games Played Online|http://www.playedonline.com</Row>
|
82
|
+
# <Row>2|http://en.wikipedia.org/wiki/online_and_offline|OK|Found|6|5|6|3|3|1|5000|5|5|0|0|0|0|0|0|0|0|False| | |False| |0|0|0|2010-12-09| | </Row>
|
83
|
+
# <Row>3|en.wikipedia.org|OK|Found|4369655183|3923979|4369655183|-1|2|167450964|5000|916134|204062|10244|11824736|3772|1527467|3416|4775867|960|769650|False| | |False| |0|0|0| | |http://en.wikipedia.org/wiki/Main_Page</Row>
|
84
|
+
# <Row>4|http://www.onlinesbi.com|OK|Found|27828|2356|27828|9|3|1|5000|1340|1086|8|24|10|131|1|1|0|0|True|2011-12-18|ConnectFailure|False| |0|0|0| | | </Row>
|
85
|
+
# <Row>5|onlinesbi.com|OK|Found|46519|3823|46519|-1|1|1355|5000|2352|1852|15|51|18|157|5|5|0|0|False| | |False| |0|0|0| | |https://www.onlinesbi.com</Row>
|
86
|
+
# <Row>6|http://www.freeonlineusers.com|OK|Found|41652276|19271|41652276|11|3|1|5000|9386|6220|58|5049|20|1100|3|21|0|0|True|2011-12-18|DownloadedSuccessfully|False| |1|2|4| |Free Online Users - Online Users Counter| </Row>
|
87
|
+
# <Row>7|freeonlineusers.com|OK|Found|41733729|19968|41733729|-1|1|1053|5000|9769|6469|71|5087|23|1111|3|21|0|0|False| | |False| |0|0|0| |Free Online Users - Online Users Counter| </Row>
|
88
|
+
# <Row>8|http://www.online.no|OK|Found|152533|4469|152533|9|3|1|5000|2382|1916|7|224|0|0|3|4|0|0|True|2011-12-18|DownloadedSuccessfully|False| |23|70|72| |Telenor Online - Online.no| </Row>
|
89
|
+
# <Row>9|online.no|OK|Found|6969824|90197|6969824|-1|1|1071412|5000|41728|24437|488|4419|39|122|256|2631|14|32|False| | |False| |0|0|0| |Telenor Online - Online.no| </Row>
|
90
|
+
# <Row>10|http://www.onlinenews.com.pk|OK|Found|21544|1171|21544|8|3|1|5000|778|670|4|4|4|41|3|3|2|2|True|2011-12-18|DownloadedSuccessfully|False| |2|2|27| |ONLINE - International News Network| </Row>
|
91
|
+
# <Row>11|onlinenews.com.pk|OK|Found|103266|9203|103266|-1|1|82366|5000|4900|3857|62|194|15|111|47|163|7|27|False| | |False| |0|0|0| |ONLINE - International News Network| </Row>
|
92
|
+
# <Row>12|http://www.online.net|OK|Found|458339|19076|458339|11|3|1|5000|6133|4679|16|19|14|14|7|7|8|8|True|2011-12-18|DownloadedSuccessfully|False| |3|3|27| |Hébergement mutualisé serveurs dédiés - Online.net| </Row>
|
93
|
+
# <Row>13|online.net|OK|Found|6019818|67627|6019818|-1|1|222450|5000|14134|9284|46|204|30|94|19|121|15|32|False| | |False| |0|0|0| |Hébergement mutualisé serveurs dédiés - Online.net|http://www.online.net</Row>
|
94
|
+
# <Row>14|http://www.miniclip.com|OK|Found|2789543|55512|2789543|12|3|1|5000|31727|19723|362|17689|40|180|141|937|3|7|True|2011-12-18|HTTP_301_PermanentRedirect|True|DownloadedSuccessfully|0|0|0| | |http://www.miniclip.com/games/en</Row>
|
95
|
+
# <Row>15|miniclip.com|OK|Found|20615291|169135|20615291|-1|1|6966761|5000|88242|41560|955|68431|163|2236|296|3602|13|23|False| | |False| |0|0|0| | |http://www.miniclip.com/games/en</Row>
|
96
|
+
# <Row>16|https://webmail.online.nl|OK|Found|4166|161|4166|6|3|1|5000|103|100|0|0|0|0|0|0|0|0|True|2011-12-18|DownloadedSuccessfully|False| |1|4|0| |Veilig en razendsnel internet bij Online| </Row>
|
97
|
+
# <Row>17|webmail.online.nl|OK|Found|8934|440|8934|-1|2|153|5000|260|239|0|0|0|0|0|0|0|0|False| | |False| |0|0|0| |Veilig en razendsnel internet bij Online|https://webmail.online.nl</Row>
|
98
|
+
# <Row>18|http://www.fastonlineusers.com|OK|Found|42861832|21195|42861832|11|3|1|5000|9977|6604|62|6544|15|552|15|777|0|0|True|2011-12-18|DownloadedSuccessfully|False| |2|2|6| |Show online Users - Count your online vistis with fastonlineusers| </Row>
|
99
|
+
# <Row>19|fastonlineusers.com|OK|Found|43224699|21945|43224699|-1|1|34121|5000|10412|6907|79|6813|16|567|16|779|0|0|False| | |False| |0|0|0| |Show online Users - Count your online vistis with fastonlineusers| </Row>
|
100
|
+
# </DataTable>
|
101
|
+
# </DataTables>
|
102
|
+
#</Result>
|
103
|
+
describe "successful ASCII response with custom headers from MajesticSeo" do
|
104
|
+
before(:each) do
|
105
|
+
#We need to keep the XML on one line - JRuby goes bonanza otherwise
|
106
|
+
@xml = '<?xml version="1.0" encoding="utf-8"?><Result Code="OK" ErrorMessage="" FullError=""><GlobalVars FirstBackLinkDate="2006-06-06" IndexBuildDate="04/01/2012 09:14:02" IndexType="0" MostRecentBackLinkDate="2011-12-18" RecentBackLinksFromDate="2011-09-19" ServerBuild="2011-11-07 13:20:36" ServerName="PWRGURU" ServerVersion="1.0.4328.24018"/><DataTables Count="1"><DataTable Name="Results" RowsCount="20" Headers="ItemNum|Item|ResultCode|Status|ExtBackLinks|RefDomains|AnalysisResUnitsCost|ACRank|ItemType|IndexedURLs|GetTopBackLinksAnalysisResUnitsCost|RefIPs|RefSubNets|RefDomainsEDU|ExtBackLinksEDU|RefDomainsGOV|ExtBackLinksGOV|RefDomainsEDU_Exact|ExtBackLinksEDU_Exact|RefDomainsGOV_Exact|ExtBackLinksGOV_Exact|CrawledFlag|LastCrawlDate|LastCrawlResult|RedirectFlag|FinalRedirectResult|OutDomainsExternal|OutLinksExternal|OutLinksInternal|LastSeen|Title|RedirectTo"><Row>0|http://www.playedonline.com|OK|Found|1870925|14631|1870925|10|3|1|5000|9229|6280|28|76|2|3|15|24|0|0|True|2011-12-18|DownloadedSuccessfully|False| |11|11|56| |Free Online Games - Free Games Played Online| </Row><Row>1|playedonline.com|OK|Found|3346330|23456|3346330|-1|1|413472|5000|14377|9381|44|118|2|5|16|34|0|0|False| | |False| |0|0|0| |Free Online Games - Free Games Played Online|http://www.playedonline.com</Row><Row>2|http://en.wikipedia.org/wiki/online_and_offline|OK|Found|6|5|6|3|3|1|5000|5|5|0|0|0|0|0|0|0|0|False| | |False| |0|0|0|2010-12-09| | </Row><Row>3|en.wikipedia.org|OK|Found|4369655183|3923979|4369655183|-1|2|167450964|5000|916134|204062|10244|11824736|3772|1527467|3416|4775867|960|769650|False| | |False| |0|0|0| | |http://en.wikipedia.org/wiki/Main_Page</Row><Row>4|http://www.onlinesbi.com|OK|Found|27828|2356|27828|9|3|1|5000|1340|1086|8|24|10|131|1|1|0|0|True|2011-12-18|ConnectFailure|False| |0|0|0| | | </Row><Row>5|onlinesbi.com|OK|Found|46519|3823|46519|-1|1|1355|5000|2352|1852|15|51|18|157|5|5|0|0|False| | |False| |0|0|0| | |https://www.onlinesbi.com</Row><Row>6|http://www.freeonlineusers.com|OK|Found|41652276|19271|41652276|11|3|1|5000|9386|6220|58|5049|20|1100|3|21|0|0|True|2011-12-18|DownloadedSuccessfully|False| |1|2|4| |Free Online Users - Online Users Counter| </Row><Row>7|freeonlineusers.com|OK|Found|41733729|19968|41733729|-1|1|1053|5000|9769|6469|71|5087|23|1111|3|21|0|0|False| | |False| |0|0|0| |Free Online Users - Online Users Counter| </Row><Row>8|http://www.online.no|OK|Found|152533|4469|152533|9|3|1|5000|2382|1916|7|224|0|0|3|4|0|0|True|2011-12-18|DownloadedSuccessfully|False| |23|70|72| |Telenor Online - Online.no| </Row><Row>9|online.no|OK|Found|6969824|90197|6969824|-1|1|1071412|5000|41728|24437|488|4419|39|122|256|2631|14|32|False| | |False| |0|0|0| |Telenor Online - Online.no| </Row><Row>10|http://www.onlinenews.com.pk|OK|Found|21544|1171|21544|8|3|1|5000|778|670|4|4|4|41|3|3|2|2|True|2011-12-18|DownloadedSuccessfully|False| |2|2|27| |ONLINE - International News Network| </Row><Row>11|onlinenews.com.pk|OK|Found|103266|9203|103266|-1|1|82366|5000|4900|3857|62|194|15|111|47|163|7|27|False| | |False| |0|0|0| |ONLINE - International News Network| </Row><Row>12|http://www.online.net|OK|Found|458339|19076|458339|11|3|1|5000|6133|4679|16|19|14|14|7|7|8|8|True|2011-12-18|DownloadedSuccessfully|False| |3|3|27| |Hébergement mutualisé serveurs dédiés - Online.net| </Row><Row>13|online.net|OK|Found|6019818|67627|6019818|-1|1|222450|5000|14134|9284|46|204|30|94|19|121|15|32|False| | |False| |0|0|0| |Hébergement mutualisé serveurs dédiés - Online.net|http://www.online.net</Row><Row>14|http://www.miniclip.com|OK|Found|2789543|55512|2789543|12|3|1|5000|31727|19723|362|17689|40|180|141|937|3|7|True|2011-12-18|HTTP_301_PermanentRedirect|True|DownloadedSuccessfully|0|0|0| | |http://www.miniclip.com/games/en</Row><Row>15|miniclip.com|OK|Found|20615291|169135|20615291|-1|1|6966761|5000|88242|41560|955|68431|163|2236|296|3602|13|23|False| | |False| |0|0|0| | |http://www.miniclip.com/games/en</Row><Row>16|https://webmail.online.nl|OK|Found|4166|161|4166|6|3|1|5000|103|100|0|0|0|0|0|0|0|0|True|2011-12-18|DownloadedSuccessfully|False| |1|4|0| |Veilig en razendsnel internet bij Online| </Row><Row>17|webmail.online.nl|OK|Found|8934|440|8934|-1|2|153|5000|260|239|0|0|0|0|0|0|0|0|False| | |False| |0|0|0| |Veilig en razendsnel internet bij Online|https://webmail.online.nl</Row><Row>18|http://www.fastonlineusers.com|OK|Found|42861832|21195|42861832|11|3|1|5000|9977|6604|62|6544|15|552|15|777|0|0|True|2011-12-18|DownloadedSuccessfully|False| |2|2|6| |Show online Users - Count your online vistis with fastonlineusers| </Row><Row>19|fastonlineusers.com|OK|Found|43224699|21945|43224699|-1|1|34121|5000|10412|6907|79|6813|16|567|16|779|0|0|False| | |False| |0|0|0| |Show online Users - Count your online vistis with fastonlineusers| </Row></DataTable></DataTables></Result>'
|
107
|
+
@parsed = ::Nokogiri::XML(@xml, nil, "utf-8")
|
108
|
+
@response = MajesticSeo::Api::ItemInfoResponse.new(@parsed)
|
109
|
+
@table = @response.tables["Results"]
|
110
|
+
end
|
75
111
|
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
# </DataTable>
|
84
|
-
# </DataTables>
|
85
|
-
#</Result>
|
112
|
+
it "should be a valid response" do
|
113
|
+
@response.success.should == true
|
114
|
+
end
|
115
|
+
|
116
|
+
it "should not have an error message" do
|
117
|
+
@response.error_message.should == ""
|
118
|
+
end
|
86
119
|
|
120
|
+
it "should have global variables set" do
|
121
|
+
@response.global_variables["most_recent_back_link_date"].should == "2011-12-18"
|
122
|
+
@response.global_variables["index_type"].should == "0"
|
123
|
+
end
|
124
|
+
|
125
|
+
it "should have one returned data table" do
|
126
|
+
@response.tables.size.should == 1
|
127
|
+
end
|
128
|
+
|
129
|
+
it "should have a data table with the name 'Results'" do
|
130
|
+
@table.should_not be_nil
|
131
|
+
end
|
132
|
+
|
133
|
+
it "should have a data table with the name 'Results' containing 2 rows" do
|
134
|
+
@table.row_count.should == 20
|
135
|
+
end
|
136
|
+
|
137
|
+
it "should have results for playedonline.com" do
|
138
|
+
first_row = @response.items[0]
|
139
|
+
|
140
|
+
first_row.url.should == "http://www.playedonline.com"
|
141
|
+
first_row.type.should == :url
|
142
|
+
first_row.result_code.should == "OK"
|
143
|
+
first_row.success.should == true
|
144
|
+
first_row.status.should == "Found"
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
#Example XML:
|
149
|
+
#<?xml version="1.0" encoding="utf-8"?>
|
150
|
+
#<Result Code="OK" ErrorMessage="" FullError="">
|
151
|
+
# <GlobalVars FirstBackLinkDate="2006-06-06" IndexBuildDate="04/01/2012 09:14:02" IndexType="0" MostRecentBackLinkDate="2011-12-18" RecentBackLinksFromDate="2011-09-19" ServerBuild="2011-11-07 13:20:36" ServerName="PWRGURU" ServerVersion="1.0.4328.24018"/>
|
152
|
+
# <DataTables Count="1">
|
153
|
+
# <DataTable Name="Results" RowsCount="1" Headers="ItemNum|Item|ResultCode|Status|ExtBackLinks|RefDomains|AnalysisResUnitsCost|ACRank|ItemType|IndexedURLs|GetTopBackLinksAnalysisResUnitsCost|RefIPs|RefSubNets|RefDomainsEDU|ExtBackLinksEDU|RefDomainsGOV|ExtBackLinksGOV|RefDomainsEDU_Exact|ExtBackLinksEDU_Exact|RefDomainsGOV_Exact|ExtBackLinksGOV_Exact|CrawledFlag|LastCrawlDate|LastCrawlResult|RedirectFlag|FinalRedirectResult|OutDomainsExternal|OutLinksExternal|OutLinksInternal|LastSeen|Title|RedirectTo">
|
154
|
+
# <Row>0|aftonbladet.se|OK|Found|54063780|128804|54063780|-1|1|5658886|5000|43589|23882|279|2396|35|179|120|496|4|13|False| | |False| |0|0|0| | Aftonbladet: Sveriges nyhetskälla och mötesplats |http://www.aftonbladet.se</Row>
|
155
|
+
# </DataTable>
|
156
|
+
# </DataTables>
|
157
|
+
#</Result>
|
87
158
|
describe "successful utf-8 response from MajesticSeo" do
|
88
159
|
before(:each) do
|
89
160
|
#We need to keep the XML on one line - JRuby goes bonanza otherwise
|
@@ -130,7 +201,6 @@ describe MajesticSeo::Api::ItemInfoResponse do
|
|
130
201
|
row.external_backlinks.should == 54063780
|
131
202
|
row.referring_domains.should == 128804
|
132
203
|
end
|
133
|
-
|
134
204
|
end
|
135
|
-
|
136
|
-
|
205
|
+
|
206
|
+
end
|
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: majestic_seo_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
prerelease:
|
5
|
+
version: 1.1.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Majestic-12 Ltd
|
9
9
|
- Sebastian Johnsson
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-01-30 00:00:00.
|
13
|
+
date: 2012-01-30 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: nokogiri
|
17
|
-
|
18
|
-
none: false
|
17
|
+
version_requirements: &2058 !ruby/object:Gem::Requirement
|
19
18
|
requirements:
|
20
19
|
- - ! '>='
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: '0'
|
23
|
-
|
22
|
+
none: false
|
23
|
+
requirement: *2058
|
24
24
|
prerelease: false
|
25
|
-
|
25
|
+
type: :runtime
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: faraday
|
28
|
-
|
29
|
-
none: false
|
28
|
+
version_requirements: &2076 !ruby/object:Gem::Requirement
|
30
29
|
requirements:
|
31
30
|
- - ! '>='
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '0'
|
34
|
-
|
33
|
+
none: false
|
34
|
+
requirement: *2076
|
35
35
|
prerelease: false
|
36
|
-
|
36
|
+
type: :runtime
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: agiley-faraday_middleware
|
39
|
-
|
40
|
-
none: false
|
39
|
+
version_requirements: &2092 !ruby/object:Gem::Requirement
|
41
40
|
requirements:
|
42
41
|
- - ! '>='
|
43
42
|
- !ruby/object:Gem::Version
|
44
43
|
version: '0'
|
45
|
-
|
44
|
+
none: false
|
45
|
+
requirement: *2092
|
46
46
|
prerelease: false
|
47
|
-
|
47
|
+
type: :runtime
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rake
|
50
|
-
|
51
|
-
none: false
|
50
|
+
version_requirements: &2108 !ruby/object:Gem::Requirement
|
52
51
|
requirements:
|
53
52
|
- - ! '>='
|
54
53
|
- !ruby/object:Gem::Version
|
55
54
|
version: '0'
|
56
|
-
|
55
|
+
none: false
|
56
|
+
requirement: *2108
|
57
57
|
prerelease: false
|
58
|
-
|
58
|
+
type: :development
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: rspec
|
61
|
-
|
62
|
-
none: false
|
61
|
+
version_requirements: &2126 !ruby/object:Gem::Requirement
|
63
62
|
requirements:
|
64
63
|
- - ! '>='
|
65
64
|
- !ruby/object:Gem::Version
|
66
65
|
version: '0'
|
67
|
-
|
66
|
+
none: false
|
67
|
+
requirement: *2126
|
68
68
|
prerelease: false
|
69
|
-
|
69
|
+
type: :development
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: mocha
|
72
|
-
|
73
|
-
none: false
|
72
|
+
version_requirements: &2142 !ruby/object:Gem::Requirement
|
74
73
|
requirements:
|
75
74
|
- - ! '>='
|
76
75
|
- !ruby/object:Gem::Version
|
77
76
|
version: '0'
|
78
|
-
|
77
|
+
none: false
|
78
|
+
requirement: *2142
|
79
79
|
prerelease: false
|
80
|
-
|
80
|
+
type: :development
|
81
81
|
description: Interface for communicating with Majestic SEO's API
|
82
82
|
email: sebastian@agiley.se
|
83
83
|
executables: []
|
@@ -88,7 +88,6 @@ files:
|
|
88
88
|
- LICENSE.txt
|
89
89
|
- README.markdown
|
90
90
|
- Rakefile
|
91
|
-
- VERSION
|
92
91
|
- lib/generators/majestic_seo/majestic_seo_generator.rb
|
93
92
|
- lib/generators/templates/majestic_seo.template.yml
|
94
93
|
- lib/majestic_seo/api/client.rb
|
@@ -111,26 +110,26 @@ files:
|
|
111
110
|
- spec/spec_helper.rb
|
112
111
|
homepage: http://developer-support.majesticseo.com/connectors/
|
113
112
|
licenses: []
|
114
|
-
post_install_message:
|
113
|
+
post_install_message:
|
115
114
|
rdoc_options: []
|
116
115
|
require_paths:
|
117
116
|
- lib
|
118
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
-
none: false
|
120
118
|
requirements:
|
121
119
|
- - ! '>='
|
122
120
|
- !ruby/object:Gem::Version
|
123
121
|
version: '0'
|
124
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
122
|
none: false
|
123
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
124
|
requirements:
|
127
125
|
- - ! '>='
|
128
126
|
- !ruby/object:Gem::Version
|
129
127
|
version: 1.3.5
|
128
|
+
none: false
|
130
129
|
requirements: []
|
131
|
-
rubyforge_project:
|
130
|
+
rubyforge_project:
|
132
131
|
rubygems_version: 1.8.15
|
133
|
-
signing_key:
|
132
|
+
signing_key:
|
134
133
|
specification_version: 2
|
135
134
|
summary: Interface for communicating with Majestic SEO's API
|
136
135
|
test_files:
|
@@ -138,3 +137,4 @@ test_files:
|
|
138
137
|
- spec/majestic_seo/item_info_response_spec.rb
|
139
138
|
- spec/majestic_seo/top_back_links_response_spec.rb
|
140
139
|
- spec/spec_helper.rb
|
140
|
+
...
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.1.1
|