popularity 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +10 -0
  3. data/.travis.yml +10 -3
  4. data/Gemfile +4 -20
  5. data/LICENSE.txt +18 -17
  6. data/README.md +10 -9
  7. data/Rakefile +1 -29
  8. data/bin/console +14 -0
  9. data/bin/setup +8 -0
  10. data/lib/popularity/version.rb +3 -0
  11. data/popularity.gemspec +40 -116
  12. metadata +59 -58
  13. data/Gemfile.lock +0 -126
  14. data/lib/popularity/networks/twitter.rb +0 -15
  15. data/spec/cassettes/facebook.yml +0 -50
  16. data/spec/cassettes/github-valid.yml +0 -105
  17. data/spec/cassettes/google_plus.yml +0 -89
  18. data/spec/cassettes/medium-valid.yml +0 -110
  19. data/spec/cassettes/pinterest.yml +0 -44
  20. data/spec/cassettes/reddit-comment.yml +0 -207
  21. data/spec/cassettes/reddit-post.yml +0 -174
  22. data/spec/cassettes/reddit.yml +0 -183
  23. data/spec/cassettes/result-container-test.yml +0 -97
  24. data/spec/cassettes/rubygems-valid.yml +0 -66
  25. data/spec/cassettes/search-multi.yml +0 -1211
  26. data/spec/cassettes/search.yml +0 -598
  27. data/spec/cassettes/soundcloud-valid.yml +0 -682
  28. data/spec/cassettes/twitter.yml +0 -64
  29. data/spec/cassettes/unknown-reddit-post.yml +0 -68
  30. data/spec/facebook_spec.rb +0 -23
  31. data/spec/github_spec.rb +0 -39
  32. data/spec/google_plus_spec.rb +0 -27
  33. data/spec/medium_spec.rb +0 -47
  34. data/spec/pinterest_spec.rb +0 -27
  35. data/spec/reddit_comment_spec.rb +0 -60
  36. data/spec/reddit_post_spec.rb +0 -64
  37. data/spec/reddit_spec.rb +0 -118
  38. data/spec/results_container_spec.rb +0 -61
  39. data/spec/rubygems_spec.rb +0 -50
  40. data/spec/search_spec.rb +0 -79
  41. data/spec/soundcloud_spec.rb +0 -66
  42. data/spec/spec_helper.rb +0 -98
  43. data/spec/twitter_spec.rb +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3c17e6a773a83fc813ffd30d5c14c2f72691c9e5
4
- data.tar.gz: cd24795291873364d6383a473d94d191b21e83c9
2
+ SHA256:
3
+ metadata.gz: 3c69f1ff1554fd62065c0a9a3dac960985fd76f38fe9be75f92a53cd87e48782
4
+ data.tar.gz: 927f372ac43b709810327308aaeb9954db7ee0cde248ceddd8fc395a31703698
5
5
  SHA512:
6
- metadata.gz: 473ced1189eab299c44f58b6fe32025c89e37c88b37311894adb3696ef9511ac282fbc8518d070a593692084ec281d1130106fbaed0459078a27e29598924f61
7
- data.tar.gz: 01bfbee1959f78f8887da8dd1070ab31389ae7ac5537a2efc25d9cb3e4d2bca0abd2e59e4f46d86cd7f012e439978e4ce9317706711a17b8cd17be43f3dbea8f
6
+ metadata.gz: 2a004061bdae98ffcae2e1385427eff40636244fe56f6597f1598090da61e38b0130d51103d16d1baf435a98824e8e096529bb801d24164e95586c2492e54f80
7
+ data.tar.gz: a88bd352e223e7037b82e80ca6f9d70fda39e822acc30d4dc1205b683799fbc38ab91ece89105c2772281ca95221d7d5a7a2c49b5b0adfbe0fff03623e9c76c0
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ .DS_Store
10
+ Gemfile.lock
@@ -1,5 +1,12 @@
1
1
  language: ruby
2
-
3
2
  rvm:
