summaryrefslogtreecommitdiff
path: root/lib/coderay
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay')
-rw-r--r--lib/coderay/encoders/html.rb2
-rw-r--r--lib/coderay/encoders/html/css.rb2
-rw-r--r--lib/coderay/helpers/plugin.rb4
-rw-r--r--lib/coderay/styles/cycnus.rb2
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb
index df4130e..e456356 100644
--- a/lib/coderay/encoders/html.rb
+++ b/lib/coderay/encoders/html.rb
@@ -71,7 +71,7 @@ module Encoders
:level => :xhtml,
:css => :class,
- :style => :cYcnus,
+ :style => :cycnus,
:wrap => :page,
diff --git a/lib/coderay/encoders/html/css.rb b/lib/coderay/encoders/html/css.rb
index 69d002a..ef564ce 100644
--- a/lib/coderay/encoders/html/css.rb
+++ b/lib/coderay/encoders/html/css.rb
@@ -3,7 +3,7 @@ module CodeRay module Encoders
class HTML
class CSS
- DEFAULT_STYLESHEET_ID = :cYcnus
+ DEFAULT_STYLESHEET_ID = :cycnus
attr :stylesheet
diff --git a/lib/coderay/helpers/plugin.rb b/lib/coderay/helpers/plugin.rb
index 37bdc4c..f88fe7f 100644
--- a/lib/coderay/helpers/plugin.rb
+++ b/lib/coderay/helpers/plugin.rb
@@ -206,7 +206,7 @@ protected
File.join plugin_path, "#{plugin_id}.rb"
end
- # Converts +id+ to a downcase Symbol if it is a String,
+ # Converts +id+ to a Symbol if it is a String,
# or returns +id+ if it already is a Symbol.
#
# Raises +ArgumentError+ for all other objects, or if the
@@ -216,7 +216,7 @@ protected
id
elsif id.is_a? String
if id[/\w+/] == id
- id.downcase.to_sym
+ id.to_sym
else
raise ArgumentError, "Invalid id: '#{id}' given."
end
diff --git a/lib/coderay/styles/cycnus.rb b/lib/coderay/styles/cycnus.rb
index 264b5fe..ec19fae 100644
--- a/lib/coderay/styles/cycnus.rb
+++ b/lib/coderay/styles/cycnus.rb
@@ -3,7 +3,7 @@ module CodeRay
class CYcnus < Style
- register_for :cYcnus
+ register_for :cycnus
code_background = '#f8f8f8'
numbers_background = '#def'