haml-coderay 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/haml-coderay.rb +11 -14
  2. metadata +18 -6
data/lib/haml-coderay.rb CHANGED
@@ -19,22 +19,19 @@ module Haml::Filters::CodeRay
19
19
  lazy_require "coderay"
20
20
 
21
21
  defined?(self::VERSION) ||
22
- VERSION = "0.0.1".freeze
22
+ VERSION = "0.0.2".freeze
23
23
 
24
- @encoder = :div
25
- @encoder_options = {}
26
-
27
- class << self
28
- # Encoder (_default_: `:div`).
29
- #
30
- # @see http://coderay.rubychan.de/doc/classes/CodeRay/Encoders.html
31
- attr_accessor :encoder
24
+ # Encoder (_default_: `:div`).
25
+ #
26
+ # @see http://coderay.rubychan.de/doc/classes/CodeRay/Encoders.html
27
+ attr_accessor :encoder
28
+ self.encoder ||= :div
32
29
 
33
- # Encoder options (_default_: `{}`).
34
- #
35
- # @see http://coderay.rubychan.de/doc/classes/CodeRay/Encoders.html
36
- attr_accessor :encoder_options
37
- end
30
+ # Encoder options (_default_: `{}`).
31
+ #
32
+ # @see http://coderay.rubychan.de/doc/classes/CodeRay/Encoders.html
33
+ attr_accessor :encoder_options
34
+ self.encoder_options ||= {}
38
35
 
39
36
  # Prepares the text for passing to `::CodeRay.scan`.
40
37
  #
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - "\xC3\x98rjan Blom"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-03 00:00:00 +02:00
17
+ date: 2010-04-16 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -42,7 +42,7 @@ dependencies:
42
42
  type: :runtime
43
43
  version_requirements: *id002
44
44
  - !ruby/object:Gem::Dependency
45
- name: mg
45
+ name: bluecloth
46
46
  prerelease: false
47
47
  requirement: &id003 !ruby/object:Gem::Requirement
48
48
  requirements:
@@ -54,7 +54,7 @@ dependencies:
54
54
  type: :development
55
55
  version_requirements: *id003
56
56
  - !ruby/object:Gem::Dependency
57
- name: rspec
57
+ name: mg
58
58
  prerelease: false
59
59
  requirement: &id004 !ruby/object:Gem::Requirement
60
60
  requirements:
@@ -66,7 +66,7 @@ dependencies:
66
66
  type: :development
67
67
  version_requirements: *id004
68
68
  - !ruby/object:Gem::Dependency
69
- name: yard
69
+ name: rspec
70
70
  prerelease: false
71
71
  requirement: &id005 !ruby/object:Gem::Requirement
72
72
  requirements:
@@ -77,6 +77,18 @@ dependencies:
77
77
  version: "0"
78
78
  type: :development
79
79
  version_requirements: *id005
80
+ - !ruby/object:Gem::Dependency
81
+ name: yard
82
+ prerelease: false
83
+ requirement: &id006 !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ segments:
88
+ - 0
89
+ version: "0"
90
+ type: :development
91
+ version_requirements: *id006
80
92
  description: Adds a CodeRay syntax highlighting filter to Haml
81
93
  email: blom@blom.tv
82
94
  executables: []