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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c79c39f0bddf6c27bbde8513e3826f62fbb9dbac
4
- data.tar.gz: 4423093bb1ccfbe57c08ede5127142aae82fee4d
3
+ metadata.gz: 771b81ebc8ffa717ff99c88f43c00e8b32d764e6
4
+ data.tar.gz: ebe90a364b5d44627dae6f50960d06239bc204c6
5
5
  SHA512:
6
- metadata.gz: 73bce6af67c1ba008efb922463f22eeb7d1f7baa1f30439229a83ed2c09461c62606fbb953889e6bf325deba7b40e6a4c1d339f9ae94409d55cf695112ca624d
7
- data.tar.gz: 602a60993a05a92f2fc767f12ce5f1bad8f6da409625c8f0a6dd801594fa0b05e4d9536df0b582818ea9c5a22dd8dc0614dc280a01f5042efa65524c03d81a44
6
+ metadata.gz: 8d2857e3b0970367449f53fdc90e65f11d661d16a2f79165f2068d167c06ac84caf73cc8edf15393599b68b4cebe07adaf30222666ea65e7d91831f9d1454b2b
7
+ data.tar.gz: 95a0f88987bed869cbd383b313b3339130de9b205b839391d17059c1b256039b50bce9835df319b2f0342e706e7826a5421841abae9fe008b1e362283490600a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- datarank (1.0.0)
4
+ datarank (1.1.0)
5
5
  hashie (>= 1.2.0)
6
6
  httparty (>= 0.8.3)
7
7
  multi_json (>= 1.3.4)
@@ -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 slug
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 slug
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
@@ -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 slug
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 slug
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
@@ -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 slug
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
@@ -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 slug
11
- get "/topics/#{slug}/retailers"
10
+ def retailers(slug, options={})
11
+ get "/topics/#{slug}/retailers", options
12
12
  end
13
13
 
14
14
  end
@@ -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 slug
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
@@ -2,7 +2,7 @@ module Datarank
2
2
  # A class for managing Datarank's Version
3
3
  class Version
4
4
  MAJOR = 1
5
- MINOR = 0
5
+ MINOR = 1
6
6
  PATCH = 0
7
7
 
8
8
  class << self
@@ -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 slug
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
@@ -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 slug
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.0.0
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-05 00:00:00.000000000 Z
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.2.2
123
+ rubygems_version: 2.4.5
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: '[""]'