ultraviolet1x 0.12.1 → 0.12.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -5,4 +5,5 @@ gem 'textpow1x'
5
5
 
6
6
  group :dev do
7
7
  gem 'rake', '0.8.7'
8
+ gem 'rspec'
8
9
  end
data/Gemfile.lock CHANGED
@@ -1,9 +1,18 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ diff-lcs (1.1.3)
4
5
  oniguruma (1.1.0)
5
6
  plist (3.1.0)
6
7
  rake (0.8.7)
8
+ rspec (2.6.0)
9
+ rspec-core (~> 2.6.0)
10
+ rspec-expectations (~> 2.6.0)
11
+ rspec-mocks (~> 2.6.0)
12
+ rspec-core (2.6.4)
13
+ rspec-expectations (2.6.0)
14
+ diff-lcs (~> 1.1.2)
15
+ rspec-mocks (2.6.0)
7
16
  textpow1x (0.11.0)
8
17
  plist (>= 3.0.1)
9
18
 
@@ -13,4 +22,5 @@ PLATFORMS
13
22
  DEPENDENCIES
14
23
  oniguruma
15
24
  rake (= 0.8.7)
25
+ rspec
16
26
  textpow1x
data/Rakefile CHANGED
@@ -1,11 +1,6 @@
1
1
  require "bundler"
2
2
  Bundler::GemHelper.install_tasks
3
3
 
4
- require 'rake/testtask'
5
- Rake::TestTask.new do |test|
6
- test.libs << 'lib'
7
- test.pattern = 'test/**/*_test.rb'
8
- test.verbose = true
4
+ task :default do
5
+ sh "rspec spec/"
9
6
  end
10
-
11
- task :default => :test
data/lib/uv/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Uv
2
- Version = "0.12.1"
2
+ Version = "0.12.2"
3
3
  end
@@ -0,0 +1,2 @@
1
+ $LOAD_PATH.unshift 'lib'
2
+ require 'uv'
@@ -0,0 +1,22 @@
1
+ require File.expand_path('spec/spec_helper')
2
+
3
+ describe Uv do
4
+ # all 2 legacy tests ...
5
+ it "parses blank" do
6
+ Uv.parse('', 'xhtml', 'css').should == %(<pre class="mac_classic"></pre>)
7
+ end
8
+
9
+ it "debugs" do
10
+ STDERR.stub!(:puts) # silence
11
+ Uv.debug('', 'css').is_a?(Textpow::DebugProcessor).should == true
12
+ end
13
+
14
+ describe "syntax" do
15
+ Dir['syntax/*.syntax'].each do |syntax|
16
+ it "#{syntax} can parse" do
17
+ node = Textpow::SyntaxNode.load(syntax)
18
+ node.parse("xxx\n1 + 1\n### xxx")
19
+ end
20
+ end
21
+ end
22
+ end
File without changes
File without changes
@@ -45,11 +45,11 @@ patterns:
45
45
  - match: \\.
46
46
  name: constant.character.escape.coffee
47
47
  - include: "#interpolated_coffee"
48
- - begin: `
48
+ - begin: "`"
49
49
  beginCaptures:
50
50
  "0":
51
51
  name: punctuation.definition.string.begin.coffee
52
- end: `
52
+ end: "`"
53
53
  endCaptures:
54
54
  "0":
55
55
  name: punctuation.definition.string.end.coffee
@@ -136,7 +136,7 @@ patterns:
136
136
  name: constant.language.coffee
137
137
  - match: \;
138
138
  name: punctuation.terminator.statement.coffee
139
- - match: ,[ |\t]*
139
+ - match: ",[ |\t]*"
140
140
  name: meta.delimiter.object.comma.coffee
141
141
  - match: \.
142
142
  name: meta.delimiter.method.period.coffee
data/syntax/erlang.syntax CHANGED
@@ -820,7 +820,7 @@ repository:
820
820
  match: ","
821
821
  - include: "#everything-else"
822
822
  - name: punctuation.separator.guards.erlang
