creole 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +1 -1
  2. data/lib/creole.rb +2 -2
  3. data/test/test_creole.rb +1 -0
  4. metadata +28 -8
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'hoe'
3
3
  $:.unshift 'lib'
4
4
  require 'creole'
5
5
 
6
- Hoe.spec "creole" do |creole|
6
+ Hoe.spec "creole" do
7
7
  version = Creole::VERSION
8
8
  developer 'Lars Christensen', 'larsch@belunktum.dk'
9
9
  developer 'Daniel Mendler', 'mail@daniel-mendler.de'
@@ -37,7 +37,7 @@ require 'uri'
37
37
  # methods are: make_local_link
38
38
  class Creole
39
39
 
40
- VERSION = '0.3.4'
40
+ VERSION = '0.3.5'
41
41
 
42
42
  # CreoleError is raised when the Creole parser encounters
43
43
  # something unexpected. This is generally now thrown unless there is
@@ -238,7 +238,7 @@ class Creole
238
238
  else
239
239
  @out << escape_html($&)
240
240
  end
241
- when /\A\{\{\{(.*)\}\}\}/
241
+ when /\A\{\{\{(.*?\}*)\}\}\}/
242
242
  @out << '<tt>' << escape_html($1) << '</tt>'
243
243
  when /\A\{\{\s*(.*?)\s*(\|\s*(.*?)\s*)?\}\}/
244
244
  if uri = make_image_link($1)
@@ -362,6 +362,7 @@ class TestCreole < Test::Unit::TestCase
362
362
 
363
363
  # ... works inline
364
364
  tc "<p>Hello <tt>world</tt>.</p>", "Hello {{{world}}}."
365
+ tc "<p><tt>Hello</tt> <tt>world</tt>.</p>", "{{{Hello}}} {{{world}}}."
365
366
 
366
367
  # Creole1.0: No wiki markup is interpreted inbetween
367
368
  tc "<pre>**Hello**</pre>", "{{{\n**Hello**\n}}}\n"
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: creole
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ hash: 25
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 5
10
+ version: 0.3.5
5
11
  platform: ruby
6
12
  authors:
7
13
  - Lars Christensen
@@ -15,14 +21,20 @@ default_executable:
15
21
  dependencies:
16
22
  - !ruby/object:Gem::Dependency
17
23
  name: hoe
18
- type: :development
19
- version_requirement:
20
- version_requirements: !ruby/object:Gem::Requirement
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
21
27
  requirements:
22
28
  - - ">="
23
29
  - !ruby/object:Gem::Version
30
+ hash: 49
31
+ segments:
32
+ - 1
33
+ - 8
34
+ - 3
24
35
  version: 1.8.3
25
- version:
36
+ type: :development
37
+ version_requirements: *id001
26
38
  description: Creole is a Creole-to-HTML converter for Creole, the lightwight markup language (http://wikicreole.org/).
27
39
  email:
28
40
  - larsch@belunktum.dk
@@ -42,6 +54,8 @@ files:
42
54
  - test/test_creole.rb
43
55
  has_rdoc: true
44
56
  homepage: http://github.com/minad/creole
57
+ licenses: []
58
+
45
59
  post_install_message:
46
60
  rdoc_options:
47
61
  - --main
@@ -49,21 +63,27 @@ rdoc_options:
49
63
  require_paths:
50
64
  - lib
51
65
  required_ruby_version: !ruby/object:Gem::Requirement
66
+ none: false
52
67
  requirements:
53
68
  - - ">="
54
69
  - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
55
73
  version: "0"
56
- version:
57
74
  required_rubygems_version: !ruby/object:Gem::Requirement
75
+ none: false
58
76
  requirements:
59
77
  - - ">="
60
78
  - !ruby/object:Gem::Version
79
+ hash: 3
80
+ segments:
81
+ - 0
61
82
  version: "0"
62
- version:
63
83
  requirements: []
64
84
 
65
85
  rubyforge_project: creole
66
- rubygems_version: 1.3.1
86
+ rubygems_version: 1.3.7
67
87
  signing_key:
68
88
  specification_version: 2
69
89
  summary: Creole is a Creole-to-HTML converter for Creole, the lightwight markup language (http://wikicreole.org/).