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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abb9ddb59e5082056fde01ef48eb458b277228da
4
- data.tar.gz: 9c569b6eae800fe576cf7328af495eaccef45a15
3
+ metadata.gz: 059abeb9ecbc09e39804f81719aeef50dea6a1db
4
+ data.tar.gz: 136521481fff886b2e25d230078b839dd988003a
5
5
  SHA512:
6
- metadata.gz: 2de9a9e78f337e57c18b78a142268e501fdf81561f1bd4890d23b57aa47a22881db32cd2f047b04bc6cfce877eb59197d0479aa1a208b8499b8383ad1e1ebbb0
7
- data.tar.gz: c604f33b8f6188f01abef11a538d32aec1352f61e5ba9326adf9e6893ed55f4afd0fa4761a24fa87aa7919bb6aa4453209895e0b38d8c4b43f745ebc3d5b207c
6
+ metadata.gz: 36f6ba024a34f3a21abbc1801b6bc2d4d2acbd1c07c03ba33c80928fb58cfbf6bf21f6c52506b62ae293c3185b65802f597de5aef4262e8346f3edfe0d97cce8
7
+ data.tar.gz: 1bc5fa56c809f629ddceb16e1c6c62ad998882d760c8401675522b8a814242c0fdba62bd7c9a56f92f66ca418e3b4c75756923fdda7f9f5868baf2af2e5ec646
@@ -1,3 +1,3 @@
1
1
  module JsonapiSwaggerHelpers
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -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.1
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-09 00:00:00.000000000 Z
11
+ date: 2017-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: swagger-blocks