oror 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/oror.rb +19 -17
- data/oror.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cec1fdc134bfaed87126d7f5fde0bcb2cc81b6f9
|
4
|
+
data.tar.gz: 2974e03f23d7a53db8764255519fdb6538634379
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5090835c94c49d321fdcd78237aeb524469187655d8d39ab400c354b08c49f96211b3913b2d30cfa328b54b6b79ec681f80f723d16ae9792b7f050a0a5db15c4
|
7
|
+
data.tar.gz: 21273ddf5f992adf5e0a5695c7588154cc8cfcb64ee529f3eaa59f2375ddd8f0be55aad54928d7509028c9dbc8cb1d1fc41aa1c6c01e5fa99d47df2ac281598d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/lib/oror.rb
CHANGED
@@ -1,21 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
unless String.method_defined? :blank?
|
2
|
+
# from https://github.com/rails/rails/blob/42b0c942520e59399d70c2170253aa5275a42af1/activesupport/lib/active_support/core_ext/object/blank.rb#L115
|
3
|
+
class String
|
4
|
+
BLANK_RE = /\A[[:space:]]*\z/
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
6
|
+
# A string is blank if it's empty or contains whitespaces only:
|
7
|
+
#
|
8
|
+
# ''.blank? # => true
|
9
|
+
# ' '.blank? # => true
|
10
|
+
# "\t\n\r".blank? # => true
|
11
|
+
# ' blah '.blank? # => false
|
12
|
+
#
|
13
|
+
# Unicode whitespace is supported:
|
14
|
+
#
|
15
|
+
# "\u00a0".blank? # => true
|
16
|
+
#
|
17
|
+
# @return [true, false]
|
18
|
+
def blank?
|
19
|
+
BLANK_RE === self
|
20
|
+
end
|
19
21
|
end
|
20
22
|
end
|
21
23
|
|
data/oror.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: oror 0.
|
5
|
+
# stub: oror 0.3.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "oror"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.3.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|