metachannels-api-client 0.2.1 → 0.3.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.
- data/.gitignore +1 -1
- data/Gemfile +12 -0
- data/Gemfile.lock +26 -0
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/metachannels-api-client.rb +11 -0
- data/metachannels-api-client.gemspec +4 -2
- metadata +11 -9
data/.gitignore
CHANGED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activesupport (2.3.8)
|
5
|
+
gemcutter (0.6.1)
|
6
|
+
git (1.2.5)
|
7
|
+
jeweler (1.4.0)
|
8
|
+
gemcutter (>= 0.1.0)
|
9
|
+
git (>= 1.2.5)
|
10
|
+
rubyforge (>= 2.0.0)
|
11
|
+
json (1.5.1)
|
12
|
+
json_pure (1.5.1)
|
13
|
+
rake (0.8.7)
|
14
|
+
rubyforge (2.0.4)
|
15
|
+
json_pure (>= 1.1.7)
|
16
|
+
wrest (0.1.2)
|
17
|
+
activesupport (= 2.3.8)
|
18
|
+
json (>= 1.1.3)
|
19
|
+
|
20
|
+
PLATFORMS
|
21
|
+
ruby
|
22
|
+
|
23
|
+
DEPENDENCIES
|
24
|
+
jeweler (~> 1.4.0)
|
25
|
+
rake
|
26
|
+
wrest (= 0.1.2)
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
@@ -19,6 +19,7 @@ class MetachannelsApi
|
|
19
19
|
# *perPage*
|
20
20
|
# *startPage*
|
21
21
|
# *order*
|
22
|
+
# *types*
|
22
23
|
def search(*args)
|
23
24
|
raise ArgumentError.new('apikey not specified') if @api_key.blank?
|
24
25
|
parameters = args.extract_options!
|
@@ -26,6 +27,16 @@ class MetachannelsApi
|
|
26
27
|
uri()['/search'].get(parameters, {'Channels-Authorization' => @api_key}).deserialise
|
27
28
|
end
|
28
29
|
|
30
|
+
# Invoke the MetaChannels Shows API to retreive a single show
|
31
|
+
# *id* The id of the metachannels show
|
32
|
+
# *args* TBD
|
33
|
+
def show(id, *args)
|
34
|
+
raise ArgumentError.new('apikey not specified') if @api_key.blank?
|
35
|
+
parameters = args.extract_options!
|
36
|
+
|
37
|
+
uri()["/shows/#{id}"].get(parameters, {'Channels-Authorization' => @api_key}).deserialise
|
38
|
+
end
|
39
|
+
|
29
40
|
private
|
30
41
|
def uri
|
31
42
|
@end_point.to_uri()
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{metachannels-api-client}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Alex Soto"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-02-14}
|
13
13
|
s.description = %q{A gem to consume the metachannels-api. See http://support.metachannels.com/forums/202518-metachannels-api }
|
14
14
|
s.email = %q{support@metachannels.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -20,6 +20,8 @@ Gem::Specification.new do |s|
|
|
20
20
|
".document",
|
21
21
|
".gitignore",
|
22
22
|
".rvmrc",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
23
25
|
"LICENSE",
|
24
26
|
"README.rdoc",
|
25
27
|
"Rakefile",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metachannels-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
version: 0.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Soto
|
@@ -15,13 +15,14 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-02-14 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name: wrest
|
23
22
|
prerelease: false
|
24
|
-
|
23
|
+
type: :runtime
|
24
|
+
name: wrest
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
26
|
none: false
|
26
27
|
requirements:
|
27
28
|
- - "="
|
@@ -32,8 +33,7 @@ dependencies:
|
|
32
33
|
- 1
|
33
34
|
- 2
|
34
35
|
version: 0.1.2
|
35
|
-
|
36
|
-
version_requirements: *id001
|
36
|
+
requirement: *id001
|
37
37
|
description: "A gem to consume the metachannels-api. See http://support.metachannels.com/forums/202518-metachannels-api "
|
38
38
|
email: support@metachannels.com
|
39
39
|
executables: []
|
@@ -47,6 +47,8 @@ files:
|
|
47
47
|
- .document
|
48
48
|
- .gitignore
|
49
49
|
- .rvmrc
|
50
|
+
- Gemfile
|
51
|
+
- Gemfile.lock
|
50
52
|
- LICENSE
|
51
53
|
- README.rdoc
|
52
54
|
- Rakefile
|