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