jani-converter_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +3 -0
- data/Gemfile +10 -0
- data/Guardfile +17 -0
- data/LICENSE.txt +22 -0
- data/README.md +67 -0
- data/Rakefile +6 -0
- data/jani-converter_client.gemspec +28 -0
- data/lib/jani/converter_client.rb +14 -0
- data/lib/jani/converter_client/connection.rb +40 -0
- data/lib/jani/converter_client/response.rb +18 -0
- data/lib/jani/converter_client/version.rb +5 -0
- data/spec/jani/converter_client/connection_spec.rb +104 -0
- data/spec/jani/converter_client_spec.rb +12 -0
- data/spec/spec_helper.rb +92 -0
- metadata +146 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 741071a1526337bd0dbd9400a746a37b7637c628
|
4
|
+
data.tar.gz: 5d652dda02f7795515eab6d397ef4d9ea0cb0c3b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d68b4609fc0748a69387162dc8eeeba8016ef4abdcfec3060ca068f47b48717ca4040973fc3657e6c20d0fc3a463b22966a1c6239ed0546b527acba7e1eb2c7a
|
7
|
+
data.tar.gz: ee5925bccdc1b9981941f526889104a7fe1b6ac79c8565b274de12492452c00eacb4567a880a585a5cf4707ecd2e2b0c0c7cf2a29a6934f9643a2e534c5c67aa
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
5
|
+
# rspec may be run, below are examples of the most common uses.
|
6
|
+
# * bundler: 'bundle exec rspec'
|
7
|
+
# * bundler binstubs: 'bin/rspec'
|
8
|
+
# * spring: 'bin/rsspec' (This will use spring if running and you have
|
9
|
+
# installed the spring binstubs per the docs)
|
10
|
+
# * zeus: 'zeus rspec' (requires the server to be started separetly)
|
11
|
+
# * 'just' rspec: 'rspec'
|
12
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
13
|
+
watch(%r{^spec/.+_spec\.rb$})
|
14
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
15
|
+
watch('spec/spec_helper.rb') { "spec" }
|
16
|
+
end
|
17
|
+
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Shin'ichi Ohno
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# Jani::ConverterClient
|
2
|
+
|
3
|
+
API client for jani-converter.
|
4
|
+
Implemented as a thin layer on top of faraday.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'jani-converter_client'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install jani-converter_client
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require "jani/converter_client"
|
26
|
+
conn = Jani::ConverterClient.new(base_url: "http://localhost:3000/movies")
|
27
|
+
response = conn.get_movie("43c76def-6ba6-44cf-9899-4311cb877d07")
|
28
|
+
response.movie.uuid #=> 43c76def-6ba6-44cf-9899-4311cb877d07
|
29
|
+
response.status #=> 200
|
30
|
+
|
31
|
+
response = conn.post_movie(
|
32
|
+
{
|
33
|
+
fps: fps,
|
34
|
+
frame_height: frame_height,
|
35
|
+
frame_width: frame_width,
|
36
|
+
remote_movie_url: "https://example.com/video.mp4",
|
37
|
+
postroll_banner: {
|
38
|
+
url: banner_link_url,
|
39
|
+
remote_image_url: "http://example.com/banner_1.jpg",
|
40
|
+
},
|
41
|
+
loading_banner: {
|
42
|
+
remote_image_url: "http://example.com/banner_2.jpg",
|
43
|
+
},
|
44
|
+
tracking_events: {
|
45
|
+
foo: {
|
46
|
+
label: tracking_event_label,
|
47
|
+
url: tracking_event_url,
|
48
|
+
request_type: tracking_event_request_type,
|
49
|
+
},
|
50
|
+
}
|
51
|
+
},
|
52
|
+
callback_url: "http://localhost:3000/encode_complete_callback"
|
53
|
+
)
|
54
|
+
|
55
|
+
response.status #=> 201: created
|
56
|
+
response.movie.uuid #=> server generates uuid and returns it
|
57
|
+
response.movie.fps #=> fps
|
58
|
+
# other attributes...
|
59
|
+
```
|
60
|
+
|
61
|
+
## Contributing
|
62
|
+
|
63
|
+
1. Fork it ( https://github.com/shin1ohno/jani-converter_client/fork )
|
64
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
65
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
66
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
67
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'jani/converter_client/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "jani-converter_client"
|
8
|
+
spec.version = Jani::ConverterClient::VERSION
|
9
|
+
spec.authors = ["Shin'ichi Ohno"]
|
10
|
+
spec.email = ["shin1ohno@me.com"]
|
11
|
+
spec.summary = %q{API client for jani-converter.}
|
12
|
+
spec.description = %q{API client for jani-converter.}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "faraday"
|
22
|
+
spec.add_dependency "jani-from_json"
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec"
|
27
|
+
spec.add_development_dependency "rspec-collection_matchers"
|
28
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require "jani/converter_client/version"
|
2
|
+
require "jani/converter_client/connection"
|
3
|
+
|
4
|
+
module Jani
|
5
|
+
module ConverterClient
|
6
|
+
class << self
|
7
|
+
def new(base_url: base_url)
|
8
|
+
return unless base_url
|
9
|
+
@base_url = base_url
|
10
|
+
Jani::ConverterClient::Connection.new(base_url)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require "jani/from_json"
|
2
|
+
require "jani/converter_client/response"
|
3
|
+
require "faraday"
|
4
|
+
|
5
|
+
class Jani::ConverterClient::Connection
|
6
|
+
def initialize(base_url)
|
7
|
+
@base_url = base_url
|
8
|
+
end
|
9
|
+
|
10
|
+
def get_movie(uuid)
|
11
|
+
Jani::ConverterClient::Response.new(
|
12
|
+
connection.get("uuid/#{uuid}.json")
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
def post_movie(movie_data: movie_data, callback_url: callback_url)
|
17
|
+
Jani::ConverterClient::Response.new(
|
18
|
+
connection.post() do |req|
|
19
|
+
req.url "#{@base_url}.json"
|
20
|
+
req.headers['Content-Type'] = 'application/json'
|
21
|
+
req.body = {
|
22
|
+
movie: {
|
23
|
+
fps: movie_data[:fps],
|
24
|
+
frame_height: movie_data[:frame_height],
|
25
|
+
frame_width: movie_data[:frame_width],
|
26
|
+
remote_movie_url: movie_data[:remote_movie_url],
|
27
|
+
postroll_banner_attributes: movie_data[:postroll_banner],
|
28
|
+
loading_banner_attributes: movie_data[:loading_banner],
|
29
|
+
tracking_events: movie_data[:tracking_events],
|
30
|
+
},
|
31
|
+
callback_url: callback_url
|
32
|
+
}.to_json
|
33
|
+
end
|
34
|
+
)
|
35
|
+
end
|
36
|
+
|
37
|
+
def connection
|
38
|
+
@connection ||= Faraday.new(url: @base_url)
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require "forwardable"
|
2
|
+
require "jani/from_json"
|
3
|
+
|
4
|
+
class Jani::ConverterClient::Response
|
5
|
+
extend Forwardable
|
6
|
+
attr_reader :movie
|
7
|
+
def_delegators :@http_response, :status, :headers, :body, :success?
|
8
|
+
|
9
|
+
def initialize(http_response)
|
10
|
+
@http_response = http_response
|
11
|
+
|
12
|
+
@movie = if success?
|
13
|
+
Jani::FromJson.to_movie(http_response.body)
|
14
|
+
else
|
15
|
+
Jani::FromJson.empty_movie
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
require "jani/converter_client/connection"
|
2
|
+
|
3
|
+
RSpec.describe Jani::ConverterClient::Connection do
|
4
|
+
let(:connection) { Jani::ConverterClient::Connection.new("http://localhost:3000/movies") }
|
5
|
+
|
6
|
+
describe "#get_movie" do
|
7
|
+
subject(:response) { connection.get_movie(uuid) }
|
8
|
+
|
9
|
+
context "given valid uuid" do
|
10
|
+
let(:uuid) { "ed92fded-d1fe-4cc8-a254-032015eb25a0" }
|
11
|
+
|
12
|
+
it "returns the movie" do
|
13
|
+
is_expected.to be_success
|
14
|
+
expect(response.movie.uuid).to eq uuid
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
context "given non existing uuid" do
|
19
|
+
let(:uuid) { "a" }
|
20
|
+
|
21
|
+
it "returns empty movie" do
|
22
|
+
is_expected.not_to be_success
|
23
|
+
expect(response.status).to eq 404
|
24
|
+
expect(response.movie.uuid).to be_nil
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context "given no uuid" do
|
29
|
+
let(:uuid) { nil }
|
30
|
+
|
31
|
+
it "returns empty movie" do
|
32
|
+
is_expected.not_to be_success
|
33
|
+
expect(response.status).to eq 404
|
34
|
+
expect(response.movie.uuid).to be_nil
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
describe "#post_movie" do
|
40
|
+
subject(:response) { connection.post_movie(movie_data: movie_data, callback_url: callback_url) }
|
41
|
+
let(:callback_url) { "http://localhost:3000/encode_complete_callback" }
|
42
|
+
|
43
|
+
context "given nil movie data" do
|
44
|
+
let(:movie_data) { nil }
|
45
|
+
|
46
|
+
it "returns the empty movie" do
|
47
|
+
is_expected.not_to be_success
|
48
|
+
expect(response.status).to eq 400
|
49
|
+
expect(response.movie.uuid).to be_nil
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
context "given valid movie data" do
|
54
|
+
let(:movie_data) do
|
55
|
+
{
|
56
|
+
fps: fps,
|
57
|
+
frame_height: frame_height,
|
58
|
+
frame_width: frame_width,
|
59
|
+
remote_movie_url: "http://example.com/video.mp4",
|
60
|
+
postroll_banner: {
|
61
|
+
url: banner_link_url,
|
62
|
+
remote_image_url: "http://example.com/frame0019.jpg",
|
63
|
+
},
|
64
|
+
loading_banner: {
|
65
|
+
remote_image_url: "http://example.com/frame0467.jpg",
|
66
|
+
},
|
67
|
+
tracking_events: {
|
68
|
+
foo: {
|
69
|
+
label: tracking_event_label,
|
70
|
+
url: tracking_event_url,
|
71
|
+
request_type: tracking_event_request_type,
|
72
|
+
},
|
73
|
+
}
|
74
|
+
}
|
75
|
+
end
|
76
|
+
|
77
|
+
let(:fps) { 30 }
|
78
|
+
let(:frame_width) { 640 }
|
79
|
+
let(:frame_height) { 360 }
|
80
|
+
let(:banner_link_url) { "http://example.com/?postroll" }
|
81
|
+
let(:tracking_event_url) { "/foo" }
|
82
|
+
let(:tracking_event_label) { "/foo" }
|
83
|
+
let(:tracking_event_request_type) { "xhr" }
|
84
|
+
|
85
|
+
it "returns created movie" do
|
86
|
+
is_expected.to be_success
|
87
|
+
expect(response.status).to eq 201
|
88
|
+
expect(response.movie.uuid).not_to be_nil
|
89
|
+
expect(response.movie.fps).to eq fps
|
90
|
+
expect(response.movie.frame_width).to eq frame_width
|
91
|
+
expect(response.movie.frame_height).to eq frame_height
|
92
|
+
|
93
|
+
expect(response.movie.loading_banner.image_url).to end_with "frame0467.jpg"
|
94
|
+
|
95
|
+
expect(response.movie.postroll_banner.image_url).to end_with "frame0019.jpg"
|
96
|
+
expect(response.movie.postroll_banner.url).to eq banner_link_url
|
97
|
+
|
98
|
+
expect(response.movie.tracking_events[0].label).to eq tracking_event_label
|
99
|
+
expect(response.movie.tracking_events[0].request_type).to eq tracking_event_request_type
|
100
|
+
expect(response.movie.tracking_events[0].url).to eq tracking_event_url
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require "jani/converter_client"
|
2
|
+
require "faraday"
|
3
|
+
|
4
|
+
RSpec.describe Jani::ConverterClient do
|
5
|
+
describe ".new" do
|
6
|
+
subject { Jani::ConverterClient.new(base_url: "http://localhost:3000/movies/") }
|
7
|
+
|
8
|
+
it "returns connection" do
|
9
|
+
is_expected.to be_a_kind_of Jani::ConverterClient::Connection
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
require 'rspec/collection_matchers'
|
2
|
+
require "codeclimate-test-reporter"
|
3
|
+
|
4
|
+
if ENV["CI"]
|
5
|
+
CodeClimate::TestReporter.start
|
6
|
+
end
|
7
|
+
|
8
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
9
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
10
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
11
|
+
# file to always be loaded, without a need to explicitly require it in any files.
|
12
|
+
#
|
13
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
14
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
15
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
16
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
17
|
+
# a separate helper file that requires the additional dependencies and performs
|
18
|
+
# the additional setup, and require it from the spec files that actually need it.
|
19
|
+
#
|
20
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
21
|
+
# users commonly want.
|
22
|
+
#
|
23
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
24
|
+
RSpec.configure do |config|
|
25
|
+
# rspec-expectations config goes here. You can use an alternate
|
26
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
27
|
+
# assertions if you prefer.
|
28
|
+
config.expect_with :rspec do |expectations|
|
29
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
30
|
+
# and `failure_message` of custom matchers include text for helper methods
|
31
|
+
# defined using `chain`, e.g.:
|
32
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
33
|
+
# # => "be bigger than 2 and smaller than 4"
|
34
|
+
# ...rather than:
|
35
|
+
# # => "be bigger than 2"
|
36
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
37
|
+
end
|
38
|
+
|
39
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
40
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
41
|
+
config.mock_with :rspec do |mocks|
|
42
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
43
|
+
# a real object. This is generally recommended, and will default to
|
44
|
+
# `true` in RSpec 4.
|
45
|
+
mocks.verify_partial_doubles = true
|
46
|
+
end
|
47
|
+
|
48
|
+
# These two settings work together to allow you to limit a spec run
|
49
|
+
# to individual examples or groups you care about by tagging them with
|
50
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
51
|
+
# get run.
|
52
|
+
config.filter_run :focus
|
53
|
+
config.run_all_when_everything_filtered = true
|
54
|
+
|
55
|
+
# Limits the available syntax to the non-monkey patched syntax that is recommended.
|
56
|
+
# For more details, see:
|
57
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
58
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
59
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
60
|
+
config.disable_monkey_patching!
|
61
|
+
|
62
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
63
|
+
# be too noisy due to issues in dependencies.
|
64
|
+
config.warnings = true
|
65
|
+
|
66
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
67
|
+
# file, and it's useful to allow more verbose output when running an
|
68
|
+
# individual spec file.
|
69
|
+
if config.files_to_run.one?
|
70
|
+
# Use the documentation formatter for detailed output,
|
71
|
+
# unless a formatter has already been configured
|
72
|
+
# (e.g. via a command-line flag).
|
73
|
+
config.default_formatter = 'doc'
|
74
|
+
end
|
75
|
+
|
76
|
+
# Print the 10 slowest examples and example groups at the
|
77
|
+
# end of the spec run, to help surface which specs are running
|
78
|
+
# particularly slow.
|
79
|
+
config.profile_examples = 10
|
80
|
+
|
81
|
+
# Run specs in random order to surface order dependencies. If you find an
|
82
|
+
# order dependency and want to debug it, you can fix the order by providing
|
83
|
+
# the seed, which is printed after each run.
|
84
|
+
# --seed 1234
|
85
|
+
config.order = :random
|
86
|
+
|
87
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
88
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
89
|
+
# test failures related to randomization by passing the same `--seed` value
|
90
|
+
# as the one that triggered the failure.
|
91
|
+
Kernel.srand config.seed
|
92
|
+
end
|
metadata
ADDED
@@ -0,0 +1,146 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jani-converter_client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Shin'ichi Ohno
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-11-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jani-from_json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '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.7'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.7'
|
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: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-collection_matchers
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: API client for jani-converter.
|
98
|
+
email:
|
99
|
+
- shin1ohno@me.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- Gemfile
|
107
|
+
- Guardfile
|
108
|
+
- LICENSE.txt
|
109
|
+
- README.md
|
110
|
+
- Rakefile
|
111
|
+
- jani-converter_client.gemspec
|
112
|
+
- lib/jani/converter_client.rb
|
113
|
+
- lib/jani/converter_client/connection.rb
|
114
|
+
- lib/jani/converter_client/response.rb
|
115
|
+
- lib/jani/converter_client/version.rb
|
116
|
+
- spec/jani/converter_client/connection_spec.rb
|
117
|
+
- spec/jani/converter_client_spec.rb
|
118
|
+
- spec/spec_helper.rb
|
119
|
+
homepage: ''
|
120
|
+
licenses:
|
121
|
+
- MIT
|
122
|
+
metadata: {}
|
123
|
+
post_install_message:
|
124
|
+
rdoc_options: []
|
125
|
+
require_paths:
|
126
|
+
- lib
|
127
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
requirements: []
|
138
|
+
rubyforge_project:
|
139
|
+
rubygems_version: 2.4.2
|
140
|
+
signing_key:
|
141
|
+
specification_version: 4
|
142
|
+
summary: API client for jani-converter.
|
143
|
+
test_files:
|
144
|
+
- spec/jani/converter_client/connection_spec.rb
|
145
|
+
- spec/jani/converter_client_spec.rb
|
146
|
+
- spec/spec_helper.rb
|