jsonapi_swagger_helpers 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jsonapi_swagger_helpers/version.rb +1 -1
- data/lib/tasks/swagger_diff.rake +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 059abeb9ecbc09e39804f81719aeef50dea6a1db
|
4
|
+
data.tar.gz: 136521481fff886b2e25d230078b839dd988003a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36f6ba024a34f3a21abbc1801b6bc2d4d2acbd1c07c03ba33c80928fb58cfbf6bf21f6c52506b62ae293c3185b65802f597de5aef4262e8346f3edfe0d97cce8
|
7
|
+
data.tar.gz: 1bc5fa56c809f629ddceb16e1c6c62ad998882d760c8401675522b8a814242c0fdba62bd7c9a56f92f66ca418e3b4c75756923fdda7f9f5868baf2af2e5ec646
|
data/lib/tasks/swagger_diff.rake
CHANGED
@@ -1,11 +1,5 @@
|
|
1
1
|
require 'pp'
|
2
2
|
require 'net/http'
|
3
|
-
begin
|
4
|
-
require 'swagger/diff'
|
5
|
-
rescue LoadError
|
6
|
-
puts "You must install the swagger-diff gem to use the swagger_diff rake task"
|
7
|
-
exit(1)
|
8
|
-
end
|
9
3
|
|
10
4
|
def get_local_swagger(path)
|
11
5
|
session = ActionDispatch::Integration::Session.new(Rails.application)
|
@@ -33,6 +27,12 @@ Example swagger_diff["api","http://myapp.com"]
|
|
33
27
|
If your app relies on JSON Web Tokens, you can set JSONAPI_TOKEN for authentication
|
34
28
|
DESC
|
35
29
|
task :swagger_diff, [:namespace, :remote_host] => [:environment] do |_, args|
|
30
|
+
begin
|
31
|
+
require 'swagger/diff'
|
32
|
+
rescue LoadError
|
33
|
+
raise 'You must install the swagger-diff gem to use the swagger_diff rake task'
|
34
|
+
end
|
35
|
+
|
36
36
|
remote_host = args[:remote_host] || 'http://localhost:3001'
|
37
37
|
namespace = args[:namespace] || 'api'
|
38
38
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonapi_swagger_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: swagger-blocks
|