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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rspeckled/plugins.rb +0 -4
- data/lib/rspeckled/plugins/dox.rb +35 -28
- data/lib/rspeckled/spec_helpers/rspeckled.rb +1 -0
- data/lib/rspeckled/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 977eae2b5464bb0b04a502cf7c84be528e47af529e611e80744bd8de7a73335c
|
4
|
+
data.tar.gz: afea3de58c037d73ad3bf5205d373c8092a1f222af08cdfdba0454cffa16f101
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1da71c0a69f928a2899c2f6db28573c1b711edf64c4cb1f8c2849e87bda32b8e81cc49a899e95990c6f7eb41670a85ace6c3272b42b49200f162fcc8cf8a7f1f
|
7
|
+
data.tar.gz: 1bc7b5aa3fafcfa79ec8a1586b997f9a979d440375a70934c6b67c22af4abf5801be23772deb5be17096191438641b0fe66ec772af9f4b659d7ab76fd0ba1ca4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rspeckled/plugins.rb
CHANGED
@@ -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
|
-
|
13
|
-
|
12
|
+
begin
|
13
|
+
require 'dox'
|
14
14
|
|
15
|
-
api_docs_folder.
|
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
|
18
|
+
puts api_docs_folder
|
18
19
|
|
19
|
-
|
20
|
-
.application
|
21
|
-
.class
|
22
|
-
.name
|
23
|
-
.split('::')[0]
|
24
|
-
.titleize
|
20
|
+
api_docs_folder.mkpath
|
25
21
|
|
26
|
-
|
22
|
+
api_docs_folder.glob('**/*.rb').each { |f| require f }
|
27
23
|
|
28
|
-
|
29
|
-
|
24
|
+
titleized_application_name = Rails
|
25
|
+
.application
|
26
|
+
.class
|
27
|
+
.name
|
28
|
+
.split('::')[0]
|
29
|
+
.titleize
|
30
30
|
|
31
|
-
|
32
|
-
else
|
33
|
-
'http://api.lvh.me:5000'
|
34
|
-
end
|
31
|
+
http_settings_file = Pathname.pwd.join('config', 'settings', 'http.yml')
|
35
32
|
|
36
|
-
|
37
|
-
|
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
|
-
|
36
|
+
http_settings['production']['http']['base_url']
|
37
|
+
else
|
38
|
+
'http://api.lvh.me:5000'
|
39
|
+
end
|
42
40
|
|
43
|
-
|
44
|
-
|
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
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
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
|
data/lib/rspeckled/version.rb
CHANGED
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.
|
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-
|
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
|