with_last 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bfabce70d1d9103cb28693fe2f4c18ce8df40a060e8b06e36ce6afaf4b75876
4
- data.tar.gz: 06ff022da289e0b1eec1dcbe24a489c8bd69f4d69cb33ed4a67f75179c7e355e
3
+ metadata.gz: fe328cc0a626b1dba80f9002aec22e8b92d9ef38d0307f5b76faed27055d0e50
4
+ data.tar.gz: 99b96dc991d95c7fd3d864b48b7a7bf5f55641b144d1255d7942e906a0178a83
5
5
  SHA512:
6
- metadata.gz: 19e8a417aa5275af8fd85973af324900c6b69636e591af2c42baa9f4a0ad015f1a556a28173ef8f69514f8f272154514720615f3a546ff44cfb60c60d33c91ae
7
- data.tar.gz: 61299376f1d886074a884ff5fbe5a22c3b378a8f34e01d1ea1b12aa9b5f48c3eefa7350709accf47a95aa103d19b05c0d486ad387cef942faec6cd327bc4d563
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' unless is_last
22
+ puts is_last ? 'done' : 'to be continued'
21
23
  }
22
24
  ```
23
25
 
@@ -1,3 +1,3 @@
1
1
  module WithLast
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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 `with_last` to Array}
10
- spec.description = %q{Add `with_last` to Array}
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.0
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 `with_last` to Array
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 `with_last` to Array
58
+ summary: Add `each_with_last` to Array
59
59
  test_files: []