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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/oror.rb +19 -17
  4. data/oror.gemspec +2 -2
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9174e898cb0cf6d95555783cfa0b903a3213436c
4
- data.tar.gz: 6fc266b09c56fe6c9a60ce4490d70e880d87b4e5
3
+ metadata.gz: cec1fdc134bfaed87126d7f5fde0bcb2cc81b6f9
4
+ data.tar.gz: 2974e03f23d7a53db8764255519fdb6538634379
5
5
  SHA512:
6
- metadata.gz: 0fce037b8659a0388c8850c424c1e36973c729a14fef52126ae83f54fb6a6363e613f93ad5eb88f3b16c14960509e59b814b40cb033cf0350b47386ad06ad0b0
7
- data.tar.gz: 3e821d0efa4b13804e6f8edfa1eb4a4686377b6a74a1764afdd1edb95034618727ddec539dc86ecc15941aa1c19847a7abf964781872ed25dab147ecee78a152
6
+ metadata.gz: 5090835c94c49d321fdcd78237aeb524469187655d8d39ab400c354b08c49f96211b3913b2d30cfa328b54b6b79ec681f80f723d16ae9792b7f050a0a5db15c4
7
+ data.tar.gz: 21273ddf5f992adf5e0a5695c7588154cc8cfcb64ee529f3eaa59f2375ddd8f0be55aad54928d7509028c9dbc8cb1d1fc41aa1c6c01e5fa99d47df2ac281598d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.3.0
data/lib/oror.rb CHANGED
@@ -1,21 +1,23 @@
1
- # from https://github.com/rails/rails/blob/42b0c942520e59399d70c2170253aa5275a42af1/activesupport/lib/active_support/core_ext/object/blank.rb#L115
2
- class String
3
- BLANK_RE = /\A[[:space:]]*\z/
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
- # A string is blank if it's empty or contains whitespaces only:
6
- #
7
- # ''.blank? # => true
8
- # ' '.blank? # => true
9
- # "\t\n\r".blank? # => true
10
- # ' blah '.blank? # => false
11
- #
12
- # Unicode whitespace is supported:
13
- #
14
- # "\u00a0".blank? # => true
15
- #
16
- # @return [true, false]
17
- def blank?
18
- BLANK_RE === self
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.1.0 ruby lib
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.1.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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oror
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juraj Masar