first_existing 1.0.0 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92cfeca09f1bee46070a89a1b340fd2426869d08036a0e5beb68520a1b604a22
4
- data.tar.gz: 52db73129ed120f4a22e566303125300bfadf236babbbcd87c4ee29db4f5e7e4
3
+ metadata.gz: ca9cde49386293143d55a7f167a945276ac0252843de52ba8144263563be748a
4
+ data.tar.gz: a94cdca3ac6d328616fd6ad4a7b88380c7c398b9a104f407b780a711e68b1826
5
5
  SHA512:
6
- metadata.gz: 2f9c3756d6c0df4e8d32b12d50c8025d69e6458e1e926cd300316227d25fb128f85a03327e40118cc0b08c8b9b16dce4f0b4fe5f036dbda5139069658b8754d9
7
- data.tar.gz: a8fd1e97521fd6d416450d8d9a9e060ee0b5c858f245b41992fd0feab25b54d6a427d391ba534ab23f6a34fbd75ba2033d83efeea157e7633673765eddeca8b9
6
+ metadata.gz: 5ef7d9c1d5b83590d2face74c53a440ffad86bc642ac83830b4e4758df4199be0005b69cfcb9fc2faf5573b92710b8588e5cefa437dea490c5101ab33a0986a3
7
+ data.tar.gz: e2c787130c5145c33d4489f4050ffb7e9230de5cf3c47ec79ae095e015bc11aa4986da1b23918e1eb071c808a8f64cb12e6688e8cf8eb77a21605512349c5935
data/.gitignore CHANGED
@@ -11,3 +11,4 @@
11
11
  .rspec_status
12
12
 
13
13
  Gemfile.lock
14
+ *.gem
@@ -5,8 +5,8 @@ Gem::Specification.new do |spec|
5
5
  spec.version = FirstExisting::VERSION
6
6
  spec.authors = ["Jacob Lockard"]
7
7
  spec.email = ["jacoblockard99@gmail.com"]
8
-
9
- spec.summary = %q{Defines methods to help select existing objectd.}
8
+ spec.summary = %q{Selects the first existing object.}
9
+ spec.description = 'A simple Ruby gem that selects the first existing (non-nil) object in a set of objects.'
10
10
  spec.license = "MIT"
11
11
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
12
12
 
@@ -1,8 +1,7 @@
1
1
  require "first_existing/version"
2
+ require "first_existing/kernel"
2
3
 
3
4
  module FirstExisting
4
- class Error < StandardError; end
5
-
6
5
  def first_existing *args
7
6
  args.each { |a| return a unless a.nil? }
8
7
  nil
@@ -0,0 +1,4 @@
1
+ module Kernel
2
+ private
3
+ include FirstExisting
4
+ end
@@ -1,3 +1,3 @@
1
1
  module FirstExisting
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,16 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: first_existing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Lockard
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-13 00:00:00.000000000 Z
11
+ date: 2021-02-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description:
13
+ description: A simple Ruby gem that selects the first existing (non-nil) object in
14
+ a set of objects.
14
15
  email:
15
16
  - jacoblockard99@gmail.com
16
17
  executables: []
@@ -28,12 +29,13 @@ files:
28
29
  - bin/setup
29
30
  - first_existing.gemspec
30
31
  - lib/first_existing.rb
32
+ - lib/first_existing/kernel.rb
31
33
  - lib/first_existing/version.rb
32
- homepage:
34
+ homepage:
33
35
  licenses:
34
36
  - MIT
35
37
  metadata: {}
36
- post_install_message:
38
+ post_install_message:
37
39
  rdoc_options: []
38
40
  require_paths:
39
41
  - lib
@@ -48,8 +50,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
50
  - !ruby/object:Gem::Version
49
51
  version: '0'
50
52
  requirements: []
51
- rubygems_version: 3.1.2
52
- signing_key:
53
+ rubygems_version: 3.2.3
54
+ signing_key:
53
55
  specification_version: 4
54
- summary: Defines methods to help select existing objectd.
56
+ summary: Selects the first existing object.
55
57
  test_files: []