docurium 0.3.0 → 0.3.1
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/docurium/cparser.rb +3 -1
- data/lib/docurium/version.rb +1 -1
- 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: 8f6af0d603518314439b2a7d5794f31987f2388c
|
|
4
|
+
data.tar.gz: b9c90aac1a2896c2ffefe5df0990544e9f4e1070
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5bb41fe37a9264465db9f4f686381b75c5f28e83567a973373f1a1d7d7a6c9eb26fb66d68f2749fcec02ec7c260f46823aec366c8d83fbf54abc2e841251e2fc
|
|
7
|
+
data.tar.gz: 02935bd2512cc021c6ae65ce7886d3c0562d064e2d40bcc9e5ad1804e3b3958965d49e265a6840bb2eaccd7291de5aa35f73f767b6dad7b4bd3565077ec538ca
|
data/lib/docurium/cparser.rb
CHANGED
|
@@ -214,7 +214,7 @@ class Docurium
|
|
|
214
214
|
def parse_function(d)
|
|
215
215
|
d[:args] = []
|
|
216
216
|
|
|
217
|
-
rval, argline = d[:decl].split(/\s*#{Regexp.quote(d[:name])}\s*/, 2)
|
|
217
|
+
rval, argline = d[:decl].split(/\s*#{Regexp.quote(d[:name])}\(\s*/, 2)
|
|
218
218
|
|
|
219
219
|
# clean up rval if it is like "extern static int" or "GIT_EXTERN(int)"
|
|
220
220
|
while rval =~ /[A-Za-z0-9_]+\(([^\)]+)\)$/i
|
|
@@ -224,6 +224,8 @@ class Docurium
|
|
|
224
224
|
rval.strip!
|
|
225
225
|
d[:return] = { :type => rval }
|
|
226
226
|
|
|
227
|
+
# we removed the opening parenthesis, which this is expecting
|
|
228
|
+
argline = '(' + argline
|
|
227
229
|
# clean up argline
|
|
228
230
|
argline = argline.slice(1..-2) while argline[0] == ?( && argline[-1] == ?)
|
|
229
231
|
d[:argline] = argline.strip
|
data/lib/docurium/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: docurium
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carlos Martín Nieto
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-01-
|
|
12
|
+
date: 2014-01-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: version_sorter
|