with_last 0.1.0 → 0.1.1
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 -1
- data/lib/with_last/version.rb +1 -1
- data/with_last.gemspec +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe328cc0a626b1dba80f9002aec22e8b92d9ef38d0307f5b76faed27055d0e50
|
4
|
+
data.tar.gz: 99b96dc991d95c7fd3d864b48b7a7bf5f55641b144d1255d7942e906a0178a83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 203f0b954c84fed171203d09c1d297da52739a1fd46638113a1d4fdf0fb9e340863100a0e69b0da0a3e5def4e9139aeb7826fc1344dd8164ff17dfc8ebc10141
|
7
|
+
data.tar.gz: 2a768b6156cfb5426a966237c6a7a942ac0134414f51791a7cb7246400994004272ce7f9d46fcfeb5d44dae2f0d116b86832f7c82cf080eb69eeb355eb45d635
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/with_last.svg)](https://badge.fury.io/rb/with_last)
|
2
|
+
|
1
3
|
# with_last.rb
|
2
4
|
|
3
5
|
Add `each_with_last` to `Array`.
|
@@ -17,7 +19,7 @@ And then execute:
|
|
17
19
|
```ruby
|
18
20
|
[1,2,3,4,5,6].each_with_last { |item, is_last|
|
19
21
|
puts item
|
20
|
-
puts 'to be continued'
|
22
|
+
puts is_last ? 'done' : 'to be continued'
|
21
23
|
}
|
22
24
|
```
|
23
25
|
|
data/lib/with_last/version.rb
CHANGED
data/with_last.gemspec
CHANGED
@@ -6,15 +6,15 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.authors = ["oieioi"]
|
7
7
|
spec.email = ["atsuinatsu.samuifuyu@gmail.com"]
|
8
8
|
|
9
|
-
spec.summary = %q{Add `
|
10
|
-
spec.description = %q{Add `
|
9
|
+
spec.summary = %q{Add `each_with_last` to Array}
|
10
|
+
spec.description = %q{Add `each_with_last` to Array}
|
11
11
|
spec.homepage = "https://github.com/oieioi/with_last.rb"
|
12
12
|
spec.license = "MIT"
|
13
13
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
14
14
|
|
15
15
|
spec.metadata["homepage_uri"] = spec.homepage
|
16
16
|
spec.metadata["source_code_uri"] = "https://github.com/oieioi/with_last.rb"
|
17
|
-
spec.metadata["changelog_uri"] = "https://github.com/oieioi/with_last.rb"
|
17
|
+
spec.metadata["changelog_uri"] = "https://github.com/oieioi/with_last.rb/releases"
|
18
18
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
19
19
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: with_last
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- oieioi
|
@@ -10,7 +10,7 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Add `
|
13
|
+
description: Add `each_with_last` to Array
|
14
14
|
email:
|
15
15
|
- atsuinatsu.samuifuyu@gmail.com
|
16
16
|
executables: []
|
@@ -36,7 +36,7 @@ licenses:
|
|
36
36
|
metadata:
|
37
37
|
homepage_uri: https://github.com/oieioi/with_last.rb
|
38
38
|
source_code_uri: https://github.com/oieioi/with_last.rb
|
39
|
-
changelog_uri: https://github.com/oieioi/with_last.rb
|
39
|
+
changelog_uri: https://github.com/oieioi/with_last.rb/releases
|
40
40
|
post_install_message:
|
41
41
|
rdoc_options: []
|
42
42
|
require_paths:
|
@@ -55,5 +55,5 @@ requirements: []
|
|
55
55
|
rubygems_version: 3.1.2
|
56
56
|
signing_key:
|
57
57
|
specification_version: 4
|
58
|
-
summary: Add `
|
58
|
+
summary: Add `each_with_last` to Array
|
59
59
|
test_files: []
|