array_enumerator 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/array_enumerator.gemspec +4 -5
- data/lib/array_enumerator.rb +8 -0
- data/spec/array_enumerator_spec.rb +4 -0
- metadata +3 -4
- data/ArrayEnumerator.gemspec +0 -62
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ace6e8f8072161752789e9632d5ac47794e84cab
|
4
|
+
data.tar.gz: dea15db5c0003fb2ecf6041751228726972b8684
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7e4d4eb9e0238c68a82b8f6f633b854da6e1d2f28558479b2719275787ee1315d79fe5b84da39441404286858b3d6b9dfbd17a5b04eef119ef970772bba3262
|
7
|
+
data.tar.gz: 5322459161dc5e2b946c0bd0884dbdd4c35742d3067f2c717a54d3126964789d526790a4be8e97a795c5cf7356d5dad3168b4f4209e5e6e92c661734bc1facc7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/array_enumerator.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: array_enumerator 0.0.
|
5
|
+
# stub: array_enumerator 0.0.8 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "array_enumerator"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.8"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Kasper Johansen"]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2015-07-04"
|
15
15
|
s.description = "Enumerator abstraction layer that emulates certain array functionality (methods like empty?, slice, shift and more) by using a small cache and other tricks without loading all the data from the enumerator at the same time."
|
16
16
|
s.email = "k@spernj.org"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -21,7 +21,6 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.files = [
|
22
22
|
".document",
|
23
23
|
".rspec",
|
24
|
-
"ArrayEnumerator.gemspec",
|
25
24
|
"Gemfile",
|
26
25
|
"Gemfile.lock",
|
27
26
|
"LICENSE.txt",
|
@@ -36,7 +35,7 @@ Gem::Specification.new do |s|
|
|
36
35
|
]
|
37
36
|
s.homepage = "http://github.com/kaspernj/array_enumerator"
|
38
37
|
s.licenses = ["MIT"]
|
39
|
-
s.rubygems_version = "2.
|
38
|
+
s.rubygems_version = "2.2.2"
|
40
39
|
s.summary = "Enumerator abstraction layer that emulates certain array functionality (methods)."
|
41
40
|
|
42
41
|
if s.respond_to? :specification_version then
|
data/lib/array_enumerator.rb
CHANGED
@@ -51,6 +51,8 @@ describe "ArrayEnumerator" do
|
|
51
51
|
ae = ArrayEnumerator.new(cont)
|
52
52
|
|
53
53
|
ae.empty?.should eq false
|
54
|
+
ae.none?.should eq false
|
55
|
+
ae.any?.should eq true
|
54
56
|
|
55
57
|
count = 0
|
56
58
|
ae.each do |ele|
|
@@ -72,6 +74,8 @@ describe "ArrayEnumerator" do
|
|
72
74
|
cont = %w[a b c].to_enum
|
73
75
|
ae = ArrayEnumerator.new(cont)
|
74
76
|
ae.empty?.should eq false
|
77
|
+
ae.none?.should eq false
|
78
|
+
ae.any?.should eq true
|
75
79
|
ae.first.should eq "a"
|
76
80
|
end
|
77
81
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: array_enumerator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Johansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -78,7 +78,6 @@ extra_rdoc_files:
|
|
78
78
|
files:
|
79
79
|
- ".document"
|
80
80
|
- ".rspec"
|
81
|
-
- ArrayEnumerator.gemspec
|
82
81
|
- Gemfile
|
83
82
|
- Gemfile.lock
|
84
83
|
- LICENSE.txt
|
@@ -110,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
109
|
version: '0'
|
111
110
|
requirements: []
|
112
111
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.2.2
|
114
113
|
signing_key:
|
115
114
|
specification_version: 4
|
116
115
|
summary: Enumerator abstraction layer that emulates certain array functionality (methods).
|
data/ArrayEnumerator.gemspec
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: array_enumerator 0.0.4 ruby lib
|
6
|
-
|
7
|
-
Gem::Specification.new do |s|
|
8
|
-
s.name = "array_enumerator"
|
9
|
-
s.version = "0.0.4"
|
10
|
-
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
-
s.require_paths = ["lib"]
|
13
|
-
s.authors = ["Kasper Johansen"]
|
14
|
-
s.date = "2014-12-19"
|
15
|
-
s.description = "Enumerator abstraction layer that emulates certain array functionality (methods like empty?, slice, shift and more) by using a small cache and other tricks without loading all the data from the enumerator at the same time."
|
16
|
-
s.email = "k@spernj.org"
|
17
|
-
s.extra_rdoc_files = [
|
18
|
-
"LICENSE.txt",
|
19
|
-
"README.md"
|
20
|
-
]
|
21
|
-
s.files = [
|
22
|
-
".document",
|
23
|
-
".rspec",
|
24
|
-
"Gemfile",
|
25
|
-
"Gemfile.lock",
|
26
|
-
"LICENSE.txt",
|
27
|
-
"README.md",
|
28
|
-
"Rakefile",
|
29
|
-
"VERSION",
|
30
|
-
"array_enumerator.gemspec",
|
31
|
-
"lib/array_enumerator.rb",
|
32
|
-
"shippable.yml",
|
33
|
-
"spec/array_enumerator_spec.rb",
|
34
|
-
"spec/spec_helper.rb"
|
35
|
-
]
|
36
|
-
s.homepage = "http://github.com/kaspernj/array_enumerator"
|
37
|
-
s.licenses = ["MIT"]
|
38
|
-
s.rubygems_version = "2.4.0"
|
39
|
-
s.summary = "Enumerator abstraction layer that emulates certain array functionality (methods)."
|
40
|
-
|
41
|
-
if s.respond_to? :specification_version then
|
42
|
-
s.specification_version = 4
|
43
|
-
|
44
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
45
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
46
|
-
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
47
|
-
s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
|
48
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.8.8"])
|
49
|
-
else
|
50
|
-
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
51
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
52
|
-
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
53
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.8"])
|
54
|
-
end
|
55
|
-
else
|
56
|
-
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
57
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
58
|
-
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
59
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.8"])
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|