expect 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: 001f1b5fb0806ab92ab77f46da0a66df580ebf64
4
- data.tar.gz: 70692c790d9f0e7a549c85127d5c25059b1bb032
3
+ metadata.gz: 196b5411407e208dbba2fe80b60bf3b2d2e767ae
4
+ data.tar.gz: d79477542f1a4934baae487d1708f8b888c23d17
5
5
  SHA512:
6
- metadata.gz: b21b2cbae82afc04e7195fe415febee079a3d4fcae7a635a644c9582edbf5a5e35c45e473bf832db26a2ea8ea99ece33dbe71a8070783d5b91fd09c46c518215
7
- data.tar.gz: 7a480b15d6d690202edea292c9eaed0c3cc9a3da3731fd8dd645c726fd128763fc6b65effd095043faab0a0beb671880037ae987f400db9eee41eef1d4e6b6f6
6
+ metadata.gz: acf79eb71e06e2c271700abff218cdd40aca177a88b2bb907c714da6be4359a40672c154435e8f69f2a8bc1a0ada013eba6cc4f5b04881e5c310e5cbee9313a3
7
+ data.tar.gz: dee3899421ea045243d32d4875a9a751275c87f2a393ad0bcb213a3a2ff867a70835e2267df875b0ee62b69f7031625e017a0b6ec59c23a8a3ea79dc69d7fdb7
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
Binary file
@@ -1,7 +1,18 @@
1
- require_relative File.join 'expect', 'dsl'
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.1
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:
@@ -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