samba-videos-api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.rspec +1 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +101 -0
- data/LICENSE.txt +20 -0
- data/README.md +19 -0
- data/Rakefile +43 -0
- data/VERSION +1 -0
- data/lib/samba_videos.rb +6 -0
- data/lib/samba_videos/base.rb +7 -0
- data/lib/samba_videos/category.rb +6 -0
- data/lib/samba_videos/initialization.rb +3 -0
- data/lib/samba_videos/media.rb +7 -0
- data/lib/samba_videos/project.rb +6 -0
- data/samba-videos-api.gemspec +89 -0
- data/spec/fixtures/categories.json +41 -0
- data/spec/fixtures/category.json +13 -0
- data/spec/fixtures/media.json +86 -0
- data/spec/fixtures/medias.json +260 -0
- data/spec/fixtures/project.json +13 -0
- data/spec/fixtures/projects.json +41 -0
- data/spec/samba_videos/base_spec.rb +9 -0
- data/spec/samba_videos/category_spec.rb +32 -0
- data/spec/samba_videos/media_spec.rb +32 -0
- data/spec/samba_videos/project_spec.rb +32 -0
- data/spec/spec_helper.rb +32 -0
- metadata +185 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: dd3f879aca00fd6dc1b255bc61abbd3daed79fbf
|
4
|
+
data.tar.gz: a08a360761fd604b83c85719dadeba33c353e6eb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c61bbc44a426323e4fdd74f849be765eb4cf93249ebddfe51fab0fb3fb85898573e93c8a3dce16cdedb11056b7f51b4ea4e427e0ce9c452e1eb3c26c737edffc
|
7
|
+
data.tar.gz: d9ecb5275f76604239fcea670dcdb0488bd33b38c96bc206aab7b96db69cfbc7c90751a413a78f7534e1eab1474f9d96bc713e68349d658c580583cef888b713
|
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
SambaVideosAPI
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.2
|
data/Gemfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
|
3
|
+
gem 'activeresource', '>= 4.0.0'
|
4
|
+
|
5
|
+
# Add dependencies to develop your gem here.
|
6
|
+
# Include everything needed to run rake, tests, features, etc.
|
7
|
+
group :development do
|
8
|
+
gem 'rspec', "~> 3.0.0"
|
9
|
+
gem 'fakeweb', '~> 1.3'
|
10
|
+
gem "yard", "~> 0.7"
|
11
|
+
gem "rdoc", "~> 3.12"
|
12
|
+
gem "bundler", "~> 1.0"
|
13
|
+
gem "jeweler", "~> 2.0.1"
|
14
|
+
gem "simplecov", ">= 0"
|
15
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (4.1.1)
|
5
|
+
activesupport (= 4.1.1)
|
6
|
+
builder (~> 3.1)
|
7
|
+
activeresource (4.0.0)
|
8
|
+
activemodel (~> 4.0)
|
9
|
+
activesupport (~> 4.0)
|
10
|
+
rails-observers (~> 0.1.1)
|
11
|
+
activesupport (4.1.1)
|
12
|
+
i18n (~> 0.6, >= 0.6.9)
|
13
|
+
json (~> 1.7, >= 1.7.7)
|
14
|
+
minitest (~> 5.1)
|
15
|
+
thread_safe (~> 0.1)
|
16
|
+
tzinfo (~> 1.1)
|
17
|
+
addressable (2.3.6)
|
18
|
+
builder (3.2.2)
|
19
|
+
descendants_tracker (0.0.4)
|
20
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
21
|
+
diff-lcs (1.2.5)
|
22
|
+
docile (1.1.5)
|
23
|
+
fakeweb (1.3.0)
|
24
|
+
faraday (0.9.0)
|
25
|
+
multipart-post (>= 1.2, < 3)
|
26
|
+
git (1.2.7)
|
27
|
+
github_api (0.11.3)
|
28
|
+
addressable (~> 2.3)
|
29
|
+
descendants_tracker (~> 0.0.1)
|
30
|
+
faraday (~> 0.8, < 0.10)
|
31
|
+
hashie (>= 1.2)
|
32
|
+
multi_json (>= 1.7.5, < 2.0)
|
33
|
+
nokogiri (~> 1.6.0)
|
34
|
+
oauth2
|
35
|
+
hashie (3.1.0)
|
36
|
+
highline (1.6.21)
|
37
|
+
i18n (0.6.9)
|
38
|
+
jeweler (2.0.1)
|
39
|
+
builder
|
40
|
+
bundler (>= 1.0)
|
41
|
+
git (>= 1.2.5)
|
42
|
+
github_api
|
43
|
+
highline (>= 1.6.15)
|
44
|
+
nokogiri (>= 1.5.10)
|
45
|
+
rake
|
46
|
+
rdoc
|
47
|
+
json (1.8.1)
|
48
|
+
jwt (1.0.0)
|
49
|
+
mini_portile (0.6.0)
|
50
|
+
minitest (5.3.5)
|
51
|
+
multi_json (1.10.1)
|
52
|
+
multi_xml (0.5.5)
|
53
|
+
multipart-post (2.0.0)
|
54
|
+
nokogiri (1.6.2.1)
|
55
|
+
mini_portile (= 0.6.0)
|
56
|
+
oauth2 (0.9.4)
|
57
|
+
faraday (>= 0.8, < 0.10)
|
58
|
+
jwt (~> 1.0)
|
59
|
+
multi_json (~> 1.3)
|
60
|
+
multi_xml (~> 0.5)
|
61
|
+
rack (~> 1.2)
|
62
|
+
rack (1.5.2)
|
63
|
+
rails-observers (0.1.2)
|
64
|
+
activemodel (~> 4.0)
|
65
|
+
rake (10.3.2)
|
66
|
+
rdoc (3.12.2)
|
67
|
+
json (~> 1.4)
|
68
|
+
rspec (3.0.0)
|
69
|
+
rspec-core (~> 3.0.0)
|
70
|
+
rspec-expectations (~> 3.0.0)
|
71
|
+
rspec-mocks (~> 3.0.0)
|
72
|
+
rspec-core (3.0.2)
|
73
|
+
rspec-support (~> 3.0.0)
|
74
|
+
rspec-expectations (3.0.2)
|
75
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
76
|
+
rspec-support (~> 3.0.0)
|
77
|
+
rspec-mocks (3.0.2)
|
78
|
+
rspec-support (~> 3.0.0)
|
79
|
+
rspec-support (3.0.2)
|
80
|
+
simplecov (0.8.2)
|
81
|
+
docile (~> 1.1.0)
|
82
|
+
multi_json
|
83
|
+
simplecov-html (~> 0.8.0)
|
84
|
+
simplecov-html (0.8.0)
|
85
|
+
thread_safe (0.3.4)
|
86
|
+
tzinfo (1.2.1)
|
87
|
+
thread_safe (~> 0.1)
|
88
|
+
yard (0.8.7.4)
|
89
|
+
|
90
|
+
PLATFORMS
|
91
|
+
ruby
|
92
|
+
|
93
|
+
DEPENDENCIES
|
94
|
+
activeresource (>= 4.0.0)
|
95
|
+
bundler (~> 1.0)
|
96
|
+
fakeweb (~> 1.3)
|
97
|
+
jeweler (~> 2.0.1)
|
98
|
+
rdoc (~> 3.12)
|
99
|
+
rspec (~> 3.0.0)
|
100
|
+
simplecov
|
101
|
+
yard (~> 0.7)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2014 Vinicius Kastrup
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# Samba Videos API
|
2
|
+
|
3
|
+
TODO: Description goes here.
|
4
|
+
|
5
|
+
## Contributing to samba-videos-api
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
+
* Fork the project.
|
10
|
+
* Start a feature/bugfix branch.
|
11
|
+
* Commit and push until you are happy with your contribution.
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
## Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2014 Edools. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
17
|
+
gem.name = "samba-videos-api"
|
18
|
+
gem.homepage = "http://github.com/Edools/samba-videos-api"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{Ruby wrapper for Samba Videos API}
|
21
|
+
gem.description = %Q{Ruby library for working with Samba Videos data API}
|
22
|
+
gem.email = "viniciusmkm@gmail.com"
|
23
|
+
gem.authors = ["Vinicius Kastrup"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "Code coverage detail"
|
35
|
+
task :simplecov do
|
36
|
+
ENV['COVERAGE'] = "true"
|
37
|
+
Rake::Task['test'].execute
|
38
|
+
end
|
39
|
+
|
40
|
+
task :default => :spec
|
41
|
+
|
42
|
+
require 'yard'
|
43
|
+
YARD::Rake::YardocTask.new
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
data/lib/samba_videos.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: samba-videos-api 0.1.0 ruby lib
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "samba-videos-api"
|
9
|
+
s.version = "0.1.0"
|
10
|
+
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
13
|
+
s.authors = ["Vinicius Kastrup"]
|
14
|
+
s.date = "2014-06-26"
|
15
|
+
s.description = "Ruby library for working with Samba Videos data API"
|
16
|
+
s.email = "viniciusmkm@gmail.com"
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE.txt",
|
19
|
+
"README.md"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
".rspec",
|
24
|
+
".ruby-gemset",
|
25
|
+
".ruby-version",
|
26
|
+
"Gemfile",
|
27
|
+
"Gemfile.lock",
|
28
|
+
"LICENSE.txt",
|
29
|
+
"README.md",
|
30
|
+
"Rakefile",
|
31
|
+
"VERSION",
|
32
|
+
"lib/samba_videos.rb",
|
33
|
+
"lib/samba_videos/base.rb",
|
34
|
+
"lib/samba_videos/category.rb",
|
35
|
+
"lib/samba_videos/initialization.rb",
|
36
|
+
"lib/samba_videos/media.rb",
|
37
|
+
"lib/samba_videos/project.rb",
|
38
|
+
"samba-videos-api.gemspec",
|
39
|
+
"spec/fixtures/categories.json",
|
40
|
+
"spec/fixtures/category.json",
|
41
|
+
"spec/fixtures/media.json",
|
42
|
+
"spec/fixtures/medias.json",
|
43
|
+
"spec/fixtures/project.json",
|
44
|
+
"spec/fixtures/projects.json",
|
45
|
+
"spec/samba_videos/base_spec.rb",
|
46
|
+
"spec/samba_videos/category_spec.rb",
|
47
|
+
"spec/samba_videos/media_spec.rb",
|
48
|
+
"spec/samba_videos/project_spec.rb",
|
49
|
+
"spec/spec_helper.rb"
|
50
|
+
]
|
51
|
+
s.homepage = "http://github.com/Edools/samba-videos-api"
|
52
|
+
s.licenses = ["MIT"]
|
53
|
+
s.rubygems_version = "2.2.2"
|
54
|
+
s.summary = "Ruby wrapper for Samba Videos API"
|
55
|
+
|
56
|
+
if s.respond_to? :specification_version then
|
57
|
+
s.specification_version = 4
|
58
|
+
|
59
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
60
|
+
s.add_runtime_dependency(%q<activeresource>, [">= 4.0.0"])
|
61
|
+
s.add_development_dependency(%q<rspec>, ["~> 3.0.0"])
|
62
|
+
s.add_development_dependency(%q<fakeweb>, ["~> 1.3"])
|
63
|
+
s.add_development_dependency(%q<yard>, ["~> 0.7"])
|
64
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
65
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
66
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
67
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
68
|
+
else
|
69
|
+
s.add_dependency(%q<activeresource>, [">= 4.0.0"])
|
70
|
+
s.add_dependency(%q<rspec>, ["~> 3.0.0"])
|
71
|
+
s.add_dependency(%q<fakeweb>, ["~> 1.3"])
|
72
|
+
s.add_dependency(%q<yard>, ["~> 0.7"])
|
73
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
74
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
75
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
76
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
77
|
+
end
|
78
|
+
else
|
79
|
+
s.add_dependency(%q<activeresource>, [">= 4.0.0"])
|
80
|
+
s.add_dependency(%q<rspec>, ["~> 3.0.0"])
|
81
|
+
s.add_dependency(%q<fakeweb>, ["~> 1.3"])
|
82
|
+
s.add_dependency(%q<yard>, ["~> 0.7"])
|
83
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
84
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
85
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
86
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "Categoria Noticias",
|
4
|
+
"parent": null,
|
5
|
+
"id": 1,
|
6
|
+
"mediasCount": 0,
|
7
|
+
"hidden": false,
|
8
|
+
"genre": null,
|
9
|
+
"connectedAccounts": [],
|
10
|
+
"children": [ ],
|
11
|
+
"system": false,
|
12
|
+
"deleted": false,
|
13
|
+
"leadEnabled": false
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"name": "Categoria Destaques",
|
17
|
+
"parent": null,
|
18
|
+
"id": 2,
|
19
|
+
"mediasCount": 0,
|
20
|
+
"hidden": false,
|
21
|
+
"genre": null,
|
22
|
+
"connectedAccounts": [],
|
23
|
+
"children": [ ],
|
24
|
+
"system": false,
|
25
|
+
"deleted": false,
|
26
|
+
"leadEnabled": false
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"name": "Categoria Futebol",
|
30
|
+
"parent": null,
|
31
|
+
"id": 3,
|
32
|
+
"mediasCount": 0,
|
33
|
+
"hidden": false,
|
34
|
+
"genre": null,
|
35
|
+
"connectedAccounts": [],
|
36
|
+
"children": [ ],
|
37
|
+
"system": false,
|
38
|
+
"deleted": false,
|
39
|
+
"leadEnabled": false
|
40
|
+
}
|
41
|
+
]
|
@@ -0,0 +1,86 @@
|
|
1
|
+
{
|
2
|
+
"id" : "123abc",
|
3
|
+
"title" : "Teste",
|
4
|
+
"status" : "ACTIVE",
|
5
|
+
"qualifier" : "VIDEO",
|
6
|
+
"description" : null,
|
7
|
+
"shortDescription" : null,
|
8
|
+
"categoryName" : "_null",
|
9
|
+
"categoryId" : 0,
|
10
|
+
"postdate" : 1401152294000,
|
11
|
+
"lastModified" : 1402981266000,
|
12
|
+
"publishDate" : 1401219685000,
|
13
|
+
"unpublishDate" : null,
|
14
|
+
"published" : true,
|
15
|
+
"highlighted" : false,
|
16
|
+
"restricted" : false,
|
17
|
+
"secondUrl" : null,
|
18
|
+
"numberOfViews" : 11,
|
19
|
+
"numberOfComments" : 0,
|
20
|
+
"numberOfRatings" : 0,
|
21
|
+
"childStatus" : "ACTIVE",
|
22
|
+
"blocked" : false,
|
23
|
+
"tags" : [ ],
|
24
|
+
"files" : [
|
25
|
+
{
|
26
|
+
"id" : "aaa123",
|
27
|
+
"qualifier" : "VIDEO",
|
28
|
+
"fileName" : "Teste.mp4",
|
29
|
+
"fileSize" : "316613033",
|
30
|
+
"status" : "ACTIVE",
|
31
|
+
"postdate" : 1401152294000,
|
32
|
+
"mimeType" : null,
|
33
|
+
"outputName" : "_RAW",
|
34
|
+
"outputId" : 0,
|
35
|
+
"url" : "http://d.sambavideos.sambatech.com/account/458/4/2014-05-26/video/aaa123/Brand_terms_-_validando_e_ajustando_a_otimizacao.mp4",
|
36
|
+
"fileInfo" : {
|
37
|
+
"qualifier" : "VideoInfoDTO",
|
38
|
+
"duration" : 513000,
|
39
|
+
"bitrate" : 4715520,
|
40
|
+
"framerate" : 29.97,
|
41
|
+
"width" : 1920,
|
42
|
+
"height" : 1080,
|
43
|
+
"videoCodec" : "H264",
|
44
|
+
"audioCodec" : "aac",
|
45
|
+
"audioChannels" : 2,
|
46
|
+
"audioSampleRate" : 48000
|
47
|
+
}
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"id" : "bbb123",
|
51
|
+
"qualifier" : "VIDEO",
|
52
|
+
"fileName" : "Teste.mp4",
|
53
|
+
"fileSize" : "9784840",
|
54
|
+
"status" : "ACTIVE",
|
55
|
+
"postdate" : 1401152407000,
|
56
|
+
"mimeType" : null,
|
57
|
+
"outputName" : "360p",
|
58
|
+
"outputId" : 10001,
|
59
|
+
"url" : "http://d.sambavideos.sambatech.com/account/458/4/2014-05-26/video/bbb123/Brand_terms_-_validando_e_ajustando_a_otimizacao.mp4",
|
60
|
+
"fileInfo" : {
|
61
|
+
"qualifier" : "VideoInfoDTO",
|
62
|
+
"duration" : 513000,
|
63
|
+
"bitrate" : 88064,
|
64
|
+
"framerate" : 29.97,
|
65
|
+
"width" : 640,
|
66
|
+
"height" : 360,
|
67
|
+
"videoCodec" : "H264",
|
68
|
+
"audioCodec" : "aac",
|
69
|
+
"audioChannels" : 2,
|
70
|
+
"audioSampleRate" : 48000
|
71
|
+
}
|
72
|
+
}
|
73
|
+
],
|
74
|
+
"thumbs" : [
|
75
|
+
{
|
76
|
+
"height" : 120,
|
77
|
+
"size" : 3435,
|
78
|
+
"width" : 213,
|
79
|
+
"url" : "http://d.sambavideos.sambatech.com/account/458/4/2014-05-26/thumbnail/ccc123/Brand_terms_-_validando_e_ajustando_a_otimizacaomp4_213x120.jpg",
|
80
|
+
"status" : "ACTIVE"
|
81
|
+
}
|
82
|
+
],
|
83
|
+
"genders" : [ ],
|
84
|
+
"captions" : [ ],
|
85
|
+
"externalPublishings" : [ ]
|
86
|
+
}
|
@@ -0,0 +1,260 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id" : "123abc",
|
4
|
+
"title" : "Teste",
|
5
|
+
"status" : "ACTIVE",
|
6
|
+
"qualifier" : "VIDEO",
|
7
|
+
"description" : null,
|
8
|
+
"shortDescription" : null,
|
9
|
+
"categoryName" : "_null",
|
10
|
+
"categoryId" : 0,
|
11
|
+
"postdate" : 1401152294000,
|
12
|
+
"lastModified" : 1402981266000,
|
13
|
+
"publishDate" : 1401219685000,
|
14
|
+
"unpublishDate" : null,
|
15
|
+
"published" : true,
|
16
|
+
"highlighted" : false,
|
17
|
+
"restricted" : false,
|
18
|
+
"secondUrl" : null,
|
19
|
+
"numberOfViews" : 11,
|
20
|
+
"numberOfComments" : 0,
|
21
|
+
"numberOfRatings" : 0,
|
22
|
+
"childStatus" : "ACTIVE",
|
23
|
+
"blocked" : false,
|
24
|
+
"tags" : [ ],
|
25
|
+
"files" : [
|
26
|
+
{
|
27
|
+
"id" : "aaa123",
|
28
|
+
"qualifier" : "VIDEO",
|
29
|
+
"fileName" : "Teste.mp4",
|
30
|
+
"fileSize" : "316613033",
|
31
|
+
"status" : "ACTIVE",
|
32
|
+
"postdate" : 1401152294000,
|
33
|
+
"mimeType" : null,
|
34
|
+
"outputName" : "_RAW",
|
35
|
+
"outputId" : 0,
|
36
|
+
"url" : "http://d.sambavideos.sambatech.com/account/458/4/2014-05-26/video/aaa123/Brand_terms_-_validando_e_ajustando_a_otimizacao.mp4",
|
37
|
+
"fileInfo" : {
|
38
|
+
"qualifier" : "VideoInfoDTO",
|
39
|
+
"duration" : 513000,
|
40
|
+
"bitrate" : 4715520,
|
41
|
+
"framerate" : 29.97,
|
42
|
+
"width" : 1920,
|
43
|
+
"height" : 1080,
|
44
|
+
"videoCodec" : "H264",
|
45
|
+
"audioCodec" : "aac",
|
46
|
+
"audioChannels" : 2,
|
47
|
+
"audioSampleRate" : 48000
|
48
|
+
}
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"id" : "bbb123",
|
52
|
+
"qualifier" : "VIDEO",
|
53
|
+
"fileName" : "Teste.mp4",
|
54
|
+
"fileSize" : "9784840",
|
55
|
+
"status" : "ACTIVE",
|
56
|
+
"postdate" : 1401152407000,
|
57
|
+
"mimeType" : null,
|
58
|
+
"outputName" : "360p",
|
59
|
+
"outputId" : 10001,
|
60
|
+
"url" : "http://d.sambavideos.sambatech.com/account/458/4/2014-05-26/video/bbb123/Brand_terms_-_validando_e_ajustando_a_otimizacao.mp4",
|
61
|
+
"fileInfo" : {
|
62
|
+
"qualifier" : "VideoInfoDTO",
|
63
|
+
"duration" : 513000,
|
64
|
+
"bitrate" : 88064,
|
65
|
+
"framerate" : 29.97,
|
66
|
+
"width" : 640,
|
67
|
+
"height" : 360,
|
68
|
+
"videoCodec" : "H264",
|
69
|
+
"audioCodec" : "aac",
|
70
|
+
"audioChannels" : 2,
|
71
|
+
"audioSampleRate" : 48000
|
72
|
+
}
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"thumbs" : [
|
76
|
+
{
|
77
|
+
"height" : 120,
|
78
|
+
"size" : 3435,
|
79
|
+
"width" : 213,
|
80
|
+
"url" : "http://d.sambavideos.sambatech.com/account/458/4/2014-05-26/thumbnail/ccc123/Brand_terms_-_validando_e_ajustando_a_otimizacaomp4_213x120.jpg",
|
81
|
+
"status" : "ACTIVE"
|
82
|
+
}
|
83
|
+
],
|
84
|
+
"genders" : [ ],
|
85
|
+
"captions" : [ ],
|
86
|
+
"externalPublishings" : [ ]
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"id" : "456abc",
|
90
|
+
"title" : "Teste2",
|
91
|
+
"status" : "ACTIVE",
|
92
|
+
"qualifier" : "VIDEO",
|
93
|
+
"description" : null,
|
94
|
+
"shortDescription" : null,
|
95
|
+
"categoryName" : "_null",
|
96
|
+
"categoryId" : 0,
|
97
|
+
"postdate" : 1401152294000,
|
98
|
+
"lastModified" : 1402981266000,
|
99
|
+
"publishDate" : 1401219685000,
|
100
|
+
"unpublishDate" : null,
|
101
|
+
"published" : true,
|
102
|
+
"highlighted" : false,
|
103
|
+
"restricted" : false,
|
104
|
+
"secondUrl" : null,
|
105
|
+
"numberOfViews" : 11,
|
106
|
+
"numberOfComments" : 0,
|
107
|
+
"numberOfRatings" : 0,
|
108
|
+
"childStatus" : "ACTIVE",
|
109
|
+
"blocked" : false,
|
110
|
+
"tags" : [ ],
|
111
|
+
"files" : [
|
112
|
+
{
|
113
|
+
"id" : "aaa123",
|
114
|
+
"qualifier" : "VIDEO",
|
115
|
+
"fileName" : "Teste2.mp4",
|
116
|
+
"fileSize" : "316613033",
|
117
|
+
"status" : "ACTIVE",
|
118
|
+
"postdate" : 1401152294000,
|
119
|
+
"mimeType" : null,
|
120
|
+
"outputName" : "_RAW",
|
121
|
+
"outputId" : 0,
|
122
|
+
"url" : "http://d.sambavideos.sambatech.com/account/458/4/2014-05-26/video/aaa123/Brand_terms_-_validando_e_ajustando_a_otimizacao.mp4",
|
123
|
+
"fileInfo" : {
|
124
|
+
"qualifier" : "VideoInfoDTO",
|
125
|
+
"duration" : 513000,
|
126
|
+
"bitrate" : 4715520,
|
127
|
+
"framerate" : 29.97,
|
128
|
+
"width" : 1920,
|
129
|
+
"height" : 1080,
|
130
|
+
"videoCodec" : "H264",
|
131
|
+
"audioCodec" : "aac",
|
132
|
+
"audioChannels" : 2,
|
133
|
+
"audioSampleRate" : 48000
|
134
|
+
}
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"id" : "bbb123",
|
138
|
+
"qualifier" : "VIDEO",
|
139
|
+
"fileName" : "Teste.mp4",
|
140
|
+
"fileSize" : "9784840",
|
141
|
+
"status" : "ACTIVE",
|
142
|
+
"postdate" : 1401152407000,
|
143
|
+
"mimeType" : null,
|
144
|
+
"outputName" : "360p",
|
145
|
+
"outputId" : 10001,
|
146
|
+
"url" : "http://d.sambavideos.sambatech.com/account/458/4/2014-05-26/video/bbb123/Brand_terms_-_validando_e_ajustando_a_otimizacao.mp4",
|
147
|
+
"fileInfo" : {
|
148
|
+
"qualifier" : "VideoInfoDTO",
|
149
|
+
"duration" : 513000,
|
150
|
+
"bitrate" : 88064,
|
151
|
+
"framerate" : 29.97,
|
152
|
+
"width" : 640,
|
153
|
+
"height" : 360,
|
154
|
+
"videoCodec" : "H264",
|
155
|
+
"audioCodec" : "aac",
|
156
|
+
"audioChannels" : 2,
|
157
|
+
"audioSampleRate" : 48000
|
158
|
+
}
|
159
|
+
}
|
160
|
+
],
|
161
|
+
"thumbs" : [
|
162
|
+
{
|
163
|
+
"height" : 120,
|
164
|
+
"size" : 3435,
|
165
|
+
"width" : 213,
|
166
|
+
"url" : "http://d.sambavideos.sambatech.com/account/458/4/2014-05-26/thumbnail/ccc123/Brand_terms_-_validando_e_ajustando_a_otimizacaomp4_213x120.jpg",
|
167
|
+
"status" : "ACTIVE"
|
168
|
+
}
|
169
|
+
],
|
170
|
+
"genders" : [ ],
|
171
|
+
"captions" : [ ],
|
172
|
+
"externalPublishings" : [ ]
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"id" : "789abc",
|
176
|
+
"title" : "Teste3",
|
177
|
+
"status" : "ACTIVE",
|
178
|
+
"qualifier" : "VIDEO",
|
179
|
+
"description" : null,
|
180
|
+
"shortDescription" : null,
|
181
|
+
"categoryName" : "_null",
|
182
|
+
"categoryId" : 0,
|
183
|
+
"postdate" : 1401152294000,
|
184
|
+
"lastModified" : 1402981266000,
|
185
|
+
"publishDate" : 1401219685000,
|
186
|
+
"unpublishDate" : null,
|
187
|
+
"published" : true,
|
188
|
+
"highlighted" : false,
|
189
|
+
"restricted" : false,
|
190
|
+
"secondUrl" : null,
|
191
|
+
"numberOfViews" : 11,
|
192
|
+
"numberOfComments" : 0,
|
193
|
+
"numberOfRatings" : 0,
|
194
|
+
"childStatus" : "ACTIVE",
|
195
|
+
"blocked" : false,
|
196
|
+
"tags" : [ ],
|
197
|
+
"files" : [
|
198
|
+
{
|
199
|
+
"id" : "aaa123",
|
200
|
+
"qualifier" : "VIDEO",
|
201
|
+
"fileName" : "Teste3.mp4",
|
202
|
+
"fileSize" : "316613033",
|
203
|
+
"status" : "ACTIVE",
|
204
|
+
"postdate" : 1401152294000,
|
205
|
+
"mimeType" : null,
|
206
|
+
"outputName" : "_RAW",
|
207
|
+
"outputId" : 0,
|
208
|
+
"url" : "http://d.sambavideos.sambatech.com/account/458/4/2014-05-26/video/aaa123/Brand_terms_-_validando_e_ajustando_a_otimizacao.mp4",
|
209
|
+
"fileInfo" : {
|
210
|
+
"qualifier" : "VideoInfoDTO",
|
211
|
+
"duration" : 513000,
|
212
|
+
"bitrate" : 4715520,
|
213
|
+
"framerate" : 29.97,
|
214
|
+
"width" : 1920,
|
215
|
+
"height" : 1080,
|
216
|
+
"videoCodec" : "H264",
|
217
|
+
"audioCodec" : "aac",
|
218
|
+
"audioChannels" : 2,
|
219
|
+
"audioSampleRate" : 48000
|
220
|
+
}
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"id" : "bbb123",
|
224
|
+
"qualifier" : "VIDEO",
|
225
|
+
"fileName" : "Teste.mp4",
|
226
|
+
"fileSize" : "9784840",
|
227
|
+
"status" : "ACTIVE",
|
228
|
+
"postdate" : 1401152407000,
|
229
|
+
"mimeType" : null,
|
230
|
+
"outputName" : "360p",
|
231
|
+
"outputId" : 10001,
|
232
|
+
"url" : "http://d.sambavideos.sambatech.com/account/458/4/2014-05-26/video/bbb123/Brand_terms_-_validando_e_ajustando_a_otimizacao.mp4",
|
233
|
+
"fileInfo" : {
|
234
|
+
"qualifier" : "VideoInfoDTO",
|
235
|
+
"duration" : 513000,
|
236
|
+
"bitrate" : 88064,
|
237
|
+
"framerate" : 29.97,
|
238
|
+
"width" : 640,
|
239
|
+
"height" : 360,
|
240
|
+
"videoCodec" : "H264",
|
241
|
+
"audioCodec" : "aac",
|
242
|
+
"audioChannels" : 2,
|
243
|
+
"audioSampleRate" : 48000
|
244
|
+
}
|
245
|
+
}
|
246
|
+
],
|
247
|
+
"thumbs" : [
|
248
|
+
{
|
249
|
+
"height" : 120,
|
250
|
+
"size" : 3435,
|
251
|
+
"width" : 213,
|
252
|
+
"url" : "http://d.sambavideos.sambatech.com/account/458/4/2014-05-26/thumbnail/ccc123/Brand_terms_-_validando_e_ajustando_a_otimizacaomp4_213x120.jpg",
|
253
|
+
"status" : "ACTIVE"
|
254
|
+
}
|
255
|
+
],
|
256
|
+
"genders" : [ ],
|
257
|
+
"captions" : [ ],
|
258
|
+
"externalPublishings" : [ ]
|
259
|
+
}
|
260
|
+
]
|
@@ -0,0 +1,41 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": 1,
|
4
|
+
"name": "Teste",
|
5
|
+
"description":"",
|
6
|
+
"defaultOutput":9955,
|
7
|
+
"permission": {
|
8
|
+
"levelId":1,
|
9
|
+
"role":"ADMIN",
|
10
|
+
"categories":[]
|
11
|
+
},
|
12
|
+
"system":false,
|
13
|
+
"deleted":false
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"id": 2,
|
17
|
+
"name":"Teste 2",
|
18
|
+
"description":"",
|
19
|
+
"defaultOutput":9955,
|
20
|
+
"permission": {
|
21
|
+
"levelId":1,
|
22
|
+
"role":"ADMIN",
|
23
|
+
"categories":[]
|
24
|
+
},
|
25
|
+
"system":false,
|
26
|
+
"deleted":false
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"id": 3,
|
30
|
+
"name": "Teste3",
|
31
|
+
"description":"",
|
32
|
+
"defaultOutput":9955,
|
33
|
+
"permission": {
|
34
|
+
"levelId":1,
|
35
|
+
"role":"ADMIN",
|
36
|
+
"categories":[]
|
37
|
+
},
|
38
|
+
"system":false,
|
39
|
+
"deleted":false
|
40
|
+
}
|
41
|
+
]
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe SambaVideos::Base do
|
4
|
+
describe 'location' do
|
5
|
+
it 'sets site to samba videos api url' do
|
6
|
+
expect(SambaVideos::Base.site.to_s).to eq 'http://api.sambavideos.sambatech.com/v1'
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe SambaVideos::Category do
|
4
|
+
it 'finds the category' do
|
5
|
+
FakeWeb.register_uri(
|
6
|
+
:get,
|
7
|
+
'http://api.sambavideos.sambatech.com/v1/categories/1.json?access_token=TOKEN&pid=1',
|
8
|
+
body: File.join(File.dirname(__FILE__), '..', 'fixtures', 'category.json'),
|
9
|
+
status: 200
|
10
|
+
)
|
11
|
+
|
12
|
+
category = SambaVideos::Category.find(1, params: { access_token: 'TOKEN', pid: 1 })
|
13
|
+
|
14
|
+
expect(category.id).to eq 1
|
15
|
+
expect(category.name).to eq 'Categoria Noticias'
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'finds all category' do
|
19
|
+
FakeWeb.register_uri(
|
20
|
+
:get,
|
21
|
+
'http://api.sambavideos.sambatech.com/v1/categories.json?access_token=TOKEN&pid=1',
|
22
|
+
body: File.join(File.dirname(__FILE__), '..', 'fixtures', 'categories.json'),
|
23
|
+
status: 200
|
24
|
+
)
|
25
|
+
|
26
|
+
categorys = SambaVideos::Category.all(params: { access_token: 'TOKEN', pid: 1 })
|
27
|
+
|
28
|
+
expect(categorys.count).to eq 3
|
29
|
+
expect(categorys.first.id).to eq 1
|
30
|
+
expect(categorys.first.name).to eq 'Categoria Noticias'
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe SambaVideos::Media do
|
4
|
+
it 'finds the media' do
|
5
|
+
FakeWeb.register_uri(
|
6
|
+
:get,
|
7
|
+
'http://api.sambavideos.sambatech.com/v1/medias/123abc.json?access_token=TOKEN&pid=1',
|
8
|
+
body: File.join(File.dirname(__FILE__), '..', 'fixtures', 'media.json'),
|
9
|
+
status: 200
|
10
|
+
)
|
11
|
+
|
12
|
+
media = SambaVideos::Media.find('123abc', params: { access_token: 'TOKEN', pid: 1 })
|
13
|
+
|
14
|
+
expect(media.id).to eq '123abc'
|
15
|
+
expect(media.title).to eq 'Teste'
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'finds all media' do
|
19
|
+
FakeWeb.register_uri(
|
20
|
+
:get,
|
21
|
+
'http://api.sambavideos.sambatech.com/v1/medias.json?access_token=TOKEN&pid=1',
|
22
|
+
body: File.join(File.dirname(__FILE__), '..', 'fixtures', 'medias.json'),
|
23
|
+
status: 200
|
24
|
+
)
|
25
|
+
|
26
|
+
medias = SambaVideos::Media.all(params: { access_token: 'TOKEN', pid: 1 })
|
27
|
+
|
28
|
+
expect(medias.count).to eq 3
|
29
|
+
expect(medias.first.id).to eq '123abc'
|
30
|
+
expect(medias.first.title).to eq 'Teste'
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe SambaVideos::Project do
|
4
|
+
it 'finds the project' do
|
5
|
+
FakeWeb.register_uri(
|
6
|
+
:get,
|
7
|
+
'http://api.sambavideos.sambatech.com/v1/projects/1.json?access_token=TOKEN',
|
8
|
+
body: File.join(File.dirname(__FILE__), '..', 'fixtures', 'project.json'),
|
9
|
+
status: 200
|
10
|
+
)
|
11
|
+
|
12
|
+
project = SambaVideos::Project.find(1, params: { access_token: 'TOKEN' })
|
13
|
+
|
14
|
+
expect(project.id).to eq 1
|
15
|
+
expect(project.name).to eq 'Teste'
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'finds all project' do
|
19
|
+
FakeWeb.register_uri(
|
20
|
+
:get,
|
21
|
+
'http://api.sambavideos.sambatech.com/v1/projects.json?access_token=TOKEN',
|
22
|
+
body: File.join(File.dirname(__FILE__), '..', 'fixtures', 'projects.json'),
|
23
|
+
status: 200
|
24
|
+
)
|
25
|
+
|
26
|
+
projects = SambaVideos::Project.all(params: { access_token: 'TOKEN' })
|
27
|
+
|
28
|
+
expect(projects.count).to eq 3
|
29
|
+
expect(projects.first.id).to eq 1
|
30
|
+
expect(projects.first.name).to eq 'Teste'
|
31
|
+
end
|
32
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
|
3
|
+
module SimpleCov::Configuration
|
4
|
+
def clean_filters
|
5
|
+
@filters = []
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
SimpleCov.configure do
|
10
|
+
clean_filters
|
11
|
+
load_profile 'test_frameworks'
|
12
|
+
end
|
13
|
+
|
14
|
+
ENV["COVERAGE"] && SimpleCov.start do
|
15
|
+
add_filter "/.rvm/"
|
16
|
+
end
|
17
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
18
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
19
|
+
|
20
|
+
require 'rspec'
|
21
|
+
require 'fakeweb'
|
22
|
+
require 'samba_videos'
|
23
|
+
|
24
|
+
# Requires supporting files with custom matchers and macros, etc,
|
25
|
+
# in ./support/ and its subdirectories.
|
26
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
27
|
+
|
28
|
+
FakeWeb.allow_net_connect = false
|
29
|
+
|
30
|
+
RSpec.configure do |config|
|
31
|
+
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,185 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: samba-videos-api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Vinicius Kastrup
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activeresource
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.0.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.0.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: fakeweb
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: yard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.7'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.7'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rdoc
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.12'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.12'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: jeweler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.0.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.0.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: simplecov
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: Ruby library for working with Samba Videos data API
|
126
|
+
email: viniciusmkm@gmail.com
|
127
|
+
executables: []
|
128
|
+
extensions: []
|
129
|
+
extra_rdoc_files:
|
130
|
+
- LICENSE.txt
|
131
|
+
- README.md
|
132
|
+
files:
|
133
|
+
- ".document"
|
134
|
+
- ".rspec"
|
135
|
+
- ".ruby-gemset"
|
136
|
+
- ".ruby-version"
|
137
|
+
- Gemfile
|
138
|
+
- Gemfile.lock
|
139
|
+
- LICENSE.txt
|
140
|
+
- README.md
|
141
|
+
- Rakefile
|
142
|
+
- VERSION
|
143
|
+
- lib/samba_videos.rb
|
144
|
+
- lib/samba_videos/base.rb
|
145
|
+
- lib/samba_videos/category.rb
|
146
|
+
- lib/samba_videos/initialization.rb
|
147
|
+
- lib/samba_videos/media.rb
|
148
|
+
- lib/samba_videos/project.rb
|
149
|
+
- samba-videos-api.gemspec
|
150
|
+
- spec/fixtures/categories.json
|
151
|
+
- spec/fixtures/category.json
|
152
|
+
- spec/fixtures/media.json
|
153
|
+
- spec/fixtures/medias.json
|
154
|
+
- spec/fixtures/project.json
|
155
|
+
- spec/fixtures/projects.json
|
156
|
+
- spec/samba_videos/base_spec.rb
|
157
|
+
- spec/samba_videos/category_spec.rb
|
158
|
+
- spec/samba_videos/media_spec.rb
|
159
|
+
- spec/samba_videos/project_spec.rb
|
160
|
+
- spec/spec_helper.rb
|
161
|
+
homepage: http://github.com/Edools/samba-videos-api
|
162
|
+
licenses:
|
163
|
+
- MIT
|
164
|
+
metadata: {}
|
165
|
+
post_install_message:
|
166
|
+
rdoc_options: []
|
167
|
+
require_paths:
|
168
|
+
- lib
|
169
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
179
|
+
requirements: []
|
180
|
+
rubyforge_project:
|
181
|
+
rubygems_version: 2.2.2
|
182
|
+
signing_key:
|
183
|
+
specification_version: 4
|
184
|
+
summary: Ruby wrapper for Samba Videos API
|
185
|
+
test_files: []
|