first_existing 1.2.0 → 1.2.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
2
  SHA256:
3
- metadata.gz: 83f8e64fc658e4134105649fdc42026c4b9e8dfd6d0ebc510daaab180cecd062
4
- data.tar.gz: 6751682d59b6551db5da8eaefd41ab329ebbf918cd56b6ec2eabe9266df29682
3
+ metadata.gz: cfdc191d9551b59e9160be520068314af9eccfc04060d7897b9042e7f137538c
4
+ data.tar.gz: 785407560f4233ac962bfe632bfb70c5033bcd8a34da0cec77790b39e10a79bc
5
5
  SHA512:
6
- metadata.gz: bba831b536e1b06107599bebcd111fc2aaedf9cedb0edbb8216d9ee698b1cba0c48cd42fd76a399405481bee2501dc362632936625e10065a39c981148396d0a
7
- data.tar.gz: 16adbf868e64d75cba9baa55576a6d6d5613cbac2e62e24232568b49b8631a9d020143bd06979b64b74bd7f9b0b15fb9aeb55ec3335ca609e39df50653ad3acd
6
+ metadata.gz: 87392dcdda39ffcb1152a8764e2167bf021b7f33d5057c6c616fee15146f95a0aeee9a9dedccd65cba9382546a959b25a081f79f31a5d152bdf89bc0c5de3477
7
+ data.tar.gz: 93cde3c3744303922d1714bfa722e96c6a1b41917764796c53e08bdc326ebc9581a36f33a84cdf5083a031b53c36d4962ec755490b307547ca78889f188358d4
@@ -14,26 +14,26 @@
14
14
  <orderEntry type="library" scope="PROVIDED" name="bundler (v2.2.4, rbenv: 3.0.0) [gem]" level="application" />
15
15
  <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.4.4, rbenv: 3.0.0) [gem]" level="application" />
16
16
  <orderEntry type="library" scope="PROVIDED" name="rake (v12.3.3, rbenv: 3.0.0) [gem]" level="application" />
17
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.10.0, rbenv: 3.0.0) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.10.1, rbenv: 3.0.0) [gem]" level="application" />
19
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.10.1, rbenv: 3.0.0) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.10.2, rbenv: 3.0.0) [gem]" level="application" />
21
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.10.2, rbenv: 3.0.0) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.9.0, rbenv: 3.0.0) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.9.2, rbenv: 3.0.0) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.9.2, rbenv: 3.0.0) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.9.1, rbenv: 3.0.0) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.9.3, rbenv: 3.0.0) [gem]" level="application" />
22
22
  </component>
23
23
  <component name="RakeTasksCache">
24
24
  <option name="myRootTask">
25
25
  <RakeTaskImpl id="rake">
26
26
  <subtasks>
27
- <RakeTaskImpl description="Build first_existing-0.1.0.gem into the pkg directory" fullCommand="build" id="build" />
27
+ <RakeTaskImpl description="Build first_existing-1.2.0.gem into the pkg directory" fullCommand="build" id="build" />
28
28
  <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
29
29
  <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
30
- <RakeTaskImpl description="Build and install first_existing-0.1.0.gem into system gems" fullCommand="install" id="install" />
30
+ <RakeTaskImpl description="Build and install first_existing-1.2.0.gem into system gems" fullCommand="install" id="install" />
31
31
  <RakeTaskImpl id="install">
32
32
  <subtasks>
33
- <RakeTaskImpl description="Build and install first_existing-0.1.0.gem into system gems without network access" fullCommand="install:local" id="local" />
33
+ <RakeTaskImpl description="Build and install first_existing-1.2.0.gem into system gems without network access" fullCommand="install:local" id="local" />
34
34
  </subtasks>
35
35
  </RakeTaskImpl>
36
- <RakeTaskImpl description="Create tag v0.1.0 and build and push first_existing-0.1.0.gem to TODO: Set to 'http://mygemserver.com'" fullCommand="release[remote]" id="release[remote]" />
36
+ <RakeTaskImpl description="Create tag v1.2.0 and build and push first_existing-1.2.0.gem to rubygems.org" fullCommand="release[remote]" id="release[remote]" />
37
37
  <RakeTaskImpl description="Run RSpec code examples" fullCommand="spec" id="spec" />
38
38
  <RakeTaskImpl description="" fullCommand="default" id="default" />
39
39
  <RakeTaskImpl description="" fullCommand="release" id="release" />
@@ -6,4 +6,8 @@ class Hash
6
6
  self[key] = fallback unless fallback.nil?
7
7
  end
8
8
  alias_method :defaults!, :default!
9
+
10
+ def required! key
11
+ raise "The '#{key}' option is required!" unless key? key
12
+ end
9
13
  end
@@ -1,3 +1,3 @@
1
1
  module FirstExisting
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: first_existing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
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: 2021-02-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple Ruby gem that selects the first existing (non-nil) object in
14
14
  a set of objects.
@@ -38,11 +38,11 @@ files:
38
38
  - lib/first_existing/hash.rb
39
39
  - lib/first_existing/kernel.rb
40
40
  - lib/first_existing/version.rb
41
- homepage:
41
+ homepage:
42
42
  licenses:
43
43
  - MIT
44
44
  metadata: {}
45
- post_install_message:
45
+ post_install_message:
46
46
  rdoc_options: []
47
47
  require_paths:
48
48
  - lib
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  version: '0'
59
59
  requirements: []
60
60
  rubygems_version: 3.2.3
61
- signing_key:
61
+ signing_key:
62
62
  specification_version: 4
63
63
  summary: Selects the first existing object.
64
64
  test_files: []