mutant-rspec 0.8.24 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +271 -20
  3. data/lib/mutant/integration/rspec.rb +14 -6
  4. metadata +8 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd3b23ee4b908c60a801f3c7fdd0ec1df87bedaf840732e4dbf0a625584d1eb7
4
- data.tar.gz: 4a25454a96d0945f256b3eaa4e8b3ce0d7aad3642989fa67e30ef26b728de470
3
+ metadata.gz: ec51616e670ab148ceb659088d7fece6e37192ad98fd18c9ee6ceb328e70fe3e
4
+ data.tar.gz: 41e9ea3dca0c25254bbb60f06d00d20a68849408f92d6d2a9b830e3e17e409ef
5
5
  SHA512:
6
- metadata.gz: 218babbd1efcc8152f6d4dbf541dc3a636b37f41fc1192663c7029106f06996fe8e01521a0ca57e2077f0198015cb0771d2773118a17811e7d69e15fe938982e
7
- data.tar.gz: 8a436b03cbdc57003202524864f471b96d4436b8d5c05c14cfb9cef8cfe5dc8fb49a9459662380a4cc113b3dce17d7c4f688b657c8cd26fae4b0afc843b931d9
6
+ metadata.gz: f0d6972f7eccd5113ac072582f4660077db70a471d2848b61ed37e496ef9c9317863a48b141bb0be72a77e720b256da8a8072e32efb6880dcbc7aa9e1a4e2fcc
7
+ data.tar.gz: 5474913db18ae9bdac0705d0614d96a3a44bc15bc263e0b87a190f418d7ccf0ac14334c32c99210fcd9be7fc034a3fdf03513d573185c64a3a13ee51b591329c
data/LICENSE CHANGED
@@ -1,20 +1,271 @@
1
- Copyright (c) 2012-2014 Markus Schirp
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ END-USER LICENSE AGREEMENT
2
+
3
+ ------------------------------------------------------------------------------
4
+
5
+ IMPORTANT: THIS SOFTWARE END-USER LICENSE AGREEMENT ("EULA") IS A LEGAL
6
+ AGREEMENT (“Agreement”) BETWEEN YOU (THE CUSTOMER, EITHER AS AN INDIVIDUAL OR,
7
+ IF PURCHASED OR OTHERWISE ACQUIRED BY OR FOR AN ENTITY, AS AN ENTITY) AND
8
+ CONTRIBUTED SYSTEMS. READ IT CAREFULLY BEFORE COMPLETING THE INSTALLATION
9
+ PROCESS AND USING SIDEKIQ PRO AND RELATED SOFTWARE COMPONENTS (“SOFTWARE”).
10
+
11
+ IT PROVIDES A LICENSE TO USE THE SOFTWARE AND CONTAINS WARRANTY INFORMATION
12
+ AND LIABILITY DISCLAIMERS. BY INSTALLING AND USING THE SOFTWARE, YOU ARE
13
+ CONFIRMING YOUR ACCEPTANCE OF THE SOFTWARE AND AGREEING TO BECOME BOUND BY
14
+ THE TERMS OF THIS AGREEMENT.
15
+
16
+ ------------------------------------------------------------------------------
17
+
18
+ In order to use the Software under this Agreement, you must receive a
19
+ “Source URL” at the time of purchase, in accordance with the scope of use and
20
+ other terms specified for each type of Software and as set forth in this
21
+ Section 1 of this Agreement.
22
+
23
+ 1. License Grant
24
+
25
+ 1.1 General Use. This Agreement grants you a non-exclusive, non-transferable,
26
+ limited license to the use rights for the Software, without the right to grant
27
+ sublicenses, subject to the terms and conditions in this Agreement. The
28
+ Software is licensed, not sold.
29
+
30
+ 1.2 Free Project License. If you subscribed under the Free Project License you
31
+ may use the software for any of your projects that are released under an Open
32
+ Source License that is hosted on a public source code repository. You are required
33
+ to keep an up to date list of these repositories in your subscription settings.
34
+ Note that this is a project wide license, no subscription per individual
35
+ developer or contributor is required.
36
+
37
+ 1.3 Professional Developer Organization License. If you subscribed under the
38
+ Professional Developer Organization License, you can use the software on any
39
+ project within your organization. You are required to pay the subscription fee
40
+ per developer using the software.
41
+
42
+ 1.4 Archive Copies. You are entitled to make a reasonable amount of copies of
43
+ the Software for archival purposes. Each copy must reproduce all copyright and
44
+ other proprietary rights notices on or in the Software Product.
45
+
46
+ 1.5 Electronic Delivery. All Software and license documentation shall be
47
+ delivered by electronic means unless otherwise specified on the applicable
48
+ invoice or at the time of purchase. Software shall be deemed delivered when it
49
+ is made available for download by you (“Delivery”).
50
+
51
+ 2. Modifications. Schirp DSO LTD shall provide you with source code so
52
+ that you can create Modifications of the original software. “Modification”
53
+ means: (a) any addition to or deletion from the contents of a file included in
54
+ the original Software or previous Modifications created by You, or (b) any new
55
+ file that contains any part of the original Software or previous Modifications.
56
+ While you retain all rights to any original work authored by you as part of the
57
+ Modifications, We continue to own all copyright and other intellectual property
58
+ rights in the Software.
59
+
60
+ 3. Restricted Uses.
61
+
62
+ 3.1 You shall not (and shall not allow any third party to): (a) decompile,
63
+ disassemble, or otherwise reverse engineer the Software or attempt to
64
+ reconstruct or discover any source code, underlying ideas, algorithms, file
65
+ formats or programming interfaces of the Software by any means whatsoever
66
+ (except and only to the extent that applicable law prohibits or restricts
67
+ reverse engineering restrictions); (b) distribute, sell, sublicense, rent,
68
+ lease or use the Software for time sharing, hosting, service provider or like
69
+ purposes, except as expressly permitted under this Agreement; (c) redistribute
70
+ the Software or Modifications other than by including the Software or a
71
+ portion thereof within your own product, which must have substantially
72
+ different functionality than the Software or Modifications and must not allow
73
+ any third party to use the Software or Modifications, or any portions thereof,
74
+ for software development or application development purposes; (d) redistribute
75
+ the Software as part of a product, "appliance" or "virtual server"; (e)
76
+ redistribute the Software on any server which is not directly under your
77
+ control; (f) remove any product identification, proprietary, copyright or
78
+ other notices contained in the Software; (g) modify any part of the Software,
79
+ create a derivative work of any part of the Software (except as permitted in
80
+ Section 4), or incorporate the Software, except to the extent expressly
81
+ authorized in writing by Schirp DSO LTD; (h) publicly disseminate
82
+ performance information or analysis (including, without limitation, benchmarks)
83
+ from any source relating to the Software; (i) utilize any equipment, device,
84
+ software, or other means designed to circumvent or remove any form of Source
85
+ URL or copy protection used by Schirp DSO LTD in connection with the
86
+ Software, or use the Software together with any authorization code, Source
87
+ URL, serial number, or other copy protection device not supplied by
88
+ Schirp DSO LTD; (j) use the Software to develop a product which is
89
+ competitive with any Schirp DSO LTD product offerings; or (k) use
90
+ unauthorized Source URLS or keycode(s) or distribute or publish Source URLs or
91
+ keycode(s), except as may be expressly permitted by Schirp DSO LTD in
92
+ writing. If your unique Source URL is ever published, Schirp DSO LTD
93
+ reserves the right to terminate your access without notice.
94
+
95
+ 3.2 UNDER NO CIRCUMSTANCES MAY YOU USE THE SOFTWARE AS PART OF A PRODUCT OR
96
+ SERVICE THAT PROVIDES SIMILAR FUNCTIONALITY TO THE SOFTWARE ITSELF.
97
+
98
+ 4. Ownership. Notwithstanding anything to the contrary contained herein, except
99
+ for the limited license rights expressly provided herein, Schirp DSO LTD
100
+ and its suppliers have and will retain all rights, title and interest
101
+ (including, without limitation, all patent, copyright, trademark, trade secret
102
+ and other intellectual property rights) in and to the Software and all copies,
103
+ modifications and derivative works thereof (including any changes which
104
+ incorporate any of your ideas, feedback or suggestions).
105
+ You acknowledge that you are obtaining only a limited license right to the
106
+ Software, and that irrespective of any use of the words “purchase”, “sale” or
107
+ like terms hereunder no ownership rights are being conveyed to you under this
108
+ Agreement or otherwise.
109
+
110
+ 5. Fees and Payment. The Software license fees will be due and payable in full
111
+ as set forth in the applicable invoice or at the time of purchase. If the
112
+ Software does not function properly within two weeks of purchase, please contact
113
+ us within those two weeks for a refund. You shall be responsible for all taxes,
114
+ withholdings, duties and levies arising from the order (excluding taxes based on
115
+ the net income of Schirp DSO LTD).
116
+
117
+ 6. Support, Maintenance and Services. Subject to the terms and conditions of
118
+ this Agreement, as set forth in your invoice, and as set forth on the Mutant
119
+ support page (https://github.com/mbj/mutant/wiki/Commercial-Support),
120
+ support and maintenance services may be included with the purchase of your
121
+ license subscription.
122
+
123
+ 7. Term of Agreement.
124
+
125
+ 7.1 Term. This Agreement is effective as of the Delivery of the Software and
126
+ expires at such time as all license and service subscriptions hereunder have
127
+ expired in accordance with their own terms (the “Term”). For clarification, the
128
+ term of your license under this Agreement may be perpetual, limited for
129
+ Evaluation Version, or designated as a fixed-term license in the Invoice, and
130
+ shall be specified at your time of purchase. Either party may terminate this
131
+ Agreement (including all related Invoices) if the other party: (a) fails to cure
132
+ any material breach of this Agreement within thirty (30) days after written
133
+ notice of such breach, provided that Schirp DSO LTD may terminate this
134
+ Agreement immediately upon any breach of Section 3 or if you exceed any other
135
+ restrictions contained in Section 1, unless otherwise specified in this
136
+ agreement; (b) ceases operation without a successor; or (c) seeks protection
137
+ under any bankruptcy, receivership, trust deed, creditors arrangement,
138
+ composition or comparable proceeding, or if any such proceeding is instituted
139
+ against such party (and not dismissed within sixty (60) days)). Termination
140
+ is not an exclusive remedy and the exercise by either party of any remedy under
141
+ this Agreement will be without prejudice to any other remedies it may have
142
+ under this Agreement, by law, or otherwise.
143
+
144
+ 7.2 Termination. Upon any termination of this Agreement, you shall cease any
145
+ and all use of any Software and destroy all copies thereof.
146
+
147
+ 7.3 Expiration of License. Upon the expiration of any term under this
148
+ Agreement, (a) all Software updates and services pursuant to the license shall
149
+ cease, (b) you may only continue to run existing installations of the
150
+ Software, (c) you may not install the Software on any additional Hosts, and
151
+ (d) any new installation of the Software shall require the purchase of a new
152
+ license subscription from Schirp DSO LTD.
153
+
154
+ 8. Disclaimer of Warranties. The Software is provided "as is," with all faults,
155
+ defects and errors, and without warranty of any kind. Schirp DSO LTD does
156
+ not warrant that the Software will be free of bugs, errors, viruses or other
157
+ defects, and Schirp DSO LTD shall have no liability of any kind for the use
158
+ of or inability to use the Software, the Software content or any associated
159
+ service, and you acknowledge that it is not technically practicable for
160
+ Schirp DSO LTD to do so. To the maximum extent permitted by applicable law,
161
+ Schirp DSO LTD disclaims all warranties, express, implied, arising by law
162
+ or otherwise, regarding the Software, the Software content and their respective
163
+ performance or suitability for your intended use, including without limitation
164
+ any implied warranty of merchantability, fitness for a particular purpose.
165
+
166
+ 9. Limitation of Liability.
167
+
168
+ In no event will Schirp DSO LTD be liable for any direct, indirect,
169
+ consequential, incidental, special, exemplary, or punitive damages or
170
+ liabilities whatsoever arising from or relating to the Software, the Software
171
+ content or this Agreement, whether based on contract, tort (including
172
+ negligence), strict liability or other theory, even if Schirp DSO LTD has
173
+ been advised of the possibility of such damages.
174
+
175
+ In no event will Schirp DSO LTD' liability exceed the Software license
176
+ price as indicated in the invoice. The existence of more than one claim will
177
+ not enlarge or extend this limit.
178
+
179
+ 10. Remedies. Your exclusive remedy and Schirp DSO LTD’ entire liability
180
+ for breach of this Agreement shall be limited, at Schirp DSO LTD’ sole
181
+ and exclusive discretion, to (a) replacement of any defective software or
182
+ documentation; or (b) refund of the license fee paid to Schirp DSO LTD,
183
+ payable in accordance with Schirp DSO LTD' refund policy.
184
+
185
+ 11. Acknowledgements.
186
+
187
+ 11.1 Consent to the Use of Data. You agree that Schirp DSO LTD and its
188
+ affiliates may collect and use technical information gathered as part of the
189
+ product support services. Schirp DSO LTD may use this information solely
190
+ to improve products and services and will not disclose this information in a
191
+ form that personally identifies you.
192
+
193
+ 11.2 Verification. We or a certified auditor acting on our behalf, may, upon
194
+ its reasonable request and at its expense, audit you with respect to the use
195
+ of the Software. Such audit may be conducted by mail, electronic means or
196
+ through an in-person visit to your place of business. Any such in-person audit
197
+ shall be conducted during regular business hours at your facilities and shall
198
+ not unreasonably interfere with your business activities. We shall not remove,
199
+ copy, or redistribute any electronic material during the course of an audit.
200
+ If an audit reveals that you are using the Software in a way that is in material
201
+ violation of the terms of the EULA, then you shall pay our reasonable costs of
202
+ conducting the audit. In the case of a material violation, you agree to pay
203
+ Us any amounts owing that are attributable to the unauthorized use. In the
204
+ alternative, We reserve the right, at our sole option, to terminate the licenses
205
+ for the Software.
206
+
207
+ 12. Third Party Software. Examples included in Software may provide links to
208
+ third party libraries or code (collectively “Third Party Software”) to implement
209
+ various functions. Third Party Software does not comprise part of the Software.
210
+ In some cases, access to Third Party Software may be included along with the
211
+ Software delivery as a convenience for demonstration purposes. Such source
212
+ code and libraries may be included in the “…/examples” source tree delivered
213
+ with the Software and do not comprise the Software. Licensee acknowledges (1)
214
+ that some part of Third Party Software may require additional licensing of
215
+ copyright and patents from the owners of such, and (2) that distribution of
216
+ any of the Software referencing or including any portion of a Third Party
217
+ Software may require appropriate licensing from such third parties.
218
+
219
+
220
+ 13. Miscellaneous
221
+
222
+ 13.1 Entire Agreement. This Agreement sets forth our entire agreement with
223
+ respect to the Software and the subject matter hereof and supersedes all prior
224
+ and contemporaneous understandings and agreements whether written or oral.
225
+
226
+ 13.2 Amendment. Schirp DSO LTD reserves the right, in its sole discretion,
227
+ to amend this Agreement from time. Amendments to this Agreement can be
228
+ located at: https://github.com/mbj/mutant/blob/master/LICENSE.
229
+
230
+ 13.3 Assignment. You may not assign this Agreement or any of its rights under
231
+ this Agreement without the prior written consent of Schirp DSO LTD and
232
+ any attempted assignment without such consent shall be void.
233
+
234
+ 13.4 Export Compliance. You agree to comply with all applicable laws and
235
+ regulations, including laws, regulations, orders or other restrictions on
236
+ export, re-export or redistribution of software.
237
+
238
+ 13.5 Indemnification. You agree to defend, indemnify, and hold harmless
239
+ Schirp DSO LTD from and against any lawsuits, claims, losses, damages,
240
+ fines and expenses (including attorneys' fees and costs) arising out of
241
+ your use of the Software or breach of this Agreement.
242
+
243
+ 13.6 Governing Law. This Agreement is governed by the laws of Malta without
244
+ regard to conflicts of laws provisions thereof, and without regard to the
245
+ United Nations Convention on the International Sale of Goods or the Uniform
246
+ Computer Information Transactions Act, as currently enacted by any
247
+ jurisdiction or as may be codified or amended from time to time by any
248
+ jurisdiction. The jurisdiction and venue for actions related to the subject
249
+ matter hereof shall be Malta, and both parties hereby
250
+ submit to the personal jurisdiction of such courts.
251
+
252
+ 13.7 Attorneys’ Fees and Costs. The prevailing party in any action to enforce
253
+ this Agreement will be entitled to recover its attorneys’ fees and costs in
254
+ connection with such action.
255
+
256
+ 13.8 Severability. If any provision of this Agreement is held by a court of
257
+ competent jurisdiction to be invalid, illegal, or unenforceable, the remainder
258
+ of this Agreement will remain in full force and effect.
259
+
260
+ 13.9 Waiver. Failure or neglect by either party to enforce at any time any of
261
+ the provisions of this licence Agreement shall not be construed or deemed to
262
+ be a waiver of that party's rights under this Agreement.
263
+
264
+ 13.10 Headings. The headings of sections and paragraphs of this Agreement are
265
+ for convenience of reference only and are not intended to restrict, affect or
266
+ be of any weight in the interpretation or construction of the provisions of
267
+ such sections or paragraphs.
268
+
269
+ 14. Contact Information. If you have any questions about this EULA, or if you
270
+ want to contact Schirp DSO LTD for any reason, please direct correspondence
271
+ to info@schirp-dso.com.
@@ -19,8 +19,6 @@ module Mutant
19
19
  # * location
20
20
  # Is NOT enough. It would not be unique. So we add an "example index"
21
21
  # for unique reference.
22
- #
23
- # :reek:TooManyConstants
24
22
  class Rspec < self
25
23
 
26
24
  ALL_EXPRESSION = Expression::Namespace::Recursive.new(scope_name: nil)
@@ -108,7 +106,7 @@ module Mutant
108
106
  }
