fix 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.gitignore +1 -5
- data/.rubocop.yml +12 -0
- data/.travis.yml +12 -3
- data/.yardopts +1 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +1 -0
- data/LICENSE.md +17 -18
- data/README.md +70 -78
- data/Rakefile +5 -2
- data/VERSION.semver +1 -1
- data/bin/console +7 -0
- data/bin/setup +5 -0
- data/certs/gem-fixrb-public_cert.pem +21 -0
- data/fix.gemspec +17 -18
- data/lib/fix.rb +20 -98
- data/lib/fix/helpers/it_helper.rb +32 -0
- data/lib/fix/helpers/on_helper.rb +29 -0
- data/lib/fix/it.rb +6 -9
- data/lib/fix/on.rb +30 -13
- data/lib/fix/report.rb +61 -0
- data/lib/fix/sandbox.rb +25 -0
- data/lib/fix/test.rb +50 -224
- data/pkg_checksum +11 -0
- metadata +61 -152
- metadata.gz.sig +0 -0
- data/.coveralls.yml +0 -1
- data/bin/fix +0 -5
- data/fix.pem +0 -21
- data/lib/fix/db.rb +0 -23
- data/lib/fix/dsl.rb +0 -17
- data/lib/fix/expectation.rb +0 -80
- data/lib/fix/expectation_high.rb +0 -15
- data/lib/fix/expectation_low.rb +0 -19
- data/lib/fix/expectation_medium.rb +0 -21
- data/lib/fix/helper/it_helper.rb +0 -12
- data/lib/fix/helper/its_helper.rb +0 -20
- data/lib/fix/helper/let_accessor_helper.rb +0 -11
- data/lib/fix/helper/let_reader_helper.rb +0 -13
- data/lib/fix/helper/let_writer_helper.rb +0 -15
- data/lib/fix/helper/on_helper.rb +0 -20
- data/lib/fix/helper/requirement_helper.rb +0 -44
- data/lib/fix/its.rb +0 -13
- data/lib/fix/subject.rb +0 -44
- data/lib/fix/version.rb +0 -9
- data/spec/fix/bin/color_spec.rb +0 -17
- data/spec/fix/bin/exit_status_spec.rb +0 -19
- data/spec/fix/bin/help_spec.rb +0 -13
- data/spec/fix/bin/hide_progress.rb +0 -17
- data/spec/fix/bin/spec_helper.rb +0 -3
- data/spec/fix/bin/version_spec.rb +0 -9
- data/spec/fix/lib/may/error_spec.rb +0 -9
- data/spec/fix/lib/may/info_spec.rb +0 -9
- data/spec/fix/lib/may/spec_helper.rb +0 -1
- data/spec/fix/lib/may/success_spec.rb +0 -9
- data/spec/fix/lib/must/error_spec.rb +0 -9
- data/spec/fix/lib/must/failure_spec.rb +0 -9
- data/spec/fix/lib/must/spec_helper.rb +0 -1
- data/spec/fix/lib/must/success_spec.rb +0 -9
- data/spec/fix/lib/should/error_spec.rb +0 -9
- data/spec/fix/lib/should/info_spec.rb +0 -9
- data/spec/fix/lib/should/spec_helper.rb +0 -1
- data/spec/fix/lib/should/success_spec.rb +0 -9
- data/spec/fix/lib/spec_helper.rb +0 -1
- data/spec/fix/lib/success_spec.rb +0 -9
- data/spec/fix/spec_helper.rb +0 -1
- data/spec/spec_helper.rb +0 -4
- data/spec/support.rb +0 -3
- data/spec/support/coverage.rb +0 -9
- data/spec/support/env.rb +0 -1
- data/spec/support/examples/42/app.rb +0 -1
- data/spec/support/examples/42/may/error/spec.rb +0 -7
- data/spec/support/examples/42/may/error/test.rb +0 -7
- data/spec/support/examples/42/may/info/spec.rb +0 -7
- data/spec/support/examples/42/may/info/test.rb +0 -7
- data/spec/support/examples/42/may/success/spec.rb +0 -12
- data/spec/support/examples/42/may/success/test.rb +0 -7
- data/spec/support/examples/42/must/error/spec.rb +0 -11
- data/spec/support/examples/42/must/error/test.rb +0 -7
- data/spec/support/examples/42/must/failure/spec.rb +0 -7
- data/spec/support/examples/42/must/failure/test.rb +0 -7
- data/spec/support/examples/42/must/success/spec.rb +0 -7
- data/spec/support/examples/42/must/success/test.rb +0 -7
- data/spec/support/examples/42/should/error/spec.rb +0 -11
- data/spec/support/examples/42/should/error/test.rb +0 -7
- data/spec/support/examples/42/should/info/spec.rb +0 -7
- data/spec/support/examples/42/should/info/test.rb +0 -7
- data/spec/support/examples/42/should/success/spec.rb +0 -7
- data/spec/support/examples/42/should/success/test.rb +0 -7
- data/spec/support/examples/duck/app.rb +0 -16
- data/spec/support/examples/duck/success/spec.rb +0 -80
- data/spec/support/examples/duck/success/test.rb +0 -7
- data/spec/support/immutable.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2e3d9374047af40837927cff33a10ca67d1eb51
|
4
|
+
data.tar.gz: d54ab179692cb0cd3727897da8cb96cf3e9f76a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67bdef20cb2fa465c2275daed9f3d8cb94c8ce74ad864c373fe6c6b395e6aa2afb11c5bcc83b0509382f1bebe12ce256276cb3099302f0c42a56f18480e9df74
|
7
|
+
data.tar.gz: 01a40b4df6f2d7f7871f3b2ccd7456bc8f9c0b969c371827735676a23232617470443297ccf010b629518e81eb1eca7ccbb4aeb624af41fc499fb7862a966b8c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
data/.travis.yml
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
language: ruby
|
2
|
-
|
2
|
+
sudo: false
|
3
|
+
cache: bundler
|
4
|
+
script: 'bundle exec rake test:coverage --trace'
|
5
|
+
before_install:
|
6
|
+
- gem install bundler
|
3
7
|
rvm:
|
4
|
-
-
|
5
|
-
- 2.
|
8
|
+
- 1.9.3
|
9
|
+
- 2.0
|
10
|
+
- 2.1
|
11
|
+
- 2.2
|
6
12
|
- ruby-head
|
13
|
+
- jruby
|
14
|
+
- jruby-head
|
15
|
+
- rbx-2
|
data/.yardopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
- README.md
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
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
CHANGED
data/LICENSE.md
CHANGED
@@ -1,22 +1,21 @@
|
|
1
|
-
|
1
|
+
The MIT License (MIT)
|
2
2
|
|
3
|
-
|
3
|
+
Copyright (c) 2014-2015 Cyril Wack
|
4
4
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
the following conditions:
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
12
11
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
15
14
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
OF
|
22
|
-
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
# Fix
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/fixrb/fix.svg?branch=master)]
|
4
|
-
[![
|
5
|
-
[![
|
6
|
-
[![Gem Version](http://img.shields.io/gem/v/fix.svg)](https://rubygems.org/gems/fix)
|
7
|
-
[![Inline docs](http://inch-ci.org/github/fixrb/fix.svg?branch=master)](http://inch-ci.org/github/fixrb/fix)
|
8
|
-
[![Documentation](http://img.shields.io/:yard-docs-38c800.svg)](http://rubydoc.info/gems/fix/frames)
|
3
|
+
[![Build Status](https://travis-ci.org/fixrb/fix.svg?branch=master)][travis]
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/fix.svg)][gem]
|
5
|
+
[![Inline docs](http://inch-ci.org/github/fixrb/fix.svg?branch=master)][inchpages]
|
9
6
|
|
10
7
|
> Specing framework for Ruby.
|
11
8
|
|
@@ -17,11 +14,22 @@
|
|
17
14
|
|
18
15
|
## Rubies
|
19
16
|
|
20
|
-
|
17
|
+
* [MRI](https://www.ruby-lang.org/)
|
18
|
+
* [Rubinius](http://rubini.us/)
|
19
|
+
* [JRuby](http://jruby.org/)
|
21
20
|
|
22
21
|
## Installation
|
23
22
|
|
24
|
-
|
23
|
+
__Fix__ is cryptographically signed.
|
24
|
+
|
25
|
+
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:
|
26
|
+
|
27
|
+
$ gem cert --add <(curl -Ls https://raw.github.com/fixrb/fix/master/certs/gem-fixrb-public_cert.pem)
|
28
|
+
$ gem install fix -P HighSecurity
|
29
|
+
|
30
|
+
The `HighSecurity` trust profile will verify all gems. All of __Fix__'s dependencies are signed.
|
31
|
+
|
32
|
+
Or add this line to your application's Gemfile:
|
25
33
|
|
26
34
|
```ruby
|
27
35
|
gem 'fix'
|
@@ -29,109 +37,93 @@ gem 'fix'
|
|
29
37
|
|
30
38
|
And then execute:
|
31
39
|
|
32
|
-
|
33
|
-
$ bundle
|
34
|
-
```
|
35
|
-
|
36
|
-
Or install it yourself as:
|
37
|
-
|
38
|
-
```shell
|
39
|
-
$ gem install fix
|
40
|
-
```
|
40
|
+
$ bundle
|
41
41
|
|
42
42
|
## Philosophy
|
43
43
|
|
44
44
|
### Minimalist
|
45
45
|
|
46
|
-
With
|
46
|
+
With 148 lines of **simple code** built on top of [Spectus expectation library](https://github.com/fixrb/spectus), facilities such as benchmarking and mocking are not supported. __Fix__ offers however a **consistent** syntax to focus your BDD.
|
47
47
|
|
48
48
|
### Resistant
|
49
49
|
|
50
|
-
While specs behave like **documents** which can be logic-less, their interpretation should not be questioned regardless of the version of
|
50
|
+
While specs behave like **documents** which can be logic-less, their interpretation should not be questioned regardless of the version of __Fix__, preventing from software erosion. Also, Fix specs are compliant with **[RFC 2119](http://tools.ietf.org/html/rfc2119)**.
|
51
51
|
|
52
52
|
### Complexity
|
53
53
|
|
54
|
-
Monkey-patching, magic tricks and friends are not included.
|
55
|
-
|
56
|
-
### Objective
|
57
|
-
|
58
|
-
After having loaded atomically the specs in read-only, the code to be tested can also be loaded and evaluated in **isolation** by Fix. There is a separation of concerns between the specs and the code.
|
54
|
+
Monkey-patching, magic tricks and friends are not included. Instead, animated by **authentic** and **unmuted** Ruby objects, unambiguous, understandable and structured specs are encouraged.
|
59
55
|
|
60
56
|
## Usage
|
61
57
|
|
58
|
+
Given this app:
|
59
|
+
|
62
60
|
```ruby
|
61
|
+
# duck.rb
|
63
62
|
class Duck
|
64
63
|
def walks
|
65
|
-
|
64
|
+
'Klop klop!'
|
66
65
|
end
|
67
66
|
|
68
67
|
def swims
|
69
|
-
|
68
|
+
'Swoosh...'
|
70
69
|
end
|
71
70
|
|
72
71
|
def quacks
|
73
|
-
puts
|
72
|
+
puts 'Quaaaaaack!'
|
74
73
|
end
|
75
74
|
end
|
75
|
+
```
|
76
76
|
|
77
|
-
|
77
|
+
When you run this:
|
78
78
|
|
79
|
+
```ruby
|
80
|
+
# duck_spec.rb
|
81
|
+
require_relative 'duck'
|
79
82
|
require 'fix'
|
80
83
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
# Provides the implementation for `capture_stdout` custom matcher.
|
87
|
-
class CaptureStdout
|
88
|
-
def initialize expected
|
89
|
-
@expected = expected
|
90
|
-
end
|
91
|
-
|
92
|
-
# @return [Boolean] Comparison between actual and expected values.
|
93
|
-
def matches?
|
94
|
-
begin
|
95
|
-
orig_std = $stdout
|
96
|
-
$stdout = StringIO.new
|
97
|
-
|
98
|
-
yield
|
99
|
-
$stdout.string.eql? @expected
|
100
|
-
ensure
|
101
|
-
$stdout = orig_std
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
84
|
+
@bird = Duck.new
|
85
|
+
|
86
|
+
Fix.describe @bird do
|
87
|
+
on :swims do
|
88
|
+
it { MUST Equal: 'Swoosh...' }
|
105
89
|
end
|
106
|
-
end
|
107
90
|
|
108
|
-
|
91
|
+
on :speaks do
|
92
|
+
it { MUST RaiseException: NoMethodError }
|
93
|
+
end
|
109
94
|
|
110
|
-
on :
|
111
|
-
|
112
|
-
|
95
|
+
on :sings do
|
96
|
+
it { MAY :Equal: '♪... ♫...' }
|
97
|
+
end
|
113
98
|
end
|
99
|
+
```
|
114
100
|
|
115
|
-
|
116
|
-
it { SHOULD capture_stdout: "Quaaaaaack!\n" }
|
117
|
-
end
|
101
|
+
Then the output should look like this:
|
118
102
|
|
119
|
-
|
120
|
-
|
121
|
-
end
|
103
|
+
$ ruby duck_spec.rb
|
104
|
+
..I
|
122
105
|
|
123
|
-
|
124
|
-
it { MAY eql: "♪... ♫..." }
|
125
|
-
end
|
126
|
-
```
|
106
|
+
1. Info: undefined method `sings' for #<Duck:0x007fb60383b740> (NoMethodError).
|
127
107
|
|
128
|
-
|
129
|
-
|
130
|
-
```
|
108
|
+
Ran 3 tests in 0.00038 seconds
|
109
|
+
100% compliant - 1 infos, 0 failures, 0 errors
|
131
110
|
|
132
|
-
|
133
|
-
|
134
|
-
|
111
|
+
## Security
|
112
|
+
|
113
|
+
As a basic form of security __Fix__ provides a set of SHA512 checksums for
|
114
|
+
every Gem release. These checksums can be found in the `checksum/` directory.
|
115
|
+
Although these checksums do not prevent malicious users from tampering with a
|
116
|
+
built Gem they can be used for basic integrity verification purposes.
|
117
|
+
|
118
|
+
The checksum of a file can be checked using the `sha512sum` command. For
|
119
|
+
example:
|
120
|
+
|
121
|
+
$ sha512sum pkg/fix-0.1.0.gem
|
122
|
+
d12d7d9c2a4fdfe075cbb7a141fa5f2195175891e4098c7e1a28c8bca655ab44fb9d67b6a2e3991d0f852026c5e4537fdf7e314575c68d1c80b3a4b1eb1c041f pkg/fix-0.1.0.gem
|
123
|
+
|
124
|
+
## Versioning
|
125
|
+
|
126
|
+
__Fix__ follows [Semantic Versioning 2.0](http://semver.org/).
|
135
127
|
|
136
128
|
## Contributing
|
137
129
|
|
@@ -141,10 +133,10 @@ ruby duck_spec.rb
|
|
141
133
|
4. Push to the branch (`git push origin my-new-feature`)
|
142
134
|
5. Create a new Pull Request
|
143
135
|
|
144
|
-
##
|
145
|
-
|
146
|
-
__Fix__ follows [Semantic Versioning 2.0](http://semver.org/)
|
136
|
+
## License
|
147
137
|
|
148
|
-
|
138
|
+
See `LICENSE.md` file.
|
149
139
|
|
150
|
-
|
140
|
+
[gem]: https://rubygems.org/gems/fix
|
141
|
+
[travis]: https://travis-ci.org/fixrb/fix
|
142
|
+
[inchpages]: http://inch-ci.org/github/fixrb/fix/
|
data/Rakefile
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
require 'bundler/gem_tasks'
|
2
2
|
require 'rake/testtask'
|
3
|
+
require 'rubocop/rake_task'
|
4
|
+
|
5
|
+
RuboCop::RakeTask.new
|
3
6
|
|
4
7
|
Rake::TestTask.new do |t|
|
5
|
-
t.pattern = File.join 'spec', '**', '*_spec.rb'
|
6
8
|
t.verbose = true
|
7
9
|
t.warning = true
|
10
|
+
t.pattern = File.join('test', '**', 'test_*.rb')
|
8
11
|
end
|
9
12
|
|
10
13
|
namespace :test do
|
@@ -15,4 +18,4 @@ namespace :test do
|
|
15
18
|
end
|
16
19
|
|
17
20
|
task(:doc_stats) { ruby '-S yard stats' }
|
18
|
-
task default: [:test, :doc_stats]
|
21
|
+
task default: [:test, :doc_stats, :rubocop]
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|
data/bin/console
ADDED
data/bin/setup
ADDED
@@ -0,0 +1,21 @@
|
|
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-----
|
data/fix.gemspec
CHANGED
@@ -1,29 +1,28 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'fix'
|
3
|
-
spec.version = File.read('VERSION.semver')
|
3
|
+
spec.version = File.read('VERSION.semver').chomp
|
4
4
|
spec.authors = ['Cyril Wack']
|
5
|
-
spec.email = ['cyril
|
6
|
-
|
7
|
-
spec.
|
8
|
-
spec.
|
5
|
+
spec.email = ['contact@cyril.email']
|
6
|
+
|
7
|
+
spec.summary = 'Specing framework.'
|
8
|
+
spec.description = 'Specing framework for Ruby.'
|
9
|
+
spec.homepage = 'https://github.com/fixrb/fix'
|
9
10
|
spec.license = 'MIT'
|
10
11
|
|
11
|
-
spec.files =
|
12
|
-
|
13
|
-
spec.
|
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) }
|
14
15
|
spec.require_paths = ['lib']
|
15
|
-
spec.required_ruby_version = '>= 2.0.0'
|
16
16
|
|
17
|
-
spec.add_dependency
|
17
|
+
spec.add_dependency 'spectus', '~> 2.3.1'
|
18
18
|
|
19
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
20
|
-
spec.add_development_dependency 'rake', '~> 10.
|
19
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
20
|
+
spec.add_development_dependency 'rake', '~> 10.4'
|
21
21
|
spec.add_development_dependency 'yard', '~> 0.8'
|
22
|
-
spec.add_development_dependency '
|
22
|
+
spec.add_development_dependency 'simplecov', '~> 0.10'
|
23
|
+
spec.add_development_dependency 'rubocop', '~> 0.33'
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
spec.cert_chain = ['fix.pem']
|
28
|
-
end
|
25
|
+
spec.cert_chain = ['certs/gem-fixrb-public_cert.pem']
|
26
|
+
private_key = File.expand_path('~/.ssh/gem-fixrb-private_key.pem')
|
27
|
+
spec.signing_key = private_key if File.exist?(private_key)
|
29
28
|
end
|