simplecast 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/simplecast/client.rb +1 -1
- data/lib/simplecast/version.rb +1 -1
- 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: d4563896fe21c855cd3bc69917d42cb0143f8c40
|
4
|
+
data.tar.gz: 14863677c6fa1e37e85e739698004ae673889b7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ff0fcc55ae292ce7be00490b7c8d5f57a8e6931e5a1a29997dd032c49687f4920ea6df41b5f0fef87e330c89faa2491c7b7eb48a52b4381fc2b61e668a70cea
|
7
|
+
data.tar.gz: 2fb2521026643b2112bc7508003974317d43dbc7240efc7d59b95b3de33d2cf52200dc87aba4fcddd011e07862e84551d02f3bfae9009e31c4319381a5699b70
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
Set up the gem in a config file (if you're using Rails, just add something like a simplecast.rb in initializers).
|
26
26
|
|
27
|
-
Right now, there are only two config options: `api_key` and `podcast_id`. Your API key can be found in your [account settings](https://simplecast.
|
27
|
+
Right now, there are only two config options: `api_key` and `podcast_id`. Your API key can be found in your [account settings](https://simplecast.com/user/edit).
|
28
28
|
|
29
29
|
Your `podcast_id` is in the URL for your account, and is likely just a number.
|
30
30
|
|
@@ -49,7 +49,7 @@ Simplecast::Client::Podcast.all
|
|
49
49
|
Simplecast::Client::Podcast.find(podcast_id)
|
50
50
|
|
51
51
|
# Statistics
|
52
|
-
# the overall method takes timeframe parameters as defined at https://api.simplecast.
|
52
|
+
# the overall method takes timeframe parameters as defined at https://api.simplecast.com - /podcasts/:podcast_id/statistics/overall.json
|
53
53
|
Simplecast::Client::Statistic.overall(podcast_id, options:{})
|
54
54
|
|
55
55
|
# returns listener stats. /podcasts/:podcast_id/statistics.json
|
data/lib/simplecast/client.rb
CHANGED
@@ -9,7 +9,7 @@ module Simplecast
|
|
9
9
|
Simplecast::Configurable.keys.each do |key|
|
10
10
|
instance_variable_set(:"@#{key}", options[key] || Simplecast.instance_variable_get(:"@#{key}"))
|
11
11
|
end
|
12
|
-
@client = Hurley::Client.new('https://api.simplecast.
|
12
|
+
@client = Hurley::Client.new('https://api.simplecast.com/v1/')
|
13
13
|
@client.header["X-API-KEY"] = @api_key
|
14
14
|
@client
|
15
15
|
end
|
data/lib/simplecast/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplecast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Cutrell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hurley
|
@@ -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.5.1
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Simple wrapper for Simplecast podcasting service.
|