823
- match: ,|;
823
+ match: ",|;"
824
824
  - include: "#everything-else"
825
825
  - name: punctuation.separator.expressions.erlang
826
826
  match: ","
@@ -242,7 +242,7 @@ patterns:
242
242
  - name: punctuation.terminator.statement.js
243
243
  match: \;
244
244
  - name: meta.delimiter.object.comma.js
245
- match: ,[ |\t]*
245
+ match: ",[ |\t]*"
246
246
  - name: meta.delimiter.method.period.js
247
247
  match: \.
248
248
  - name: meta.brace.curly.js
@@ -242,7 +242,7 @@ patterns:
242
242
  Cross browser methods to get various window dimensions.
243
243
  http://docs.mootools.net/files/Window/Window-Size-js.html
244
244
  -- note: getSize is already listed under Element
245
- - name: support.class.ajax.js.mootools
245
+ - name: "support.class.ajax.js.mootools"
246
246
  match: \b(request|evalScripts)\b
247
247
  comment: |-
248
248
 
@@ -445,7 +445,7 @@ patterns:
445
445
  - endCaptures:
446
446
  "1":
447
447
  name: punctuation.definition.parameters.end.js
448
- begin: ,\s*(\{)
448
+ begin: ',\s*(\{)'
449
449
  contentName: variable.parameter.fx.style.options.js.mootools
450
450
  beginCaptures:
451
451
  "1":
data/syntax/perl.syntax CHANGED
@@ -1110,6 +1110,4 @@ patterns:
1110
1110
  foldingStopMarker: (\*/|^\s*(\}|\]|\)))
1111
1111
  keyEquivalent: ^~P
1112
1112
  comment: |
1113
-
1114
- TODO: Include RegExp syntax
1115
-
1113
+ # TODO: Include RegExp syntax
data/syntax/pmwiki.syntax CHANGED
@@ -84,8 +84,8 @@ patterns:
84
84
  end: -\]
85
85
  patterns:
86
86
  - include: text.pmwiki
87
- - name: meta.normal-word.pmwiki
88
- match: `\w+
87
+ - name: 'meta.normal-word.pmwiki'
88
+ match: '`\w+'
89
89
  - name: markup.underline.pmwiki
90
90
  match: \b\\u\w+\\u\w+
91
91
  - name: meta.link.inline.pmwiki
metadata CHANGED
@@ -1,15 +1,10 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ultraviolet1x
3
- version: !ruby/object:Gem::Version
4
- hash: 45
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.12.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 12
9
- - 1
10
- version: 0.12.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Dizan Vasquez
14
9
  - Spox
15
10
  - Chris Hoffman
@@ -17,38 +12,29 @@ authors:
17
12
  autorequire:
18
13
  bindir: bin
19
14
  cert_chain: []
20
-
21
- date: 2011-09-13 00:00:00 +02:00
22
- default_executable:
23
- dependencies:
24
- - !ruby/object:Gem::Dependency
25
- requirement: &id001 !ruby/object:Gem::Requirement
15
+ date: 2011-10-02 00:00:00.000000000 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: textpow1x
19
+ requirement: &75508760 !ruby/object:Gem::Requirement
26
20
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 51
31
- segments:
32
- - 0
33
- - 11
34
- - 0
21
+ requirements:
22
+ - - ! '>='
23
+ - !ruby/object:Gem::Version
35
24
  version: 0.11.0
36
25
  type: :runtime
37
- name: textpow1x
38
- version_requirements: *id001
39
26
  prerelease: false
27
+ version_requirements: *75508760
40
28
  description: Ultraviolet syntax highlighting gem for Ruby18 and Ruby19
41
- email:
29
+ email:
42
30
  - michael@grosser.it
43
- executables:
31
+ executables:
44
32
  - theme2xhtmlrender
45
33
  - theme2latexrender
46
34
  - uv
47
35
  extensions: []
48
-
49
36
  extra_rdoc_files: []
50
-
51
- files:
37
+ files:
52
38
  - .gitignore
