enumerize-matchers 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 +4 -4
- data/README.md +19 -6
- data/enumerize-matchers.gemspec +2 -2
- data/lib/enumerize/matchers/enumerize_matcher.rb +1 -1
- data/lib/enumerize/matchers/version.rb +1 -1
- metadata +18 -19
- data/Rakefile +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98d98fb2e95312f537d756f8a343b8dee2b54eca
|
4
|
+
data.tar.gz: b65b8f8f2da3f86844af1ab2e8827b4793b82520
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f70c3d796ed029f6cf8b575e758e188a2ed167aff611bee62b86223899be02ac00b9886251291088413f8cb5157f90c197540d726afae38243ed4a8e45e8c2f
|
7
|
+
data.tar.gz: f702cf5f3e6caab801fceef8c55e288f3233e3fcd5831aebef8ca270d8bb838ac9022f67a8a1659c531eccf05470fab40b7ac21a116960744724ab3845b723cf
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Enumerize
|
1
|
+
# Enumerize matchers
|
2
2
|
|
3
|
-
Rspec matchers for enumerize because we need tests.
|
3
|
+
Rspec matchers for [enumerize](https://github.com/brainspec/enumerize), because we need tests.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -12,13 +12,20 @@ And then execute:
|
|
12
12
|
|
13
13
|
$ bundle
|
14
14
|
|
15
|
-
|
15
|
+
## Usage
|
16
16
|
|
17
|
-
|
17
|
+
```
|
18
|
+
it { should enumerize(:sex).in(:male, :female).with_default(:male) }
|
19
|
+
```
|
18
20
|
|
19
|
-
##
|
21
|
+
## Todo
|
22
|
+
|
23
|
+
- Add appropriate tests (Yes, this is fuck**g weird.)
|
24
|
+
|
25
|
+
## Credits
|
20
26
|
|
21
|
-
|
27
|
+
- [Josemar Davi Luekde](http://github.com/josemarluedke)
|
28
|
+
- [Wojtek Majewski](http://github.com/jumski) for this [gist](https://gist.github.com/jumski/2318858).
|
22
29
|
|
23
30
|
## Contributing
|
24
31
|
|
@@ -27,3 +34,9 @@ TODO: Write usage instructions here
|
|
27
34
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
35
|
4. Push to the branch (`git push origin my-new-feature`)
|
29
36
|
5. Create new Pull Request
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
Copyright (c) 2013 Josemar Luedke
|
41
|
+
|
42
|
+
Licensed under the MIT license (see LICENSE.txt file)
|
data/enumerize-matchers.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Josemar Davi Luedke"]
|
10
10
|
spec.email = ["josemarluedke@gmail.com"]
|
11
11
|
spec.description = %q{Rspec matchers for enumerize}
|
12
|
-
spec.summary = %q{Rspec matchers for enumerize because we need tests}
|
12
|
+
spec.summary = %q{Rspec matchers for enumerize, because we need tests.}
|
13
13
|
spec.homepage = "https://github.com/josemarluedke/enumerize-matchers"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -18,6 +18,6 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
+
spec.add_dependency "rspec"
|
21
22
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
-
spec.add_development_dependency "rake"
|
23
23
|
end
|
@@ -30,7 +30,7 @@ RSpec::Matchers.define :enumerize do |attribute|
|
|
30
30
|
desc
|
31
31
|
end
|
32
32
|
|
33
|
-
|
33
|
+
failure_message do |text|
|
34
34
|
if @in and not in_values_matches?
|
35
35
|
msg = "expected :#@attribute to allow values #{human_readable_values(expected_in_values)}"
|
36
36
|
msg+= ", but it allows #{human_readable_values(actual_in_values)} instead"
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enumerize-matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josemar Davi Luedke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
type: :
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.3'
|
41
41
|
description: Rspec matchers for enumerize
|
42
42
|
email:
|
43
43
|
- josemarluedke@gmail.com
|
@@ -45,11 +45,10 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
49
49
|
- Gemfile
|
50
50
|
- LICENSE.txt
|
51
51
|
- README.md
|
52
|
-
- Rakefile
|
53
52
|
- enumerize-matchers.gemspec
|
54
53
|
- lib/enumerize/matchers.rb
|
55
54
|
- lib/enumerize/matchers/enumerize_matcher.rb
|
@@ -64,18 +63,18 @@ require_paths:
|
|
64
63
|
- lib
|
65
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
66
65
|
requirements:
|
67
|
-
- -
|
66
|
+
- - ">="
|
68
67
|
- !ruby/object:Gem::Version
|
69
68
|
version: '0'
|
70
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
70
|
requirements:
|
72
|
-
- -
|
71
|
+
- - ">="
|
73
72
|
- !ruby/object:Gem::Version
|
74
73
|
version: '0'
|
75
74
|
requirements: []
|
76
75
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.
|
76
|
+
rubygems_version: 2.2.2
|
78
77
|
signing_key:
|
79
78
|
specification_version: 4
|
80
|
-
summary: Rspec matchers for enumerize because we need tests
|
79
|
+
summary: Rspec matchers for enumerize, because we need tests.
|
81
80
|
test_files: []
|
data/Rakefile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|