kelredd-useful 0.1.8.2 → 0.1.8.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module Useful
23
23
  if first_letter_in_uppercase
24
24
  lower_case_and_underscored_word.to_s.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }
25
25
  else
26
- lower_case_and_underscored_word.first.downcase + camelize(lower_case_and_underscored_word)[1..-1]
26
+ lower_case_and_underscored_word.[0..0].downcase + camelize(lower_case_and_underscored_word)[1..-1]
27
27
  end
28
28
  end
29
29
 
@@ -23,7 +23,7 @@ module Sinatra
23
23
  # EX : image_tag 'logo.jpg'
24
24
  # => <img src="images/logo.jpg" />
25
25
  def image_tag(src,options={})
26
- options[:src] = ['/'].include?(src.first) ? src : "/images/#{src}"
26
+ options[:src] = ['/'].include?(src[0..0]) ? src : "/images/#{src}"
27
27
  tag(:img, options)
28
28
  end
29
29
 
@@ -4,7 +4,7 @@ module Useful
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
6
  TINY = 8
7
- FIX = 2
7
+ FIX = 3
8
8
 
9
9
  def self.to_s # :nodoc:
10
10
  [MAJOR, MINOR, TINY, FIX].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-useful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.2
4
+ version: 0.1.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelredd