hooloo 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39d4abb265b95abb7dc3edf473919c1dad719f93
4
- data.tar.gz: dcfc2b375cc68713ae2fd538d34e9f69ab053c17
3
+ metadata.gz: 56502b7cff9ec9dfa46165d62ea6e73415e38a6b
4
+ data.tar.gz: 7cbf6ecf7c3deb3613a76ad49ea6df74873cd42a
5
5
  SHA512:
6
- metadata.gz: f0ec5088f15b34cd31cf53131eed3c633530ee404cfe32eba319e5992a00fc734d349df2fb1466693743af56e08175217bbd536d3612d1fd59d786bc860e56a7
7
- data.tar.gz: a9d2b1e575b509efcf11b7520bafd892b6081d4c42e874a9536e3498d138d3ad9e2f10168062de489381e65855f2af19d62227d92ed788b3145bb538a244779c
6
+ metadata.gz: ad5e4de1bc3a9903a29f910cac2d4a99466cb3d821290b62ac60bf5a9033f5f1a0d2d5aff4c4c386c8837925eafe39ffb0137ee0bb9be2ef3fd5c4af2a513982
7
+ data.tar.gz: 1ab6415a5bb1ae5088b784b563d7daf477bab6e0be4efc6e5609cef30092c295268e4b87112922cacf105a906d2a0aaa416a2d4235895f88ef20ecff90f190ed
data/lib/hooloo/genre.rb CHANGED
@@ -2,13 +2,13 @@ class Hooloo::Genre < Hooloo::MozartHash
2
2
  def initialize(obj)
3
3
  super
4
4
  if obj.is_a? String
5
- @obj = {canonical_name: obj}
5
+ @obj = {'canonical_name' => obj}
6
6
  else
7
7
  @obj = obj
8
8
  end
9
9
  end
10
10
  def shows(args={items_per_page: 10, position: 0})
11
- args.merge!({genre: canonical_name})
11
+ args.merge!({genre: canonical_name, sort: 'release_with_popularity'})
12
12
  Hooloo.request('shows', args)['data'].map { |x| Hooloo::Show.new x['show'] }
13
13
  end
14
14
  # List all genres known to Hulu
@@ -1,3 +1,3 @@
1
1
  class Hooloo
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hooloo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Lejeck