4
- - "2.0.0"
5
- - "2.1.1"
3
+ - 2.0.0
4
+ - 2.1.1
5
+ deploy:
6
+ provider: rubygems
7
+ api_key:
8
+ secure: LTa0zOFDISP39k5VXo2R8RueoidWvPM8Tm1SdAMqOlKY6ORqTuCaGXnjkSlUHuZ2QMUgYZzcrqyYDqW/V8HI79ozl7/W5nwEGEcXRuUALYIyi6rspN6/auSaNTW7U5FmP0FJvKSkX9p3T88wzfuSlbRu9lWq2EQX0JJ7cEZ5rLc=
9
+ gem: popularity
10
+ on:
11
+ tags: true
12
+ repo: jkeen/popularity
data/Gemfile CHANGED
@@ -1,22 +1,6 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
- gem 'open_uri_redirections', '~> 0'
4
- gem 'json', '~> 1.8'
5
- gem 'unirest', '~> 1'
6
- gem 'pry'
3
+ git_source(:github) {|repo_name| "https://github.com/jkeen/popularity" }
7
4
 
8
- group :development, :test do
9
- # gem "pry", '~> 0.10'
10
- gem "shoulda", ">= 0"
11
- gem "rdoc", "~> 3.12"
12
- gem "bundler", "~> 1.0"
13
- gem "jeweler", "~> 2.0"
14
- gem "simplecov", "~> 0"
15
- gem 'awesome_print', '~> 1.6'
16
- end
17
-
18
- group :test do
19
- gem "rspec", "~> 3.2"
20
- gem "vcr", "~> 2.9"
21
- gem "webmock", "~> 1.21"
22
- end
5
+ # Specify your gem's dependencies in popularity.gemspec
6
+ gemspec
@@ -1,20 +1,21 @@
1
- Copyright (c) 2015 Jeff Keen
1
+ The MIT License (MIT)
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
3
+ Copyright (c) 2018 Jeff Keen
10
4
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
13
11
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -2,12 +2,11 @@
2
2
 
3
3
  ### Popularity searches social networks for urls and returns the metrics.
4
4
 
5
- Current support includes:
5
+ Current support includes:
6
6
 
7
7
  Network | Stats | Restriction
8
8
  --------- | ------ | ---------
9
9
  Facebook | `shares`, `comments`
10
- Twitter | `tweets`
11
10
  Pinterest | `pins`
12
11
  GooglePlus | `plusones`
13
12
  Reddit | `comments`, `score`
@@ -22,7 +21,6 @@ Rubygems | `downloads` | only for rubygems
22
21
  > search = Popularity.search("http://google.com")
23
22
  > search.facebook.shares #=> share count
24
23
  > search.facebook.comments #=> comment count
25
- > search.twitter.tweets #=> tweet count
26
24
  > search.pinterests.pins #=> pin count
27
25
  > search.reddit.posts #=> post count
28
26
  > search.reddit.comments #=> comment count across all posts
@@ -31,7 +29,7 @@ Rubygems | `downloads` | only for rubygems
31
29
 
32
30
  ```
33
31
 
34
- #### Combining multiple URLs
32
+ #### Combining multiple URLs
35
33
 
36
34
  Sometimes multiple URLs refer to the same thing. Maybe your URLs changed, but you don't want to lose out on counting those votes for the new location. Or you tweeted your blog address, but posted a link to soundcloud on reddit.
37
35
 
@@ -39,7 +37,6 @@ Sometimes multiple URLs refer to the same thing. Maybe your URLs changed, but yo
39
37
  > search = Popularity.search("http://jeffkeen.me/p/I-know-its-you/", "http://soundcloud.com/jeffkeen/i-know-its-you")
40
38
  > search.facebook.shares #=> share count across all urls
41
39
  > search.facebook.comments #=> comment count across all urls
42
- > search.twitter.tweets #=> tweet count across all urls
43
40
  > search.pinterests.pins #=> pin count across all urls
44
41
  > search.reddit.posts #=> post count across all urls
45
42
  > search.reddit.comments #=> comment count across all posts and urls
@@ -47,16 +44,16 @@ Sometimes multiple URLs refer to the same thing. Maybe your URLs changed, but yo
47
44
  > search.total #=> All of the above numbers added up
48
45
  ```
49
46
 
50
- JSON:
47
+ JSON:
51
48
 
52
49
  ```ruby
53
- > search.as_json
50
+ > search.as_json
54
51
  #=> spits out by network, by url, and total stats
55
52
  ```
56
53
 
57
54
  ##### Digging into the details
58
55
 
59
- To see which results a url came back with:
56
+ To see which results a url came back with:
60
57
  ```ruby
61
58
  search = Popularity.search("https://medium.com/@jeffkeen/call-me-sometime-64ed463c02f0")
62
59
  search.sources #=> [:facebook, :reddit, :google_plus, :pinterest, :twitter, :medium]
@@ -74,8 +71,12 @@ p = Popularity::RedditComment.new("http://www.reddit.com/r/path/to/reddit/commen
74
71
  p.score #=> comment score
75
72
  ```
