abstracts 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/abstracts.rb +1 -1
  3. data/lib/object.rb +12 -0
  4. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5000ac8ba8a4dbe908ebab93109caa3f3106dd2
4
- data.tar.gz: f7edafa3a8323d898c9a156069d9d259f9fb732c
3
+ metadata.gz: f3cdb6d69d98c5c3c603a686739b60021d205022
4
+ data.tar.gz: fe6bdb3a42aaf7b7ad79095c90e5fb1a92dbbfe0
5
5
  SHA512:
6
- metadata.gz: e464b8a41e67f8f80dd0643c80c534f238fadb5a3e24b0c09f2309d5818e1a7b4112803371da65c4bac8001d3fcdd0d12ced4565bfc53565f9320954ac4ea3e5
7
- data.tar.gz: 75e1f2d08106c23525a4c163707140667141e2756474c3e8daeba5b9f3d21c9bf83d5ca51cc2edb1ff6c284932ae10febcb015df8f848ee05e7004750115143e
6
+ metadata.gz: 980f46f5c97955579353bea85194a7f20fd3aeacfed0ce0215c0db2e453c8dfcb7c6b433476802a91d3ee457f9dd8cd50ea3309dd5e44199fbeca69c8f52d696
7
+ data.tar.gz: e7debec4c0e20f8a054e022057fc0f31b422a757163d956bec207cfb6aec6ea4490edf01ba67c6236c73701e736e7ea5fa58ff670892ddc54d5f07785bcc7707
data/lib/abstracts.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Abstract module: have to be moved somewhere to core
1
+ # Abstract module
2
2
  module Abstract
3
3
  # Abstract::Object class
4
4
  class Object
data/lib/object.rb ADDED
@@ -0,0 +1,12 @@
1
+ # Check if object is blank
2
+ # @return [Trueclass, FalseClass] - is object nil or empty
3
+ class Object
4
+ def blank?
5
+ begin
6
+ return true if nil? || empty?
7
+ rescue
8
+ false
9
+ end
10
+ false
11
+ end
12
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abstracts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vsevolod Suzdaltsev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-24 00:00:00.000000000 Z
11
+ date: 2018-10-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Abstract classes gem
14
14
  email: suzdaltsev_v@mail.ru
@@ -17,6 +17,7 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - lib/abstracts.rb
20
+ - lib/object.rb
20
21
  homepage: http://rubygems.org/gems/abstracts
21
22
  licenses:
22
23
  - MIT
@@ -41,5 +42,5 @@ rubyforge_project:
41
42
  rubygems_version: 2.6.6
42
43
  signing_key:
43
44
  specification_version: 4
44
- summary: Abstract classes
45
+ summary: Abstract classes + stuff
45
46
  test_files: []