sugar-high 0.4.6.2 → 0.4.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.6.2
1
+ 0.4.6.3
@@ -1,4 +1,15 @@
1
1
  class String
2
+ def trim
3
+ self.strip
4
+ end
5
+
6
+ def concat *args
7
+ args.inject(self) do |res, arg|
8
+ res << arg.to_s
9
+ res
10
+ end
11
+ end
12
+
2
13
  # remove prefixed '-' signs, then allow any letter, number, underscore '_' or dash '-'
3
14
  def alpha_numeric
4
15
  self.gsub(/^\-+/, '').gsub(/[^0-9a-zA-Z_\-]+/i, '')
data/sugar-high.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sugar-high}
8
- s.version = "0.4.6.2"
8
+ s.version = "0.4.6.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Kristian Mandrup}]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sugar-high
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6.2
4
+ version: 0.4.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-06-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &2153422960 !ruby/object:Gem::Requirement
16
+ requirement: &2156352420 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '2.5'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2153422960
24
+ version_requirements: *2156352420
25
25
  description: More Ruby sugar - inspired by the 'zuker' project
26
26
  email: kmandrup@gmail.com
27
27
  executables: []