fix 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.gitignore +1 -5
  5. data/.rubocop.yml +12 -0
  6. data/.travis.yml +12 -3
  7. data/.yardopts +1 -0
  8. data/CODE_OF_CONDUCT.md +13 -0
  9. data/Gemfile +1 -0
  10. data/LICENSE.md +17 -18
  11. data/README.md +70 -78
  12. data/Rakefile +5 -2
  13. data/VERSION.semver +1 -1
  14. data/bin/console +7 -0
  15. data/bin/setup +5 -0
  16. data/certs/gem-fixrb-public_cert.pem +21 -0
  17. data/fix.gemspec +17 -18
  18. data/lib/fix.rb +20 -98
  19. data/lib/fix/helpers/it_helper.rb +32 -0
  20. data/lib/fix/helpers/on_helper.rb +29 -0
  21. data/lib/fix/it.rb +6 -9
  22. data/lib/fix/on.rb +30 -13
  23. data/lib/fix/report.rb +61 -0
  24. data/lib/fix/sandbox.rb +25 -0
  25. data/lib/fix/test.rb +50 -224
  26. data/pkg_checksum +11 -0
  27. metadata +61 -152
  28. metadata.gz.sig +0 -0
  29. data/.coveralls.yml +0 -1
  30. data/bin/fix +0 -5
  31. data/fix.pem +0 -21
  32. data/lib/fix/db.rb +0 -23
  33. data/lib/fix/dsl.rb +0 -17
  34. data/lib/fix/expectation.rb +0 -80
  35. data/lib/fix/expectation_high.rb +0 -15
  36. data/lib/fix/expectation_low.rb +0 -19
  37. data/lib/fix/expectation_medium.rb +0 -21
  38. data/lib/fix/helper/it_helper.rb +0 -12
  39. data/lib/fix/helper/its_helper.rb +0 -20
  40. data/lib/fix/helper/let_accessor_helper.rb +0 -11
  41. data/lib/fix/helper/let_reader_helper.rb +0 -13
  42. data/lib/fix/helper/let_writer_helper.rb +0 -15
  43. data/lib/fix/helper/on_helper.rb +0 -20
  44. data/lib/fix/helper/requirement_helper.rb +0 -44
  45. data/lib/fix/its.rb +0 -13
  46. data/lib/fix/subject.rb +0 -44
  47. data/lib/fix/version.rb +0 -9
  48. data/spec/fix/bin/color_spec.rb +0 -17
  49. data/spec/fix/bin/exit_status_spec.rb +0 -19
  50. data/spec/fix/bin/help_spec.rb +0 -13
  51. data/spec/fix/bin/hide_progress.rb +0 -17
  52. data/spec/fix/bin/spec_helper.rb +0 -3
  53. data/spec/fix/bin/version_spec.rb +0 -9
  54. data/spec/fix/lib/may/error_spec.rb +0 -9
  55. data/spec/fix/lib/may/info_spec.rb +0 -9
  56. data/spec/fix/lib/may/spec_helper.rb +0 -1
  57. data/spec/fix/lib/may/success_spec.rb +0 -9
  58. data/spec/fix/lib/must/error_spec.rb +0 -9
  59. data/spec/fix/lib/must/failure_spec.rb +0 -9
  60. data/spec/fix/lib/must/spec_helper.rb +0 -1
  61. data/spec/fix/lib/must/success_spec.rb +0 -9
  62. data/spec/fix/lib/should/error_spec.rb +0 -9
  63. data/spec/fix/lib/should/info_spec.rb +0 -9
  64. data/spec/fix/lib/should/spec_helper.rb +0 -1
  65. data/spec/fix/lib/should/success_spec.rb +0 -9
  66. data/spec/fix/lib/spec_helper.rb +0 -1
  67. data/spec/fix/lib/success_spec.rb +0 -9
  68. data/spec/fix/spec_helper.rb +0 -1
  69. data/spec/spec_helper.rb +0 -4
  70. data/spec/support.rb +0 -3
  71. data/spec/support/coverage.rb +0 -9
  72. data/spec/support/env.rb +0 -1
  73. data/spec/support/examples/42/app.rb +0 -1
  74. data/spec/support/examples/42/may/error/spec.rb +0 -7
  75. data/spec/support/examples/42/may/error/test.rb +0 -7
  76. data/spec/support/examples/42/may/info/spec.rb +0 -7
  77. data/spec/support/examples/42/may/info/test.rb +0 -7
  78. data/spec/support/examples/42/may/success/spec.rb +0 -12
  79. data/spec/support/examples/42/may/success/test.rb +0 -7
  80. data/spec/support/examples/42/must/error/spec.rb +0 -11
  81. data/spec/support/examples/42/must/error/test.rb +0 -7
  82. data/spec/support/examples/42/must/failure/spec.rb +0 -7
  83. data/spec/support/examples/42/must/failure/test.rb +0 -7
  84. data/spec/support/examples/42/must/success/spec.rb +0 -7
  85. data/spec/support/examples/42/must/success/test.rb +0 -7
  86. data/spec/support/examples/42/should/error/spec.rb +0 -11
  87. data/spec/support/examples/42/should/error/test.rb +0 -7
  88. data/spec/support/examples/42/should/info/spec.rb +0 -7
  89. data/spec/support/examples/42/should/info/test.rb +0 -7
  90. data/spec/support/examples/42/should/success/spec.rb +0 -7
  91. data/spec/support/examples/42/should/success/test.rb +0 -7
  92. data/spec/support/examples/duck/app.rb +0 -16
  93. data/spec/support/examples/duck/success/spec.rb +0 -80
  94. data/spec/support/examples/duck/success/test.rb +0 -7
  95. data/spec/support/immutable.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c74dde05a82712b08d657679c40f2bee2637145
