smashing_docs 1.3.5 → 1.3.6
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 +4 -4
- data/lib/base.rb +6 -2
- data/lib/generators/docs/build_docs_generator.rb +1 -1
- data/smashing_docs.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a018d793caa199c840a1f41a43f7bb5d4dea4ae7
|
|
4
|
+
data.tar.gz: 91d2cef4440851315f99a814a12602944e4b4aa8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d22b66acde534c7e4db708f3facd6573e54e361750c204d20d8815037fc7360c5c844b2181412ff3d881a8a097c6fdb19be4dbdee7143ae7d79826b9eaf62133
|
|
7
|
+
data.tar.gz: cea72fa0c2d62b56630e303846bc4fcaa7f43b00782a5aaa558b097eb2699a86ba2ea30fe33385fc9d17e3ab515fa365d652ede73d7046a4d5e6c5f6fee909c9
|
data/lib/base.rb
CHANGED
|
@@ -73,8 +73,12 @@ class SmashingDocs
|
|
|
73
73
|
@tests.each do |test|
|
|
74
74
|
begin
|
|
75
75
|
file.write(test.compile_template)
|
|
76
|
-
rescue
|
|
77
|
-
|
|
76
|
+
rescue Exception => e
|
|
77
|
+
STDERR.write "\n"
|
|
78
|
+
STDERR.write "❌ An error occurred for: #{test.information[:endpoint_title]}\n"
|
|
79
|
+
STDERR.write "🔗 #{test.request.method} #{test.request.path}\n"
|
|
80
|
+
STDERR.write "⚠️ #{e.message}\n"
|
|
81
|
+
STDERR.write "\n"
|
|
78
82
|
end
|
|
79
83
|
end
|
|
80
84
|
end
|
|
@@ -8,7 +8,7 @@ module Docs
|
|
|
8
8
|
destination = "spec/spec_helper.rb"
|
|
9
9
|
if File.exist?(destination)
|
|
10
10
|
uncomment_lines(destination, /config.after\(:suite\) \{ SmashingDocs.finish! \}/)
|
|
11
|
-
|
|
11
|
+
system('rspec spec > /dev/null')
|
|
12
12
|
comment_lines(destination, /config.after\(:suite\) \{ SmashingDocs.finish! \}/)
|
|
13
13
|
else
|
|
14
14
|
puts "Could not find spec/spec_helper.rb"
|
data/smashing_docs.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
|
10
10
|
s.require_paths = ['lib']
|
|
11
11
|
s.summary = "Uses your test cases to write example documentation for your API."
|
|
12
12
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
13
|
-
s.version = '1.3.
|
|
13
|
+
s.version = '1.3.6'
|
|
14
14
|
|
|
15
15
|
s.add_development_dependency "bundler", "~> 1.11"
|
|
16
16
|
s.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smashing_docs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tyler Rockwell
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2016-
|
|
13
|
+
date: 2016-06-02 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bundler
|
|
@@ -123,3 +123,4 @@ specification_version: 4
|
|
|
123
123
|
summary: Uses your test cases to write example documentation for your API.
|
|
124
124
|
test_files:
|
|
125
125
|
- spec/spec_helper.rb
|
|
126
|
+
has_rdoc:
|