lib/plezi/helpers/magic_helpers.rb in plezi-0.11.2 vs lib/plezi/helpers/magic_helpers.rb in plezi-0.12.0
- old
+ new
@@ -30,11 +30,11 @@
# encodes URL data
def self.encode_url str
(str.to_s.gsub(/[^a-z0-9\*\.\_\-]/i) {|m| '%%%02x'.freeze % m.ord }).force_encoding(::Encoding::ASCII_8BIT)
end
- # Adds paramaters to a Hash object, according to the GRHttp's server conventions.
+ # Adds paramaters to a Hash object, according to the Iodine's server conventions.
def self.add_param_to_hash name, value, target
begin
c = target
val = rubyfy! value
a = name.chomp('[]'.freeze).split('['.freeze)
@@ -62,11 +62,11 @@
c[n] = [val]
end
end
val
rescue => e
- GReactor.error e
- GReactor.error "(Silent): parameters parse error for #{name} ... maybe conflicts with a different set?"
+ Iodine.error e
+ Iodine.error "(Silent): parameters parse error for #{name} ... maybe conflicts with a different set?"
target[name] = val
end
end
# Changes String to a Ruby Object, if it's a special string...
def self.rubyfy!(string)