4
- data.tar.gz: e3cc1b4cda3ef6197eccbcafb42af91fa9898b5d
3
+ metadata.gz: f2e3d9374047af40837927cff33a10ca67d1eb51
4
+ data.tar.gz: d54ab179692cb0cd3727897da8cb96cf3e9f76a6
5
5
  SHA512:
6
- metadata.gz: 1d01283957a2dedad6e1d1e5f090bb038267921d5bf75d9b0200e309c173c1d6057d45b6596239c30e4463b2a7f8755b0344a59fb24171355c9eced5c305b067
7
- data.tar.gz: 2b3451fa7adce9a3c424c2974642cae18f9dd80b789a4ce640c7bca47ef78a94c9cc853a6034d0bd81d85cbd324261a5165cf687fda37b0b977e8d145990c8b7
6
+ metadata.gz: 67bdef20cb2fa465c2275daed9f3d8cb94c8ce74ad864c373fe6c6b395e6aa2afb11c5bcc83b0509382f1bebe12ce256276cb3099302f0c42a56f18480e9df74
7
+ data.tar.gz: 01a40b4df6f2d7f7871f3b2ccd7456bc8f9c0b969c371827735676a23232617470443297ccf010b629518e81eb1eca7ccbb4aeb624af41fc499fb7862a966b8c
Binary file
data.tar.gz.sig CHANGED
Binary file
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  /.bundle/
2
+ /.ruby-version
2
3
  /.yardoc
3
4
  /Gemfile.lock
4
5
  /_yardoc/
@@ -7,8 +8,3 @@
7
8
  /pkg/
8
9
  /spec/reports/
9
10
  /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
@@ -0,0 +1,12 @@
1
+ TrivialAccessors:
2
+ Enabled: true
3
+ ExactNameMatch: true
4
+
5
+ Style/MethodName:
6
+ Enabled: false
7
+
8
+ ParameterLists:
9
+ Max: 11
10
+
11
+ Metrics/MethodLength:
12
+ Max: 16
@@ -1,6 +1,15 @@
1
1
  language: ruby
2
- script: 'bundle exec rake test:coverage'
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
- - 2.0.0
5
- - 2.1.3
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
@@ -0,0 +1 @@
1
+ - README.md
@@ -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
@@ -1,2 +1,3 @@
1
1
  source 'https://rubygems.org'
2
+
2
3
  gemspec
data/LICENSE.md CHANGED
@@ -1,22 +1,21 @@
1
- Copyright (c) 2014 Cyril Wack
1
+ The MIT License (MIT)
2
2
 
