egonil 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +3 -3
- data/Rakefile +15 -1
- data/egonil.gemspec +2 -2
- data/lib/egonil/version.rb +3 -1
- metadata +6 -7
- data/.travis.yml +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0fe1e2eb024b071b991b7de3509c318e61bad10d593ec3faaf35e352b84cc346
|
4
|
+
data.tar.gz: '038f0d662dc81f8999c848ff539273f1ec5fd966536cfed3c777b5639517f010'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3bd579de74ea523c19b09c5acd34035ce9ca13479408d2c52318dda7e4c84096c6f5f47b14943673e2ad4d052c78b6c4c5c6025dc408c454b27034887699493
|
7
|
+
data.tar.gz: 9b29577742412453db65a9a1d13c8f80bec7b38e95709f8a3b3ea217af4fffd3a5d831f07f53e01c01b032f9e7b2144bf7713a3bdeff79f1355b1a996f3166b7
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Egocentric Nil [![[version]](https://badge.fury.io/rb/egonil.svg)](http://badge.fury.io/rb/egonil)
|
1
|
+
# Egocentric Nil [![[version]](https://badge.fury.io/rb/egonil.svg)](http://badge.fury.io/rb/egonil) [![[ci]](https://github.com/janlelis/egonil/workflows/Test/badge.svg)](https://github.com/janlelis/egonil/actions?query=workflow%3ATest)
|
2
2
|
|
3
3
|
Creates a block, where `nil` does not raise `NoMethodError`s
|
4
4
|
|
@@ -12,7 +12,7 @@ end
|
|
12
12
|
## Further Information
|
13
13
|
|
14
14
|
- [The Hopelessly Egocentric Blog Post](https://github.com/raganwald-deprecated/homoiconic/blob/master/2009-02-02/hopeless_egocentricity.md)
|
15
|
-
- [The 25 Bytes of Ruby Joy!](http://
|
15
|
+
- [The 25 Bytes of Ruby Joy!](http://rbjl.janlelis.com/26-the-28-bytes-of-ruby-joy)
|
16
16
|
- [Safe navigation operator](https://bugs.ruby-lang.org/issues/11537)
|
17
17
|
- Null objects with [null_question](https://github.com/janlelis/null_question) and [exists](https://github.com/janlelis/exists) or [null_plus](https://github.com/janlelis/null_plus)
|
18
18
|
|
@@ -28,4 +28,4 @@ gem 'egonil'
|
|
28
28
|
|
29
29
|
## MIT License
|
30
30
|
|
31
|
-
Copyright (C) 2010-2016 Jan Lelis <
|
31
|
+
Copyright (C) 2010-2016 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# # #
|
2
2
|
# Get gemspec info
|
3
3
|
|
4
|
-
gemspec_file = Dir['*.gemspec'].first
|
4
|
+
gemspec_file = Dir['*.gemspec'].first
|
5
5
|
gemspec = eval File.read(gemspec_file), binding, gemspec_file
|
6
6
|
info = "#{gemspec.name} | #{gemspec.version} | " \
|
7
7
|
"#{gemspec.runtime_dependencies.size} dependencies | " \
|
@@ -28,3 +28,17 @@ desc "#{gemspec.name} | IRB"
|
|
28
28
|
task :irb do
|
29
29
|
sh "irb -I ./lib -r #{gemspec.name.gsub '-','/'}"
|
30
30
|
end
|
31
|
+
|
32
|
+
|
33
|
+
# # #
|
34
|
+
# Run Specs
|
35
|
+
|
36
|
+
desc "#{gemspec.name} | Spec"
|
37
|
+
task :spec do
|
38
|
+
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
|
39
|
+
sh "for %f in (spec/\*.rb) do ruby spec/%f"
|
40
|
+
else
|
41
|
+
sh "for file in spec/*.rb; do ruby $file; done"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
task default: :spec
|
data/egonil.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.summary = "Egocentric nil"
|
9
9
|
gem.description = "Creates a block, where nil does not raise NoMethodErrors."
|
10
10
|
gem.authors = ["Jan Lelis"]
|
11
|
-
gem.email = ["
|
11
|
+
gem.email = ["hi@ruby.consulting"]
|
12
12
|
gem.homepage = "https://github.com/janlelis/egonil"
|
13
13
|
gem.license = "MIT"
|
14
14
|
|
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.required_ruby_version = "
|
20
|
+
gem.required_ruby_version = ">= 2.0"
|
21
21
|
end
|
data/lib/egonil/version.rb
CHANGED
metadata
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egonil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Creates a block, where nil does not raise NoMethodErrors.
|
14
14
|
email:
|
15
|
-
-
|
15
|
+
- hi@ruby.consulting
|
16
16
|
executables: []
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- ".gitignore"
|
21
|
-
- ".travis.yml"
|
22
21
|
- CHANGELOG.md
|
23
22
|
- Gemfile
|
23
|
+
- Gemfile.lock
|
24
24
|
- MIT-LICENSE.txt
|
25
25
|
- README.md
|
26
26
|
- Rakefile
|
@@ -38,7 +38,7 @@ require_paths:
|
|
38
38
|
- lib
|
39
39
|
required_ruby_version: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- - "
|
41
|
+
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '2.0'
|
44
44
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -47,8 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
requirements: []
|
50
|
-
|
51
|
-
rubygems_version: 2.5.1
|
50
|
+
rubygems_version: 3.2.3
|
52
51
|
signing_key:
|
53
52
|
specification_version: 4
|
54
53
|
summary: Egocentric nil
|
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
|
4
|
-
script: bundle exec ruby spec/egonil_spec.rb
|
5
|
-
|
6
|
-
rvm:
|
7
|
-
- 2.3.0
|
8
|
-
- 2.2
|
9
|
-
- 2.1
|
10
|
-
- 2.0
|
11
|
-
- ruby-head
|
12
|
-
- rbx-2
|
13
|
-
- jruby-head
|
14
|
-
- jruby-9000
|
15
|
-
|
16
|
-
cache:
|
17
|
-
- bundler
|
18
|
-
|
19
|
-
# matrix:
|
20
|
-
# fast_finish: true
|