mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: Add swagger-diff.
* gnu/packages/ruby.scm (swagger-diff): New variable.
This commit is contained in:
parent
369faa5995
commit
44881cad93
1 changed files with 40 additions and 0 deletions
|
@ -8767,3 +8767,43 @@ (define-public ruby-json-schema
|
|||
is also included.")
|
||||
(home-page "https://github.com/ruby-json-schema/json-schema")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public swagger-diff
|
||||
(package
|
||||
(name "swagger-diff")
|
||||
(version "1.1.2")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (rubygems-uri "swagger-diff" version))
|
||||
(sha256
|
||||
(base32
|
||||
"1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
|
||||
(build-system ruby-build-system)
|
||||
(arguments
|
||||
`(#:test-target "spec"
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; Don't run or require rubocop, the code linting tool, as this is a
|
||||
;; bit unnecessary.
|
||||
(add-after 'unpack 'dont-run-rubocop
|
||||
(lambda _
|
||||
(substitute* "Rakefile"
|
||||
((".*rubocop.*") "")
|
||||
((".*RuboCop.*") ""))
|
||||
#t)))))
|
||||
(propagated-inputs
|
||||
`(("ruby-json-schema" ,ruby-json-schema)))
|
||||
(native-inputs
|
||||
`(("bundler" ,bundler)
|
||||
("ruby-rspec-core" ,ruby-rspec-core)
|
||||
("ruby-rspec-expectations" ,ruby-rspec-expectations)))
|
||||
(synopsis
|
||||
"Compare Open API Initiative specification files")
|
||||
(description
|
||||
"Swagger::Diff is a utility for comparing two different Open API
|
||||
Initiative (OAI) specifications (formerly known as Swagger specifications).
|
||||
It is intended to determine whether a newer API specification is
|
||||
backwards-compatible with an older API specification.")
|
||||
(home-page "https://github.com/civisanalytics/swagger-diff")
|
||||
(license license:bsd-3)))
|
||||
|
|
Loading…
Reference in a new issue