matchi 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee2069fb33d2e5c786aeb935509d74fe06bd36aa
4
- data.tar.gz: c6b0a6e51939ce2ec05fcde85c69ccb1402c6c05
3
+ metadata.gz: c1580f1d31d1d682c906abafebc1ef9b19580940
4
+ data.tar.gz: 43036c78b950d882b82419bec640b6dc3ffb1953
5
5
  SHA512:
6
- metadata.gz: 40bc336f4b873d366d15b3c38056db15cbb60ba72c3a15e90b37abea3138edd4d43eb538a6423c76e141161101668a9bd9e05551a0d971882010577c85a05b56
7
- data.tar.gz: 9309449b4039798687500770e399ac9a3935628ef4534af87a43bfb5f3d5fdbde7a79b9a3dba33bb6e5ef9fe0468bfd2358ceb974e3a1450e5746274f971cdcc
6
+ metadata.gz: 5769d1b7cfcaaaf032bfbd72430414ccd77c9feb9f5cab17b3ae6da1bfe097cf17182f6f2f0dae089191ab2695c30a94750a3fd23dd3440bb371332ba67190b9
7
+ data.tar.gz: a54b61bf4c92e8ec79557864bb72be5cf0e0ccc39eafe65d20300175957ea4ac5ee3fe628ae74de6a5566b5b10e5d8cb892a5fa0ef69e0297915ffac3f711b31
data/.travis.yml CHANGED
@@ -5,15 +5,11 @@ script: 'bundle exec rake test:coverage --trace'
5
5
  before_install:
6
6
  - gem install bundler
7
7
  rvm:
8
- - ree
9
- - 1.8.7
10
- - 1.9.2
11
8
  - 1.9.3
12
9
  - 2.0
13
10
  - 2.1
14
11
  - 2.2
15
12
  - ruby-head
16
- - jruby-18mode
17
13
  - jruby
18
14
  - jruby-head
19
15
  - rbx-2
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Matchi
2
2
 
3
3
  [![Build Status](https://travis-ci.org/fixrb/matchi.svg?branch=master)](https://travis-ci.org/fixrb/matchi)
4
- [![Coverage Status](http://img.shields.io/coveralls/fixrb/matchi.svg?branch=master)](https://coveralls.io/r/fixrb/matchi)
5
4
  [![Dependency Status](https://gemnasium.com/fixrb/matchi.svg)](https://gemnasium.com/fixrb/matchi)
6
5
  [![Gem Version](http://img.shields.io/gem/v/matchi.svg)](https://rubygems.org/gems/matchi)
7
6
  [![Inline docs](http://inch-ci.org/github/fixrb/matchi.svg?branch=master)](http://inch-ci.org/github/fixrb/matchi)
data/VERSION.semver CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -0,0 +1,9 @@
1
+ module Matchi
2
+ # **Untruth** matcher.
3
+ class BeFalse < BasicObject
4
+ # @return [Boolean] Comparison between actual and expected values.
5
+ def matches?
6
+ false.equal?(yield)
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module Matchi
2
+ # **Nil** matcher.
3
+ class BeNil < BasicObject
4
+ # @return [Boolean] Comparison between actual and expected values.
5
+ def matches?
6
+ nil.equal?(yield)
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module Matchi
2
+ # **Truth** matcher.
3
+ class BeTrue < BasicObject
4
+ # @return [Boolean] Comparison between actual and expected values.
5
+ def matches?
6
+ true.equal?(yield)
7
+ end
8
+ end
9
+ end
data/matchi.gemspec CHANGED
@@ -9,14 +9,13 @@ Gem::Specification.new do |spec|
9
9
  spec.homepage = 'https://github.com/fixrb/matchi'
10
10
  spec.license = 'MIT'
11
11
 
12
- spec.files = `git ls-files -z`.split("\x0")
13
- .reject { |f| f.match(/^test\//) }
12
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(/^test\//) }
14
13
  spec.executables = spec.files.grep(/^exe\//) { |f| File.basename(f) }
15
14
  spec.require_paths = ['lib']
16
15
 
17
16
  spec.add_development_dependency 'bundler', '~> 1.8'
18
17
  spec.add_development_dependency 'rake', '~> 10.0'
19
18
  spec.add_development_dependency 'yard', '~> 0.8'
20
- spec.add_development_dependency 'coveralls', '~> 0.7'
19
+ spec.add_development_dependency 'simplecov', '~> 0.9.1'
21
20
  spec.add_development_dependency 'rubocop', '~> 0.29'
22
21
  end
metadata CHANGED
@@ -1,81 +1,81 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matchi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Wack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-12 00:00:00.000000000 Z
11
+ date: 2015-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ type: :development
14
15
  name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
+ version_requirements: !ruby/object:Gem::Requirement
16
17
  requirements:
17
18
  - - "~>"
18
19
  - !ruby/object:Gem::Version
19
20
  version: '1.8'
20
- type: :development
21
21
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
22
+ requirement: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
+ type: :development
28
29
  name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
+ version_requirements: !ruby/object:Gem::Requirement
30
31
  requirements:
31
32
  - - "~>"
32
33
  - !ruby/object:Gem::Version
33
34
  version: '10.0'
34
- type: :development
35
35
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
36
+ requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
+ type: :development
42
43
  name: yard
43
- requirement: !ruby/object:Gem::Requirement
44
+ version_requirements: !ruby/object:Gem::Requirement
44
45
  requirements:
45
46
  - - "~>"
46
47
  - !ruby/object:Gem::Version
47
48
  version: '0.8'
48
- type: :development
49
49
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
50
+ requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.8'
55
55
  - !ruby/object:Gem::Dependency
56
- name: coveralls
57
- requirement: !ruby/object:Gem::Requirement
56
+ type: :development
57
+ name: simplecov
58
+ version_requirements: !ruby/object:Gem::Requirement
58
59
  requirements:
59
60
  - - "~>"
60
61
  - !ruby/object:Gem::Version
61
- version: '0.7'
62
- type: :development
62
+ version: 0.9.1
63
63
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.7'
68
+ version: 0.9.1
69
69
  - !ruby/object:Gem::Dependency
70
+ type: :development
70
71
  name: rubocop
71
- requirement: !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
72
73
  requirements:
73
74
  - - "~>"
74
75
  - !ruby/object:Gem::Version
75
76
  version: '0.29'
76
- type: :development
77
77
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
78
+ requirement: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
@@ -87,7 +87,6 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ".coveralls.yml"
91
90
  - ".gitignore"
92
91
  - ".travis.yml"
93
92
  - ".yardopts"
@@ -100,6 +99,9 @@ files:
100
99
  - bin/console
101
100
  - bin/setup
102
101
  - lib/matchi.rb
102
+ - lib/matchi/be_false.rb
103
+ - lib/matchi/be_nil.rb
104
+ - lib/matchi/be_true.rb
103
105
  - lib/matchi/eql.rb
104
106
  - lib/matchi/equal.rb
105
107
  - lib/matchi/match.rb
data/.coveralls.yml DELETED
@@ -1 +0,0 @@
1
- service_name: travis-ci