hanna-nouveau 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -1
  3. data/VERSION +1 -1
  4. data/lib/hanna-nouveau.rb +2 -8
  5. metadata +2 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 626fb1076fb2dac728af13329fbc3ebd5aa6dec5
4
- data.tar.gz: 7e32b4f4a0e79a03d8e7d7e598b1ede915669144
3
+ metadata.gz: 90fc1d5075e795e811bc3563e1f10175d191695d
4
+ data.tar.gz: 46ce6bee79f39f4074c6059140be2dec93e6fe27
5
5
  SHA512:
6
- metadata.gz: ce66fdb5f38ac76072419c445c785859f747d64eca6c389bc57b41e929fc5d7c8cf4271a3b49a6fd79e6e4dcfad31ff08350595501e34fa642e19e592c663214
7
- data.tar.gz: 4eda2b218b4837c794c1946fd1f7f31842dfc9c43cdc118b769b8c1c026360e8c391b3d14263172e57a924b59341fbcb547020573f66ab822231ca86846b5d07
6
+ metadata.gz: 999e141beaca424c55e4cb0ce1288e75d0c9e40967d2b458eca5b319bd95862b06f3c161dc9a8681b7ffebe21d65a558e559133e89b01964da2f7a3b32fed230
7
+ data.tar.gz: 1fa28e301d10546c979f25bf86958e33f6d63eecff9983fbe94c43609c59a11a296bae4d1cd3f69f8aacb7e570009ba177532524acd7ab2144a26e3cdde380ce
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
  gem 'rdoc', "~> 4.0"
3
3
  gem 'haml', "= 3.0.25"
4
- gem 'parser'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
data/lib/hanna-nouveau.rb CHANGED
@@ -16,7 +16,6 @@ require 'haml'
16
16
  require 'sass'
17
17
  require 'rdoc/rdoc'
18
18
  require 'rdoc/generator'
19
- require 'parser/current'
20
19
 
21
20
  class RDoc::Markup::ToHtml
22
21
  LIST_TYPE_TO_HTML[:LABEL] = ['<table class="rdoc-list label-list"><tbody>', '</tbody></table>']
@@ -45,13 +44,8 @@ class RDoc::Markup::ToHtml
45
44
  end
46
45
 
47
46
  def parseable? text
48
- parser = Parser::CurrentRuby.new
49
- parser.diagnostics.consumer = lambda{|d|}
50
- buffer = Parser::Source::Buffer.new('(string)')
51
- buffer.source = text
52
- parser.parse(buffer)
53
- true
54
- rescue
47
+ eval("BEGIN {return true}\n#{text}")
48
+ rescue SyntaxError
55
49
  false
56
50
  end
57
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanna-nouveau
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-08-29 00:00:00.000000000 Z
14
+ date: 2014-11-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: haml
@@ -41,20 +41,6 @@ dependencies:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: '4.0'
44
- - !ruby/object:Gem::Dependency
45
- name: parser
46
- requirement: !ruby/object:Gem::Requirement
47
- requirements:
48
- - - "~>"
49
- - !ruby/object:Gem::Version
50
- version: '2.0'
51
- type: :runtime
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
54
- requirements:
55
- - - "~>"
56
- - !ruby/object:Gem::Version
57
- version: '2.0'
58
44
  description: ''
59
45
  email: code@jeremyevans.net
60
46
  executables: []