iterate 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +2 -2
- data/Rakefile +15 -1
- data/iterate.gemspec +2 -2
- data/lib/iterate/version.rb +3 -1
- metadata +5 -7
- data/.travis.yml +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8868fbe13b17da6761135badfdb1f3e81111aa1839996b0d14fbe185b4c673d8
|
4
|
+
data.tar.gz: d87691bac7c4261b8a08433efd24ba82cdcb9a73f5f43fbfaddabff8bf4ac6cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd02019e36a798cb91ed396970dff3102a2034f488f4884831441a7ab8d7bc6795ac6142ed895c0a619f1ef7f0c1b560cd220e7c72c947cf08dba5cb61f4fda4
|
7
|
+
data.tar.gz: 93ba013a41ef7f0e62a96c33c1e57339d1be9eaff5ec50ba5d7129d26a402b20ecf6b5b66bb5bc687163d7692a3bd30e6539e030a627eee812c2b56b63f7dbf3
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Kernel#iterate [![[version]](https://badge.fury.io/rb/iterate.svg)](http://badge.fury.io/rb/iterate)
|
1
|
+
# Kernel#iterate [![[version]](https://badge.fury.io/rb/iterate.svg)](http://badge.fury.io/rb/iterate) [![[ci]](https://github.com/janlelis/iterate/workflows/Test/badge.svg)](https://github.com/janlelis/iterate/actions?query=workflow%3ATest)
|
2
2
|
|
3
3
|
Iterate over one or more collections. It feels like an `.each` implemented as a control structure. It also makes it easier to iterate over multiple objects.
|
4
4
|
|
@@ -27,4 +27,4 @@ gem 'iterate'
|
|
27
27
|
|
28
28
|
## MIT License
|
29
29
|
|
30
|
-
Copyright (C) 2010-2016 Jan Lelis <
|
30
|
+
Copyright (C) 2010-2016 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# # #
|
2
2
|
# Get gemspec info
|
3
3
|
|
4
|
-
gemspec_file = Dir['*.gemspec'].first
|
4
|
+
gemspec_file = Dir['*.gemspec'].first
|
5
5
|
gemspec = eval File.read(gemspec_file), binding, gemspec_file
|
6
6
|
info = "#{gemspec.name} | #{gemspec.version} | " \
|
7
7
|
"#{gemspec.runtime_dependencies.size} dependencies | " \
|
@@ -28,3 +28,17 @@ desc "#{gemspec.name} | IRB"
|
|
28
28
|
task :irb do
|
29
29
|
sh "irb -I ./lib -r #{gemspec.name.gsub '-','/'}"
|
30
30
|
end
|
31
|
+
|
32
|
+
|
33
|
+
# # #
|
34
|
+
# Run Specs
|
35
|
+
|
36
|
+
desc "#{gemspec.name} | Spec"
|
37
|
+
task :spec do
|
38
|
+
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
|
39
|
+
sh "for %f in (spec/\*.rb) do ruby spec/%f"
|
40
|
+
else
|
41
|
+
sh "for file in spec/*.rb; do ruby $file; done"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
task default: :spec
|
data/iterate.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.summary = "Iterate over one or more collections."
|
9
9
|
gem.description = "Iterate over one or more collections. It feels like an .each implemented as a control structure. It also makes it easier to iterate over multiple objects."
|
10
10
|
gem.authors = ["Jan Lelis"]
|
11
|
-
gem.email = ["
|
11
|
+
gem.email = ["hi@ruby.consulting"]
|
12
12
|
gem.homepage = "https://github.com/janlelis/iterate"
|
13
13
|
gem.license = "MIT"
|
14
14
|
|
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.required_ruby_version = "
|
20
|
+
gem.required_ruby_version = ">= 2.0"
|
21
21
|
end
|
data/lib/iterate/version.rb
CHANGED
metadata
CHANGED
@@ -1,25 +1,24 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iterate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Iterate over one or more collections. It feels like an .each implemented
|
14
14
|
as a control structure. It also makes it easier to iterate over multiple objects.
|
15
15
|
email:
|
16
|
-
-
|
16
|
+
- hi@ruby.consulting
|
17
17
|
executables: []
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- ".gitignore"
|
22
|
-
- ".travis.yml"
|
23
22
|
- CHANGELOG.md
|
24
23
|
- Gemfile
|
25
24
|
- MIT-LICENSE.txt
|
@@ -39,7 +38,7 @@ require_paths:
|
|
39
38
|
- lib
|
40
39
|
required_ruby_version: !ruby/object:Gem::Requirement
|
41
40
|
requirements:
|
42
|
-
- - "
|
41
|
+
- - ">="
|
43
42
|
- !ruby/object:Gem::Version
|
44
43
|
version: '2.0'
|
45
44
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -48,8 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
47
|
- !ruby/object:Gem::Version
|
49
48
|
version: '0'
|
50
49
|
requirements: []
|
51
|
-
|
52
|
-
rubygems_version: 2.5.1
|
50
|
+
rubygems_version: 3.2.3
|
53
51
|
signing_key:
|
54
52
|
specification_version: 4
|
55
53
|
summary: Iterate over one or more collections.
|
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
|
4
|
-
script: bundle exec ruby spec/iterate_spec.rb
|
5
|
-
|
6
|
-
rvm:
|
7
|
-
- 2.3.0
|
8
|
-
- 2.2
|
9
|
-
- 2.1
|
10
|
-
- 2.0
|
11
|
-
- ruby-head
|
12
|
-
- rbx-2
|
13
|
-
- jruby-head
|
14
|
-
- jruby-9000
|
15
|
-
|
16
|
-
cache:
|
17
|
-
- bundler
|
18
|
-
|
19
|
-
# matrix:
|
20
|
-
# fast_finish: true
|