rotten-party 0.1.2 → 0.1.3
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/VERSION +1 -1
- data/lib/rotten-party/client.rb +4 -4
- data/rotten-party.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/rotten-party/client.rb
CHANGED
@@ -25,15 +25,15 @@ module RottenParty
|
|
25
25
|
|
26
26
|
# Find a specific film by it's identifier
|
27
27
|
def find_film_by_id(id, options={})
|
28
|
-
options =
|
28
|
+
options = recurse_merge(options, @global_options)
|
29
29
|
response = self.class.get("/movies/#{id}.json", options).parsed_response
|
30
30
|
Hashie::Mash.new(response)
|
31
31
|
end
|
32
32
|
|
33
33
|
# Find a film by it's title
|
34
34
|
def find_film_by_title(title, options={})
|
35
|
-
options =
|
36
|
-
options =
|
35
|
+
options = recurse_merge(options, @global_options)
|
36
|
+
options = recurse_merge(options, {:query => {:q => u(title)}})
|
37
37
|
response = self.class.get("/movies.json", options).parsed_response
|
38
38
|
Hashie::Mash.new(response["movies"].first)
|
39
39
|
end
|
@@ -48,7 +48,7 @@ module RottenParty
|
|
48
48
|
# => 'dvds'
|
49
49
|
# => 'movies'
|
50
50
|
def find_movies_in_list(list, directory, options={})
|
51
|
-
options =
|
51
|
+
options = recurse_merge(options, @global_options)
|
52
52
|
response = self.class.get("/lists/#{directory}/#{list}.json", options).parsed_response
|
53
53
|
response["movies"].collect{ |movie| Hashie::Mash.new(movie) }
|
54
54
|
end
|
data/rotten-party.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rotten-party
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Nick Pellant
|
@@ -116,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
116
|
requirements:
|
117
117
|
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
hash: -
|
119
|
+
hash: -994000781266312596
|
120
120
|
segments:
|
121
121
|
- 0
|
122
122
|
version: "0"
|