minisyntax 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,13 +9,13 @@ module MiniSyntax
9
9
  options = $5
10
10
  ruby = $8
11
11
  result << %Q(<em>#{tag}</em>) if tag
12
- result << classes_and_id if classes_and_id
12
+ result << %Q(<b>#{classes_and_id}</b>) unless classes_and_id.blank?
13
13
  result << options if options
14
14
  result << MiniSyntax.highlight(ruby, :ruby) if ruby
15
15
  result
16
16
  end
17
- code.gsub! /^( )*(-.+?)$/ do
18
- %Q(#{$1}#{MiniSyntax.highlight($2, :ruby)})
17
+ code.gsub! /^(( )*)(-(.+?))$/ do
18
+ %Q(#{$1}-#{MiniSyntax.highlight($4, :ruby)})
19
19
  end
20
20
  code
21
21
  end
@@ -23,4 +23,4 @@ module MiniSyntax
23
23
  end
24
24
  end
25
25
 
26
- MiniSyntax.register(:haml, MiniSyntax::Highlighter::Haml)
26
+ MiniSyntax.register(:haml, MiniSyntax::Highlighter::Haml)
@@ -34,7 +34,7 @@ module MiniSyntax
34
34
  end
35
35
  end
36
36
  code.gsub!('<i><i>', '<i>')
37
- "hallo" +code
37
+ code
38
38
  end
39
39
  end
40
40
  end
data/lib/minisyntax.rb CHANGED
@@ -2,7 +2,7 @@ module MiniSyntax
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- PATCH = 0
5
+ PATCH = 1
6
6
  BUILD = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
data/minisyntax.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "minisyntax"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nico Hagenburger"]
12
- s.date = "2013-02-20"
12
+ s.date = "2013-11-01"
13
13
  s.description = "A simple powerful syntax highlighter with minimal HTML output"
14
14
  s.email = "nico@hagenburger.net"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minisyntax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-20 00:00:00.000000000Z
12
+ date: 2013-11-01 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70153028824840 !ruby/object:Gem::Requirement
16
+ requirement: &70151538726240 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.3.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70153028824840
24
+ version_requirements: *70151538726240
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70153028824300 !ruby/object:Gem::Requirement
27
+ requirement: &70151538725760 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70153028824300
35
+ version_requirements: *70151538725760
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &70153028823720 !ruby/object:Gem::Requirement
38
+ requirement: &70151538725240 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.5.2
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70153028823720
46
+ version_requirements: *70151538725240
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &70153028823200 !ruby/object:Gem::Requirement
49
+ requirement: &70151538724700 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70153028823200
57
+ version_requirements: *70151538724700
58
58
  description: A simple powerful syntax highlighter with minimal HTML output
59
59
  email: nico@hagenburger.net
60
60
  executables: []
@@ -99,7 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  segments:
101
101
  - 0
102
- hash: -741612678810631426
102
+ hash: -2104760023218720883
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  none: false
105
105
  requirements: