documentize 1.0.1 → 1.1.0
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/documentize/collector.rb +3 -2
- data/lib/documentize/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 401af568e93b7ebbf4e9674e83df126a92a99e46
|
|
4
|
+
data.tar.gz: 2b76531cdfb0c0c3237a524cb206da9337f61c94
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc7d999ab783a8b53e0e66d2d77a3024c2ec99ebdb2b93bbe383b8bfb80809a03548bf3648e9c390974b9d7a0abca3ffc4af3f024c88d457010c19a511980a4b
|
|
7
|
+
data.tar.gz: e17dd0ad9263613ec70eb95a3ffe0c9da1ebded7e07b7d42c3d747185f32186d7a0b05618815a230485761c7547e783adb2c5c69db6653fd03cef3b9b1c20904
|
|
@@ -6,6 +6,7 @@ module Documentize
|
|
|
6
6
|
header: /^require/,
|
|
7
7
|
block: /\sdo[\s\|.*]/,
|
|
8
8
|
inline_do: /\sdo.*?end/,
|
|
9
|
+
flow: /^(if|unless|while|for).*?/,
|
|
9
10
|
is_class: /^class/,
|
|
10
11
|
is_method: /^def/,
|
|
11
12
|
is_module: /^module/,
|
|
@@ -34,7 +35,7 @@ module Documentize
|
|
|
34
35
|
|
|
35
36
|
item[:content], queue = build(queue)
|
|
36
37
|
|
|
37
|
-
elsif item =~ REGEX[:block]
|
|
38
|
+
elsif item =~ REGEX[:block] || item =~ REGEX[:flow]
|
|
38
39
|
|
|
39
40
|
skips += 1 unless item =~ REGEX[:inline_do]
|
|
40
41
|
|
|
@@ -104,4 +105,4 @@ module Documentize
|
|
|
104
105
|
end
|
|
105
106
|
|
|
106
107
|
end
|
|
107
|
-
end
|
|
108
|
+
end
|
data/lib/documentize/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: documentize
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sampson Crowley
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-02-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
115
115
|
version: '0'
|
|
116
116
|
requirements: []
|
|
117
117
|
rubyforge_project:
|
|
118
|
-
rubygems_version: 2.
|
|
118
|
+
rubygems_version: 2.6.8
|
|
119
119
|
signing_key:
|
|
120
120
|
specification_version: 4
|
|
121
121
|
summary: Generates a ruby file with a TomDoc skeletons from existing ruby files
|