PageRankr 4.4.1 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +3 -1
  4. data/CHANGELOG.md +4 -0
  5. data/Gemfile +1 -2
  6. data/PageRankr.gemspec +3 -2
  7. data/README.md +2 -0
  8. data/lib/page_rankr/backlinks.rb +1 -2
  9. data/lib/page_rankr/backlinks/yahoo.rb +1 -1
  10. data/lib/page_rankr/indexes/yahoo.rb +1 -1
  11. data/lib/page_rankr/ranks/alexa_country.rb +4 -4
  12. data/lib/page_rankr/ranks/alexa_global.rb +4 -4
  13. data/lib/page_rankr/ranks/alexa_us.rb +2 -2
  14. data/lib/page_rankr/ranks/domain_authority.rb +4 -4
  15. data/lib/page_rankr/ranks/page_authority.rb +5 -5
  16. data/lib/page_rankr/site.rb +4 -4
  17. data/lib/page_rankr/version.rb +1 -1
  18. data/spec/backlinks/bing_spec.rb +21 -0
  19. data/spec/backlinks/google_spec.rb +20 -0
  20. data/spec/backlinks/yahoo_spec.rb +21 -0
  21. data/spec/fixtures/vcr_cassettes/PageRankr_Backlinks_Bing/_run/with_match/.yml +2346 -0
  22. data/spec/fixtures/vcr_cassettes/PageRankr_Backlinks_Bing/_run/with_no_match/.yml +1493 -0
  23. data/spec/fixtures/vcr_cassettes/PageRankr_Backlinks_Google/_run/with_match/.yml +1788 -0
  24. data/spec/fixtures/vcr_cassettes/PageRankr_Backlinks_Google/_run/with_no_match/.yml +57 -0
  25. data/spec/fixtures/vcr_cassettes/PageRankr_Backlinks_Yahoo/_run/with_match/.yml +1929 -0
  26. data/spec/fixtures/vcr_cassettes/PageRankr_Backlinks_Yahoo/_run/with_no_match/.yml +642 -0
  27. data/spec/fixtures/vcr_cassettes/PageRankr_Indexes_Bing/_run/with_match/.yml +1648 -0
  28. data/spec/fixtures/vcr_cassettes/PageRankr_Indexes_Bing/_run/with_no_match/.yml +1312 -0
  29. data/spec/fixtures/vcr_cassettes/PageRankr_Indexes_Google/_run/with_match/.yml +1769 -0
  30. data/spec/fixtures/vcr_cassettes/PageRankr_Indexes_Google/_run/with_no_match/.yml +57 -0
  31. data/spec/fixtures/vcr_cassettes/PageRankr_Indexes_Yahoo/_run/with_match/.yml +2062 -0
  32. data/spec/fixtures/vcr_cassettes/PageRankr_Indexes_Yahoo/_run/with_no_match/.yml +553 -0
  33. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_AlexaCountry/_run/with_match/.yml +45 -0
  34. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_AlexaCountry/_run/with_no_match/.yml +37 -0
  35. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_AlexaGlobal/_run/with_match/.yml +45 -0
  36. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_AlexaGlobal/_run/with_no_match/.yml +37 -0
  37. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_AlexaUs/_run/with_match/.yml +45 -0
  38. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_AlexaUs/_run/with_no_match/.yml +37 -0
  39. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_DomainAuthority/_run/with_match/.yml +54 -0
  40. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_DomainAuthority/_run/with_no_match/.yml +54 -0
  41. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_Google/_run/with_match/.yml +54 -0
  42. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_Google/_run/with_no_match/.yml +49 -0
  43. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_MozRank/_run/with_match/.yml +92 -0
  44. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_MozRank/_run/with_no_match/.yml +93 -0
  45. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_PageAuthority/_run/with_match/.yml +54 -0
  46. data/spec/fixtures/vcr_cassettes/PageRankr_Ranks_PageAuthority/_run/with_no_match/.yml +54 -0
  47. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Facebook/_run/with_match/.yml +54 -0
  48. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Facebook/_run/with_no_match/.yml +52 -0
  49. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Google/_run/with_match/.yml +42 -0
  50. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Google/_run/with_no_match/.yml +42 -0
  51. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_LinkedIn/_run/with_match/.yml +58 -0
  52. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_LinkedIn/_run/with_no_match/.yml +58 -0
  53. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Pinterest/_run/with_match/.yml +45 -0
  54. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Pinterest/_run/with_no_match/.yml +45 -0
  55. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_StumbleUpon/_run/with_match/.yml +42 -0
  56. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_StumbleUpon/_run/with_no_match/.yml +42 -0
  57. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Twitter/_run/with_match/.yml +57 -0
  58. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Twitter/_run/with_no_match/.yml +57 -0
  59. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Vk/_run/with_match/.yml +41 -0
  60. data/spec/fixtures/vcr_cassettes/PageRankr_Socials_Vk/_run/with_no_match/.yml +41 -0
  61. data/spec/fixtures/vcr_cassettes/alexa_ranks_edge_case_1.yml +91 -208
  62. data/spec/fixtures/vcr_cassettes/failure_socials.yml +233 -170
  63. data/spec/fixtures/vcr_cassettes/success_socials.yml +578 -160
  64. data/spec/indexes/bing_spec.rb +20 -0
  65. data/spec/indexes/google_spec.rb +20 -0
  66. data/spec/indexes/yahoo_spec.rb +20 -0
  67. data/spec/page_rankr_spec.rb +10 -169
  68. data/spec/proxy_services/random_spec.rb +2 -2
  69. data/spec/proxy_services/round_robin_spec.rb +4 -4
  70. data/spec/ranks/alexa_country_spec.rb +20 -0
  71. data/spec/ranks/alexa_global_spec.rb +20 -0
  72. data/spec/ranks/alexa_us_spec.rb +20 -0
  73. data/spec/ranks/domain_authority_spec.rb +21 -0
  74. data/spec/ranks/google/checksum_spec.rb +2 -2
  75. data/spec/ranks/google_spec.rb +20 -0
  76. data/spec/ranks/moz_rank_spec.rb +21 -0
  77. data/spec/ranks/page_authority_spec.rb +21 -0
  78. data/spec/site_spec.rb +3 -3
  79. data/spec/socials/facebook_spec.rb +20 -0
  80. data/spec/socials/google_spec.rb +20 -0
  81. data/spec/socials/linkedin_spec.rb +20 -0
  82. data/spec/socials/pinterest_spec.rb +20 -0
  83. data/spec/socials/stumble_upon_spec.rb +20 -0
  84. data/spec/socials/twitter_spec.rb +20 -0
  85. data/spec/socials/vk_spec.rb +20 -0
  86. data/spec/spec_helper.rb +7 -13
  87. data/spec/support/custom_matchers.rb +39 -0
  88. metadata +142 -23
  89. data/lib/page_rankr/backlinks/alexa.rb +0 -25
  90. data/spec/edge_cases_spec.rb +0 -26
  91. data/spec/fixtures/vcr_cassettes/failure_backlinks.yml +0 -1740
  92. data/spec/fixtures/vcr_cassettes/failure_indexes.yml +0 -1705
  93. data/spec/fixtures/vcr_cassettes/failure_ranks.yml +0 -422
  94. data/spec/fixtures/vcr_cassettes/success_backlinks.yml +0 -7651
  95. data/spec/fixtures/vcr_cassettes/success_indexes.yml +0 -7295
  96. data/spec/fixtures/vcr_cassettes/success_ranks.yml +0 -652
  97. data/spec/socials_spec.rb +0 -66
@@ -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