109
107
 
110
108
  Test.new(
111
- expression: parse_expression(metadata),
109
+ expression: parse_metadata(metadata),
112
110
  id: id
113
111
  )
114
112
  end
@@ -118,15 +116,25 @@ module Mutant
118
116
  # @param [RSpec::Core::Example::MetaData] metadata
119
117
  #
120
118
  # @return [Expression]
121
- def parse_expression(metadata)
119
+ def parse_metadata(metadata)
122
120
  if metadata.key?(:mutant_expression)
123
- expression_parser.(metadata.fetch(:mutant_expression))
121
+ parse_expression(metadata.fetch(:mutant_expression))
124
122
  else
125
123
  match = EXPRESSION_CANDIDATE.match(metadata.fetch(:full_description))
126
- expression_parser.try_parse(match.captures.first) || ALL_EXPRESSION
124
+ parse_expression(match.captures.first) { ALL_EXPRESSION }
127
125
  end
128
126
  end
129
127
 
128
+ # Parse expression
129
+ #
130
+ # @param [String] input
131
+ # @param [Proc] default
132
+ #
133
+ # @return [Expression]
134
+ def parse_expression(input, &default)
135
+ expression_parser.apply(input).from_right(&default)
136
+ end
137
+
130
138
  # Available rspec examples
131
139
  #
132
140
  # @return [Array<String, RSpec::Core::Example]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutant-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.24
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-29 00:00:00.000000000 Z
11
+ date: 2020-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mutant
@@ -16,21 +16,21 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.24
19
+ version: 0.9.0
20
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: 0.8.24
26
+ version: 0.9.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 3.4.0
33
+ version: 3.8.0
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: 4.0.0
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 3.4.0
43
+ version: 3.8.0
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 4.0.0
@@ -56,7 +56,7 @@ files:
56
56
  - lib/mutant/integration/rspec.rb
57
57
  homepage: https://github.com/mbj/mutant
58
58
  licenses:
59
- - MIT
59
+ - Nonstandard
60
60
  metadata: {}
61
61
  post_install_message:
62
62
  rdoc_options: []
@@ -73,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubyforge_project:
77
- rubygems_version: 3.0.0.beta2
76
+ rubygems_version: 3.0.6
78
77
  signing_key:
79
78
  specification_version: 4
80
79
  summary: Rspec integration for mutant