haml-coderay 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +6 -6
  2. data/VERSION +1 -0
  3. data/lib/haml-coderay.rb +18 -6
  4. metadata +85 -104
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  haml-coderay
2
2
  ============
3
3
 
4
- * [Homepage](http://github.com/blom/haml-coderay)
5
- * [Documentation](http://rdoc.info/projects/blom/haml-coderay)
4
+ * [Homepage](https://github.com/blom/haml-coderay)
5
+ * [Documentation](http://rdoc.info/gems/haml-coderay)
6
6
 
7
- [CodeRay][1] filter for [Haml][2]. Specify which [language][3] to
8
- highlight with a shebang followed by the language name:
7
+ [CodeRay][1] filter for [Haml][2]. Specify which [language][3] to highlight
8
+ with a shebang followed by the language name:
9
9
 
10
10
  :coderay
11
11
  #!ruby
@@ -16,8 +16,8 @@ highlight with a shebang followed by the language name:
16
16
 
17
17
  Use `:coderay_raw` if you want to disable `#{}` interpolation.
18
18
 
19
- The default [encoder][4] and encoder options are `:div` and `{}`,
20
- respectively, and they can be altered through:
19
+ The default [encoder][4] and encoder options are `:div` and `{}`, respectively,
20
+ and they can be altered through:
21
21
 
22
22
  Haml::Filters::CodeRay.encoder
23
23
  Haml::Filters::CodeRay.encoder_options
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.2
data/lib/haml-coderay.rb CHANGED
@@ -12,26 +12,28 @@ require "haml"
12
12
  # puts "hello"
13
13
  # end
14
14
  #
15
+ # @see Haml::Filters::CodeRay_raw
15
16
  # @see http://haml-lang.com/docs/yardoc/Haml/Filters.html
16
17
  # @see http://coderay.rubychan.de/doc/classes/CodeRay/Scanners.html
17
18
  module Haml::Filters::CodeRay
18
19
  include Haml::Filters::Base
19
20
  lazy_require "coderay"
20
21
 
21
- defined?(self::VERSION) ||
22
- VERSION = "0.1.1".freeze
22
+ ENCODER = :div
23
+ ENCODER_OPTIONS = {}
24
+ VERSION = File.read(File.expand_path("../../VERSION", __FILE__)).chomp
23
25
 
24
26
  # Encoder (_default_: `:div`).
25
27
  #
26
28
  # @see http://coderay.rubychan.de/doc/classes/CodeRay/Encoders.html
27
29
  attr_accessor :encoder
28
- self.encoder ||= :div
30
+ self.encoder ||= ENCODER
29
31
 
30
32
  # Encoder options (_default_: `{}`).
31
33
  #
32
34
  # @see http://coderay.rubychan.de/doc/classes/CodeRay/Encoders.html
33
35
  attr_accessor :encoder_options
34
- self.encoder_options ||= {}
36
+ self.encoder_options ||= ENCODER_OPTIONS
35
37
 
36
38
  # Prepares the text for passing to `::CodeRay.scan`.
37
39
  #
@@ -50,8 +52,18 @@ module Haml::Filters::CodeRay
50
52
  end
51
53
  end
52
54
 
53
- # {Haml::Filters::CodeRay} without `#{}` interpolation. Use `:coderay_raw`
54
- # instead of `:coderay`.
55
+ # {Haml::Filters::CodeRay} without `#{}` interpolation.
56
+ #
57
+ # @example Ruby
58
+ #
59
+ # :coderay_raw
60
+ # #!ruby
61
+ #
62
+ # if true
63
+ # puts "#{hello}"
64
+ # end
65
+ #
66
+ # @see Haml::Filters::CodeRay
55
67
  module Haml::Filters::CodeRay_raw
56
68
  include Haml::Filters::Base
57
69
  lazy_require "coderay"
metadata CHANGED
@@ -1,152 +1,133 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: haml-coderay
3
- version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
13
- - "\xC3\x98rjan Blom"
7
+ authors:
8
+ - Ørjan Blom
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2010-08-21 00:00:00 +02:00
12
+ date: 2011-06-04 00:00:00.000000000 +02:00
19
13
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: coderay
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2156334660 !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
33
23
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: haml
37
24
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *2156334660
26
+ - !ruby/object:Gem::Dependency
27
+ name: haml
28
+ requirement: &2156333560 !ruby/object:Gem::Requirement
39
29
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
47
34
  type: :runtime
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: bluecloth
51
35
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *2156333560
37
+ - !ruby/object:Gem::Dependency
38
+ name: bluecloth
39
+ requirement: &2156332720 !ruby/object:Gem::Requirement
53
40
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
61
45
  type: :development
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
46
+ prerelease: false
47
+ version_requirements: *2156332720
48
+ - !ruby/object:Gem::Dependency
64
49
  name: mg
50
+ requirement: &2156331840 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ type: :development
65
57
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
58
+ version_requirements: *2156331840
59
+ - !ruby/object:Gem::Dependency
60
+ name: rcov
61
+ requirement: &2156330900 !ruby/object:Gem::Requirement
67
62
  none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
75
67
  type: :development
76
- version_requirements: *id004
77
- - !ruby/object:Gem::Dependency
78
- name: rspec
79
68
  prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
69
+ version_requirements: *2156330900
70
+ - !ruby/object:Gem::Dependency
71
+ name: rspec
72
+ requirement: &2156329820 !ruby/object:Gem::Requirement
81
73
  none: false
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- hash: 3
86
- segments:
87
- - 0
88
- version: "0"
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '2'
89
78
  type: :development
90
- version_requirements: *id005
91
- - !ruby/object:Gem::Dependency
92
- name: yard
93
79
  prerelease: false
94
- requirement: &id006 !ruby/object:Gem::Requirement
80
+ version_requirements: *2156329820
81
+ - !ruby/object:Gem::Dependency
82
+ name: yard
83
+ requirement: &2156329160 !ruby/object:Gem::Requirement
95
84
  none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- hash: 3
100
- segments:
101
- - 0
102
- version: "0"
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
103
89
  type: :development
104
- version_requirements: *id006
90
+ prerelease: false
91
+ version_requirements: *2156329160
105
92
  description: Adds a CodeRay syntax highlighting filter to Haml
106
93
  email: blom@blom.tv
107
94
  executables: []
108
-
109
95
  extensions: []
110
-
111
96
  extra_rdoc_files: []
112
-
113
- files:
97
+ files:
114
98
  - lib/haml-coderay.rb
115
99
  - LICENSE
116
100
  - README.md
101
+ - VERSION
117
102
  has_rdoc: true
118
- homepage: http://github.com/blom/haml-coderay
103
+ homepage: https://github.com/blom/haml-coderay
119
104
  licenses: []
120
-
121
105
  post_install_message:
122
106
  rdoc_options: []
123
-
124
- require_paths:
107
+ require_paths:
125
108
  - lib
126
- required_ruby_version: !ruby/object:Gem::Requirement
109
+ required_ruby_version: !ruby/object:Gem::Requirement
127
110
  none: false
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- hash: 3
132
- segments:
111
+ requirements:
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ segments:
133
116
  - 0
134
- version: "0"
135
- required_rubygems_version: !ruby/object:Gem::Requirement
117
+ hash: 1768704131557402429
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
119
  none: false
137
- requirements:
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- hash: 3
141
- segments:
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ segments:
142
125
  - 0
143
- version: "0"
126
+ hash: 1768704131557402429
144
127
  requirements: []
145
-
146
128
  rubyforge_project:
147
- rubygems_version: 1.3.7
129
+ rubygems_version: 1.6.2
148
130
  signing_key:
149
131
  specification_version: 3
150
132
  summary: CodeRay filter for Haml
151
133
  test_files: []
152
-