popularity 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +10 -0
- data/.travis.yml +10 -3
- data/Gemfile +4 -20
- data/LICENSE.txt +18 -17
- data/README.md +10 -9
- data/Rakefile +1 -29
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/popularity/version.rb +3 -0
- data/popularity.gemspec +40 -116
- metadata +59 -58
- data/Gemfile.lock +0 -126
- data/lib/popularity/networks/twitter.rb +0 -15
- data/spec/cassettes/facebook.yml +0 -50
- data/spec/cassettes/github-valid.yml +0 -105
- data/spec/cassettes/google_plus.yml +0 -89
- data/spec/cassettes/medium-valid.yml +0 -110
- data/spec/cassettes/pinterest.yml +0 -44
- data/spec/cassettes/reddit-comment.yml +0 -207
- data/spec/cassettes/reddit-post.yml +0 -174
- data/spec/cassettes/reddit.yml +0 -183
- data/spec/cassettes/result-container-test.yml +0 -97
- data/spec/cassettes/rubygems-valid.yml +0 -66
- data/spec/cassettes/search-multi.yml +0 -1211
- data/spec/cassettes/search.yml +0 -598
- data/spec/cassettes/soundcloud-valid.yml +0 -682
- data/spec/cassettes/twitter.yml +0 -64
- data/spec/cassettes/unknown-reddit-post.yml +0 -68
- data/spec/facebook_spec.rb +0 -23
- data/spec/github_spec.rb +0 -39
- data/spec/google_plus_spec.rb +0 -27
- data/spec/medium_spec.rb +0 -47
- data/spec/pinterest_spec.rb +0 -27
- data/spec/reddit_comment_spec.rb +0 -60
- data/spec/reddit_post_spec.rb +0 -64
- data/spec/reddit_spec.rb +0 -118
- data/spec/results_container_spec.rb +0 -61
- data/spec/rubygems_spec.rb +0 -50
- data/spec/search_spec.rb +0 -79
- data/spec/soundcloud_spec.rb +0 -66
- data/spec/spec_helper.rb +0 -98
- data/spec/twitter_spec.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3c69f1ff1554fd62065c0a9a3dac960985fd76f38fe9be75f92a53cd87e48782
|
4
|
+
data.tar.gz: 927f372ac43b709810327308aaeb9954db7ee0cde248ceddd8fc395a31703698
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a004061bdae98ffcae2e1385427eff40636244fe56f6597f1598090da61e38b0130d51103d16d1baf435a98824e8e096529bb801d24164e95586c2492e54f80
|
7
|
+
data.tar.gz: a88bd352e223e7037b82e80ca6f9d70fda39e822acc30d4dc1205b683799fbc38ab91ece89105c2772281ca95221d7d5a7a2c49b5b0adfbe0fff03623e9c76c0
|
data/.gitignore
ADDED
data/.travis.yml
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
language: ruby
|
2
|
-
|
3
2
|
rvm:
|
4
|
-
|
5
|
-
|
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 "
|
1
|
+
source "https://rubygems.org"
|
2
2
|
|
3
|
-
|
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
|
-
|
9
|
-
|
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
|
data/LICENSE.txt
CHANGED
@@ -1,20 +1,21 @@
|
|
1
|
-
|
1
|
+
The MIT License (MIT)
|
2
2
|
|
3
|
-
|
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
|
-
|
12
|
-
|
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
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
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
|
-
|
data/bin/console
ADDED
@@ -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__)
|
data/bin/setup
ADDED
data/popularity.gemspec
CHANGED
@@ -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
|
-
|
8
|
-
|
9
|
-
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "popularity/version"
|
10
5
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
85
|
-
|
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
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
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
|
-
|
112
|
-
|
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Keen
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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:
|
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:
|
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:
|
70
|
+
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
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: '
|
82
|
+
version: '1.16'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '3.
|
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.
|
96
|
+
version: '3.2'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
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: '
|
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: '
|
124
|
+
version: '2.9'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
126
|
+
name: rake
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
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: '
|
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,
|
154
|
-
|
155
|
-
email:
|
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.
|
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.
|