helix 0.0.3.4.pre → 0.0.3.5.pre
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/lib/helix.rb +5 -1
- data/spec/media_spec.rb +4 -16
- metadata +90 -88
data/lib/helix.rb
CHANGED
@@ -11,7 +11,11 @@ require 'helix/config'
|
|
11
11
|
require 'helix/statistics'
|
12
12
|
require 'helix/library'
|
13
13
|
require 'helix/user'
|
14
|
-
|
14
|
+
|
15
|
+
# Pulled from active_support
|
16
|
+
# This solves the active_support collision discussed in issue 19 on GitHub.
|
17
|
+
require 'active_support_ext/object_ext'
|
18
|
+
require 'active_support_ext/hash_ext'
|
15
19
|
|
16
20
|
module Helix
|
17
21
|
|
data/spec/media_spec.rb
CHANGED
@@ -70,7 +70,9 @@ describe Helix::Media do
|
|
70
70
|
end
|
71
71
|
context "when the POST response is ''" do
|
72
72
|
before(:each) do RestClient.stub(:post) { '' } end
|
73
|
-
it "should return nil"
|
73
|
+
it "should return nil" do
|
74
|
+
expect(klass.send(meth)).to be(nil)
|
75
|
+
end
|
74
76
|
it "should NOT create a Hash from XML" do
|
75
77
|
Hash.should_not_receive(:from_xml)
|
76
78
|
klass.send(meth)
|
@@ -165,8 +167,7 @@ describe Helix::Media do
|
|
165
167
|
end
|
166
168
|
end
|
167
169
|
|
168
|
-
|
169
|
-
child_classes.each do |child_class|
|
170
|
+
klasses.each do |child_class|
|
170
171
|
describe "an instance of #{child_class.to_s}" do
|
171
172
|
let(:obj) { child_class.new({}) }
|
172
173
|
|
@@ -210,19 +211,6 @@ describe Helix::Media do
|
|
210
211
|
mock_config.stub(:signature).with(:update) { 'some_sig' }
|
211
212
|
mock_config.stub(:build_url) { :expected_url }
|
212
213
|
end
|
213
|
-
shared_examples_for "builds URL for update" do
|
214
|
-
it "should build_url(content_type: :xml, guid: guid, resource_label: plural_resource_label)" do
|
215
|
-
mock_config.should_receive(:build_url).with(content_type: :xml, guid: :the_guid, resource_label: :the_resource_label)
|
216
|
-
RestClient.stub(:put)
|
217
|
-
obj.send(meth)
|
218
|
-
end
|
219
|
-
it "should get an update signature" do
|
220
|
-
mock_config.stub(:build_url)
|
221
|
-
RestClient.stub(:put)
|
222
|
-
mock_config.should_receive(:signature).with(:update) { 'some_sig' }
|
223
|
-
obj.send(meth)
|
224
|
-
end
|
225
|
-
end
|
226
214
|
context "when given no argument" do
|
227
215
|
it_behaves_like "builds URL for update"
|
228
216
|
it "should call RestClient.put(output_of_build_url, {signature: the_sig, video: {}}) and return instance of klass" do
|
metadata
CHANGED
@@ -1,147 +1,149 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: helix
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3.5.pre
|
4
5
|
prerelease: 8
|
5
|
-
version: 0.0.3.4.pre
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Twistage, Inc
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-06-11 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: json
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 1.5.4
|
24
22
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: rest-client
|
28
23
|
prerelease: false
|
29
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.5.4
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rest-client
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
30
33
|
none: false
|
31
|
-
requirements:
|
32
|
-
- -
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
+
requirements:
|
35
|
+
- - '='
|
36
|
+
- !ruby/object:Gem::Version
|
34
37
|
version: 1.6.7
|
35
38
|
type: :runtime
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: nori
|
39
39
|
prerelease: false
|
40
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - '='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.6.7
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: nori
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
41
49
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
50
|
+
requirements:
|
51
|
+
- - '='
|
52
|
+
- !ruby/object:Gem::Version
|
45
53
|
version: 1.1.3
|
46
54
|
type: :runtime
|
47
|
-
version_requirements: *id003
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: i18n
|
50
55
|
prerelease: false
|
51
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.1.3
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: i18n
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
52
65
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
66
|
+
requirements:
|
67
|
+
- - '='
|
68
|
+
- !ruby/object:Gem::Version
|
56
69
|
version: 0.5.0
|
57
70
|
type: :runtime
|
58
|
-
version_requirements: *id004
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: activesupport
|
61
71
|
prerelease: false
|
62
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
73
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version:
|
68
|
-
type: :runtime
|
69
|
-
version_requirements: *id005
|
74
|
+
requirements:
|
75
|
+
- - '='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.5.0
|
70
78
|
description: Provides helper libraries for Ruby access to the Twistage API
|
71
79
|
email: kevin.baird@perceptivesoftware.com, michael.wood@perceptivesoftware.com
|
72
80
|
executables: []
|
73
|
-
|
74
81
|
extensions: []
|
75
|
-
|
76
82
|
extra_rdoc_files: []
|
77
|
-
|
78
|
-
files:
|
83
|
+
files:
|
79
84
|
- lib/helix.rb
|
80
|
-
- lib/helix/
|
85
|
+
- lib/helix/album.rb
|
81
86
|
- lib/helix/audio_playlist.rb
|
87
|
+
- lib/helix/base.rb
|
88
|
+
- lib/helix/config.rb
|
89
|
+
- lib/helix/document.rb
|
90
|
+
- lib/helix/durationed_media.rb
|
91
|
+
- lib/helix/exceptions.rb
|
82
92
|
- lib/helix/image.rb
|
83
|
-
- lib/helix/restful.rb
|
84
93
|
- lib/helix/library.rb
|
85
|
-
- lib/helix/user.rb
|
86
|
-
- lib/helix/uploadable.rb
|
87
|
-
- lib/helix/statistics.rb
|
88
|
-
- lib/helix/document.rb
|
89
|
-
- lib/helix/video_playlist.rb
|
90
94
|
- lib/helix/media.rb
|
91
|
-
- lib/helix/video.rb
|
92
|
-
- lib/helix/album.rb
|
93
|
-
- lib/helix/durationed_media.rb
|
94
|
-
- lib/helix/tag.rb
|
95
95
|
- lib/helix/playlist.rb
|
96
|
+
- lib/helix/restful.rb
|
97
|
+
- lib/helix/statistics.rb
|
98
|
+
- lib/helix/tag.rb
|
96
99
|
- lib/helix/track.rb
|
97
|
-
- lib/helix/
|
98
|
-
- lib/helix/
|
99
|
-
-
|
100
|
+
- lib/helix/uploadable.rb
|
101
|
+
- lib/helix/user.rb
|
102
|
+
- lib/helix/video.rb
|
103
|
+
- lib/helix/video_playlist.rb
|
104
|
+
- spec/album_spec.rb
|
100
105
|
- spec/audio_playlist_spec.rb
|
101
|
-
- spec/library_spec.rb
|
102
|
-
- spec/spec_helper.rb
|
103
|
-
- spec/config_spec.rb
|
104
106
|
- spec/base_spec.rb
|
105
|
-
- spec/
|
106
|
-
- spec/
|
107
|
-
- spec/tag_spec.rb
|
108
|
-
- spec/user_spec.rb
|
107
|
+
- spec/config_spec.rb
|
108
|
+
- spec/document_spec.rb
|
109
109
|
- spec/durationed_media_spec.rb
|
110
|
-
- spec/album_spec.rb
|
111
|
-
- spec/image_spec.rb
|
112
110
|
- spec/helix_spec.rb
|
113
|
-
- spec/
|
114
|
-
- spec/
|
111
|
+
- spec/image_spec.rb
|
112
|
+
- spec/library_spec.rb
|
115
113
|
- spec/media_spec.rb
|
114
|
+
- spec/playlist_spec.rb
|
115
|
+
- spec/spec_helper.rb
|
116
|
+
- spec/statistics_spec.rb
|
117
|
+
- spec/tag_spec.rb
|
116
118
|
- spec/track_spec.rb
|
119
|
+
- spec/user_spec.rb
|
120
|
+
- spec/video_playlist_spec.rb
|
121
|
+
- spec/video_spec.rb
|
117
122
|
- LICENSE
|
118
123
|
- README.md
|
119
124
|
homepage: https://github.com/Twistage/helix/
|
120
|
-
licenses:
|
125
|
+
licenses:
|
121
126
|
- 3-Clause BSD
|
122
127
|
post_install_message:
|
123
128
|
rdoc_options: []
|
124
|
-
|
125
|
-
require_paths:
|
129
|
+
require_paths:
|
126
130
|
- lib
|
127
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
131
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
128
132
|
none: false
|
129
|
-
requirements:
|
130
|
-
- -
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version:
|
133
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ! '>='
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
138
|
none: false
|
135
|
-
requirements:
|
136
|
-
- -
|
137
|
-
- !ruby/object:Gem::Version
|
139
|
+
requirements:
|
140
|
+
- - ! '>'
|
141
|
+
- !ruby/object:Gem::Version
|
138
142
|
version: 1.3.1
|
139
143
|
requirements: []
|
140
|
-
|
141
144
|
rubyforge_project:
|
142
|
-
rubygems_version: 1.8.
|
145
|
+
rubygems_version: 1.8.25
|
143
146
|
signing_key:
|
144
147
|
specification_version: 3
|
145
148
|
summary: Wrapper library for the video API
|
146
149
|
test_files: []
|
147
|
-
|