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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ff36a5dfaa610fcbfda3a707dfb7c6e94cc6730
4
- data.tar.gz: 9cea6cf8f7717f47466332302614fb4c16d399d4
3
+ metadata.gz: 8f6af0d603518314439b2a7d5794f31987f2388c
4
+ data.tar.gz: b9c90aac1a2896c2ffefe5df0990544e9f4e1070
5
5
  SHA512:
6
- metadata.gz: e168acd3e40157a48634b4482b4675cf91b7e88e51776b9d10801086be68fb2287cfa9ee10cf805fcdb6143fc112ac413599f66e18986f6ff6e6064e0043c199
7
- data.tar.gz: 0c979249a408c30c10f11bf78f6a18bedbc02ee5d3164ea9aec056f576faf6d37eddfde9e16c82c6e93adf9a9f81cd19eab4c386f09d4485f5c208cfee7895b2
6
+ metadata.gz: 5bb41fe37a9264465db9f4f686381b75c5f28e83567a973373f1a1d7d7a6c9eb26fb66d68f2749fcec02ec7c260f46823aec366c8d83fbf54abc2e841251e2fc
7
+ data.tar.gz: 02935bd2512cc021c6ae65ce7886d3c0562d064e2d40bcc9e5ad1804e3b3958965d49e265a6840bb2eaccd7291de5aa35f73f767b6dad7b4bd3565077ec538ca
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Docurium
2
- Version = VERSION = '0.3.0'
2
+ Version = VERSION = '0.3.1'
3
3
  end
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.0
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-10 00:00:00.000000000 Z
12
+ date: 2014-01-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: version_sorter