egonil 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c662ea596b9af71e1a7e853628bc784e429c8024
4
- data.tar.gz: 02701b0364a606deccc92fc0f642a5f98a881d7a
2
+ SHA256:
3
+ metadata.gz: 0fe1e2eb024b071b991b7de3509c318e61bad10d593ec3faaf35e352b84cc346
4
+ data.tar.gz: '038f0d662dc81f8999c848ff539273f1ec5fd966536cfed3c777b5639517f010'
5
5
  SHA512:
6
- metadata.gz: d42bfe4f62cddb79b581f0ca2381df02ad3e79b6f908d489bcb0f39d263e0491b5bf4114338449be8e6707c9e5fa38b7210865e9e8b26fcee275a7453a0ae1d5
7
- data.tar.gz: 8ed0f83699246913130fba6c0a775d11f79c1173d97c65fc5b08d159daf5ae8192618576737ace33e7db39653f472841e28d5d51459c7df5a9f816d4c82ebfa4
6
+ metadata.gz: f3bd579de74ea523c19b09c5acd34035ce9ca13479408d2c52318dda7e4c84096c6f5f47b14943673e2ad4d052c78b6c4c5c6025dc408c454b27034887699493
7
+ data.tar.gz: 9b29577742412453db65a9a1d13c8f80bec7b38e95709f8a3b3ea217af4fffd3a5d831f07f53e01c01b032f9e7b2144bf7713a3bdeff79f1355b1a996f3166b7
@@ -1,5 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.0.1
4
+
5
+ * Relax Ruby version requirement to allow Ruby 3.0
6
+
3
7
  ### 1.0.0
4
8
 
5
9
  * Moved from zucker gem into its own gem
data/Gemfile CHANGED
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  gem 'minitest'
6
+ gem 'rake'
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2016 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2010-2016 Jan Lelis, https://janlelis.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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) [![[travis]](https://travis-ci.org/janlelis/egonil.png)](https://travis-ci.org/janlelis/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://ruby.janlelis.de/26-the-28-bytes-of-ruby-joy)
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 <http://janlelis.com>. Released under the MIT license.
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
@@ -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 = ["mail@janlelis.de"]
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 = "~> 2.0"
20
+ gem.required_ruby_version = ">= 2.0"
21
21
  end
@@ -1,4 +1,6 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Egonil
2
- VERSION = "1.0.0".freeze
4
+ VERSION = "1.0.1"
3
5
  end
4
6
 
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.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: 2016-01-02 00:00:00.000000000 Z
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
- - mail@janlelis.de
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
- rubyforge_project:
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
@@ -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