rspec_generate_doc 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: 1eeb27fe96fb602e09813b75e50d3734fbd83731
4
- data.tar.gz: 162ac31e8733c03ccf596d30de0f84264055df1b
3
+ metadata.gz: 6c961f9a41a1783abb5a536203a0ea01388fcb50
4
+ data.tar.gz: 5e439dbf200b73cf46621367524e1d5103e17faf
5
5
  SHA512:
6
- metadata.gz: 0fe16051daf9c996bf4c32cf1ebc55d2ce27ab7a495baa0482afa6876bba0109082bab2a44387499b5e6f7067181ee9fc339eccf02b8d32ecddca20155350b47
7
- data.tar.gz: 7ba6abe7de7690f714b1a41e6d93b616a95c5c96453ad0ac24afe4c8def52f1dcd8524d465753437a0473c86e36a328f29f8cea82495d8e8dc6863d21b4c92c0
6
+ metadata.gz: 6211ca7f3cf75483da83940311c6289f10cb29d2cf9b44564cedfc735cdd423c205ac3ec60c6621f81be2a61fe89b16bd762eb437505c6ddcea7c5a94c06e345
7
+ data.tar.gz: c714b0d19b485982b3df202f7327cb4bca5c55c5189bf413d6cbe736f3e7cba2dfae2afa84217996045e5e9f61c367fa9b16e8966767dbcfb54c311ae4b825bd
@@ -10,7 +10,7 @@ module RspecGenerateDoc
10
10
  ::RSpec.configure do |config|
11
11
  config.before(:context) do
12
12
  @actions = []
13
- @is_correct_type = self.class.metadata[:type] != CORRECT_TYPE
13
+ @is_incorrect_type = self.class.metadata[:type] != CORRECT_TYPE
14
14
  end
15
15
 
16
16
  config.after(:each) do
@@ -31,7 +31,7 @@ module RspecGenerateDoc
31
31
  end
32
32
 
33
33
  config.after(:context) do
34
- next unless @is_correct_type
34
+ next if @is_incorrect_type
35
35
  parent = self.class.top_level_description
36
36
  RspecGenerateDoc::GenarateFIle.new(parent: parent, actions: @actions).create_file_by_template
37
37
  end
@@ -1,7 +1,7 @@
1
1
  # <%= parent %>
2
2
 
3
3
  <% actions.each do |action| -%>
4
- #<%= action.name %>
4
+ ##<%= action.name %>
5
5
 
6
6
  ```http
7
7
  <%= action.request_method %> <%= action.request_fullpath %> HTTP/1.1
@@ -1,3 +1,3 @@
1
1
  module RspecGenerateDoc
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_generate_doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kutyavin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-10 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler