mug 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mug.rb +1 -0
- data/lib/mug/with.rb +26 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ab045986d1359b99ba98c469e9c4411bd33a069f97ea5dc3115c51ad2aa5d5e
|
4
|
+
data.tar.gz: b799f0beab81b16671f1db4bc02bc24220faf12b00937ea3080ea7bb17a1f340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec0dc68c7d86aeb4f6c648dd6756220c08054af4a2a3fd4770271d16268af0fb252a08c1b5214f2e5535d3af12b0fa4b178ebe8b0a833ec102bc0e767060dbb1
|
7
|
+
data.tar.gz: 61f278ae9b172c11f9eb6e405427f9f6186af5609ae8f42367a625a3488707194321d411b46a1f44b28a3e2b2f3b499d8aa9176d7676c3eeb1fab4ee65e65128
|
data/lib/mug.rb
CHANGED
data/lib/mug/with.rb
ADDED
@@ -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.
|
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-
|
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.
|
125
|
+
rubygems_version: 2.7.6
|
125
126
|
signing_key:
|
126
127
|
specification_version: 4
|
127
128
|
summary: 'MUG: Matty''s Ultimate Gem'
|