76
73
 
74
+ ### Why No Twitter?
75
+
76
+ Twitter discontinued support for the url count API.
77
+
77
78
  ### Contributing to Popularity
78
-
79
+
79
80
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
80
81
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
81
82
  * Fork the project.
data/Rakefile CHANGED
@@ -1,29 +1,4 @@
1
- # encoding: utf-8
2
-
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
17
- gem.name = "popularity"
18
- gem.homepage = "http://github.com/jkeen/popularity"
19
- gem.license = "MIT"
20
- gem.summary = %Q{Popularity searches social networks a url and returns the metrics.}
21
- gem.description = %Q{Supports Facebook, Twitter, Pinterest, Reddit (Links, Posts, and Comments), Github, Soundcloud, Medium, and Rubygems}
22
- gem.email = "jeff@keen.me"
23
- gem.authors = ["Jeff Keen"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
1
+ require "bundler/gem_tasks"
27
2
 
28
3
  desc "Code coverage detail"
29
4
  task :simplecov do
@@ -46,6 +21,3 @@ Rake::RDocTask.new do |rdoc|
46
21
  rdoc.rdoc_files.include('README*')
47
22
  rdoc.rdoc_files.include('lib/**/*.rb')
48
23
  end
49
-
50
-
51
-
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "popularity"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,3 @@
1
+ module Popularity
2
+ VERSION = "0.3.0"
3
+ end
@@ -1,123 +1,47 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
- # stub: popularity 0.2.1 ruby lib
6
1
 
7
- Gem::Specification.new do |s|
8
- s.name = "popularity"
9
- s.version = "0.2.1"
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "popularity/version"
10
5
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["Jeff Keen"]
14
- s.date = "2015-05-22"
15
- s.description = "Supports Facebook, Twitter, Pinterest, Reddit (Links, Posts, and Comments), Github, Soundcloud, Medium, and Rubygems"
16
- s.email = "jeff@keen.me"
17
- s.extra_rdoc_files = [
18
- "LICENSE.txt",
19
- "README.md"
20
- ]
21
- s.files = [
22
- ".document",
23
- ".rspec",
24
- ".travis.yml",
25
- "Gemfile",
26
- "Gemfile.lock",
27
- "LICENSE.txt",
28
- "README.md",
29
- "Rakefile",
30
- "VERSION",
31
- "lib/.DS_Store",
32
- "lib/popularity.rb",
33
- "lib/popularity/crawler.rb",
34
- "lib/popularity/networks/facebook.rb",
35
- "lib/popularity/networks/github.rb",
36
- "lib/popularity/networks/google_plus.rb",
37
- "lib/popularity/networks/medium.rb",
38
- "lib/popularity/networks/pinterest.rb",
39
- "lib/popularity/networks/reddit_comment.rb",
40
- "lib/popularity/networks/reddit_post.rb",
41
- "lib/popularity/networks/reddit_share.rb",
42
- "lib/popularity/networks/rubygems.rb",
43
- "lib/popularity/networks/soundcloud.rb",
44
- "lib/popularity/networks/twitter.rb",
45
- "lib/popularity/results_container.rb",
46
- "lib/popularity/rubygems.rb",
47
- "lib/popularity/search.rb",
48
- "popularity.gemspec",
49
- "spec/cassettes/facebook.yml",
50
- "spec/cassettes/github-valid.yml",
51
- "spec/cassettes/google_plus.yml",
52
- "spec/cassettes/medium-valid.yml",
53
- "spec/cassettes/pinterest.yml",
54
- "spec/cassettes/reddit-comment.yml",
55
- "spec/cassettes/reddit-post.yml",
56
- "spec/cassettes/reddit.yml",
57
- "spec/cassettes/result-container-test.yml",
58
- "spec/cassettes/rubygems-valid.yml",
59
- "spec/cassettes/search-multi.yml",
60
- "spec/cassettes/search.yml",
61
- "spec/cassettes/soundcloud-valid.yml",
62
- "spec/cassettes/twitter.yml",
63
- "spec/cassettes/unknown-reddit-post.yml",
64
- "spec/facebook_spec.rb",
65
- "spec/github_spec.rb",
66
- "spec/google_plus_spec.rb",
67
- "spec/medium_spec.rb",
68
- "spec/pinterest_spec.rb",
69
- "spec/reddit_comment_spec.rb",
70
- "spec/reddit_post_spec.rb",
71
- "spec/reddit_spec.rb",
72
- "spec/results_container_spec.rb",
73
- "spec/rubygems_spec.rb",
74
- "spec/search_spec.rb",
75
- "spec/soundcloud_spec.rb",
76
- "spec/spec_helper.rb",
77
- "spec/twitter_spec.rb"
78
- ]
79
- s.homepage = "http://github.com/jkeen/popularity"
80
- s.licenses = ["MIT"]
81
- s.rubygems_version = "2.2.2"
82
- s.summary = "Popularity searches social networks a url and returns the metrics."
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "popularity"
8
+ spec.version = Popularity::VERSION
9
+ spec.authors = ["Jeff Keen"]
10
+ spec.email = ["jeff@keen.me"]
83
11
 
84
- if s.respond_to? :specification_version then
85
- s.specification_version = 4
12
+ spec.summary = %Q{Popularity searches social networks a url and returns the metrics.}
13
+ spec.description = %Q{Supports Facebook, Pinterest, Reddit (Links, Posts, and Comments), Github, Soundcloud, Medium, and Rubygems}
14
+ spec.homepage = "http://github.com/jkeen/popularity"
15
+ spec.license = "MIT"
86
16
 
87
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
88
- s.add_runtime_dependency(%q<open_uri_redirections>, ["~> 0"])
89
- s.add_runtime_dependency(%q<json>, ["~> 1.8"])
90
- s.add_runtime_dependency(%q<unirest>, ["~> 1"])
91
- s.add_runtime_dependency(%q<pry>, [">= 0"])
92
- s.add_development_dependency(%q<shoulda>, [">= 0"])
93
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
94
- s.add_development_dependency(%q<bundler>, ["~> 1.0"])
95
- s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
96
- s.add_development_dependency(%q<simplecov>, ["~> 0"])
97
- s.add_development_dependency(%q<awesome_print>, ["~> 1.6"])
98
- else
99
- s.add_dependency(%q<open_uri_redirections>, ["~> 0"])
100
- s.add_dependency(%q<json>, ["~> 1.8"])
101
- s.add_dependency(%q<unirest>, ["~> 1"])
102
- s.add_dependency(%q<pry>, [">= 0"])
103
- s.add_dependency(%q<shoulda>, [">= 0"])
104
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
105
- s.add_dependency(%q<bundler>, ["~> 1.0"])
106
- s.add_dependency(%q<jeweler>, ["~> 2.0"])
107
- s.add_dependency(%q<simplecov>, ["~> 0"])
108
- s.add_dependency(%q<awesome_print>, ["~> 1.6"])
109
- end
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
110
21
  else
111
- s.add_dependency(%q<open_uri_redirections>, ["~> 0"])
112
- s.add_dependency(%q<json>, ["~> 1.8"])
113
- s.add_dependency(%q<unirest>, ["~> 1"])
114
- s.add_dependency(%q<pry>, [">= 0"])
115
- s.add_dependency(%q<shoulda>, [">= 0"])
116
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
117
- s.add_dependency(%q<bundler>, ["~> 1.0"])
118
- s.add_dependency(%q<jeweler>, ["~> 2.0"])
119
- s.add_dependency(%q<simplecov>, ["~> 0"])
120
- s.add_dependency(%q<awesome_print>, ["~> 1.6"])
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
121
24
  end
122
- end
123
25
 
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+
34
+ spec.add_dependency "open_uri_redirections", "~> 0"
35
+ spec.add_dependency "json", "~> 1.8"
36
+ spec.add_dependency "unirest", "~> 1.1.2"
37
+ spec.add_dependency "pry"
38
+
39
+ spec.add_development_dependency "bundler", "~> 1.16"
40
+ spec.add_development_dependency "rspec", "~> 3.2"
41
+ spec.add_development_dependency "webmock", "~> 2.3.1"
42
+ spec.add_development_dependency "vcr", "~> 2.9"
43
+ spec.add_development_dependency "rake", "~> 10.0"
44
+ spec.add_development_dependency "shoulda", ">= 0"
45
+ spec.add_development_dependency "simplecov", "~> 0"
46
+ spec.add_development_dependency "awesome_print", "~> 1.6"
47
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: popularity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Keen
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-22 00:00:00.000000000 Z
11
+ date: 2018-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: open_uri_redirections
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1'
47
+ version: 1.1.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1'
54
+ version: 1.1.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -67,61 +67,89 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: shoulda
70
+ name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '1.16'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '1.16'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rdoc
84
+ name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.12'
89
+ version: '3.2'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '3.12'
96
+ version: '3.2'
97
97
  - !ruby/object:Gem::Dependency
98
- name: bundler
98
+ name: webmock
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 2.3.1
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 2.3.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: vcr
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '1.0'
117
+ version: '2.9'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '1.0'
124
+ version: '2.9'
111
125
  - !ruby/object:Gem::Dependency
112
- name: jeweler
126
+ name: rake
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '2.0'
131
+ version: '10.0'
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '2.0'
138
+ version: '10.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: shoulda
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
125
153
  - !ruby/object:Gem::Dependency
126
154
  name: simplecov
127
155
  requirement: !ruby/object:Gem::Requirement
@@ -150,24 +178,25 @@ dependencies:
150
178
  - - "~>"
151
179
  - !ruby/object:Gem::Version
152
180
  version: '1.6'
153
- description: Supports Facebook, Twitter, Pinterest, Reddit (Links, Posts, and Comments),
154
- Github, Soundcloud, Medium, and Rubygems
155
- email: jeff@keen.me
181
+ description: Supports Facebook, Pinterest, Reddit (Links, Posts, and Comments), Github,
182
+ Soundcloud, Medium, and Rubygems
183
+ email:
184
+ - jeff@keen.me
156
185
  executables: []
157
186
  extensions: []
158
- extra_rdoc_files:
159
- - LICENSE.txt
160
- - README.md
187
+ extra_rdoc_files: []
161
188
  files:
162
189
  - ".document"
190
+ - ".gitignore"
163
191
  - ".rspec"
164
192
  - ".travis.yml"
165
193
  - Gemfile
166
- - Gemfile.lock
167
194
  - LICENSE.txt
168
195
  - README.md
169
196
  - Rakefile
170
197
  - VERSION
198
+ - bin/console
199
+ - bin/setup
171
200
  - lib/.DS_Store
172
201
  - lib/popularity.rb
173
202
  - lib/popularity/crawler.rb
@@ -181,44 +210,16 @@ files:
181
210
  - lib/popularity/networks/reddit_share.rb
182
211
  - lib/popularity/networks/rubygems.rb
183
212
  - lib/popularity/networks/soundcloud.rb
184
- - lib/popularity/networks/twitter.rb
185
213
  - lib/popularity/results_container.rb
186
214
  - lib/popularity/rubygems.rb
187
215
  - lib/popularity/search.rb
216
+ - lib/popularity/version.rb
188
217
  - popularity.gemspec
189
- - spec/cassettes/facebook.yml
190
- - spec/cassettes/github-valid.yml
191
- - spec/cassettes/google_plus.yml
192
- - spec/cassettes/medium-valid.yml
193
- - spec/cassettes/pinterest.yml
194
- - spec/cassettes/reddit-comment.yml
195
- - spec/cassettes/reddit-post.yml
196
- - spec/cassettes/reddit.yml
197
- - spec/cassettes/result-container-test.yml
198
- - spec/cassettes/rubygems-valid.yml
199
- - spec/cassettes/search-multi.yml
200
- - spec/cassettes/search.yml
201
- - spec/cassettes/soundcloud-valid.yml
202
- - spec/cassettes/twitter.yml
203
- - spec/cassettes/unknown-reddit-post.yml
204
- - spec/facebook_spec.rb
205
- - spec/github_spec.rb
206
- - spec/google_plus_spec.rb
207
- - spec/medium_spec.rb
208
- - spec/pinterest_spec.rb
209
- - spec/reddit_comment_spec.rb
210
- - spec/reddit_post_spec.rb
211
- - spec/reddit_spec.rb
212
- - spec/results_container_spec.rb
213
- - spec/rubygems_spec.rb
214
- - spec/search_spec.rb
215
- - spec/soundcloud_spec.rb
216
- - spec/spec_helper.rb
217
- - spec/twitter_spec.rb
218
218
  homepage: http://github.com/jkeen/popularity
219
219
  licenses:
220
220
  - MIT
221
- metadata: {}
221
+ metadata:
222
+ allowed_push_host: 'TODO: Set to ''http://mygemserver.com'''
222
223
  post_install_message:
223
224
  rdoc_options: []
224
225
  require_paths:
@@ -235,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
236
  version: '0'
236
237
  requirements: []
237
238
  rubyforge_project:
238
- rubygems_version: 2.2.2
239
+ rubygems_version: 2.7.4
239
240
  signing_key:
240
241
  specification_version: 4
241
242
  summary: Popularity searches social networks a url and returns the metrics.