PageRankr 4.4.1 → 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +3 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -2
- data/PageRankr.gemspec +3 -2
- data/README.md +2 -0
- data/lib/page_rankr/backlinks.rb +1 -2
- data/lib/page_rankr/backlinks/yahoo.rb +1 -1
- data/lib/page_rankr/indexes/yahoo.rb +1 -1
- data/lib/page_rankr/ranks/alexa_country.rb +4 -4
- data/lib/page_rankr/ranks/alexa_global.rb +4 -4
- data/lib/page_rankr/ranks/alexa_us.rb +2 -2
- data/lib/page_rankr/ranks/domain_authority.rb +4 -4
- data/lib/page_rankr/ranks/page_authority.rb +5 -5
- data/lib/page_rankr/site.rb +4 -4
- data/lib/page_rankr/version.rb +1 -1
- data/spec/backlinks/bing_spec.rb +21 -0
- data/spec/backlinks/google_spec.rb +20 -0
- data/spec/backlinks/yahoo_spec.rb +21 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Backlinks_Bing/_run/with_match/.yml +2346 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Backlinks_Bing/_run/with_no_match/.yml +1493 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Backlinks_Google/_run/with_match/.yml +1788 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Backlinks_Google/_run/with_no_match/.yml +57 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Backlinks_Yahoo/_run/with_match/.yml +1929 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Backlinks_Yahoo/_run/with_no_match/.yml +642 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Indexes_Bing/_run/with_match/.yml +1648 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Indexes_Bing/_run/with_no_match/.yml +1312 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Indexes_Google/_run/with_match/.yml +1769 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Indexes_Google/_run/with_no_match/.yml +57 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Indexes_Yahoo/_run/with_match/.yml +2062 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Indexes_Yahoo/_run/with_no_match/.yml +553 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_AlexaCountry/_run/with_match/.yml +45 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_AlexaCountry/_run/with_no_match/.yml +37 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_AlexaGlobal/_run/with_match/.yml +45 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_AlexaGlobal/_run/with_no_match/.yml +37 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_AlexaUs/_run/with_match/.yml +45 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_AlexaUs/_run/with_no_match/.yml +37 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_DomainAuthority/_run/with_match/.yml +54 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_DomainAuthority/_run/with_no_match/.yml +54 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_Google/_run/with_match/.yml +54 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_Google/_run/with_no_match/.yml +49 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_MozRank/_run/with_match/.yml +92 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_MozRank/_run/with_no_match/.yml +93 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_PageAuthority/_run/with_match/.yml +54 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_PageAuthority/_run/with_no_match/.yml +54 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Facebook/_run/with_match/.yml +54 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Facebook/_run/with_no_match/.yml +52 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Google/_run/with_match/.yml +42 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Google/_run/with_no_match/.yml +42 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_LinkedIn/_run/with_match/.yml +58 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_LinkedIn/_run/with_no_match/.yml +58 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Pinterest/_run/with_match/.yml +45 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Pinterest/_run/with_no_match/.yml +45 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_StumbleUpon/_run/with_match/.yml +42 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_StumbleUpon/_run/with_no_match/.yml +42 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Twitter/_run/with_match/.yml +57 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Twitter/_run/with_no_match/.yml +57 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Vk/_run/with_match/.yml +41 -0
- data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Vk/_run/with_no_match/.yml +41 -0
- data/spec/fixtures/vcr_cassettes/alexa_ranks_edge_case_1.yml +91 -208
- data/spec/fixtures/vcr_cassettes/failure_socials.yml +233 -170
- data/spec/fixtures/vcr_cassettes/success_socials.yml +578 -160
- data/spec/indexes/bing_spec.rb +20 -0
- data/spec/indexes/google_spec.rb +20 -0
- data/spec/indexes/yahoo_spec.rb +20 -0
- data/spec/page_rankr_spec.rb +10 -169
- data/spec/proxy_services/random_spec.rb +2 -2
- data/spec/proxy_services/round_robin_spec.rb +4 -4
- data/spec/ranks/alexa_country_spec.rb +20 -0
- data/spec/ranks/alexa_global_spec.rb +20 -0
- data/spec/ranks/alexa_us_spec.rb +20 -0
- data/spec/ranks/domain_authority_spec.rb +21 -0
- data/spec/ranks/google/checksum_spec.rb +2 -2
- data/spec/ranks/google_spec.rb +20 -0
- data/spec/ranks/moz_rank_spec.rb +21 -0
- data/spec/ranks/page_authority_spec.rb +21 -0
- data/spec/site_spec.rb +3 -3
- data/spec/socials/facebook_spec.rb +20 -0
- data/spec/socials/google_spec.rb +20 -0
- data/spec/socials/linkedin_spec.rb +20 -0
- data/spec/socials/pinterest_spec.rb +20 -0
- data/spec/socials/stumble_upon_spec.rb +20 -0
- data/spec/socials/twitter_spec.rb +20 -0
- data/spec/socials/vk_spec.rb +20 -0
- data/spec/spec_helper.rb +7 -13
- data/spec/support/custom_matchers.rb +39 -0
- metadata +142 -23
- data/lib/page_rankr/backlinks/alexa.rb +0 -25
- data/spec/edge_cases_spec.rb +0 -26
- data/spec/fixtures/vcr_cassettes/failure_backlinks.yml +0 -1740
- data/spec/fixtures/vcr_cassettes/failure_indexes.yml +0 -1705
- data/spec/fixtures/vcr_cassettes/failure_ranks.yml +0 -422
- data/spec/fixtures/vcr_cassettes/success_backlinks.yml +0 -7651
- data/spec/fixtures/vcr_cassettes/success_indexes.yml +0 -7295
- data/spec/fixtures/vcr_cassettes/success_ranks.yml +0 -652
- data/spec/socials_spec.rb +0 -66
data/spec/socials_spec.rb
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe PageRankr do
|
4
|
-
describe "#socials" do
|
5
|
-
subject{ PageRankr.social_trackers }
|
6
|
-
|
7
|
-
it{ should include(:facebook) }
|
8
|
-
it{ should include(:google) }
|
9
|
-
it{ should include(:linked_in) }
|
10
|
-
it{ should include(:pinterest) }
|
11
|
-
it{ should include(:stumble_upon) }
|
12
|
-
it{ should include(:twitter) }
|
13
|
-
it{ should include(:vk) }
|
14
|
-
end
|
15
|
-
|
16
|
-
describe "#socials", :focus => true do
|
17
|
-
describe "success" do
|
18
|
-
subject do
|
19
|
-
VCR.use_cassette(:success_socials, :record => :new_episodes) do
|
20
|
-
PageRankr.socials("http://www.google.com")
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
it{ should have_key(:facebook) }
|
25
|
-
it{ should have_key(:google) }
|
26
|
-
it{ should have_key(:linked_in) }
|
27
|
-
it{ should have_key(:pinterest) }
|
28
|
-
it{ should have_key(:stumble_upon) }
|
29
|
-
it{ should have_key(:twitter) }
|
30
|
-
it{ should have_key(:vk) }
|
31
|
-
|
32
|
-
it{ subject[:facebook].should > 1000000 }
|
33
|
-
it{ subject[:google].should > 5000 }
|
34
|
-
it{ subject[:linked_in].should > 500 }
|
35
|
-
it{ subject[:pinterest].should > 70000 }
|
36
|
-
it{ subject[:stumble_upon].should > 20000 }
|
37
|
-
it{ subject[:twitter].should > 100000 }
|
38
|
-
it{ subject[:vk].should > 3000 }
|
39
|
-
end
|
40
|
-
|
41
|
-
describe "failure" do
|
42
|
-
subject do
|
43
|
-
VCR.use_cassette(:failure_socials, :record => :new_episodes) do
|
44
|
-
PageRankr.socials("http://please-dont-register-a-site-that-breaks-this-test.com")
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
it{ should have_key(:facebook) }
|
49
|
-
it{ should have_key(:google) }
|
50
|
-
it{ should have_key(:linked_in) }
|
51
|
-
it{ should have_key(:pinterest) }
|
52
|
-
it{ should have_key(:stumble_upon) }
|
53
|
-
it{ should have_key(:twitter) }
|
54
|
-
it{ should have_key(:vk) }
|
55
|
-
|
56
|
-
it{ subject[:facebook].should be_nil }
|
57
|
-
it{ subject[:google].should == 0 }
|
58
|
-
it{ subject[:linked_in].should == 0 }
|
59
|
-
it{ subject[:pinterest].should == 0 }
|
60
|
-
it{ subject[:stumble_upon].should be_nil }
|
61
|
-
it{ subject[:twitter].should == 0 }
|
62
|
-
it{ subject[:vk].should == 0 }
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
end
|