mug 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mug.rb +1 -0
  3. data/lib/mug/with.rb +26 -0
  4. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8175797f8f16b61b543159d47d39249fc260a6389a2d83825e5bbe3525bd33c
4
- data.tar.gz: 3d4a5d28f5e59c652bd0267de97db75d155861e6c6467446bd453132c40be9b7
3
+ metadata.gz: 9ab045986d1359b99ba98c469e9c4411bd33a069f97ea5dc3115c51ad2aa5d5e
4
+ data.tar.gz: b799f0beab81b16671f1db4bc02bc24220faf12b00937ea3080ea7bb17a1f340
5
5
  SHA512:
6
- metadata.gz: e0686f5a34f70143e992e2baec18eb45f53a20cba5912aa4a89d4dc95e8bb2f26c92abdde86c9ac8ea6a7f6ce817354a211dfa6083613bf88d6e3b1479d8eb8b
7
- data.tar.gz: cb47764028f427e09864ee1d5bd1466a9e2221a07e1853b20134e1d1dbfbb01014003feabb5f641cf9aac22394b25b489838cfae832fd96c85e3c8e0b1b66171
6
+ metadata.gz: ec0dc68c7d86aeb4f6c648dd6756220c08054af4a2a3fd4770271d16268af0fb252a08c1b5214f2e5535d3af12b0fa4b178ebe8b0a833ec102bc0e767060dbb1
7
+ data.tar.gz: 61f278ae9b172c11f9eb6e405427f9f6186af5609ae8f42367a625a3488707194321d411b46a1f44b28a3e2b2f3b499d8aa9176d7676c3eeb1fab4ee65e65128
data/lib/mug.rb CHANGED
@@ -31,4 +31,5 @@ require_relative 'mug/self'
31
31
  require_relative 'mug/tau'
32
32
  require_relative 'mug/time'
33
33
  require_relative 'mug/top'
34
+ require_relative 'mug/with'
34
35
 
@@ -0,0 +1,26 @@
1
+
2
+ module Kernel
3
+ ##
4
+ # Yields the arguments to a block.
5
+ #
6
+ def with *args
7
+ return enum_for(:with, *args) unless block_given?
8
+ yield *args
9
+ end
10
+ end
11
+
12
+ =begin
13
+ Copyright (c) 2018, Matthew Kerwin <matthew@kerwin.net.au>
14
+
15
+ Permission to use, copy, modify, and/or distribute this software for any
16
+ purpose with or without fee is hereby granted, provided that the above
17
+ copyright notice and this permission notice appear in all copies.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
20
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
21
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
22
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
23
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
24
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
25
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
26
+ =end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Kerwin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-12 00:00:00.000000000 Z
11
+ date: 2018-06-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  == MUG: Matty's Ultimate Gem
@@ -68,6 +68,7 @@ files:
68
68
  - lib/mug/time.rb
69
69
  - lib/mug/to_h.rb
70
70
  - lib/mug/top.rb
71
+ - lib/mug/with.rb
71
72
  - test/test-affix.rb
72
73
  - test/test-alias.rb
73
74
  - test/test-and-or.rb
@@ -121,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
122
  version: '0'
122
123
  requirements: []
123
124
  rubyforge_project:
124
- rubygems_version: 2.7.3
125
+ rubygems_version: 2.7.6
125
126
  signing_key:
126
127
  specification_version: 4
127
128
  summary: 'MUG: Matty''s Ultimate Gem'