null_question 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7ae9904893d7df9703916cb6d8c43bdba8584113
4
- data.tar.gz: a62a4053ec1be5675a255238754480d76d2dfc08
2
+ SHA256:
3
+ metadata.gz: f26d849633ab8800eab198386d51148e2a728e4db48cef8a3d27163412c93b36
4
+ data.tar.gz: 5f5191a16adfa0b4b73c2762247407bc69cf02f79754d372b09e0c75f6dd3a49
5
5
  SHA512:
6
- metadata.gz: 6cc71f2856ffe57a121df075701f791709090adeab869fbc28d64ed6fe4f9a4a9074a5d492d34c10df06d864af1f7108c20299bf1244b74deffc3d3be090dd25
7
- data.tar.gz: f4260a83c233f32661ca130c02b6a04ee3b1cc2e7218d2844b4a52346cb1f636275293358b15773b83344ad0afb782b52317bb5c073318ad7b541d43434d527f
6
+ metadata.gz: 05fa6b7ffc874eccfad42bea6c28f0d6ccffe5891ae1880597f1a7c61974c2ed6463c9461f06e6698df6fcf24c8bb489da89cb1de9d50cb904ceb9e18fdb6470
7
+ data.tar.gz: d2c4f10b750d793256557caede463267b8d8fdebfcd7de578a24b6594319a28a73152baacb333b97ee3158389cd7d85e0ab509c02b17e189aaf116afd72a5780
@@ -1,6 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
- ### 1.0.0
3
+ ### 1.0.1
4
+
5
+ * Relax Ruby version requirement to allow Ruby 3.0
4
6
 
5
- * Inital release
7
+ ### 1.0.0
6
8
 
9
+ * Initial release
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) 2015 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2015 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,25 +1,23 @@
1
- # Object#null? [![[version]](https://badge.fury.io/rb/null_question.svg)](http://badge.fury.io/rb/null_question) [![[travis]](https://travis-ci.org/janlelis/null_question.png)](https://travis-ci.org/janlelis/null_question)
1
+ # Object#null? [![[version]](https://badge.fury.io/rb/null_question.svg)](https://badge.fury.io/rb/null_question) [![[ci]](https://github.com/janlelis/null_question/workflows/Test/badge.svg)](https://github.com/janlelis/null_question/actions?query=workflow%3ATest)
2
2
 
3
- Adds NilClass#null? #=> true and Object#null? #=> false
4
-
5
- Useful for implementing custom null objects that also return true for `#null?`
3
+ Adds `NilClass#null? #=> true` and `Object#null? #=> false`
6
4
 
5
+ Useful for implementing custom null objects that will also return true for `#null?`
7
6
 
8
7
  ## Setup
9
8
 
10
- Add to your `Gemfile`:
9
+ Add to your **Gemfile**:
11
10
 
12
11
  ```ruby
13
12
  gem 'null_question'
14
13
  ```
15
14
 
16
-
17
15
  ## Usage
18
16
 
19
17
  ```ruby
20
18
  class NullObject
21
19
  def null?
22
- true
20
+ true
23
21
  end
24
22
  end
25
23
 
@@ -28,7 +26,6 @@ NullObject.new.null? #=> true
28
26
  Object.new.null? #=> false
29
27
  ```
30
28
 
31
-
32
29
  ## J-_-L
33
30
 
34
- Copyright (C) 2015 Jan Lelis <http://janlelis.com>. Released under the MIT license.
31
+ Copyright (C) 2015 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
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NullQuestion
2
- VERSION = "1.0.0".freeze
4
+ VERSION = "1.0.1"
3
5
  end
4
6
 
5
7
  class NilClass
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
8
8
  gem.summary = "Object#null?"
9
9
  gem.description = "Adds NilClass#null? #=> true and Object#null? #=> false"
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/null_question"
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
metadata CHANGED
@@ -1,24 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: null_question
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: 2015-04-13 00:00:00.000000000 Z
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Adds NilClass#null? #=> true and Object#null? #=> false'
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
24
23
  - MIT-LICENSE.txt
@@ -37,7 +36,7 @@ require_paths:
37
36
  - lib
38
37
  required_ruby_version: !ruby/object:Gem::Requirement
39
38
  requirements:
40
- - - "~>"
39
+ - - ">="
41
40
  - !ruby/object:Gem::Version
42
41
  version: '2.0'
43
42
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -46,11 +45,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
46
45
  - !ruby/object:Gem::Version
47
46
  version: '0'
48
47
  requirements: []
49
- rubyforge_project:
50
- rubygems_version: 2.4.6
48
+ rubygems_version: 3.2.4
51
49
  signing_key:
52
50
  specification_version: 4
53
51
  summary: Object#null?
54
52
  test_files:
55
53
  - spec/null_question_spec.rb
56
- has_rdoc:
@@ -1,18 +0,0 @@
1
- sudo: false
2
- language: ruby
3
-
4
- script: bundle exec ruby spec/null_question_spec.rb
5
-
6
- rvm:
7
- - 2.2
8
- - 2.1
9
- - 2.0
10
- - rbx-2
11
- - jruby-head
12
- - jruby-9000
13
-
14
- cache:
15
- - bundler
16
-
17
- # matrix:
18
- # fast_finish: true