rspec_generate_doc 0.2.9 → 0.2.10

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: 446334c3f0840f081d3828d9ab6ce9c30a809860
4
- data.tar.gz: 0c8f391807fa3d9ff9e44aaa35678dfbd6631202
3
+ metadata.gz: 3935d0ef8fcd2ebdfc5870dc9703c2c9a832f03a
4
+ data.tar.gz: 51ea028f2fc3258c7bf51d095e8265c738543a96
5
5
  SHA512:
6
- metadata.gz: 4b8647d8811de47f70a2f8762f8cba52a4aa93eb858640d0ae83b226d0cd63cd44ffeec7219d968725ea13c24509715fe3c47613cac44fbdcc470c017f514791
7
- data.tar.gz: 0f8fb750bfe754dbb8233778f2056153361f72a53f37616eaa45b6e720300e7a2705ed84cf91fc8de5e4b4e04a813fbbe89210584ad1e18002febdfe83f41829
6
+ metadata.gz: 0a4bef080db378533c5fbfc2b59f1d825a7501985f5b0ed8281ebbd45e4206c908a2ab2c147e09de3bd643da447feec514062a450e68f720909bb22be0f54252
7
+ data.tar.gz: 73cd6954e4f7842085ac868ae061e61ee362ff5d532f7751dc36fb8c4970f17c79f048c5f57cd56b7bc0f355143348da1e62d58505afb273a826ed541ead38d2
@@ -2,7 +2,7 @@ require 'erb'
2
2
  require 'fileutils'
3
3
 
4
4
  module RspecGenerateDoc
5
- class GenarateFIle
5
+ class GenerateFIle
6
6
  TEMPLATE_EXTNAME = 'erb'.freeze
7
7
 
8
8
  attr_reader :actions, :parent
@@ -24,16 +24,24 @@ module RspecGenerateDoc
24
24
  end
25
25
 
26
26
  api_params = try(:api_params) || @api_params || {}
27
- opntions = try(:api_opntions) || @api_opntions || {}
27
+ options = try(:api_options) || @api_options || {}
28
28
  new_action = RspecGenerateDoc.configuration.action_decorator
29
- .new(name: name, response: response, api_params: api_params, options: opntions)
30
- @actions << new_action unless @actions.index { |action| action.name == new_action.name }
29
+ .new(name: name,
30
+ response: response,
31
+ api_params: api_params,
32
+ options: options)
33
+ unless @actions.index { |action| action.name == new_action.name }
34
+ @actions << new_action
35
+ end
31
36
  end
32
37
 
33
38
  config.after(:context) do
34
39
  next if @is_incorrect_type
35
- parent = self.class.metadata[:api_name] || self.class.top_level_description
36
- RspecGenerateDoc::GenarateFIle.new(parent: parent.to_s, actions: @actions).create_file_by_template
40
+ parent = self.class.metadata[:api_name] || self.class
41
+ .top_level_description
42
+ RspecGenerateDoc::GenerateFIle
43
+ .new(parent: parent.to_s, actions: @actions)
44
+ .create_file_by_template
37
45
  end
38
46
  end
39
47
  end
@@ -1,3 +1,3 @@
1
1
  module RspecGenerateDoc
2
- VERSION = '0.2.9'
2
+ VERSION = '0.2.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_generate_doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kutyavin