expect 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION.semver +1 -1
- data/expect-0.0.1.gem +0 -0
- data/lib/expect.rb +12 -1
- metadata +2 -3
- data/lib/expect/dsl.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 196b5411407e208dbba2fe80b60bf3b2d2e767ae
|
4
|
+
data.tar.gz: d79477542f1a4934baae487d1708f8b888c23d17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acf79eb71e06e2c271700abff218cdd40aca177a88b2bb907c714da6be4359a40672c154435e8f69f2a8bc1a0ada013eba6cc4f5b04881e5c310e5cbee9313a3
|
7
|
+
data.tar.gz: dee3899421ea045243d32d4875a9a751275c87f2a393ad0bcb213a3a2ff867a70835e2267df875b0ee62b69f7031625e017a0b6ec59c23a8a3ea79dc69d7fdb7
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/expect-0.0.1.gem
ADDED
Binary file
|
data/lib/expect.rb
CHANGED
@@ -1,7 +1,18 @@
|
|
1
|
-
require_relative File.join 'expect', '
|
1
|
+
require_relative File.join 'expect', 'expectation_target'
|
2
2
|
|
3
3
|
# Namespace for the Expect library.
|
4
4
|
#
|
5
5
|
# @api private
|
6
6
|
module Expect
|
7
|
+
# Expectations are built with this method.
|
8
|
+
#
|
9
|
+
# @api public
|
10
|
+
#
|
11
|
+
# @example Duck example
|
12
|
+
# expect { 42 }.to equal: 42 # => true
|
13
|
+
#
|
14
|
+
# @return [ExpectationTarget] the expectation target.
|
15
|
+
def self.this(&input)
|
16
|
+
ExpectationTarget.new(&input)
|
17
|
+
end
|
7
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: expect
|
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
|
- Cyril Wack
|
@@ -56,9 +56,9 @@ files:
|
|
56
56
|
- VERSION.semver
|
57
57
|
- bin/console
|
58
58
|
- bin/setup
|
59
|
+
- expect-0.0.1.gem
|
59
60
|
- expect.gemspec
|
60
61
|
- lib/expect.rb
|
61
|
-
- lib/expect/dsl.rb
|
62
62
|
- lib/expect/expectation_target.rb
|
63
63
|
- lib/expect/matcher.rb
|
64
64
|
- lib/expect/matcher/eql.rb
|
@@ -90,4 +90,3 @@ signing_key:
|
|
90
90
|
specification_version: 4
|
91
91
|
summary: Expectation library.
|
92
92
|
test_files: []
|
93
|
-
has_rdoc:
|
data/lib/expect/dsl.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require_relative 'expectation_target'
|
2
|
-
|
3
|
-
module Expect
|
4
|
-
# Expectation's domain-specific language.
|
5
|
-
module DSL
|
6
|
-
# Expectations are built with this method.
|
7
|
-
#
|
8
|
-
# @api public
|
9
|
-
#
|
10
|
-
# @example Duck example
|
11
|
-
# expect { 42 }.to equal: 42 # => true
|
12
|
-
#
|
13
|
-
# @return [ExpectationTarget] the expectation target.
|
14
|
-
def expect(&input)
|
15
|
-
ExpectationTarget.new(&input)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|