oas_contrib 0.1.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.
- checksums.yaml +7 -0
- data/.gitignore +51 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +81 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/oas_contrib +4 -0
- data/lib/oas_contrib.rb +8 -0
- data/lib/oas_contrib/command.rb +68 -0
- data/lib/oas_contrib/command_util.rb +92 -0
- data/lib/oas_contrib/version.rb +4 -0
- data/oas_contrib.gemspec +27 -0
- metadata +115 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3f307976e1fa84f0bcde3240b18bafb10f69cea84bb4b04560956ed1d085b337
|
4
|
+
data.tar.gz: ed0247bc4d18fa7b830050aec0fd879264bc4261272fa7e559df8711765d9636
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8366c0a1a36f68234baf045960f450d160fd61f7977ce19743a9bde3d7456dbc8315009e8f03845f0ab26c4f779980a540b6087794ff6ab32e66a85a3a9c602b
|
7
|
+
data.tar.gz: 0d3b58e9cbf30595d6f088b632b5a3237b1d5595397bb96e27b34c9baecb1dbbdf2f6129d5683ace381af2603535514318f4e52b999724f44e4081d8f14f310b
|
data/.gitignore
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
# .env
|
15
|
+
|
16
|
+
## Specific to RubyMotion:
|
17
|
+
.dat*
|
18
|
+
.repl_history
|
19
|
+
build/
|
20
|
+
*.bridgesupport
|
21
|
+
build-iPhoneOS/
|
22
|
+
build-iPhoneSimulator/
|
23
|
+
|
24
|
+
## Specific to RubyMotion (use of CocoaPods):
|
25
|
+
#
|
26
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
27
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
28
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
29
|
+
#
|
30
|
+
# vendor/Pods/
|
31
|
+
|
32
|
+
## Documentation cache and generated files:
|
33
|
+
/.yardoc/
|
34
|
+
/_yardoc/
|
35
|
+
/doc/
|
36
|
+
/rdoc/
|
37
|
+
|
38
|
+
## Environment normalization:
|
39
|
+
/.bundle/
|
40
|
+
/vendor/bundle
|
41
|
+
/lib/bundler/man/
|
42
|
+
Gemfile.lock
|
43
|
+
|
44
|
+
# for a library or gem, you might want to ignore these files since the code is
|
45
|
+
# intended to run in multiple environments; otherwise, check them in:
|
46
|
+
# Gemfile.lock
|
47
|
+
# .ruby-version
|
48
|
+
# .ruby-gemset
|
49
|
+
|
50
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
51
|
+
.rvmrc
|
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 shimizumichinao@lifull.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 “Michinao Shimizu"
|
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,81 @@
|
|
1
|
+
# oas_contrib
|
2
|
+
|
3
|
+
Libraries and commands for OpenAPI Specification.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'oas_contrib'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install oas_contrib
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
### Divide command
|
24
|
+
|
25
|
+
Divide the OAS file into path units and schema units.
|
26
|
+
|
27
|
+
`$ oas_contrib divide <input_file_path> <output_directory_path> (OPTIONS)`
|
28
|
+
|
29
|
+
__Options__
|
30
|
+
|
31
|
+
* `--in_type` input file type (`yaml` or `json`, default `yaml`)
|
32
|
+
* `--out_type` output file type (`yaml` or `json`, default `yaml`)
|
33
|
+
|
34
|
+
You can below 4 case:
|
35
|
+
|
36
|
+
* JSON OAS file -> JSON files
|
37
|
+
* YAML OAS file -> YAML files
|
38
|
+
* JSON OAS file -> YAML files
|
39
|
+
* YAML OAS file -> JSON files
|
40
|
+
|
41
|
+
### Merge command
|
42
|
+
|
43
|
+
Merge multiple divided files into an OAS file.
|
44
|
+
|
45
|
+
`$ oas_contrib merge <input_directory_path> <output_file_path> (OPTIONS)`
|
46
|
+
|
47
|
+
__Options__
|
48
|
+
|
49
|
+
* `--in_type` input file type (`yaml` or `json`, default `yaml`)
|
50
|
+
* `--out_type` output file type (`yaml` or `json`, default `yaml`)
|
51
|
+
|
52
|
+
You can below 4 case:
|
53
|
+
|
54
|
+
* JSON files -> JSON OAS file
|
55
|
+
* YAML files -> YAML OAS file
|
56
|
+
* JSON files -> YAML OAS file
|
57
|
+
* YAML files -> JSON OAS file
|
58
|
+
|
59
|
+
### Preview command
|
60
|
+
|
61
|
+
Preview OAS file using Swagger-UI official Docker image.
|
62
|
+
|
63
|
+
The preview command needs docker.
|
64
|
+
|
65
|
+
`$ oas_contrib preview <input_file> (OPTIONS)`
|
66
|
+
|
67
|
+
__Options__
|
68
|
+
|
69
|
+
* `--port` Swagger UI listen port (default `50010`)
|
70
|
+
|
71
|
+
## Contributing
|
72
|
+
|
73
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/MichinaoShimizu/oas_contrib. 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.
|
74
|
+
|
75
|
+
## License
|
76
|
+
|
77
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
78
|
+
|
79
|
+
## Code of Conduct
|
80
|
+
|
81
|
+
Everyone interacting in the OasContrib project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/MichinaoShimizu/oas_contrib/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 'oas_contrib'
|
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
data/exe/oas_contrib
ADDED
data/lib/oas_contrib.rb
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require 'oas_contrib/command_util'
|
3
|
+
|
4
|
+
module OasContrib
|
5
|
+
# OAS contrib commands
|
6
|
+
# @author Michinao Shimizu
|
7
|
+
class Command < Thor
|
8
|
+
include CommandUtil
|
9
|
+
|
10
|
+
option :in_type, :type => :string, :aliases => '-it', :default => 'yaml', :desc => 'input file type (yaml or json)'
|
11
|
+
option :out_type, :type => :string, :aliases => '-ot', :default => 'yaml', :desc => 'output file type (yaml or json)'
|
12
|
+
desc 'divide <input_file_path> <output_directory_path>', 'Divide the OAS file into path units and schema units.'
|
13
|
+
|
14
|
+
# Divide the OAS file into path units and schema units
|
15
|
+
# @param [String] in_file input file path
|
16
|
+
# @param [String] out_dir output directory path
|
17
|
+
# @return [Boolean]
|
18
|
+
def divide(in_file, out_dir)
|
19
|
+
raise ArgumentError, "in_file:[#{in_file}] is not exists." unless File.exist?(in_file)
|
20
|
+
in_type = options['in_type']
|
21
|
+
out_type = options['out_type']
|
22
|
+
meta_file, path_dir, schema_dir = env_paths(out_dir, out_type)
|
23
|
+
hash = input_solo(in_file, in_type)
|
24
|
+
FileUtils.mkdir_p(path_dir)
|
25
|
+
FileUtils.mkdir_p(schema_dir)
|
26
|
+
output_solo(meta_filter(hash), meta_file, out_type)
|
27
|
+
output_multi(hash['paths'], path_dir, out_type)
|
28
|
+
output_multi(hash['components']['schemas'], schema_dir, out_type)
|
29
|
+
end
|
30
|
+
|
31
|
+
option :in_type, :type => :string, :aliases => '-it', :default => 'yaml', :desc => 'input file type (yaml or json)'
|
32
|
+
option :out_type, :type => :string, :aliases => '-ot', :default => 'yaml', :desc => 'output file type (yaml or json)'
|
33
|
+
desc 'merge <input_directory_path> <output_file_path>', 'Merge multiple divided files into an OAS file.'
|
34
|
+
|
35
|
+
# Merge multiple divided files into an OAS file.
|
36
|
+
# @param [String] in_dir input directory path
|
37
|
+
# @param [String] out_file output file path
|
38
|
+
# @return [Boolean]
|
39
|
+
def merge(in_dir, out_file)
|
40
|
+
raise ArgumentError, "in_dir:[#{in_dir}] is not exists." unless File.exist?(in_dir)
|
41
|
+
in_type = options['in_type']
|
42
|
+
out_type = options['out_type']
|
43
|
+
meta_file, path_dir, schema_dir = env_paths(in_dir, in_type)
|
44
|
+
hash = input_solo(meta_file, in_type)
|
45
|
+
hash['components'] = {}
|
46
|
+
hash['paths'] = input_multi(path_dir, in_type)
|
47
|
+
hash['components']['schemas'] = input_multi(schema_dir, in_type)
|
48
|
+
output_solo(hash, out_file, out_type)
|
49
|
+
end
|
50
|
+
|
51
|
+
option :port, :type => :string, :aliases => '-p', :default => '50010', :desc => 'Swagger UI listen port'
|
52
|
+
desc 'preview <input_file>', 'Preview OAS file using Swagger-UI official Docker image.'
|
53
|
+
|
54
|
+
# Preview OAS file using Swagger-UI official Docker image.
|
55
|
+
# @param [String] in_file input file path
|
56
|
+
# @return [Boolean] return code
|
57
|
+
def preview(in_file)
|
58
|
+
raise ArgumentError, "in_file:[#{in_file}] is not exists." unless File.exist?(in_file)
|
59
|
+
port = options['port']
|
60
|
+
path = File.expand_path(in_file)
|
61
|
+
basename = File.basename(path)
|
62
|
+
puts "SwaggerUI listen: http://localhost:#{port} with: #{in_file}"
|
63
|
+
Kernel.exec "docker run --rm --name oas_contrib_preview_swagger_ui \
|
64
|
+
-p #{port}:8080 -e API_URL=#{basename} \
|
65
|
+
-v #{path}:/usr/share/nginx/html/#{basename} swaggerapi/swagger-ui"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module OasContrib
|
5
|
+
# Command class utility
|
6
|
+
module CommandUtil
|
7
|
+
# @return [String]
|
8
|
+
FILE_TYPE_YAML = 'yaml'.freeze
|
9
|
+
# @return [String]
|
10
|
+
FILE_TYPE_JSON = 'json'.freeze
|
11
|
+
|
12
|
+
# Get directory, file paths
|
13
|
+
# @param [String] root target root directory
|
14
|
+
# @param [String] file_type yaml or json
|
15
|
+
# @return [Array] meta file path, path direcotry path, schema directory path
|
16
|
+
def env_paths(root, file_type)
|
17
|
+
[
|
18
|
+
"#{root}/meta#{file_type_ext(file_type)}",
|
19
|
+
"#{root}/paths",
|
20
|
+
"#{root}/components/schemas"
|
21
|
+
]
|
22
|
+
end
|
23
|
+
|
24
|
+
# Get file extension
|
25
|
+
# @param [String] file_type yaml or json
|
26
|
+
# @return [String] .yml or .json
|
27
|
+
def file_type_ext(file_type)
|
28
|
+
case file_type
|
29
|
+
when FILE_TYPE_YAML then '.yml'
|
30
|
+
when FILE_TYPE_JSON then '.json'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# Get hash from yaml or json file
|
35
|
+
# @param [String] path <description>
|
36
|
+
# @param [String] file_type <description>
|
37
|
+
# @return [Hash]
|
38
|
+
def input_solo(path, file_type)
|
39
|
+
case file_type
|
40
|
+
when FILE_TYPE_YAML then YAML.load_file(path)
|
41
|
+
when FILE_TYPE_JSON then JSON.parse(File.read(path))
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# Load path files and get hash
|
46
|
+
# @param [String] dir_path target directory path
|
47
|
+
# @param [String] file_type yaml or json
|
48
|
+
# @return [Hash] parsed hash
|
49
|
+
def input_multi(dir_path, file_type)
|
50
|
+
path = "#{dir_path}/*#{file_type_ext(file_type)}"
|
51
|
+
Dir.glob(path).each_with_object({}) do |input_file_path, result|
|
52
|
+
hash = input_solo(input_file_path, file_type)
|
53
|
+
key = hash.keys[0]
|
54
|
+
result[key] = hash[key]
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# <Description>
|
59
|
+
# @param [<Type>] hash <description>
|
60
|
+
# @param [<Type>] path <description>
|
61
|
+
# @param [<Type>] file_type <description>
|
62
|
+
# @return [<Type>] <description>
|
63
|
+
def output_solo(hash, path, file_type)
|
64
|
+
output_lambda = case file_type
|
65
|
+
when FILE_TYPE_YAML then ->(file) { YAML.dump(hash, file) }
|
66
|
+
when FILE_TYPE_JSON then ->(file) { JSON.dump(hash, file) }
|
67
|
+
end
|
68
|
+
File.open(path, 'w') { |f| output_lambda.call(f) }
|
69
|
+
end
|
70
|
+
|
71
|
+
# Output path definition files
|
72
|
+
# @param [Hash] hash data source hash
|
73
|
+
# @param [String] dir_path output directory path
|
74
|
+
# @param [String] file_type output file type (yaml, json)
|
75
|
+
# @return [Boolean]
|
76
|
+
def output_multi(hash, dir_path, file_type)
|
77
|
+
hash.each do |k, _|
|
78
|
+
key = k.tr('/', '_').gsub(/^\_/, '')
|
79
|
+
path = "#{dir_path}/#{key}#{file_type_ext(file_type)}"
|
80
|
+
val = hash.select { |hash_key, _| hash_key == k }
|
81
|
+
output_solo(val, path, file_type)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Return meta section hash
|
86
|
+
# @param [Hash] hash data source hash
|
87
|
+
# @return [Hash] filtered hash
|
88
|
+
def meta_filter(hash)
|
89
|
+
hash.select { |k, _| k != 'paths' && k != 'components' }
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
data/oas_contrib.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'oas_contrib/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'oas_contrib'
|
7
|
+
spec.version = OasContrib::VERSION
|
8
|
+
spec.authors = ['Michinao Shimizu']
|
9
|
+
spec.email = ['shimizu.michinao@gmail.com']
|
10
|
+
|
11
|
+
spec.summary = 'Open API Specification related commands and libraries.'
|
12
|
+
spec.description = 'Open API Specification related commands and libraries.'
|
13
|
+
spec.homepage = "https://github.com/MichinaoShimizu/oas_contrib"
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
+
f.match(%r{^(test|spec|features)/})
|
18
|
+
end
|
19
|
+
spec.bindir = 'exe'
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
+
spec.require_paths = ['lib']
|
22
|
+
|
23
|
+
spec.add_dependency 'thor', '~> 0.20'
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.16'
|
25
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
26
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: oas_contrib
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michinao Shimizu
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-07-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.20'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.20'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.16'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.16'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
description: Open API Specification related commands and libraries.
|
70
|
+
email:
|
71
|
+
- shimizu.michinao@gmail.com
|
72
|
+
executables:
|
73
|
+
- oas_contrib
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- ".gitignore"
|
78
|
+
- CODE_OF_CONDUCT.md
|
79
|
+
- Gemfile
|
80
|
+
- LICENSE.txt
|
81
|
+
- README.md
|
82
|
+
- Rakefile
|
83
|
+
- bin/console
|
84
|
+
- bin/setup
|
85
|
+
- exe/oas_contrib
|
86
|
+
- lib/oas_contrib.rb
|
87
|
+
- lib/oas_contrib/command.rb
|
88
|
+
- lib/oas_contrib/command_util.rb
|
89
|
+
- lib/oas_contrib/version.rb
|
90
|
+
- oas_contrib.gemspec
|
91
|
+
homepage: https://github.com/MichinaoShimizu/oas_contrib
|
92
|
+
licenses:
|
93
|
+
- MIT
|
94
|
+
metadata: {}
|
95
|
+
post_install_message:
|
96
|
+
rdoc_options: []
|
97
|
+
require_paths:
|
98
|
+
- lib
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
requirements: []
|
110
|
+
rubyforge_project:
|
111
|
+
rubygems_version: 2.7.6
|
112
|
+
signing_key:
|
113
|
+
specification_version: 4
|
114
|
+
summary: Open API Specification related commands and libraries.
|
115
|
+
test_files: []
|