3
- MIT License
3
+ Copyright (c) 2014-2015 Cyril Wack
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
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
- included in all copies or substantial portions of the Software.
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
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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)](https://travis-ci.org/fixrb/fix)
4
- [![Coverage Status](http://img.shields.io/coveralls/fixrb/fix.svg?branch=master)](https://coveralls.io/r/fixrb/fix)
5
- [![Dependency Status](https://gemnasium.com/fixrb/fix.svg)](https://gemnasium.com/fixrb/fix)
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
- __Fix__ is supported by Ruby (MRI) 2+.
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
- Add this line to your application's Gemfile:
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
- ```shell
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 674 lignes 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 **DRY** and focus your BDD.
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 Fix, preventing from software erosion. Also, Fix specs are complient with **[RFC 2119](http://tools.ietf.org/html/rfc2119)**.
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. Instead, animated by **authentic** and **unmuted** Ruby objects, unambiguous, understandable and structured specs are encouraged.
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
- "Klop klop!"
64
+ 'Klop klop!'
66
65
  end
67
66
 
68
67
  def swims
69
- "Swoosh..."
68
+ 'Swoosh...'
70
69
  end
71
70
 
72
71
  def quacks
73
- puts "Quaaaaaack!"
72
+ puts 'Quaaaaaack!'
74
73
  end
75
74
  end
75
+ ```
76
76
 
77
- @bird = Duck.new
77
+ When you run this:
78
78
 
79
+ ```ruby
80
+ # duck_spec.rb
81
+ require_relative 'duck'
79
82
  require 'fix'
80
83
 
81
- extend Fix::DSL
82
-
83
- require 'stringio'
84
- module Spectus
85
- module Matcher
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
- subject @bird
91
+ on :speaks do
92
+ it { MUST RaiseException: NoMethodError }
93
+ end
109
94
 
110
- on :swims do
111
- it { SHALL eql: "Swoosh..." }
112
- it { MAY capture_stdout: " ...\n" }
95
+ on :sings do
96
+ it { MAY :Equal: '♪... ♫...' }
97
+ end
113
98
  end
99
+ ```
114
100
 
115
- on :quacks do
116
- it { SHOULD capture_stdout: "Quaaaaaack!\n" }
117
- end
101
+ Then the output should look like this:
118
102
 
119
- on :speaks do
120
- it { MUST raise_exception: NoMethodError }
121
- end
103
+ $ ruby duck_spec.rb
104
+ ..I
122
105
 
123
- on :sings do
124
- it { MAY eql: "♪... ♫..." }
125
- end
126
- ```
106
+ 1. Info: undefined method `sings' for #<Duck:0x007fb60383b740> (NoMethodError).
127
107
 
128
- ```bash
129
- ruby duck_spec.rb
130
- ```
108
+ Ran 3 tests in 0.00038 seconds
109
+ 100% compliant - 1 infos, 0 failures, 0 errors
131
110
 
132
- .....
133
- Finished in 0.001033 seconds.
134
- 100% compliant (5 specs, 0 infos, 0 failures, 0 errors)
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
- ## Versioning
145
-
146
- __Fix__ follows [Semantic Versioning 2.0](http://semver.org/)
136
+ ## License
147
137
 
148
- ## Copyright
138
+ See `LICENSE.md` file.
149
139
 
150
- &copy; 2014 [Cyril Wack](https://plus.google.com/+CyrilWack?rel=author)
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]
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.7.0
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'fix'
5
+
6
+ require 'irb'
7
+ IRB.start
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
@@ -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-----
@@ -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@sashite.com']
6
- spec.summary = %q{Specing framework.}
7
- spec.description = %q{Specing framework for Ruby.}
8
- spec.homepage = 'http://fixrb.org/'
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 = `git ls-files -z`.split("\x0")
12
- spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f) }
13
- spec.test_files = spec.files.grep(%r{^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 'spectus', '~> 1.1.1'
17
+ spec.add_dependency 'spectus', '~> 2.3.1'
18
18
 
19
- spec.add_development_dependency 'bundler', '~> 1.7'
20
- spec.add_development_dependency 'rake', '~> 10.0'
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 'coveralls', '~> 0.7'
22
+ spec.add_development_dependency 'simplecov', '~> 0.10'
23
+ spec.add_development_dependency 'rubocop', '~> 0.33'
23
24
 
24
- private_key = File.expand_path File.join('~', '.gemcert', 'fix-gem-private_key.pem')
25
- if File.exist? private_key
26
- spec.signing_key = private_key
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