Browse files

utf-8 magic comments added

  • Loading branch information...
1 parent ba51fa8 commit a11e9841284206f8f36cfdc94f0ef96694651c5a @jana4u committed May 10, 2012
Showing with 7 additions and 1 deletion.
  1. +1 −0 app/app.rb
  2. +1 −0 app/controllers.rb
  3. +1 −1 app/helpers.rb
  4. +1 −0 config/apps.rb
  5. +1 −0 config/boot.rb
  6. +1 −0 lib/cycle_helper.rb
  7. +1 −0 lib/integer_extractor.rb
View
1 app/app.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
class CraftCalculator < Padrino::Application
register Padrino::Rendering
register Padrino::Helpers
View
1 app/controllers.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
CraftCalculator.controllers do
include IntegerExtractor
View
2 app/helpers.rb
@@ -1,4 +1,4 @@
-# encoding: UTF-8
+# -*- encoding : utf-8 -*-
# Helper methods defined here can be accessed in any controller or view in the application
View
1 config/apps.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
##
# This file mounts each app in the Padrino project to a specified sub-uri.
# You can mount additional applications using any of these commands below:
View
1 config/boot.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
# Defines our constants
PADRINO_ENV = ENV["PADRINO_ENV"] ||= ENV["RACK_ENV"] ||= "development" unless defined?(PADRINO_ENV)
PADRINO_ROOT = File.expand_path('../..', __FILE__) unless defined?(PADRINO_ROOT)
View
1 lib/cycle_helper.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
# extracted from: actionpack-3.1.3/lib/action_view/helpers/text_helper.rb
module CycleHelper
View
1 lib/integer_extractor.rb
@@ -1,3 +1,4 @@
+# -*- encoding : utf-8 -*-
module IntegerExtractor
def non_negative_integer_from_string(string)
string.gsub(/[^0-9]/, "").to_i

0 comments on commit a11e984

Please sign in to comment.