enumerator-traits 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/enumerator_traits/initializers.rb +1 -0
- data/lib/enumerator_traits/version.rb +1 -1
- data/lib/enumerator_traits.rb +1 -0
- data/spec/lib/enumerator_traits_spec.rb +6 -0
- metadata +5 -12
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDZjYWYzMjY0ZjlkZGQ1ZGI1NGRhMzc5OWFhMGQ2MWI5N2ZiYzdhZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OTg5YTdhNDI1MGYzOThjY2U1ZDExYWI3MzNhMGU3NmI5Nzg2NTdhOA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
Zjc5M2NiMGFkMGM1ZDM2NTJlZWJhYzRjYjAwNmVlYWM5MjZmZDcyMzk0Yjhh
|
10
|
+
YTkzN2RhMTMyYTk1Njg0Zjc0NmM5ZWRhOTM2ZGMyMWJiYjg5OWQ4ZDQzYWI5
|
11
|
+
YTY2NmMwYTcyNWEyYjQxYTMwMDc0NjE3ZjFkZGYzZmUzN2FiNDA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
N2RjODcyNmM3ZDFkNGYzNmM5NThhNzg0ZWQyMzgwOTZjNzg3OWM5ZDYzZmJm
|
14
|
+
OWRkZWViMTY0MTEwYTkxOTRkYTI5NjAwN2U2N2JhYjdjZTIzMDdlYWE5Zjgx
|
15
|
+
YzQwMDk0ODc5YjViNDI0MjNjMDEzMzIwZWYxMjM3MTI5MzVhNjY=
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative 'initializers/enumerator_traits'
|
data/lib/enumerator_traits.rb
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe 'enumerator' do
|
4
|
+
it 'should define declare_trait' do
|
5
|
+
Enumerator.instance_methods.should include(:declare_trait)
|
6
|
+
end
|
7
|
+
it 'should define ensure_trait' do
|
8
|
+
Enumerator.instance_methods.should include(:ensure_trait)
|
9
|
+
end
|
4
10
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enumerator-traits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Bill
|
@@ -25,6 +24,7 @@ files:
|
|
25
24
|
- Rakefile
|
26
25
|
- enumerator_traits.gemspec
|
27
26
|
- lib/enumerator_traits.rb
|
27
|
+
- lib/enumerator_traits/initializers.rb
|
28
28
|
- lib/enumerator_traits/initializers/enumerator_traits.rb
|
29
29
|
- lib/enumerator_traits/version.rb
|
30
30
|
- spec/lib/enumerator_traits_spec.rb
|
@@ -32,33 +32,26 @@ files:
|
|
32
32
|
- spec/spec_helper_methods.rb
|
33
33
|
homepage: ''
|
34
34
|
licenses: []
|
35
|
+
metadata: {}
|
35
36
|
post_install_message:
|
36
37
|
rdoc_options: []
|
37
38
|
require_paths:
|
38
39
|
- lib
|
39
40
|
required_ruby_version: !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: '0'
|
45
|
-
segments:
|
46
|
-
- 0
|
47
|
-
hash: -1125347521188788239
|
48
45
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
46
|
requirements:
|
51
47
|
- - ! '>='
|
52
48
|
- !ruby/object:Gem::Version
|
53
49
|
version: '0'
|
54
|
-
segments:
|
55
|
-
- 0
|
56
|
-
hash: -1125347521188788239
|
57
50
|
requirements: []
|
58
51
|
rubyforge_project:
|
59
|
-
rubygems_version:
|
52
|
+
rubygems_version: 2.0.3
|
60
53
|
signing_key:
|
61
|
-
specification_version:
|
54
|
+
specification_version: 4
|
62
55
|
summary: ! 'By declaring a trait, the caller promises that the sequence will conform.
|
63
56
|
No conformance checking will be done at runtime in that case. Each kind of (declarable)
|
64
57
|
trait is ensurable by a module returned from the trait''s #ensure_with class method.'
|