backport_yield_self 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9897cbadd93db0f224abbabf0056acc58d110643
|
4
|
+
data.tar.gz: b23435e0bb0efb2b2626bf462da5e8c5435f454e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 861ca0cb16b841d115f2cb6574fc843fb3b09f4e91982029533b87958515c810cbb60e1eb77d7b401c68f88651e2d45803dc7087b23f0597ebfbea7a952195af
|
7
|
+
data.tar.gz: 2c9a47b5083200bd614fc2c9ee5220e045aace0162a9705e06a62dabe2311f3d982c64001237389600719281f5f11383c54b40787fb622ffad4d551360ae232b
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# backport_yield_self [![Build Status](https://travis-ci.org/koic/backport_yield_self.svg)](https://travis-ci.org/koic/backport_yield_self)
|
1
|
+
# backport_yield_self [![Build Status](https://travis-ci.org/koic/backport_yield_self.svg)](https://travis-ci.org/koic/backport_yield_self) [![Gem Version](https://badge.fury.io/rb/backport_yield_self.svg)](http://badge.fury.io/rb/backport_yield_self)
|
2
2
|
|
3
3
|
backport_yield_self is the backport of `Kernel#yield_self` in Ruby 2.5 to older Ruby versions.
|
4
4
|
|
@@ -33,11 +33,11 @@ require 'backport_yield_self'
|
|
33
33
|
## Synopsis
|
34
34
|
|
35
35
|
```ruby
|
36
|
-
|
36
|
+
'my string'.yield_self {|s| s.upcase } #=> "MY STRING"
|
37
37
|
3.next.yield_self {|x| x**x }.to_s #=> "256"
|
38
38
|
```
|
39
39
|
|
40
|
-
## Supported
|
40
|
+
## Supported Ruby versions
|
41
41
|
|
42
42
|
* Ruby 2.2
|
43
43
|
* Ruby 2.3
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backport_yield_self
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Koichi ITO
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hoe
|