53
39
  - Gemfile
54
40
  - Gemfile.lock
@@ -59,8 +45,6 @@ files:
59
45
  - bin/theme2latexrender
60
46
  - bin/theme2xhtmlrender
61
47
  - bin/uv
62
- - broken_syntax/markdown.syntax
63
- - broken_syntax/php.syntax
64
48
  - lib/uv.rb
65
49
  - lib/uv/render_processor.rb
66
50
  - lib/uv/utility.rb
@@ -130,6 +114,8 @@ files:
130
114
  - render/xhtml/sunburst.render
131
115
  - render/xhtml/twilight.render
132
116
  - render/xhtml/zenburnesque.render
117
+ - spec/spec_helper.rb
118
+ - spec/ultraviolet_spec.rb
133
119
  - syntax/actionscript.syntax
134
120
  - syntax/active4d.syntax
135
121
  - syntax/active4d_html.syntax
@@ -146,6 +132,8 @@ files:
146
132
  - syntax/blog_markdown.syntax
147
133
  - syntax/blog_text.syntax
148
134
  - syntax/blog_textile.syntax
135
+ - syntax/broken/markdown.syntax
136
+ - syntax/broken/php.syntax
149
137
  - syntax/buggy/nemerle.syntax
150
138
  - syntax/build.syntax
151
139
  - syntax/bulletin_board.syntax
@@ -291,43 +279,35 @@ files:
291
279
  - syntax/xsl.syntax
292
280
  - syntax/yaml.syntax
293
281
  - syntax/yui_javascript.syntax
294
- - test/ultraviolet_test.rb
295
- - test/uv_test.rb
296
282
  - ultraviolet1x.gemspec
297
- has_rdoc: true
298
283
  homepage: http://github.com/grosser/ultraviolet
299
- licenses:
284
+ licenses:
300
285
  - MIT
301
286
  post_install_message:
302
- rdoc_options:
287
+ rdoc_options:
303
288
  - --main
304
289
  - README.rdoc
305
- require_paths:
290
+ require_paths:
306
291
  - lib
307
- required_ruby_version: !ruby/object:Gem::Requirement
292
+ required_ruby_version: !ruby/object:Gem::Requirement
308
293
  none: false
309
- requirements:
310
- - - ">="
311
- - !ruby/object:Gem::Version
312
- hash: 3
313
- segments:
294
+ requirements:
295
+ - - ! '>='
296
+ - !ruby/object:Gem::Version
297
+ version: '0'
298
+ segments:
314
299
  - 0
315
- version: "0"
316
- required_rubygems_version: !ruby/object:Gem::Requirement
300
+ hash: -1031764659
301
+ required_rubygems_version: !ruby/object:Gem::Requirement
317
302
  none: false
318
- requirements:
319
- - - ">="
320
- - !ruby/object:Gem::Version
321
- hash: 3
322
- segments:
323
- - 0
324
- version: "0"
303
+ requirements:
304
+ - - ! '>='
305
+ - !ruby/object:Gem::Version
306
+ version: '0'
325
307
  requirements: []
326
-
327
308
  rubyforge_project:
328
- rubygems_version: 1.6.2
309
+ rubygems_version: 1.8.10
329
310
  signing_key:
330
311
  specification_version: 3
331
312
  summary: Ultraviolet syntax highlighting gem for Ruby18 and Ruby19
332
313
  test_files: []
333
-
@@ -1,17 +0,0 @@
1
- require 'rubygems'
2
- require 'test/unit'
3
-
4
- $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
5
-
6
- require 'uv'
7
-
8
- class UltravioletTest < Test::Unit::TestCase
9
- def test_parses_blank
10
- assert_equal %(<pre class="mac_classic"></pre>),
11
- Uv.parse('', 'xhtml', 'css')
12
- end
13
-
14
- def test_debugs
15
- assert_kind_of Textpow::DebugProcessor, Uv.debug('', 'css')
16
- end
17
- end
data/test/uv_test.rb DELETED
File without changes