helix 0.0.5.0.pre → 0.0.5.1.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTNmNDllNjZiNjY1OWRkZTE3OWEzNTZjN2I5ZjUwNzZmZDYyZjk4Zg==
4
+ OGY1MjZkYTY0OWRhYjc1MTY1ZjlmZjgwMjZiODE3NDQ2NzJhYmE1NQ==
5
5
  data.tar.gz: !binary |-
6
- ZmUyOGZhY2UxYTMyYzU1MzU1YWEzYzRhMmViOWJmYTgzNjY0MWYxMw==
6
+ NDc1YzVlZmNhYmFkNTJmMTJjMzc1MmJmMDUyNDEyOWMyY2IyZTkzMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTk3ZGI1YjQyMDg4Y2EwOWFlNWZmNjljOTYxMDg4ZWQ1MjJjNDI4NTQ5MWM4
10
- ZTgwNDU5ZDAzMWZjOWZkNzY5OGZkMmI2ZTUzNTU1YzhiYzFiYTgyYzMzNWE2
11
- NTU0ZGZmNDY5ZGQ3M2ZiZDkxMzhhNTAxZTMyZjk2YTBjMmM3MmU=
9
+ NmJmY2NjOGFiZTAyM2U1MmIyZGVjNDRiZThmOTUyMDEzZWU3YzZiZTk2NmZk
10
+ NWY5YTg4ZWRhYjMwNWRjZGRmMWFlMDcyMTkxMmZkZjhlODBmODQ5OTNhMTA1
11
+ OTY5NDdjNTc2Njk5NGE2ZjJlYTIzYzk4NjA5OWQwNzBjYmJmZDE=
12
12
  data.tar.gz: !binary |-
13
- OTcxMGEwYTFjN2RkMDE3MjhlMjQ1YTg0YzQzNjYxYmE5NjhlZTYxYWNhY2Q3
14
- MjQ5ZTU0YjY3ZGJlYmE0M2JkMzA2YWI2OWM4YmQwNmQxYWUxNWQ5YmE3ZGEz
15
- YWYwNWY5YzZjZWRlMWQwMzVjNjFhMjJhMTc1NGRmYTk0ZDE3N2U=
13
+ YjQ3Y2MwZmZjNDBhYjU0NzcxYWY5ZjRhN2Y0MmMzYjZhMTAzZjEyZWU2MTM1
14
+ MjM2YTllZDFiODU2ZTQyMTRlOTQ1OTJmZjlhOTE4YzlhMDQ3NzJjNjgwNTRh
15
+ ZjdjYzU2YTBhODUyODVhMTUxNDcyNWI5OGJhMzE1NTA3ZDAwODM=
@@ -15,6 +15,10 @@ module Helix
15
15
  #
16
16
  # @return [Symbol] Name of the class.
17
17
  def self.resource_label_sym; :playlist; end
18
+
19
+
20
+ # @return an override id string specfic to Playlist for Base.guid_name
21
+ def self.guid_name; 'id'; end
18
22
 
19
23
  end
20
24
 
@@ -19,6 +19,18 @@ describe Helix::Library do
19
19
 
20
20
  describe "Constants"
21
21
 
22
+ describe ".process_opts" do
23
+ context "opts is {content_type: :json}" do
24
+ it { klass.process_opts({content_type: :json}).should eq({ content_type: :json }) }
25
+ end
26
+ context "opts is {content_type: :xml}" do
27
+ it { klass.process_opts({content_type: :xml}).should eq({ content_type: :xml }) }
28
+ end
29
+ context "when opts is {k: :v}" do
30
+ it { klass.process_opts({k: :v}).should eq({ k: :v, content_type: :xml }) }
31
+ end
32
+ end
33
+
22
34
  describe "an instance" do
23
35
  let(:obj) { klass.new({'library_id' => 'some_library_id'}) }
24
36
  subject { obj }
@@ -26,16 +38,7 @@ describe Helix::Library do
26
38
  [:destroy, :update].each do |crud_call|
27
39
  it { should respond_to(crud_call) }
28
40
  end
29
-
30
- describe "#process_opts" do
31
- context "opts has a key of content_type" do
32
- it { subject.process_opts({content_type: :json}).should == {content_type: :json } }
33
- end
34
- context"when opts does not have a key of content type" do
35
- it { subject.process_opts({}).should == {content_type: :xml } }
36
- end
37
- end
38
-
41
+
39
42
  end
