swagger_docs_generator 0.3.4.pre.26 → 0.3.4

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: 16439b96e401513da7c1b24f226900cc54f556f9
4
- data.tar.gz: fe2b1a45da4edcfab260a90ed839cb09e242f6fb
3
+ metadata.gz: 1d825270a25e0789b5851ef0bfa6e9c2cacdcac8
4
+ data.tar.gz: 8d679b4c99e83c4af41e1f54ef2a14615100e183
5
5
  SHA512:
6
- metadata.gz: a80ac277a707e95d491d80b46343727c04ba82f56065aaf453eba64e750c30d4e655a9a9b4fe6c15b40bf224126d4dd590a0dbf7706126cf248969535f1e3dab
7
- data.tar.gz: c785fe4001142af3f2dae4aa479a1ace7c975a728d171df32712afe35c26cbcd69acc32052d395fab4cf61f3ea1058ca39961257132addf94df087724559e241
6
+ metadata.gz: c573bf0b9f189113f3de3f2bff8be2e7c6a8fc849ffb7d7621016c9277aefdb1fe7206a3f7fc55c0d77b771d2e4b17e5c498968589b94a288a89b31fb9bad9a1
7
+ data.tar.gz: 4b07e3ca4a2e0d51e797fcadd89aa1ab28175b601e384ff57285cfdb4d73cece8fad3de15762617ca0a6e2b4f59d392227c69dd2049667a7db76ea7ef7f27891
@@ -18,7 +18,7 @@ module SwaggerDocsGenerator
18
18
  # @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md
19
19
  class Configuration
20
20
  # Accessors with default value
21
- attr_accessor :swagger, :cleanning, :base_path, :compress
21
+ attr_accessor :swagger, :cleanning, :base_path
22
22
 
23
23
  # Accessors without default value
24
24
  attr_accessor :schemes, :consumes, :produces, :host, :external_docs,
@@ -29,7 +29,6 @@ module SwaggerDocsGenerator
29
29
  @swagger = '2.0'
30
30
  @base_path = '/'
31
31
  @cleanning = true
32
- @compress = false
33
32
  end
34
33
  end
35
34
 
@@ -26,11 +26,8 @@ module SwaggerDocsGenerator
26
26
  def generate_swagger_file
27
27
  delete_file_before
28
28
  File.open(@swagger_file, 'a+') do |file|
29
- file.puts = if SwaggerDocsGenerator.configure.compress
30
- write_in_swagger_file.to_json
31
- else
32
- JSON.pretty_generate write_in_swagger_file
33
- end
29
+ # file.puts write_in_swagger_file.to_json
30
+ file.puts JSON.pretty_generate write_in_swagger_file
34
31
  end
35
32
  end
36
33
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagger_docs_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4.pre.26
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - VAILLANT Jeremy
@@ -325,9 +325,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
325
325
  version: '0'
326
326
  required_rubygems_version: !ruby/object:Gem::Requirement
327
327
  requirements:
328
- - - ">"
328
+ - - ">="
329
329
  - !ruby/object:Gem::Version
330
- version: 1.3.1
330
+ version: '0'
331
331
  requirements: []
332
332
  rubyforge_project:
333
333
  rubygems_version: 2.4.5