sugar-high 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ require 'psych'
2
+
1
3
  begin
2
4
  require 'jeweler'
3
5
  Jeweler::Tasks.new do |gem|
@@ -7,7 +9,7 @@ begin
7
9
  gem.email = "kmandrup@gmail.com"
8
10
  gem.homepage = "http://github.com/kristianmandrup/sugar-high"
9
11
  gem.authors = ["Kristian Mandrup"]
10
- gem.add_development_dependency "rspec", ">= 2.0.0"
12
+ gem.add_development_dependency "rspec", ">= 2.4.1"
11
13
 
12
14
  gem.add_dependency "require_all", "~> 1.2.0"
13
15
  gem.add_dependency "mocha", ">= 0.9.8"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.6
@@ -2,6 +2,7 @@ class NilClass
2
2
  def blank?
3
3
  true
4
4
  end
5
+
5
6
  alias_method :wblank?, :blank?
6
7
  alias_method :empty?, :blank?
7
8
 
@@ -11,12 +12,15 @@ class NilClass
11
12
  end
12
13
 
13
14
  class String
14
- def blank?
15
- self.empty?
16
- end
17
-
18
15
  def wblank?
19
- self.strip.blank?
16
+ self.strip == ''
17
+ end
18
+
19
+ if !defined? ::Rails
20
+ def blank?
21
+ self.strip == ''
22
+ end
20
23
  end
21
24
  end
22
25
 
26
+
data/sugar-high.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sugar-high}
8
- s.version = "0.3.5"
8
+ s.version = "0.3.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
12
- s.date = %q{2011-01-18}
12
+ s.date = %q{2011-02-28}
13
13
  s.description = %q{More Ruby sugar - inspired by the 'zuker' project}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -65,7 +65,7 @@ Gem::Specification.new do |s|
65
65
  ]
66
66
  s.homepage = %q{http://github.com/kristianmandrup/sugar-high}
67
67
  s.require_paths = ["lib"]
68
- s.rubygems_version = %q{1.3.7}
68
+ s.rubygems_version = %q{1.5.2}
69
69
  s.summary = %q{Ruby convenience sugar packs!}
70
70
  s.test_files = [
71
71
  "spec/fixtures/class_file.rb",
@@ -87,20 +87,19 @@ Gem::Specification.new do |s|
87
87
  ]
88
88
 
89
89
  if s.respond_to? :specification_version then
90
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
91
90
  s.specification_version = 3
92
91
 
93
92
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
94
- s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
93
+ s.add_development_dependency(%q<rspec>, [">= 2.4.1"])
95
94
  s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
96
95
  s.add_runtime_dependency(%q<mocha>, [">= 0.9.8"])
97
96
  else
98
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
97
+ s.add_dependency(%q<rspec>, [">= 2.4.1"])
99
98
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
100
99
  s.add_dependency(%q<mocha>, [">= 0.9.8"])
101
100
  end
102
101
  else
103
- s.add_dependency(%q<rspec>, [">= 2.0.0"])
102
+ s.add_dependency(%q<rspec>, [">= 2.4.1"])
104
103
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
105
104
  s.add_dependency(%q<mocha>, [">= 0.9.8"])
106
105
  end
metadata CHANGED
@@ -1,77 +1,58 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sugar-high
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- - 5
9
- version: 0.3.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.6
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Kristian Mandrup
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-01-18 00:00:00 +01:00
12
+ date: 2011-02-28 00:00:00.000000000 +01:00
18
13
  default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
21
16
  name: rspec
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2154945320 !ruby/object:Gem::Requirement
24
18
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- - 0
31
- - 0
32
- version: 2.0.0
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 2.4.1
33
23
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: require_all
37
24
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *2154945320
26
+ - !ruby/object:Gem::Dependency
27
+ name: require_all
28
+ requirement: &2154944800 !ruby/object:Gem::Requirement
39
29
  none: false
40
- requirements:
30
+ requirements:
41
31
  - - ~>
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 1
45
- - 2
46
- - 0
32
+ - !ruby/object:Gem::Version
47
33
  version: 1.2.0
48
34
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: mocha
52
35
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *2154944800
37
+ - !ruby/object:Gem::Dependency
38
+ name: mocha
39
+ requirement: &2154944120 !ruby/object:Gem::Requirement
54
40
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- - 9
61
- - 8
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
62
44
  version: 0.9.8
63
45
  type: :runtime
64
- version_requirements: *id003
46
+ prerelease: false
47
+ version_requirements: *2154944120
65
48
  description: More Ruby sugar - inspired by the 'zuker' project
66
49
  email: kmandrup@gmail.com
67
50
  executables: []
68
-
69
51
  extensions: []
70
-
71
- extra_rdoc_files:
52
+ extra_rdoc_files:
72
53
  - LICENSE
73
54
  - README.markdown
74
- files:
55
+ files:
75
56
  - .document
76
57
  - .rspec
77
58
  - LICENSE
@@ -120,36 +101,29 @@ files:
120
101
  has_rdoc: true
121
102
  homepage: http://github.com/kristianmandrup/sugar-high
122
103
  licenses: []
123
-
124
104
  post_install_message:
125
105
  rdoc_options: []
126
-
127
- require_paths:
106
+ require_paths:
128
107
  - lib
129
- required_ruby_version: !ruby/object:Gem::Requirement
108
+ required_ruby_version: !ruby/object:Gem::Requirement
130
109
  none: false
131
- requirements:
132
- - - ">="
133
- - !ruby/object:Gem::Version
134
- segments:
135
- - 0
136
- version: "0"
137
- required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
115
  none: false
139
- requirements:
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- segments:
143
- - 0
144
- version: "0"
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
145
120
  requirements: []
146
-
147
121
  rubyforge_project:
148
- rubygems_version: 1.3.7
122
+ rubygems_version: 1.5.2
149
123
  signing_key:
150
124
  specification_version: 3
151
125
  summary: Ruby convenience sugar packs!
152
- test_files:
126
+ test_files:
153
127
  - spec/fixtures/class_file.rb
154
128
  - spec/spec_helper.rb
155
129
  - spec/sugar-high/alias_spec.rb