washout_builder 1.0.10 → 1.0.11

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: df24805fd747f5ee4264ddd30bbb664a64980fed
4
- data.tar.gz: e1f7a66e3c6ae46f56fc8230defef7d17fd850de
3
+ metadata.gz: 4f06dd353087a6d6858c7311a5b7c075b2e50108
4
+ data.tar.gz: 579a513ea3f70b18062bfa7bc057d3d1a8a49c44
5
5
  SHA512:
6
- metadata.gz: 746b52b2afc23edcf448c2d140a8cb4c40646728484aeb28a5a069beb92711d48fc48a9788aa604d44bf2e0cdb1150ecfdeb3b41684058ae4c3bf886dbbef25f
7
- data.tar.gz: 9a5839e1fba426d88f22711b1d9055f17a50b7c0c02456b070f39b2643c9150c8eafc2edfe7fab085f6a1388107b12422f437f4e49dd23f06f021d3dd3be918f
6
+ metadata.gz: ef90105eb2e901686084df6e8752becd57c1d4cc1a1a20049eaddc2c7362780343240a69ec45bce79a626d9eeb7c9172e9524553d97436b094f00c976ab3270e
7
+ data.tar.gz: 84973e949645de0385152e52c04eeb7c69cd9dca3f63422810e86d28812587753bf4d917d6699bba19a95f434f4d200d3f3c097afe1b60b10201363346c7cd53
@@ -15,7 +15,7 @@ module WashoutBuilder
15
15
  #
16
16
  # @api public
17
17
  def all
18
- @routes = find_all_routes
18
+ find_all_routes
19
19
  route = params[:name].present? ? controller_is_a_service?(params[:name]) : nil
20
20
  if route.present?
21
21
  @document = WashoutBuilder::Document::Generator.new(route.defaults[:controller])
@@ -83,7 +83,8 @@ module WashoutBuilder
83
83
  engine_routes << route
84
84
  end
85
85
  end
86
- rails_routes.concat(engine_routes).uniq.compact
86
+ @routes = rails_routes.concat(engine_routes).uniq.compact
87
+ @routes
87
88
  end
88
89
 
89
90
  # method for getting all controllers that have the generate wsdl action or finding out
@@ -12,7 +12,7 @@ module WashoutBuilder
12
12
  # the minor version of the gem
13
13
  MINOR = 0
14
14
  # the tiny version of the gem
15
- TINY = 10
15
+ TINY = 11
16
16
  # if the version should be a e
17
17
  PRE = nil
18
18
 
@@ -36,6 +36,7 @@ describe WashoutBuilder::WashoutBuilderController, type: :controller do
36
36
  end
37
37
 
38
38
  it 'checks it controller is a service' do
39
+ controller.send(:find_all_routes)
39
40
  expect(controller.send(:controller_is_a_service?, 'api')).not_to eq nil
40
41
  end
41
42
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: washout_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada