mug 0.2.2 → 0.2.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mug/self.rb +7 -1
  3. data/test/test-self.rb +4 -4
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec16a0f2226eb6eafb7e8c6afaf981e0d3e32443
4
- data.tar.gz: 8988d0ce42d14a76908d9e4fc105e4d3873fc246
3
+ metadata.gz: 8e6d51e59fcdb5386274ec26ba60079ff66a236e
4
+ data.tar.gz: 0a855d5b44c9ff19f9e8a7f872036442d7982d18
5
5
  SHA512:
6
- metadata.gz: 1c58dcb88c0119f5bb4afd1a01064698f6e732de96c974667d67f7d4048797d3e50b3f3fb3b669ccc46d05b6d917d30003b5300cfe1c7489a6e8cd2d630bdde4
7
- data.tar.gz: 0c5275b171001c5471185873765cc2c2912631ec65f6a44fd60b06031b7f7509093905b11c93e9bf01c69dc4e2c743817b85dbb90fb63808594ad59e6f0ec5d5
6
+ metadata.gz: 146d779ea09455b0000ad24d82f5c903e44a62460e2d804df9bc8da769fd7d272eb5907d7fa21e4f946077cd1568eb438ed71a0abf5c0e861a01a080697fa6f2
7
+ data.tar.gz: ba65631a98bf8d34668d37f1488a7cc3d6d7de66c79d23ef92de233bf50e73f0043fa337f5783082fae498ce06a756a46c33c0763db42d03b44dae8bc8fbaa92
data/lib/mug/self.rb CHANGED
@@ -13,7 +13,13 @@ class Object
13
13
  self
14
14
  end
15
15
  end
16
- alias :yield :self
16
+ alias :itself :self
17
+
18
+ # Deprecated alias for #self
19
+ def yield(&block) #:nodoc:
20
+ warn 'Object#yield is deprecated; use Object#self'
21
+ self.self(&block)
22
+ end
17
23
  end
18
24
 
19
25
  =begin
data/test/test-self.rb CHANGED
@@ -10,9 +10,9 @@ class Test_self < Test::Unit::TestCase
10
10
  assert_equal( 6, 2.self{|i| i*3 } )
11
11
  assert_equal( {1=>[1,1], 2=>[2,2], 3=>[3]}, [1,1,2,2,3].group_by(&:self) )
12
12
 
13
- assert_equal( 1, 1.yield )
14
- assert_equal( obj, obj.yield )
15
- assert_equal( 6, 2.yield{|i| i*3 } )
16
- assert_equal( {1=>[1,1], 2=>[2,2], 3=>[3]}, [1,1,2,2,3].group_by(&:yield) )
13
+ assert_equal( 1, 1.itself )
14
+ assert_equal( obj, obj.itself )
15
+ assert_equal( 6, 2.itself{|i| i*3 } )
16
+ assert_equal( {1=>[1,1], 2=>[2,2], 3=>[3]}, [1,1,2,2,3].group_by(&:itself) )
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Kerwin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-28 00:00:00.000000000 Z
11
+ date: 2014-08-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  == MUG: Matty's Ultimate Gem
15
15
 
16
16
  A collection of wonders to astound the mind!!
17
17
 
18
- See the documentation at [github](https://github.com/phluid61/mug).
18
+ See the documentation at <https://github.com/phluid61/mug>.
19
19
  email:
20
20
  - matthew@kerwin.net.au
21
21
  executables: []