datarank 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/datarank/datasources.rb +4 -4
- data/lib/datarank/locations.rb +4 -4
- data/lib/datarank/reach.rb +2 -2
- data/lib/datarank/retailers.rb +2 -2
- data/lib/datarank/sentiment.rb +2 -2
- data/lib/datarank/version.rb +1 -1
- data/lib/datarank/volume.rb +2 -2
- data/lib/datarank/wordcloud.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 771b81ebc8ffa717ff99c88f43c00e8b32d764e6
|
4
|
+
data.tar.gz: ebe90a364b5d44627dae6f50960d06239bc204c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d2857e3b0970367449f53fdc90e65f11d661d16a2f79165f2068d167c06ac84caf73cc8edf15393599b68b4cebe07adaf30222666ea65e7d91831f9d1454b2b
|
7
|
+
data.tar.gz: 95a0f88987bed869cbd383b313b3339130de9b205b839391d17059c1b256039b50bce9835df319b2f0342e706e7826a5421841abae9fe008b1e362283490600a
|
data/Gemfile.lock
CHANGED
data/lib/datarank/datasources.rb
CHANGED
@@ -7,15 +7,15 @@ module Datarank
|
|
7
7
|
# Return unique datasources correlated to a topic
|
8
8
|
#
|
9
9
|
# @param slug [String] A topic's unique identifier slug
|
10
|
-
def datasources
|
11
|
-
get "/topics/#{slug}/datasources"
|
10
|
+
def datasources(slug, options={})
|
11
|
+
get "/topics/#{slug}/datasources", options
|
12
12
|
end
|
13
13
|
|
14
14
|
# Return unique datasources correlated to a topic grouped by type
|
15
15
|
#
|
16
16
|
# @param slug [String] A topic's unique identifier slug
|
17
|
-
def datasources_by_type
|
18
|
-
get "/topics/#{slug}/datasources/types"
|
17
|
+
def datasources_by_type(slug, options={})
|
18
|
+
get "/topics/#{slug}/datasources/types", options
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
data/lib/datarank/locations.rb
CHANGED
@@ -7,15 +7,15 @@ module Datarank
|
|
7
7
|
# Fetch geocoded comments for a topic
|
8
8
|
#
|
9
9
|
# @param slug [String] A topic's unique identifier slug
|
10
|
-
def locations
|
11
|
-
get "/topics/#{slug}/location/pins"
|
10
|
+
def locations(slug, options={})
|
11
|
+
get "/topics/#{slug}/location/pins", options
|
12
12
|
end
|
13
13
|
|
14
14
|
# Fetch average sentiment for topic broken down into provinces with counts
|
15
15
|
#
|
16
16
|
# @param slug [String] A topic's unique identifier slug
|
17
|
-
def location_sentiment
|
18
|
-
get "/topics/#{slug}/location/sentiment"
|
17
|
+
def location_sentiment(slug, options={})
|
18
|
+
get "/topics/#{slug}/location/sentiment", options
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
data/lib/datarank/reach.rb
CHANGED
@@ -7,8 +7,8 @@ module Datarank
|
|
7
7
|
# Fetch reach counts for topic by day
|
8
8
|
#
|
9
9
|
# @param slug [String] A topic's unique identifier slug
|
10
|
-
def reach_daily
|
11
|
-
get "/topics/#{slug}/reach/daily"
|
10
|
+
def reach_daily(slug, options={})
|
11
|
+
get "/topics/#{slug}/reach/daily", options
|
12
12
|
end
|
13
13
|
|
14
14
|
end
|
data/lib/datarank/retailers.rb
CHANGED
@@ -7,8 +7,8 @@ module Datarank
|
|
7
7
|
# Fetch retailers correlated to a topic
|
8
8
|
#
|
9
9
|
# @param slug [String] A topic's unique identifier slug
|
10
|
-
def retailers
|
11
|
-
get "/topics/#{slug}/retailers"
|
10
|
+
def retailers(slug, options={})
|
11
|
+
get "/topics/#{slug}/retailers", options
|
12
12
|
end
|
13
13
|
|
14
14
|
end
|
data/lib/datarank/sentiment.rb
CHANGED
@@ -7,8 +7,8 @@ module Datarank
|
|
7
7
|
# Fetch sentiment for a topic grouped by day
|
8
8
|
#
|
9
9
|
# @param slug [String] A topic's unique identifier slug
|
10
|
-
def sentiment_daily
|
11
|
-
get "/topics/#{slug}/sentiment/daily"
|
10
|
+
def sentiment_daily(slug, options={})
|
11
|
+
get "/topics/#{slug}/sentiment/daily", options
|
12
12
|
end
|
13
13
|
|
14
14
|
end
|
data/lib/datarank/version.rb
CHANGED
data/lib/datarank/volume.rb
CHANGED
@@ -7,8 +7,8 @@ module Datarank
|
|
7
7
|
# Return volume for a topic grouped by day
|
8
8
|
#
|
9
9
|
# @param slug [String] A topic's unique identifier slug
|
10
|
-
def volume_daily
|
11
|
-
get "/topics/#{slug}/volume/daily"
|
10
|
+
def volume_daily(slug, options={})
|
11
|
+
get "/topics/#{slug}/volume/daily", options
|
12
12
|
end
|
13
13
|
|
14
14
|
end
|
data/lib/datarank/wordcloud.rb
CHANGED
@@ -8,8 +8,8 @@ module Datarank
|
|
8
8
|
# Return word cloud for a topic
|
9
9
|
#
|
10
10
|
# @param slug [String] A topic's unique identifier slug
|
11
|
-
def wordcloud
|
12
|
-
get "/topics/#{slug}/wordcloud"
|
11
|
+
def wordcloud(slug, options={})
|
12
|
+
get "/topics/#{slug}/wordcloud", options
|
13
13
|
end
|
14
14
|
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datarank
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Addam Hardy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.4.5
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: '[""]'
|