qdoc 1.0.1 → 1.0.2
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/bin/qdoc +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61a8c58926fb2361bdf30970a3f3cc328336f3d9
|
|
4
|
+
data.tar.gz: 5d2185553dc2f19a1c602ebde56819e0df2e5a84
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd0e42b15e5ed2f355acefd78a73ea5990dba6677a7205f191bc1140f7e2ac897faff016a62ac9993e2a79516b06533579c8f078dc468f445ce0093e724622ef
|
|
7
|
+
data.tar.gz: 478e37a583d5df10091e7715e6201a79df9ffff13ad5316cc60317b5e8b9f4ba041ddfb0ee9737519758e5c1e91c481d5bc19c0a63b704ae2d26494f62bd8ee4
|
data/bin/qdoc
CHANGED
|
@@ -5,10 +5,19 @@ if ( /-h/.match(ARGV.join(" ").downcase) )
|
|
|
5
5
|
puts "Usage qdoc [-cdn] [-4]"
|
|
6
6
|
puts " -cdn causes qdoc to utilize CDN-based Bootstrap library instead of copying one locally"
|
|
7
7
|
puts " -4 caused qdoc to utilize Bootstrap v4"
|
|
8
|
+
puts " -G create Guardfile in local directory"
|
|
8
9
|
exit(0)
|
|
9
10
|
end
|
|
10
11
|
|
|
11
12
|
bootstrap = ( /-cdn/.match(ARGV.join(" ").downcase) ? :cdn : :local )
|
|
12
13
|
bootstrap_version = ( /-4/.match(ARGV.join(" ").downcase) ? :v4 : :v3 )
|
|
13
14
|
|
|
15
|
+
if (/-G/.match(ARGV.join(" ")))
|
|
16
|
+
f = File.open("./Guardfile", "w")
|
|
17
|
+
f.write %Q(guard :shell do
|
|
18
|
+
watch(/(.*).md/) {|m| `qdoc ) + ( bootstrap.eql?( :cdn ) ? "-cdn " : "" ) + (bootstrap_version.eql?( :v4 ) ? "-4 " : "" ) + %Q(` }
|
|
19
|
+
end)
|
|
20
|
+
f.close
|
|
21
|
+
end
|
|
22
|
+
|
|
14
23
|
QDoc.new(bootstrap: bootstrap, bootstrap_version: bootstrap_version).run
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: qdoc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Patrick Sereno
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: redcarpet
|