ruby_extendsions 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,13 @@ module RubyExtendsions
32
32
  return b
33
33
  end
34
34
 
35
+ #for rails
36
+ def is_blank_all?
37
+ b = true
38
+ self.each {|i| b = false if !i.blank? }
39
+ return b
40
+ end
41
+
35
42
  #Random return an Array item
36
43
  def random
37
44
  return self[rand(self.size)]
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "ruby_extendsions"
5
- s.version = "0.1.6"
5
+ s.version = "0.1.7"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["blackanger"]
8
8
  s.email = ["blackanger.z@gmail.com"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_extendsions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - blackanger
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-07 00:00:00 +08:00
18
+ date: 2011-01-09 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency