fix-expect 0.3.2 → 0.4.1

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
- SHA1:
3
- metadata.gz: 29e93c0216357138b2c9da4206cc73ea055f564b
4
- data.tar.gz: aaed6765ee9f41a2abca119e33e24b0a572b80bf
2
+ SHA256:
3
+ metadata.gz: 3081b8fe2799302049cc0677c25a743b24391add73631b336f751e5a0675fd2b
4
+ data.tar.gz: 472d3e4dc667961af5e02e557bc0294386da95b5e68e6aa16205516cf4b528b6
5
5
  SHA512:
6
- metadata.gz: dc619f0437c152587ec1bfd17f3f4ec4aef01d501ebbf0e85b02083d4cf63e15f5c9c6d3293b8021cb534980c4a066031e547b60aceebe9d595712076a0fcb83
7
- data.tar.gz: b1464809a901078accab439be8da2438f010c7a7371db714c26a28f365b76a0ffffecbc47f0cb94db29dea01287ec668e23640af0d7deb4c698cfbe04ea46cd6
6
+ metadata.gz: 798efbbd04cdbc94093ed72639f19b59e525511f8684c6ebcaf685e6ac74da8f942390350821d3924e57b2e44653f923c2f4eca82dbda04b85a409f48c673ac5
7
+ data.tar.gz: 0f14bd2a8a7960e589299720aa198ed54ec1c6bd35114b876fc4cb86a94abfea865f5a4a1e09baffc020feb70dee239fcb0ca8390942b6d31946680782ebe353
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Cyril Kato
3
+ Copyright (c) 2015-2021 Cyril Kato
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,144 +1,172 @@
1
1
  # Fix::Expect
2
2
 
