Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update trollop to optimist to remove deprecation warnings #37

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This file is used to list changes made in each version of the YamlLint gem.
- **[PR #28](https://github.com/shortdudey123/yamllint/pull/28)** - Fix Security/YAMLLoad rubocop offense
- **[PR #29](https://github.com/shortdudey123/yamllint/pull/29)** - Update TraviCI Rubies
- **[PR #30](https://github.com/shortdudey123/yamllint/pull/30)** - Fix Style/PercentLiteralDelimiters offense
- **[PR #37](https://github.com/shortdudey123/yamllint/pull/37)** - Update trollop to optimist to remove deprecation warnings

## v0.0.9 (2016-09-16)
- **[PR #24](https://github.com/shortdudey123/yamllint/pull/24)** - Update RSpec raise_error to be more specific
Expand Down
6 changes: 3 additions & 3 deletions lib/yamllint/cli.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'logger'
require 'trollop'
require 'optimist'

module YamlLint
###
Expand Down Expand Up @@ -76,7 +76,7 @@ def lint_stream
end

def setup_options
Trollop::Parser.new do
Optimist::Parser.new do
banner 'Usage: yamllint [options] file1.yaml [file2.yaml ...]'
version(YamlLint::VERSION)

Expand All @@ -92,7 +92,7 @@ def setup_options
def parse_options
p = setup_options

@opts = Trollop.with_standard_exception_handling p do
@opts = Optimist.with_standard_exception_handling p do
p.parse(@argv)
end

Expand Down
2 changes: 1 addition & 1 deletion yamllint.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']

spec.add_dependency 'trollop', '~> 2'
spec.add_dependency 'optimist'

spec.add_development_dependency 'bundler', '~> 1.7'
spec.add_development_dependency 'rake'
Expand Down