rspeckled 0.0.63 → 0.0.64

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
  SHA256:
3
- metadata.gz: ff92d7d6b5c327939c72befbfe48f4a4007837d90c351d587fb3df25c3337ed7
4
- data.tar.gz: a4b37d98915b2af764a0ac31f573d9743c07c0269aaff8de56dd8e6058da44d5
3
+ metadata.gz: 977eae2b5464bb0b04a502cf7c84be528e47af529e611e80744bd8de7a73335c
4
+ data.tar.gz: afea3de58c037d73ad3bf5205d373c8092a1f222af08cdfdba0454cffa16f101
5
5
  SHA512:
6
- metadata.gz: d66b84ed3da131513ae469b8ef44aa2e542555494739bdad113f34a27295073bf2a83077bbfc19b441e4d4fe487828912a74da187842e06263a94000178d72a3
7
- data.tar.gz: a15efe1e789e688395b30ed021df0a84e5ff47f1e73fd016662d544782b018a511522369879d588ae15c1dba0e9eeb3bd0234a953e45b7bf94126614f983bb53
6
+ metadata.gz: 1da71c0a69f928a2899c2f6db28573c1b711edf64c4cb1f8c2849e87bda32b8e81cc49a899e95990c6f7eb41670a85ace6c3272b42b49200f162fcc8cf8a7f1f
7
+ data.tar.gz: 1bc7b5aa3fafcfa79ec8a1586b997f9a979d440375a70934c6b67c22af4abf5801be23772deb5be17096191438641b0fe66ec772af9f4b659d7ab76fd0ba1ca4
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -31,10 +31,6 @@ RSpec.configure do |config|
31
31
  require 'rspeckled/plugins/foreign_keys'
32
32
  end
33
33
 
34
- config.when_first_matching_example_defined(:dox) do
35
- require 'rspeckled/plugins/dox'
36
- end
37
-
38
34
  config.when_first_matching_example_defined(:elasticsearch) do
39
35
  require 'rspeckled/plugins/elasticsearch'
40
36
  end
@@ -9,42 +9,49 @@ RSpec.configure do |config|
9
9
  end
10
10
  end
11
11
 
12
- api_docs_folder = Pathname.pwd.join('docs', 'api')
13
- api_docs_header = api_docs_folder.join('header.md')
12
+ begin
13
+ require 'dox'
14
14
 
15
- api_docs_folder.mkpath
15
+ api_docs_folder = Pathname.pwd.join('docs', 'api')
16
+ api_docs_header = api_docs_folder.join('header.md')
16
17
 
17
- api_docs_folder.glob('**/*.rb').each { |f| require f }
18
+ puts api_docs_folder
18
19
 
19
- titleized_application_name = Rails
20
- .application
21
- .class
22
- .name
23
- .split('::')[0]
24
- .titleize
20
+ api_docs_folder.mkpath
25
21
 
26
- http_settings_file = Pathname.pwd.join('config', 'settings', 'http.yml')
22
+ api_docs_folder.glob('**/*.rb').each { |f| require f }
27
23
 
28
- host = if http_settings_file.exist?
29
- http_settings = YAML.load(http_settings_file.read) # rubocop:disable Security/YAMLLoad
24
+ titleized_application_name = Rails
25
+ .application
26
+ .class
27
+ .name
28
+ .split('::')[0]
29
+ .titleize
30
30
 
31
- http_settings['production']['http']['base_url']
32
- else
33
- 'http://api.lvh.me:5000'
34
- end
31
+ http_settings_file = Pathname.pwd.join('config', 'settings', 'http.yml')
35
32
 
36
- unless api_docs_header.exist?
37
- api_docs_header.write(<<~HEREDOC, :mode => 'w')
38
- FORMAT: 1A
39
- HOST: #{host}
33
+ host = if http_settings_file.exist?
34
+ http_settings = YAML.load(http_settings_file.read) # rubocop:disable Security/YAMLLoad
40
35
 
41
- # #{titleized_application_name}
36
+ http_settings['production']['http']['base_url']
37
+ else
38
+ 'http://api.lvh.me:5000'
39
+ end
42
40
 
43
- HEREDOC
44
- end
41
+ unless api_docs_header.exist?
42
+ api_docs_header.write(<<~HEREDOC, :mode => 'w')
43
+ FORMAT: 1A
44
+ HOST: #{host}
45
+
46
+ # #{titleized_application_name}
45
47
 
46
- Dox.configure do |config|
47
- config.header_file_path = api_docs_header
48
- config.desc_folder_path = api_docs_folder
49
- # config.headers_whitelist = ['Accept', 'X-Auth-Token']
48
+ HEREDOC
49
+ end
50
+
51
+ Dox.configure do |config|
52
+ config.header_file_path = api_docs_header
53
+ config.desc_folder_path = api_docs_folder
54
+ # config.headers_whitelist = ['Accept', 'X-Auth-Token']
55
+ end
56
+ rescue LoadError
50
57
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  # These Plugins Must Be Loaded Before Anything Else
4
4
  require 'rspeckled/plugins/simple_cov'
5
+ require 'rspeckled/plugins/dox'
5
6
 
6
7
  require 'rspeckled/reporting'
7
8
  require 'rspeckled/support'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rspeckled
4
- VERSION = '0.0.63'
4
+ VERSION = '0.0.64'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspeckled
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.63
4
+ version: 0.0.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - thegranddesign
@@ -35,7 +35,7 @@ cert_chain:
35
35
  eUgMp+qKjyM1NGj/222soSUpWqOE16L23vv8sWIbMIADdR8dephQ6jMovYylUmE5
36
36
  KHp+JJQviSN0i4z8gVL2zloo+xZf791LiJH8Kcjpx43jhg0WdR4=
37
37
  -----END CERTIFICATE-----
38
- date: 2018-09-04 00:00:00.000000000 Z
38
+ date: 2018-09-17 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rspec
metadata.gz.sig CHANGED
Binary file