40
43
 
41
44
  end
@@ -7,7 +7,7 @@ describe Helix::Playlist do
7
7
  subject { klass }
8
8
  mods = [ Helix::Base, Helix::RESTful ]
9
9
  mods.each { |mod| its(:ancestors) { should include(mod) } }
10
- its(:guid_name) { should eq('playlist_id') }
10
+ its(:guid_name) { should eq('id') }
11
11
  its(:resource_label_sym) { should be(:playlist) }
12
12
  its(:plural_resource_label) { should eq('playlists') }
13
13
  [:find, :create, :all, :find_all, :where].each do |crud_call|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.0.pre
4
+ version: 0.0.5.1.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twistage, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-30 00:00:00.000000000 Z
11
+ date: 2014-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -59,49 +59,49 @@ extensions: []
59
59
  extra_rdoc_files: []
60
60
  files:
61
61
  - lib/helix.rb
62
- - lib/helix/base.rb
63
- - lib/helix/paginates.rb
62
+ - lib/helix/album.rb
64
63
  - lib/helix/audio_playlist.rb
65
- - lib/helix/image.rb
66
- - lib/helix/restful.rb
67
- - lib/helix/hash_ext.rb
68
- - lib/helix/library.rb
69
- - lib/helix/user.rb
70
- - lib/helix/has_signatures.rb
71
- - lib/helix/uploadable.rb
72
- - lib/helix/downloadable.rb
73
- - lib/helix/statistics.rb
64
+ - lib/helix/base.rb
65
+ - lib/helix/builds_urls.rb
66
+ - lib/helix/config.rb
74
67
  - lib/helix/document.rb
68
+ - lib/helix/downloadable.rb
75
69
  - lib/helix/durationed.rb
76
- - lib/helix/object_ext.rb
77
- - lib/helix/video_playlist.rb
70
+ - lib/helix/exceptions.rb
71
+ - lib/helix/has_signatures.rb
72
+ - lib/helix/hash_ext.rb
73
+ - lib/helix/image.rb
74
+ - lib/helix/library.rb
78
75
  - lib/helix/media.rb
79
- - lib/helix/video.rb
80
- - lib/helix/album.rb
81
- - lib/helix/builds_urls.rb
82
- - lib/helix/tag.rb
76
+ - lib/helix/object_ext.rb
77
+ - lib/helix/paginates.rb
83
78
  - lib/helix/playlist.rb
79
+ - lib/helix/restful.rb
80
+ - lib/helix/statistics.rb
81
+ - lib/helix/tag.rb
84
82
  - lib/helix/track.rb
85
- - lib/helix/exceptions.rb
86
- - lib/helix/config.rb
87
- - spec/durationed_spec.rb
88
- - spec/document_spec.rb
89
- - spec/library_spec.rb
90
- - spec/spec_helper.rb
91
- - spec/config_spec.rb
92
- - spec/base_spec.rb
93
- - spec/playlist_spec.rb
94
- - spec/video_spec.rb
95
- - spec/tag_spec.rb
96
- - spec/user_spec.rb
83
+ - lib/helix/uploadable.rb
84
+ - lib/helix/user.rb
85
+ - lib/helix/video.rb
86
+ - lib/helix/video_playlist.rb
97
87
  - spec/_integration_spec.rb
98
88
  - spec/album_spec.rb
99
- - spec/image_spec.rb
89
+ - spec/base_spec.rb
90
+ - spec/config_spec.rb
91
+ - spec/document_spec.rb
92
+ - spec/durationed_spec.rb
100
93
  - spec/helix_spec.rb
101
- - spec/statistics_spec.rb
102
- - spec/paginates_spec.rb
94
+ - spec/image_spec.rb
95
+ - spec/library_spec.rb
103
96
  - spec/media_spec.rb
97
+ - spec/paginates_spec.rb
98
+ - spec/playlist_spec.rb
99
+ - spec/spec_helper.rb
100
+ - spec/statistics_spec.rb
101
+ - spec/tag_spec.rb
104
102
  - spec/track_spec.rb
103
+ - spec/user_spec.rb
104
+ - spec/video_spec.rb
105
105
  - LICENSE
106
106
  - README.md
107
107
  homepage: https://github.com/Twistage/helix/
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: 1.3.1
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.1.9
127
+ rubygems_version: 2.1.4
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Wrapper library for the video API