nsivideogranulate 0.0.2 → 0.2.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/.document +0 -0
- data/.rspec +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.rdoc +0 -0
- data/Rakefile +0 -0
- data/VERSION +1 -1
- data/lib/nsivideogranulate.rb +0 -0
- data/lib/nsivideogranulate/client.rb +17 -2
- data/lib/nsivideogranulate/configuration.rb +0 -0
- data/lib/nsivideogranulate/errors.rb +0 -0
- data/lib/nsivideogranulate/fake_server.rb +0 -0
- data/nsivideogranulate.gemspec +3 -3
- data/spec/configuration_spec.rb +0 -0
- data/spec/nsivideogranulate_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +4 -4
data/.document
CHANGED
File without changes
|
data/.rspec
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.rdoc
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.2.0
|
data/lib/nsivideogranulate.rb
CHANGED
File without changes
|
@@ -127,8 +127,23 @@ module NSIVideoGranulate
|
|
127
127
|
# @raise NSIVideoGranulate::Errors::Client::KeyNotFoundError when an invalid key is provided
|
128
128
|
#
|
129
129
|
def grains_keys_for(video_key)
|
130
|
-
request = prepare_request :GET, {:video_key => video_key}.to_json
|
131
|
-
execute_request(request)
|
130
|
+
request = prepare_request :GET, {:video_key => video_key, :grains => true}.to_json
|
131
|
+
execute_request(request).select { |key| ['images', 'videos'].include? key }
|
132
|
+
end
|
133
|
+
|
134
|
+
def thumbnails_keys_for(video_key)
|
135
|
+
request = prepare_request :GET, {:video_key => video_key, :grains => true}.to_json
|
136
|
+
execute_request(request).select { |key| 'thumbnails' == key }
|
137
|
+
end
|
138
|
+
|
139
|
+
def audio_key_for(video_key)
|
140
|
+
request = prepare_request :GET, {:video_key => video_key, :grains => true}.to_json
|
141
|
+
execute_request(request).select { |key| 'audio' == key }
|
142
|
+
end
|
143
|
+
|
144
|
+
def converted_video_key_for(video_key)
|
145
|
+
request = prepare_request :GET, {:video_key => video_key, :grains => true}.to_json
|
146
|
+
execute_request(request).select { |key| 'converted_video' == key }
|
132
147
|
end
|
133
148
|
|
134
149
|
# Pre-configure the NSIVideoGranulate module with default params for the NSIVideoGranulate::Client
|
File without changes
|
File without changes
|
File without changes
|
data/nsivideogranulate.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "nsivideogranulate"
|
8
|
-
s.version = "0.0
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Douglas Camata"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-10-25"
|
13
13
|
s.description = "A simple gem to access a nsi.videogranulate node"
|
14
14
|
s.email = "d.camata@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
|
|
37
37
|
s.homepage = "http://github.com/nsi-iff/nsivideogranulate-ruby.git"
|
38
38
|
s.licenses = ["MIT"]
|
39
39
|
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version = "1.8.
|
40
|
+
s.rubygems_version = "1.8.24"
|
41
41
|
s.summary = "A simple gem to access a nsi.videogranulate node"
|
42
42
|
|
43
43
|
if s.respond_to? :specification_version then
|
data/spec/configuration_spec.rb
CHANGED
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nsivideogranulate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
segments:
|
148
148
|
- 0
|
149
|
-
hash: -
|
149
|
+
hash: -2774773502900737516
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
none: false
|
152
152
|
requirements:
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 1.8.
|
158
|
+
rubygems_version: 1.8.24
|
159
159
|
signing_key:
|
160
160
|
specification_version: 3
|
161
161
|
summary: A simple gem to access a nsi.videogranulate node
|