3
- [![Build Status](https://travis-ci.org/fixrb/fix-expect.svg?branch=master)][travis]
3
+ [![Build Status](https://api.travis-ci.org/fixrb/fix-expect.svg?branch=main)][travis]
4
4
  [![Code Climate](https://codeclimate.com/github/fixrb/fix-expect/badges/gpa.svg)][codeclimate]
5
- [![Dependency Status](https://gemnasium.com/fixrb/fix-expect.svg)][gemnasium]
6
5
  [![Gem Version](https://badge.fury.io/rb/fix-expect.svg)][gem]
7
- [![Inline docs](http://inch-ci.org/github/fixrb/fix-expect.svg?branch=master)][inchpages]
8
- [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
6
+ [![Inline docs](https://inch-ci.org/github/fixrb/fix-expect.svg?branch=main)][inchpages]
7
+ [![Documentation](https://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
9
8
 
10
9
  > Provides the `expect` syntax.
11
10
 
12
- ## Contact
11
+ ## Installation
13
12
 
14
- * Home page: https://github.com/fixrb/fix-expect
15
- * Bugs/issues: https://github.com/fixrb/fix-expect/issues
16
- * Support: https://stackoverflow.com/questions/tagged/fixrb
13
+ Add this line to your application's Gemfile:
17
14
 
18
- ## Rubies
15
+ ```ruby
16
+ gem "fix-expect"
17
+ ```
19
18
 
20
- * [MRI](https://www.ruby-lang.org/)
21
- * [Rubinius](http://rubini.us/)
22
- * [JRuby](http://jruby.org/)
19
+ And then execute:
23
20
 
24
- ## Installation
21
+ $ bundle
25
22
 
26
- __Fix::Expect__ is cryptographically signed.
23
+ Or install it yourself as:
27
24
 
28
- To be sure the gem you install hasn't been tampered with, add my public key (if you haven't already) as a trusted certificate:
25
+ $ gem install fix-expect
29
26
 
30
- $ gem cert --add <(curl -Ls https://raw.github.com/fixrb/fix-expect/master/certs/gem-fixrb-public_cert.pem)
31
- $ gem install fix-expect -P HighSecurity
27
+ ## Usage
28
+
29
+ ### The `expect` method
32
30
 
33
- The `HighSecurity` trust profile will verify all gems. All of __Fix::Expect__'s dependencies are signed.
31
+ __Fix::Expect__ lets you express expected outcomes on an object, thanks to [Spectus](https://rubygems.org/gems/spectus)'s `MUST` and `MUST_NOT` requirement levels.
34
32
 
35
- Or add this line to your application's Gemfile:
33
+ An **absolute requirement** example:
36
34
 
37
35
  ```ruby
38
- gem 'fix-expect'
36
+ Fix do
37
+ it { expect(-42.abs).to equal 42 }
38
+ end
39
39
  ```
40
40
 
41
- And then execute:
41
+ > (irb):2: Success: expected to equal 42.
42
42
 
43
- $ bundle
43
+ An **absolute prohibition** example:
44
44
 
45
- ## Usage
45
+ ```ruby
46
+ Fix do
47
+ it { expect(-42).not_to equal 42 }
48
+ end
49
+ ```
50
+
51
+ > (irb):5: Success: expected -42 not to equal 42.
46
52
 
47
- __Fix::Expect__ lets you express expected outcomes on an object:
53
+ Thus, rather than inferring the actual value (which is `41.next`) from the context
54
+ and calculating its value (which is `42`),
55
+
56
+ rather than letting Fix's default behavior define and compute `41.next` as the actual value to challenge,
57
+ the `expect` method short circuit it with its argument.
58
+
59
+ These 2 examples are equivalent:
48
60
 
49
61
  ```ruby
50
- expect(value.abs).to equal 42 # => MUST equal 42
62
+ Fix 41 do
63
+ on :next do
64
+ it { MUST equal 42 }
65
+ it { expect(41.next).to equal 42 }
66
+ end
67
+
68
+ it { MUST equal 41 }
69
+ it { expect(41.next).to equal 42 }
70
+ end
51
71
  ```
52
72
 
53
- Both `expect` and `expect_block` methods are mapped to Spectus's [absolute requirement](https://github.com/fixrb/spectus#absolute-requirement)/[prohibition](https://github.com/fixrb/spectus#absolute-prohibition) to express expectations:
73
+ > (irb):9: Success: expected to equal 42.
74
+ > (irb):10: Success: expected to equal 42.
75
+ > (irb):13: Success: expected to equal 41.
76
+ > (irb):14: Success: expected to equal 42.
77
+
78
+ The block syntax is also allowed:
54
79
 
55
80
  ```ruby
56
- Fix.describe 6 * 7 do
57
- it { expect_block { subject.class }.to equal Fixnum }
58
- it { expect(subject.class).to equal Fixnum }
81
+ Fix do
82
+ it { expect { -42.abs }.to equal 42 }
59
83
  end
60
-
61
- # ..
62
- #
63
- # Ran 2 tests in 0.000327 seconds
64
- # 100% compliant - 0 infos, 0 failures, 0 errors
65
84
  ```
66
85
 
67
- Using those methods, the default inherited subject can be overridden by the given expected object/block:
86
+ > (irb):2: Success: expected to equal 42.
68
87
 
69
88
  ```ruby
70
- Fix.describe -6 * 7 do
71
- on :abs do
72
- # test against the described front object:
73
- it { MUST_NOT equal 1 }
89
+ Fix do
90
+ it { expect { 4 / 0 }.to raise_exception ZeroDivisionError }
91
+ end
92
+ ```
74
93
 
75
- # another test against -1 object:
76
- it { expect(-1).to equal 1 }
94
+ > (irb):5: Success: divided by 0.
95
+
96
+ ### The `is_expected` method
97
+
98
+ For convenience, an `is_expected` method is provided,
99
+ as an alias of Spectus's [MUST](https://github.com/fixrb/spectus#absolute-requirement):
100
+
101
+ ```ruby
102
+ Fix 41 do
103
+ on :next do
104
+ it { is_expected.to equal 42 }
77
105
  end
78
106
  end
79
-
80
- # ..
81
- #
82
- # Ran 2 tests in 0.000372 seconds
83
- # 100% compliant - 0 infos, 0 failures, 0 errors
84
107
  ```
85
108
 
86
- However, the tree of challenges remains the same.
109
+ > (irb):3: Success: expected to equal 42.
110
+
111
+ ### Code Isolation
87
112
 
88
- For convenience, the `is_expected` method is also provided:
113
+ When executing expectations, side-effects may occur.
114
+ Because they may or may not be desired, each requirement level has 2 versions:
115
+
116
+ * if it is performed with `do`, a test is performed without isolation;
117
+ * if it is performed with `do!`, a test is performed in isolation.
118
+
119
+ Example of test without isolation:
89
120
 
90
121
  ```ruby
91
- Fix.describe -6 * 7 do
92
- on :abs do
93
- # test against the described front object:
94
- it { is_expected.to equal 42 }
122
+ greeting = "Hello, world!"
123
+
124
+ Fix do
125
+ it "tests without isolation" do
126
+ expect { greeting.gsub!("world", "Alice") }.to equal "Hello, Alice!"
95
127
  end
96
128
  end
97
129
 
98
- # .
99
- #
100
- # Ran 1 tests in 0.000176 seconds
101
- # 100% compliant - 0 infos, 0 failures, 0 errors
130
+ greeting # => "Hello, Alice!"
102
131
  ```
103
132
 
104
- ## Security
133
+ Example of test in isolation:
105
134
 
106
- As a basic form of security __Fix::Expect__ provides a set of SHA512 checksums for
107
- every Gem release. These checksums can be found in the `checksum/` directory.
108
- Although these checksums do not prevent malicious users from tampering with a
109
- built Gem they can be used for basic integrity verification purposes.
135
+ ```ruby
136
+ greeting = "Hello, world!"
110
137
 
111
- The checksum of a file can be checked using the `sha512sum` expect. For
112
- example:
138
+ Fix do
139
+ it "tests with isolation" do
140
+ expect { greeting.gsub!("world", "Alice") }.to! equal "Hello, Alice!"
141
+ end
142
+ end
113
143
 
114
- $ sha512sum pkg/fix-expect-0.1.0.gem
115
- 26198b7812a5ac118a5f2a1b63927871b3378efb071b37abb7e1ba87c1aac9f3a6b45eeae87d9dc647b194c15171b13f15e46503a9a1440b1233faf924381ff5 pkg/fix-expect-0.1.0.gem
144
+ greeting # => "Hello, world!"
145
+ ```
116
146
 
117
- ## Versioning
147
+ ## Contact
118
148
 
119
- __Fix::Expect__ follows [Semantic Versioning 2.0](http://semver.org/).
149
+ * Source code: https://github.com/fixrb/fix-expect
120
150
 
121
- ## Contributing
151
+ ## Versioning
122
152
 
123
- 1. [Fork it](https://github.com/fixrb/fix-expect/fork)
124
- 2. Create your feature branch (`git checkout -b my-new-feature`)
125
- 3. Commit your changes (`git commit -am 'Add some feature'`)
126
- 4. Push to the branch (`git push origin my-new-feature`)
127
- 5. Create a new Pull Request
153
+ __Fix::Expect__ follows [Semantic Versioning 2.0](https://semver.org/).
128
154
 
129
155
  ## License
130
156
 
131
- See `LICENSE.md` file.
132
-
133
- [gem]: https://rubygems.org/gems/fix-expect
134
- [travis]: https://travis-ci.org/fixrb/fix-expect
135
- [codeclimate]: https://codeclimate.com/github/fixrb/fix-expect
136
- [gemnasium]: https://gemnasium.com/fixrb/fix-expect
137
- [inchpages]: http://inch-ci.org/github/fixrb/fix-expect
138
- [rubydoc]: http://rubydoc.info/gems/fix-expect/frames
157
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
139
158
 
140
159
  ***
141
160
 
142
- This project is sponsored by:
161
+ <p>
162
+ This project is sponsored by:<br />
163
+ <a href="https://sashite.com/"><img
164
+ src="https://github.com/fixrb/fix-expect/raw/main/img/sashite.png"
165
+ alt="Sashite" /></a>
166
+ </p>
143
167
 
144
- [![Sashite](http://sashite.com/img/sashite.png)](http://sashite.com/)
168
+ [gem]: https://rubygems.org/gems/fix-expect
169
+ [travis]: https://travis-ci.org/fixrb/fix-expect
170
+ [codeclimate]: https://codeclimate.com/github/fixrb/fix-expect
171
+ [inchpages]: https://inch-ci.org/github/fixrb/fix-expect
172
+ [rubydoc]: https://rubydoc.info/gems/fix-expect/frames
data/lib/fix/expect.rb CHANGED
@@ -1,69 +1,3 @@
1
- # Namespace for the Fix framework.
2
- #
3
- # @api public
4
- #
5
- module Fix
6
- # Expect's class.
7
- #
8
- class Expect
9
- # Initialize the expect class.
10
- #
11
- # @param object [#object_id] The object to test.
12
- # @param challenges [Array] A list of challenges.
13
- def initialize(object, *challenges)
14
- @object = object
15
- @challenges = challenges
16
- end
1
+ # frozen_string_literal: true
17
2
 
18
- # Evaluate to a positive assertion.
19
- #
20
- # @param m [#matches?] The matcher.
21
- #
22
- # @return (see #requirement)
23
- def to(m)
24
- requirement(m, false).result
25
- end
26
-
27
- # Evaluate to a negative assertion.
28
- #
29
- # @param (see #to)
30
- #
31
- # @return (see #requirement)
32
- def not_to(m)
33
- requirement(m, true).result
34
- end
35
-
36
- # Evaluate to a positive assertion in isolation.
37
- #
38
- # @param (see #to)
39
- #
40
- # @return (see #requirement)
41
- def to!(m)
42
- requirement(m, false).result(true)
43
- end
44
-
45
- # Evaluate to a negative assertion in isolation.
46
- #
47
- # @param (see #to)
48
- #
49
- # @return (see #requirement)
50
- def not_to!(m)
51
- requirement(m, true).result(true)
52
- end
53
-
54
- private
55
-
56
- # High requirement level.
57
- #
58
- # @param m [#matches?] The matcher.
59
- # @param negate [Boolean] Evaluate to a negative assertion.
60
- #
61
- # @return [Spectus::Result::Fail, Spectus::Result::Pass] Report if the spec
62
- # pass or fail.
63
- def requirement(m, negate)
64
- Spectus::RequirementLevel::High.new(m, negate, @object, *@challenges)
65
- end
66
- end
67
- end
68
-
69
- require_relative 'it'
3
+ require_relative "it"
data/lib/fix/it.rb CHANGED
@@ -1,36 +1,49 @@
1
- require 'fix'
1
+ # frozen_string_literal: true
2
+
3
+ require "fix"
2
4
 
3
5
  # Namespace for the Fix framework.
4
6
  #
5
7
  module Fix
6
- # Wraps the target of an expectation.
7
- #
8
- class It
9
- # Create a new expection target given an object.
8
+ # Wraps the target of a Spectus expectation.
9
+ class Expect < ::Spectus::ExpectationTarget
10
+ # Create a new expection target
10
11
  #
11
- # @param object [#object_id] An object to test.
12
+ # @param callable [#call] The object to test.
12
13
  #
13
- # @return [Expect] An expect instance.
14
- def expect(object)
15
- Expect.new(object, *challenges)
14
+ # rubocop:disable Lint/MissingSuper
15
+ def initialize(callable)
16
+ @callable = callable
16
17
  end
18
+ # rubocop:enable Lint/MissingSuper
19
+ end
17
20
 
18
- # Create a new expection target given a block.
21
+ # Wraps the target of a Fix expectation.
22
+ class It
23
+ # Create a new expection target given an object.
19
24
  #
20
- # @param block [Proc] A code to test.
25
+ # @param object [#object_id] An object to test.
21
26
  #
22
27
  # @return [Expect] An expect instance.
23
- def expect_block(&block)
24
- Expect.new(block, *([block_challenge] + challenges))
28
+ def expect(object = nil, &block)
29
+ if block
30
+ ::Fix::Expect.new(block)
31
+ else
32
+ ::Fix::Expect.new(::Defi.send(:itself).to(object))
33
+ end
25
34
  end
26
35
 
27
- # rubocop:disable PredicateName
28
-
29
36
  # Create a new expection target given the subject.
30
37
  #
31
38
  # @return [Expect] An expect instance.
39
+ #
40
+ # rubocop:disable Naming/PredicateName
32
41
  def is_expected
33
- Expect.new(subject, *challenges)
42
+ ::Fix::Expect.new(callable)
34
43
  end
44
+ # rubocop:enable Naming/PredicateName
35
45
  end
36
46
  end
47
+
48
+ # require_relative 'expect' unless defined?(::Fix::Expect)
49
+ require_relative "../spectus/expectation_target"
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spectus"
4
+
5
+ module Spectus
6
+ class ExpectationTarget
7
+ alias to MUST
8
+ alias to! MUST!
9
+ alias not_to MUST_NOT
10
+ alias not_to! MUST_NOT!
11
+ end
12
+ end
metadata CHANGED
@@ -1,138 +1,166 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fix-expect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Kato
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - certs/gem-fixrb-public_cert.pem
12
- date: 2017-04-22 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2021-05-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: fix
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
- - - "~>"
17
+ - - '='
19
18
  - !ruby/object:Gem::Version
20
- version: 0.17.0
19
+ version: 1.0.0.beta4
21
20
  type: :runtime
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
- - - "~>"
24
+ - - '='
26
25
  - !ruby/object:Gem::Version
27
- version: 0.17.0
26
+ version: 1.0.0.beta4
28
27
  - !ruby/object:Gem::Dependency
29
28
  name: bundler
30
29
  requirement: !ruby/object:Gem::Requirement
31
30
  requirements:
32
- - - "~>"
31
+ - - ">="
33
32
  - !ruby/object:Gem::Version
34
- version: '1.14'
33
+ version: '0'
35
34
  type: :development
36
35
  prerelease: false
37
36
  version_requirements: !ruby/object:Gem::Requirement
38
37
  requirements:
39
- - - "~>"
38
+ - - ">="
40
39
  - !ruby/object:Gem::Version
41
- version: '1.14'
40
+ version: '0'
42
41
  - !ruby/object:Gem::Dependency
43
42
  name: rake
44
43
  requirement: !ruby/object:Gem::Requirement
45
44
  requirements:
46
- - - "~>"
45
+ - - ">="
47
46
  - !ruby/object:Gem::Version
48
- version: '12.0'
47
+ version: '0'
49
48
  type: :development
50
49
  prerelease: false
51
50
  version_requirements: !ruby/object:Gem::Requirement
52
51
  requirements:
53
- - - "~>"
52
+ - - ">="
54
53
  - !ruby/object:Gem::Version
55
- version: '12.0'
54
+ version: '0'
56
55
  - !ruby/object:Gem::Dependency
57
- name: yard
56
+ name: rubocop-md
58
57
  requirement: !ruby/object:Gem::Requirement
59
58
  requirements:
60
- - - "~>"
59
+ - - ">="
61
60
  - !ruby/object:Gem::Version
62
- version: '0.9'
61
+ version: '0'
63
62
  type: :development
64
63
  prerelease: false
65
64
  version_requirements: !ruby/object:Gem::Requirement
66
65
  requirements:
67
- - - "~>"
66
+ - - ">="
68
67
  - !ruby/object:Gem::Version
69
- version: '0.9'
68
+ version: '0'
70
69
  - !ruby/object:Gem::Dependency
71
- name: simplecov
70
+ name: rubocop-performance
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-thread_safety
72
99
  requirement: !ruby/object:Gem::Requirement
73
100
  requirements:
74
- - - "~>"
101
+ - - ">="
75
102
  - !ruby/object:Gem::Version
76
- version: '0.14'
103
+ version: '0'
77
104
  type: :development
78
105
  prerelease: false
79
106
  version_requirements: !ruby/object:Gem::Requirement
80
107
  requirements:
81
- - - "~>"
108
+ - - ">="
82
109
  - !ruby/object:Gem::Version
83
- version: '0.14'
110
+ version: '0'
84
111
  - !ruby/object:Gem::Dependency
85
- name: rubocop
112
+ name: simplecov
86
113
  requirement: !ruby/object:Gem::Requirement
87
114
  requirements:
88
- - - "~>"
115
+ - - ">="
89
116
  - !ruby/object:Gem::Version
90
- version: '0.48'
117
+ version: '0'
91
118
  type: :development
92
119
  prerelease: false
93
120
  version_requirements: !ruby/object:Gem::Requirement
94
121
  requirements:
95
- - - "~>"
122
+ - - ">="
96
123
  - !ruby/object:Gem::Version
97
- version: '0.48'
124
+ version: '0'
98
125
  - !ruby/object:Gem::Dependency
99
126
  name: spectus
100
127
  requirement: !ruby/object:Gem::Requirement
101
128
  requirements:
102
- - - "~>"
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: yard
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
103
144
  - !ruby/object:Gem::Version
104
- version: '3.0'
145
+ version: '0'
105
146
  type: :development
106
147
  prerelease: false
107
148
  version_requirements: !ruby/object:Gem::Requirement
108
149
  requirements:
109
- - - "~>"
150
+ - - ">="
110
151
  - !ruby/object:Gem::Version
111
- version: '3.0'
152
+ version: '0'
112
153
  description: Fix extension gem to provide the expect syntax.
113
- email:
114
- - contact@cyril.email
154
+ email: contact@cyril.email
115
155
  executables: []
116
156
  extensions: []
117
157
  extra_rdoc_files: []
118
158
  files:
119
- - ".gitignore"
120
- - ".travis.yml"
121
- - ".yardopts"
122
- - CODE_OF_CONDUCT.md
123
- - Gemfile
124
159
  - LICENSE.md
125
160
  - README.md
126
- - Rakefile
127
- - VERSION.semver
128
- - bin/console
129
- - bin/setup
130
- - certs/gem-fixrb-public_cert.pem
131
- - checksum/fix-expect-0.3.0.gem.sha512
132
- - fix-expect.gemspec
133
161
  - lib/fix/expect.rb
134
162
  - lib/fix/it.rb
135
- - pkg_checksum
163
+ - lib/spectus/expectation_target.rb
136
164
  homepage: https://github.com/fixrb/fix-expect
137
165
  licenses:
138
166
  - MIT
@@ -145,15 +173,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
173
  requirements:
146
174
  - - ">="
147
175
  - !ruby/object:Gem::Version
148
- version: '0'
176
+ version: 2.7.0
149
177
  required_rubygems_version: !ruby/object:Gem::Requirement
150
178
  requirements:
151
179
  - - ">="
152
180
  - !ruby/object:Gem::Version
153
181
  version: '0'
154
182
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 2.6.11
183
+ rubygems_version: 3.1.6
157
184
  signing_key:
158
185
  specification_version: 4
159
186
  summary: Provides the expect syntax.
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- /.bundle/
2
- /.ruby-version
3
- /.yardoc
4
- /Gemfile.lock
5
- /_yardoc/
6
- /coverage/
7
- /doc/
8
- /pkg/
9
- /spec/reports/
10
- /tmp/
data/.travis.yml DELETED
@@ -1,29 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
- before_install:
5
- - gem install bundler
6
- script:
7
- - bundle exec rubocop
8
- - bundle exec rake test
9
- rvm:
10
- - 2.0
11
- - 2.1
12
- - 2.2
13
- - 2.3.3
14
- - 2.4.0
15
- - ruby-head
16
- - jruby-head
17
- - rbx-3
18
- matrix:
19
- allow_failures:
20
- - rvm: ruby-head
21
- - rvm: jruby-head
22
- - rvm: rbx-3
23
- notifications:
24
- webhooks:
25
- urls:
26
- - https://webhooks.gitter.im/e/a44b19cc5cf6db25fa87
27
- on_success: change
28
- on_failure: always
29
- on_start: never
data/.yardopts DELETED
@@ -1 +0,0 @@
1
- - README.md
data/CODE_OF_CONDUCT.md DELETED
@@ -1,13 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
-
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
-
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
-
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
-
13
- This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
data/Rakefile DELETED
@@ -1,20 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rake/testtask'
3
- require 'rubocop/rake_task'
4
-
5
- RuboCop::RakeTask.new
6
-
7
- Rake::TestTask.new do |t|
8
- t.verbose = true
9
- t.warning = true
10
- end
11
-
12
- namespace :test do
13
- task :coverage do
14
- ENV['COVERAGE'] = 'true'
15
- Rake::Task['test'].invoke
16
- end
17
- end
18
-
19
- task(:doc_stats) { ruby '-S yard stats' }
20
- task default: %i[test doc_stats rubocop]
data/VERSION.semver DELETED
@@ -1 +0,0 @@
1
- 0.3.2
data/bin/console DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'fix/expect'
5
-
6
- require 'irb'
7
- IRB.start
data/bin/setup DELETED
@@ -1,5 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
@@ -1,21 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRAwDgYDVQQDDAdjb250
3
- YWN0MRUwEwYKCZImiZPyLGQBGRYFY3lyaWwxFTATBgoJkiaJk/IsZAEZFgVlbWFp
4
- bDAeFw0xNTA3MzExMjExMDZaFw0xNjA3MzAxMjExMDZaMEAxEDAOBgNVBAMMB2Nv
5
- bnRhY3QxFTATBgoJkiaJk/IsZAEZFgVjeXJpbDEVMBMGCgmSJomT8ixkARkWBWVt
6
- YWlsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6hUEYoxnn1mtoaiK
7
- NiwjzVPqPgQCR9ZeYdWjLJ3UUG2h5Q6awJCnbaGr8LGGcKtveCDbOJRjtdKNuOTH
8
- O2FLTkf46nrMGiF+6/j//qh8o0EQHBRKIVMYkxZxZe4Fcqtdf1bWNMZuXeyoDjdt
9
- 4yiGfizbbTOu0gBf7Yrsv5DsL0a5CU/We7zxMfgGXCVb9PYkD+OWUMcTARYDKfYa
10
- nN9ECI7CFm/yXcsof/eIQA5EmJNmQnhx8B+8L6jDqQeSUAUrBZnC9CdloKOoqmEL
11
- weqM2g6LM932Ba74rEl4QlFRYDcs8kjr71UcvseHRCUkFr36j26OU8+gKelsTNdO
12
- 7OZNKQIDAQABo3kwdzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU
13
- LSJTN9h29D6bqOhp+vyvhyM0AF4wHgYDVR0RBBcwFYETY29udGFjdEBjeXJpbC5l
14
- bWFpbDAeBgNVHRIEFzAVgRNjb250YWN0QGN5cmlsLmVtYWlsMA0GCSqGSIb3DQEB
15
- BQUAA4IBAQArqCC1rUyGJlF0DF9ZhUOgggyROvO0/WroSI5zWgzdB8EU7RJpsDIV
16
- caGnpji7h0rQIGWQuJ6TL2fTFLfeGRFdIzRZwWC7TeXhcXngJHZxSjDBt2OpfM8A
17
- P5eElSQS9iJCetBGGMyt354PfgZkg3URaC+JA6mdEisdtEdo64ElnMsLg9shCqye
18
- JSR3BbejbyPVva0/MHKD+dR6RswlcM9KMiYOXQml7a/kH6huOHvVq9gj5xC2ih8W
19
- dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
20
- 0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
21
- -----END CERTIFICATE-----
@@ -1 +0,0 @@
1
- 4886cd57a0071431984eda3ac9321dc0b795f9662b3541a8bb9dd43853ef2edc220720fe168aa1e0de395ec0b2c923e408abd4e8ada2bf5e2e8adfd149d4e417
data/fix-expect.gemspec DELETED
@@ -1,29 +0,0 @@
1
- Gem::Specification.new do |spec|
2
- spec.name = 'fix-expect'
3
- spec.version = File.read('VERSION.semver').chomp
4
- spec.authors = ['Cyril Kato']
5
- spec.email = ['contact@cyril.email']
6
-
7
- spec.summary = 'Provides the expect syntax.'
8
- spec.description = 'Fix extension gem to provide the expect syntax.'
9
- spec.homepage = 'https://github.com/fixrb/fix-expect'
10
- spec.license = 'MIT'
11
-
12
- spec.files =
13
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
14
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
15
- spec.require_paths = ['lib']
16
-
17
- spec.add_dependency 'fix', '~> 0.17.0'
18
-
19
- spec.add_development_dependency 'bundler', '~> 1.14'
20
- spec.add_development_dependency 'rake', '~> 12.0'
21
- spec.add_development_dependency 'yard', '~> 0.9'
22
- spec.add_development_dependency 'simplecov', '~> 0.14'
23
- spec.add_development_dependency 'rubocop', '~> 0.48'
24
- spec.add_development_dependency 'spectus', '~> 3.0'
25
-
26
- spec.cert_chain = ['certs/gem-fixrb-public_cert.pem']
27
- private_key = File.expand_path('~/.ssh/gem-fixrb-private_key.pem')
28
- spec.signing_key = private_key if File.exist?(private_key)
29
- end
data/pkg_checksum DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'digest/sha2'
4
-
5
- gemname = 'fix-expect'.to_sym
6
- ARGV[0] = File.read('VERSION.semver').chomp if ARGV[0].nil?
7
- built_gem_path = "pkg/#{gemname}-#{ARGV[0]}.gem"
8
- checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
9
- checksum_path = "checksum/#{gemname}-#{ARGV[0]}.gem.sha512"
10
-
11
- File.open(checksum_path, 'w') { |f| f.write("#{checksum}\n") }