postman_doc_generator 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c97968b66b2b2631693d0eb8972c49d0669b0cc26ae90a449dd61a5cd7541d80
4
- data.tar.gz: d2efcf0fa04893f91c2478517d8447fc45870f50634b767e5410366513b7a785
3
+ metadata.gz: 07c7b3dbedfed56bd2f1fab1f31ac1a50d55519d480331f10eaaee6ec94bf513
4
+ data.tar.gz: 0d0cc052afbe3c4e1bfb651ed7c58e80630cb53bbec7df2e614fc96794099ce6
5
5
  SHA512:
6
- metadata.gz: 0ae64ac3a9b4262f580a4a3b5329d35224c7100537c0fd3e0396f334fff33720fe9c999bd34c51c1689694726f5a7c7be1c86a3174f605ae822fae9d7e3febf9
7
- data.tar.gz: f35f573f7f0d630d1d27b4ce9f07ec33056319daa13f60c43daaef148a6812bfef58c9f0e68f073b61fd6c6516cbcb1246a9a46d50d86269ccd95c98621d90a3
6
+ metadata.gz: 40650c1683be126d8b214483ca9be120a1b1d009284ab0a4ca90d658a5771b6ac2a0ac7a892422c87f3f742e8bc5b2d64d804470e288eee735bc459bff6e6e10
7
+ data.tar.gz: '029f5e5cef8559630112cb0186faa24f669932140e308b3ffa75d097bc062c057380eb77a2fcd458467cb6463966445ddae86bb5daf7b5fa4dfc4163ea8eeb8c'
@@ -48,7 +48,7 @@ class PostmanDocGenerator
48
48
  @res_status = @response.status
49
49
  @res_body = @response.body.present? ? JSON.parse(@response.body) : {}
50
50
  data = File.read(@file_path) if File.exist?(@file_path)
51
- @postman_data = data.blank? ? JSON.parse(File.read("#{@sample_dir}/doc.json") % @config) : JSON.parse(data)
51
+ @postman_data = data.blank? ? JSON.parse(File.read("#{@sample_dir}/doc.json") % @config.transform_keys(&:to_sym)) : JSON.parse(data)
52
52
  end
53
53
 
54
54
  def setup_postman_json
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'postman_doc_generator'
3
- s.version = '0.1.5'
3
+ s.version = '0.1.6'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.summary = 'Generate Postman Doc Json After Run Rspec'
6
6
  s.description = 'A Json API Doc Generator of Postman'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postman_doc_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - JiaRou