brightcove_service 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/.gitignore +8 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/brightcove_service.gemspec +30 -0
- data/lib/brightcove_service.rb +85 -0
- data/lib/brightcove_service/base.rb +18 -0
- data/lib/brightcove_service/ingest.rb +77 -0
- data/lib/brightcove_service/version.rb +3 -0
- data/lib/brightcove_service/video.rb +108 -0
- metadata +129 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e13be3e0d160644b576de30918e3926d079da1ae
|
4
|
+
data.tar.gz: a515b16036d5699c539c329df1d0faeed4c3658d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e23870eb9ff727bc828a80aea87bc47689db5ad8cf1ef79b7e273e8735da0312ca54e99afa8bfd8a8a1a6f9edd3c1ac0d5395dea06890c071faba3074bf27e22
|
7
|
+
data.tar.gz: 358b9588c1ea4ee20f6b2243894d77d3ae80fea4b2976fde95986e681e806044c6c0c3cc36fd07f97704d4438193cd8c2854be49342153bcd3307c873b70cdcc
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at anil@joshsoftware.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Anil Maurya
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# BrightcoveService
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/brightcove_service`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'brightcove_service'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install brightcove_service
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/brightcove_service. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the BrightcoveService project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/brightcove_service/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "brightcove_service"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "brightcove_service/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "brightcove_service"
|
8
|
+
spec.version = BrightcoveService::VERSION
|
9
|
+
spec.authors = ["Anil Maurya"]
|
10
|
+
spec.email = ["anil@joshsoftware.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{BrightcoveService Wrapper for Ruby}
|
13
|
+
spec.description = %q{BrightcoveService Wrapper for Ruby}
|
14
|
+
spec.homepage = ""
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_runtime_dependency "aws-sdk-s3", "~> 1"
|
25
|
+
spec.add_runtime_dependency "http", "~> 3.3.0"
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
30
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'brightcove_service/ingest'
|
4
|
+
require 'brightcove_service/video'
|
5
|
+
require 'singleton'
|
6
|
+
require 'http'
|
7
|
+
|
8
|
+
module BrightcoveService
|
9
|
+
class Api
|
10
|
+
include Singleton
|
11
|
+
|
12
|
+
OAUTH_ENDPOINT = 'https://oauth.brightcove.com/v4/access_token'
|
13
|
+
API_ROOT = 'https://cms.api.brightcove.com/v1/accounts'
|
14
|
+
PER_PAGE = 100
|
15
|
+
|
16
|
+
def initialize
|
17
|
+
@client_id = ENV['BRIGHTCOVE_CLIENT_ID']
|
18
|
+
@client_secret = ENV['BRIGHTCOVE_CLIENT_SECRET']
|
19
|
+
@base_url = "#{API_ROOT}/#{ENV['BRIGHTCOVE_ACCOUNT_ID']}"
|
20
|
+
if [@client_id, @client_secret].any? { |c| c.to_s.empty? }
|
21
|
+
raise AuthenticationError, 'Missing Brightcove API credentials'
|
22
|
+
end
|
23
|
+
set_token
|
24
|
+
end
|
25
|
+
|
26
|
+
def create_video(params)
|
27
|
+
perform_action('post', 'videos', params.to_json)
|
28
|
+
end
|
29
|
+
|
30
|
+
def get_s3_url(video_id, filename)
|
31
|
+
perform_action('get', "videos/#{video_id}/upload-urls/#{filename}")
|
32
|
+
end
|
33
|
+
|
34
|
+
def ingest_video_and_assets(video_id, params)
|
35
|
+
perform_action('post', "videos/#{video_id}/ingest-requests", params)
|
36
|
+
end
|
37
|
+
|
38
|
+
def perform_action(request_type, url, params = {})
|
39
|
+
set_token if @token_expires < Time.now
|
40
|
+
@request_type = request_type
|
41
|
+
@url = "#{@base_url}/#{url}"
|
42
|
+
@params = params
|
43
|
+
response = make_request
|
44
|
+
return response.parse if response.code.in? [200, 201]
|
45
|
+
raise StandardError, response.to_s
|
46
|
+
end
|
47
|
+
|
48
|
+
def make_request
|
49
|
+
case @request_type
|
50
|
+
when 'post'
|
51
|
+
http.post(@url, body: @params)
|
52
|
+
when 'get'
|
53
|
+
http.get(@url)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def http
|
58
|
+
HTTP.headers(Authorization: "Bearer #{@token}", 'Content-Type': 'application/json')
|
59
|
+
end
|
60
|
+
|
61
|
+
private
|
62
|
+
|
63
|
+
def set_token
|
64
|
+
response = auth_request
|
65
|
+
token_response = auth_request.parse
|
66
|
+
return update_token(token_response) if response.status == 200
|
67
|
+
raise AuthenticationError, token_response.fetch('error_description')
|
68
|
+
end
|
69
|
+
|
70
|
+
def update_token(token_response)
|
71
|
+
@token = token_response.fetch('access_token')
|
72
|
+
@token_expires = Time.now + token_response.fetch('expires_in')
|
73
|
+
end
|
74
|
+
|
75
|
+
def auth_request
|
76
|
+
HTTP.basic_auth(user: @client_id, pass: @client_secret)
|
77
|
+
.post(OAUTH_ENDPOINT,
|
78
|
+
form: { grant_type: 'client_credentials' })
|
79
|
+
end
|
80
|
+
|
81
|
+
def raise_account_error
|
82
|
+
raise AuthenticationError, 'Token valid but not for the given account_id'
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module BrightcoveService
|
2
|
+
class Base
|
3
|
+
include ActiveModel::Validations
|
4
|
+
|
5
|
+
def add_error(e)
|
6
|
+
errors.add(:base, e.to_s)
|
7
|
+
@result = { error: error_message(e) }
|
8
|
+
end
|
9
|
+
|
10
|
+
def error_message(e)
|
11
|
+
error = JSON.parse(e.to_s)
|
12
|
+
return error unless error.is_a?(Array)
|
13
|
+
error.collect { |obj| obj['message'] }.join(', ')
|
14
|
+
rescue JSON::ParserError
|
15
|
+
return e
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'brightcove_service/base'
|
3
|
+
|
4
|
+
module BrightcoveService
|
5
|
+
class Ingest < Base
|
6
|
+
attr_reader :result, :params
|
7
|
+
validate :validate_params
|
8
|
+
|
9
|
+
def initialize(params)
|
10
|
+
@params = params.to_h
|
11
|
+
end
|
12
|
+
|
13
|
+
def call
|
14
|
+
valid? &&
|
15
|
+
ingest_video
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def ingest_video
|
21
|
+
@result = BrightcoveService::Api.instance.ingest_video_and_assets(params[:video_id],
|
22
|
+
ingest_params.to_json)
|
23
|
+
rescue StandardError => e
|
24
|
+
add_error(e)
|
25
|
+
end
|
26
|
+
|
27
|
+
def validate_params
|
28
|
+
return true if params[:video_id].present? && params[:master_url].present?
|
29
|
+
errors.add(:base, 'invalid params, missing video_id or master_url')
|
30
|
+
@result = { error: 'invalid params' }
|
31
|
+
end
|
32
|
+
|
33
|
+
# rubocop:disable Metrics/AbcSize
|
34
|
+
def ingest_params
|
35
|
+
@ingest_params = { master: master_record }
|
36
|
+
@ingest_params[:text_tracks] = text_tracks if params[:text_tracks]
|
37
|
+
@ingest_params[:audio_tracks] = { masters: audio_tracks } if params[:audio_tracks]
|
38
|
+
@ingest_params[:poster] = { url: params[:poster_url] } if params[:poster_url]
|
39
|
+
@ingest_params[:thumbnail] = { url: params[:thumbnail_url] } if params[:thumbnail_url]
|
40
|
+
@ingest_params
|
41
|
+
end
|
42
|
+
# rubocop:enable Metrics/AbcSize
|
43
|
+
|
44
|
+
def master_record
|
45
|
+
rec = { url: params[:master_url] }
|
46
|
+
return rec if params[:audio_tracks].blank?
|
47
|
+
rec[:audio_tracks] = audio_lang.uniq
|
48
|
+
rec
|
49
|
+
end
|
50
|
+
|
51
|
+
def audio_lang
|
52
|
+
params[:audio_tracks].collect do |_, tracks|
|
53
|
+
{ language: tracks['lang'] }
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def text_tracks
|
58
|
+
params[:text_tracks].collect do |_, tracks|
|
59
|
+
{
|
60
|
+
url: tracks['url'],
|
61
|
+
srclang: tracks['lang'],
|
62
|
+
kind: 'subtitles'
|
63
|
+
}
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
def audio_tracks
|
68
|
+
params[:audio_tracks].collect do |_, tracks|
|
69
|
+
{
|
70
|
+
url: tracks['url'],
|
71
|
+
language: tracks['lang'],
|
72
|
+
variant: 'descriptive'
|
73
|
+
}
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'brightcove_service/base'
|
3
|
+
require 'aws-sdk-s3'
|
4
|
+
|
5
|
+
module BrightcoveService
|
6
|
+
class Video < Base
|
7
|
+
attr_reader :result, :params, :brightcove_video
|
8
|
+
validate :long_form_video
|
9
|
+
|
10
|
+
def initialize(params)
|
11
|
+
@params = params
|
12
|
+
end
|
13
|
+
|
14
|
+
def call
|
15
|
+
valid? &&
|
16
|
+
create_videos_on_brightcove &&
|
17
|
+
set_result
|
18
|
+
rescue StandardError => e
|
19
|
+
add_error(e)
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def long_form_video
|
25
|
+
return true if params['assets']&.values&.any? do |a|
|
26
|
+
a['type'] == 'long_form_video'
|
27
|
+
end
|
28
|
+
errors.add(:base, 'long_form_video required')
|
29
|
+
@result = { error: 'long_form_video required' }
|
30
|
+
end
|
31
|
+
|
32
|
+
def create_videos_on_brightcove
|
33
|
+
@brightcove_video = BrightcoveService::Api.instance.create_video(brightcove_video_params)
|
34
|
+
end
|
35
|
+
|
36
|
+
def brightcove_video_params
|
37
|
+
video_params = { name: asset_title,
|
38
|
+
reference_id: params[:brightcove_reference_id] }
|
39
|
+
video_params[:geo] = geo_params if params[:restricted] == 'true'
|
40
|
+
video_params[:schedule] = schedule_params if date_params?
|
41
|
+
video_params
|
42
|
+
end
|
43
|
+
|
44
|
+
def asset_title
|
45
|
+
params[:title_en] || params[:title_id]
|
46
|
+
end
|
47
|
+
|
48
|
+
def date_params?
|
49
|
+
params[:start_date].present? || params[:end_date].present?
|
50
|
+
end
|
51
|
+
|
52
|
+
def geo_params
|
53
|
+
{
|
54
|
+
restricted: params[:restricted] == 'true',
|
55
|
+
exclude_countries: params[:exclude_countries] == 'true',
|
56
|
+
countries: params[:countries].reject(&:blank?).map(&:downcase)
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
def schedule_params
|
61
|
+
{
|
62
|
+
starts_at: parsed_time(params[:start_date]),
|
63
|
+
ends_at: parsed_time(params[:end_date])
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
def parsed_time(time)
|
68
|
+
time && Time.parse(time).in_time_zone.strftime('%Y-%m-%dT%H:%M:%S.%LZ')
|
69
|
+
end
|
70
|
+
|
71
|
+
def set_result
|
72
|
+
@result = s3_urls
|
73
|
+
end
|
74
|
+
|
75
|
+
# rubocop:disable Metrics/AbcSize
|
76
|
+
def s3_urls
|
77
|
+
urls = []
|
78
|
+
params[:assets].each do |filename, values|
|
79
|
+
next if values['name'].blank?
|
80
|
+
result = BrightcoveService::Api.instance.get_s3_url(brightcove_video['id'], filename)
|
81
|
+
urls.push(video_id: brightcove_video['id'],
|
82
|
+
presigned_url: signed_url(filename, result),
|
83
|
+
request_url: result['api_request_url'],
|
84
|
+
filename: filename)
|
85
|
+
end
|
86
|
+
urls
|
87
|
+
end
|
88
|
+
# rubocop:enable Metrics/AbcSize
|
89
|
+
|
90
|
+
def signed_url(_filename, result)
|
91
|
+
signer = Aws::S3::Presigner.new(client: s3_client(result))
|
92
|
+
signer.presigned_url(
|
93
|
+
:put_object,
|
94
|
+
bucket: result['bucket'],
|
95
|
+
key: result['object_key']
|
96
|
+
)
|
97
|
+
end
|
98
|
+
|
99
|
+
def s3_client(result)
|
100
|
+
Aws::S3::Client.new(
|
101
|
+
region: 'us-east-1',
|
102
|
+
access_key_id: result['access_key_id'],
|
103
|
+
secret_access_key: result['secret_access_key'],
|
104
|
+
session_token: result['session_token']
|
105
|
+
)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
metadata
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: brightcove_service
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Anil Maurya
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-09-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: aws-sdk-s3
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: http
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.3.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.3.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.16'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.16'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '5.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '5.0'
|
83
|
+
description: BrightcoveService Wrapper for Ruby
|
84
|
+
email:
|
85
|
+
- anil@joshsoftware.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".travis.yml"
|
92
|
+
- CODE_OF_CONDUCT.md
|
93
|
+
- Gemfile
|
94
|
+
- LICENSE.txt
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- bin/console
|
98
|
+
- bin/setup
|
99
|
+
- brightcove_service.gemspec
|
100
|
+
- lib/brightcove_service.rb
|
101
|
+
- lib/brightcove_service/base.rb
|
102
|
+
- lib/brightcove_service/ingest.rb
|
103
|
+
- lib/brightcove_service/version.rb
|
104
|
+
- lib/brightcove_service/video.rb
|
105
|
+
homepage: ''
|
106
|
+
licenses:
|
107
|
+
- MIT
|
108
|
+
metadata: {}
|
109
|
+
post_install_message:
|
110
|
+
rdoc_options: []
|
111
|
+
require_paths:
|
112
|
+
- lib
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 2.6.14
|
126
|
+
signing_key:
|
127
|
+
specification_version: 4
|
128
|
+
summary: BrightcoveService Wrapper for Ruby
|
129
|
+
test_files: []
|