lazydoc 0.3.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/History +3 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README +1 -1
  4. data/lib/lazydoc/utils.rb +3 -6
  5. metadata +4 -4
data/History CHANGED
@@ -1,6 +1,5 @@
1
- == 0.3.1 / 2009-02-17
1
+ == 0.8.0 / 2009-02-15
2
2
 
3
- Update release with trivial changes that remove warnings under ruby 1.9
4
- and to accommodate JRuby 1.1.6
3
+ Updated release with internal reworks and additional
4
+ helper methods for registering methods.
5
5
 
6
- * documents may now set default_const_name
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008, Regents of the University of Colorado.
1
+ Copyright (c) 2008-2009, Regents of the University of Colorado.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this
4
4
  software and associated documentation files (the "Software"), to deal in the Software
data/README CHANGED
@@ -219,7 +219,7 @@ Lazydoc is available as a gem on RubyForge[http://rubyforge.org/projects/tap].
219
219
 
220
220
  == Info
221
221
 
222
- Copyright (c) 2008, Regents of the University of Colorado.
222
+ Copyright (c) 2008-2009, Regents of the University of Colorado.
223
223
  Developer:: {Simon Chiang}[http://bahuvrihi.wordpress.com], {Biomolecular Structure Program}[http://biomol.uchsc.edu/], {Hansen Lab}[http://hsc-proteomics.uchsc.edu/hansenlab/]
224
224
  Support:: CU Denver School of Medicine Deans Academic Enrichment Fund
225
225
  Licence:: {MIT-Style}[link:files/MIT-LICENSE.html]
data/lib/lazydoc/utils.rb CHANGED
@@ -85,8 +85,7 @@ module Lazydoc
85
85
  args = []
86
86
  brakets = braces = parens = 0
87
87
  start = scanner.pos
88
- broke = false
89
- while scanner.skip(/.*?['"#,\(\)\{\}\[\]]/)
88
+ broke = while scanner.skip(/.*?['"#,\(\)\{\}\[\]]/)
90
89
  pos = scanner.pos - 1
91
90
 
92
91
  case str[pos]
@@ -98,15 +97,13 @@ module Lazydoc
98
97
  args << str[start, pos-start].strip
99
98
  start = pos + 1
100
99
 
101
- when ?# then broke = true; break # break on a comment
100
+ when ?# then break(true) # break on a comment
102
101
  when ?' then skip_quote(scanner, /'/) # parse over quoted strings
103
102
  when ?" then skip_quote(scanner, /"/) # parse over double-quoted string
104
103
 
105
104
  when ?( then parens += 1 # for brakets, braces, and parenthesis
106
105
  when ?) # simply track the nesting EXCEPT for
107
- if parens == 0 # RPAREN. If the closing parenthesis
108
- broke = true; break
109
- end
106
+ break(true) if parens == 0 # RPAREN. If the closing parenthesis
110
107
  parens -= 1 # is found, break.
111
108
  when ?[ then braces += 1
112
109
  when ?] then braces -= 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazydoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Chiang
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-17 00:00:00 -07:00
12
+ date: 2009-02-15 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -20,9 +20,9 @@ executables: []
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
+ - History
23
24
  - README
24
25
  - MIT-LICENSE
25
- - History
26
26
  files:
27
27
  - lib/lazydoc.rb
28
28
  - lib/lazydoc/arguments.rb
@@ -33,9 +33,9 @@ files:
33
33
  - lib/lazydoc/subject.rb
34
34
  - lib/lazydoc/trailer.rb
35
35
  - lib/lazydoc/utils.rb
36
+ - History
36
37
  - README
37
38
  - MIT-LICENSE
38
- - History
39
39
  has_rdoc: true
40
40
  homepage: http://tap.rubyforge.org/lazydoc
41
41
  post_install_message: