expect 0.0.12 → 0.0.13

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: 7cfbd9d658cd744736750e4e4fa17bc048f4d092
4
- data.tar.gz: a2f4153d80858a6bcdff5a8dfd37c9c082317003
3
+ metadata.gz: 21d39c07c02365854578db674b2e4dbf9f6bb763
4
+ data.tar.gz: bf2bd7f9e2554ccafc4bd0f28aa5d36525e288f5
5
5
  SHA512:
6
- metadata.gz: f7d77be585bb0eb287aa4040701bb3dab63ee8b49c0189ac257b6ce15238536e5eb15771ee8c221ea14ce12b941697cce086a7688c29d2c7cf5dafeb874a3e3a
7
- data.tar.gz: 196c70e9766b9a4447f8feed85b9bba64f36a1cf681fce216d206bb6f02345fda479af5e93a59dfa216c1299d532897212aeb4273f8eba5dbf418f14d689b024
6
+ metadata.gz: 7bbdf0e640183e6f4da7f91f6b5ab6fbf27e62dbf4899fa0ee86b7c8382b512c078b43a97dbc5e137e516ce6d44c8224f9cea6be022090276f28d3dd93cf0071
7
+ data.tar.gz: 99c0d5151ac6dcab0941a174b5041f9fa95814aae2d73fc886bf650e4cd324380d69d2a18ecde8be0af5543b470608dc01bf4e3ebda94f1afc5b1a24be06e07d
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -1,10 +1,9 @@
1
1
  # Expect
2
2
 
3
- [![Build Status](https://travis-ci.org/fixrb/expect.svg?branch=master)](https://travis-ci.org/fixrb/expect)
4
- [![Dependency Status](https://gemnasium.com/fixrb/expect.svg)](https://gemnasium.com/fixrb/expect)
5
- [![Gem Version](http://img.shields.io/gem/v/expect.svg)](https://rubygems.org/gems/expect)
6
- [![Inline docs](http://inch-ci.org/github/fixrb/expect.svg?branch=master)](http://inch-ci.org/github/fixrb/expect)
7
- [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)](http://rubydoc.info/gems/expect/frames)
3
+ [![Build Status](https://travis-ci.org/fixrb/expect.svg?branch=master)][travis]
4
+ [![Gem Version](https://badge.fury.io/rb/expect.svg)][gem]
5
+ [![Inline docs](http://inch-ci.org/github/fixrb/expect.svg?branch=master)][inchpages]
6
+ [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
8
7
 
9
8
  > Expectation library with some built-in matchers for Ruby.
10
9
 
@@ -22,19 +21,14 @@
22
21
 
23
22
  ## Installation
24
23
 
25
- Add this line to your application's Gemfile:
24
+ __Expect__ is cryptographically signed.
26
25
 
27
- ```ruby
28
- gem 'expect'
29
- ```
30
-
31
- And then execute:
26
+ 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:
32
27
 
33
- $ bundle
28
+ $ gem cert --add <(curl -Ls https://raw.github.com/fixrb/expect/master/certs/gem-fixrb-public_cert.pem)
29
+ $ gem install expect -P HighSecurity
34
30
 
35
- Or install it yourself as:
36
-
37
- $ gem install expect
31
+ The `HighSecurity` trust profile will verify all gems. All of __Expect__'s dependencies are signed.
38
32
 
39
33
  ## Usage
40
34
 
@@ -62,6 +56,19 @@ Expect.this { 'foo' }.to Match: /^foo$/ # => true
62
56
  Expect.this { Boom }.to RaiseException: NameError # => true
63
57
  ```
64
58
 
59
+ ## Security
60
+
61
+ As a basic form of security __Expect__ provides a set of SHA512 checksums for
62
+ every Gem release. These checksums can be found in the `checksum/` directory.
63
+ Although these checksums do not prevent malicious users from tampering with a
64
+ built Gem they can be used for basic integrity verification purposes.
65
+
66
+ The checksum of a file can be checked using the `sha512sum` command. For
67
+ example:
68
+
69
+ $ sha512sum pkg/expect-0.0.1.gem
70
+ 8c72ec1d93577cf57eaaea04d66287f18673f39cb886452cf7044195c03a77d03a5226a6b033cc6a0992721c7aefcb64c6daca463e7e0b5059901886dfc3cfb2 pkg/expect-0.0.1.gem
71
+
65
72
  ## Versioning
66
73
 
67
74
  __Expect__ follows [Semantic Versioning 2.0](http://semver.org/).
@@ -77,3 +84,8 @@ __Expect__ follows [Semantic Versioning 2.0](http://semver.org/).
77
84
  ## License
78
85
 
79
86
  See `LICENSE.md` file.
87
+
88
+ [gem]: https://rubygems.org/gems/expect
89
+ [travis]: https://travis-ci.org/fixrb/expect
90
+ [inchpages]: http://inch-ci.org/github/fixrb/expect/
91
+ [rubydoc]: http://rubydoc.info/gems/expect/frames
@@ -1 +1 @@
1
- 0.0.12
1
+ 0.0.13
@@ -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-----
@@ -0,0 +1 @@
1
+ 8c72ec1d93577cf57eaaea04d66287f18673f39cb886452cf7044195c03a77d03a5226a6b033cc6a0992721c7aefcb64c6daca463e7e0b5059901886dfc3cfb2
@@ -0,0 +1 @@
1
+ e33832d6ce3b0a63e7542471c6590ca7175ad0d67f69cd3263e0a943cd4c9dcb60cb5137a8e771645fbd731f843750bb6ef0d3e695eb943863bbec73db01d140
@@ -0,0 +1 @@
1
+ 062b8b1c4988f2c3f0ce2d325064b256c5a2064bf93ecb295a17f2b78147a69eeee29a7ac2df9c87e8f5112c4f9ab4842b5c8188b82868477410fc54563e2870
@@ -0,0 +1 @@
1
+ b8053ab9dfa41beb44bca74f4fef8043f9f842346b6c23fc668e325cc254e3b13427820631c0ed2ca4bb54c4b01883cc4a62f7d36a7946097ff270caa6502d1e
@@ -0,0 +1 @@
1
+ 305ad85dbdbd9d4029e3904df8a2c654464b6c4eed4442c831396520cc6d41893405498ae97aa3571fe8aca7c63bded29ebdfd4833f13ca8d70cc4cab6b9fc0c
@@ -0,0 +1 @@
1
+ 2eae6597e0ff41b0d7d6a21ad5fb0b9bef271cfcad8c1c6112fcf0288a8df15d17402222c92898c0189092ee9c4e95558e4ade5290b832e21e373331908e79d9
@@ -0,0 +1 @@
1
+ 61f657f0a68d9b5545933459bb84778e9416f9cf7353a3c5401cc3b71f946f161f8998d7f18121ca977c227500795a5b3e2277a42318d8f44d9af1a5450362b4
@@ -0,0 +1 @@
1
+ 156e6f8c425b5656977571403439169a0f88635883bf54963cc93f6f3dedda18b839bcb750fc1a8acaddd787a4135c5b4da69a7a3af8ed4169317928b4e7666b
@@ -0,0 +1 @@
1
+ 164797e4ba54cd34c63b21f55fad38b3ce12987a97be51869a58b7b512fb73a99df56d5e735399f7e9d9f3004c0de79038f2d264ccb64c3e35bef1bb47c13df2
@@ -0,0 +1 @@
1
+ efa73d30c17845cca68b294adfddc47e2d132d5dc776d5f541f66a20539855cd759274f2bb92444b0873978805bc8457602764aa28ce6476f51806ce55698393
@@ -0,0 +1 @@
1
+ ee445e5f1d61a86f7a250c653749efc0b2528152f19968e61c6da2aaf8492f0661481a96678a7b40332272dd87a7e560f5a97ab6e8a1288e9d0f9323827e6baa
@@ -0,0 +1 @@
1
+ 0043b268f8278789e56d5e17d44b450d8a081c09b35048c84cfa2fc6002333e387a07a70dc1973ddf2467edbe13b9d32ae346cbd21405c5911a3bac290c5d394
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'expect'
3
- spec.version = File.read('VERSION.semver')
3
+ spec.version = File.read('VERSION.semver').chomp
4
4
  spec.authors = ['Cyril Wack']
5
5
  spec.email = ['contact@cyril.email']
6
6
 
@@ -16,15 +16,14 @@ Gem::Specification.new do |spec|
16
16
 
17
17
  spec.add_dependency 'matchi', '~> 0.0'
18
18
 
19
+ spec.add_development_dependency 'rubygems-tasks', '~> 0.2.4'
19
20
  spec.add_development_dependency 'bundler', '~> 1.10'
20
21
  spec.add_development_dependency 'rake', '~> 10.4'
21
22
  spec.add_development_dependency 'yard', '~> 0.8'
22
23
  spec.add_development_dependency 'simplecov', '~> 0.10'
23
24
  spec.add_development_dependency 'rubocop', '~> 0.32'
24
25
 
25
- private_key = File.expand_path '~/.gem/expect-gem-private_key.pem'
26
- if File.exist? private_key
27
- spec.signing_key = private_key
28
- spec.cert_chain = ['expect-gem-public_cert.pem']
29
- end
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)
30
29
  end
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'digest/sha2'
4
+
5
+ gemname = :expect
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") }
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.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Wack
@@ -12,25 +12,25 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRAwDgYDVQQDDAdjb250
14
14
  YWN0MRUwEwYKCZImiZPyLGQBGRYFY3lyaWwxFTATBgoJkiaJk/IsZAEZFgVlbWFp
15
- bDAeFw0xNTA3MjUxNzEwMjlaFw0xNjA3MjQxNzEwMjlaMEAxEDAOBgNVBAMMB2Nv
15
+ bDAeFw0xNTA3MzExMjExMDZaFw0xNjA3MzAxMjExMDZaMEAxEDAOBgNVBAMMB2Nv
16
16
  bnRhY3QxFTATBgoJkiaJk/IsZAEZFgVjeXJpbDEVMBMGCgmSJomT8ixkARkWBWVt
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wHgYDVR0RBBcwFYETY29udGFjdEBjeXJpbC5l
25
25
  bWFpbDAeBgNVHRIEFzAVgRNjb250YWN0QGN5cmlsLmVtYWlsMA0GCSqGSIb3DQEB
26
- BQUAA4IBAQBw9I7QRS2b/DDHvU7GeRj78jXMC1h44jjgWD7pQgh/ElxF+eIjNuqw
27
- eylIigd2J5Q94Qrxarys1OFjNCboVRFz4oC8Ft7JbLAQq5s6g8qfSF6uCAffpvJg
28
- 2sied6dgkMVKWO2yjrretyhouxcCYb5jUIw1C+drhZD+qXZNEqv4S/1HIvN4wLQo
29
- 6bCBEmU6y6htZEV04mseS/n3MN75HhvddaO6GvKxRIox2lEPacYVsLg02vf14oSZ
30
- JAoJK0pylOIOYNby0iAISk3czU1cmi2EZXGqezYqRnzgrwfjxQ3NvQJgz49qJ35m
31
- vdqKN7VS1+j1AXyonlnVc1vujL7UbwvF
26
+ BQUAA4IBAQArqCC1rUyGJlF0DF9ZhUOgggyROvO0/WroSI5zWgzdB8EU7RJpsDIV
27
+ caGnpji7h0rQIGWQuJ6TL2fTFLfeGRFdIzRZwWC7TeXhcXngJHZxSjDBt2OpfM8A
28
+ P5eElSQS9iJCetBGGMyt354PfgZkg3URaC+JA6mdEisdtEdo64ElnMsLg9shCqye
29
+ JSR3BbejbyPVva0/MHKD+dR6RswlcM9KMiYOXQml7a/kH6huOHvVq9gj5xC2ih8W
30
+ dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
31
+ 0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
32
32
  -----END CERTIFICATE-----
33
- date: 2015-07-25 00:00:00.000000000 Z
33
+ date: 2015-07-31 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: matchi
@@ -46,6 +46,20 @@ dependencies:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0.0'
49
+ - !ruby/object:Gem::Dependency
50
+ name: rubygems-tasks
51
+ requirement: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: 0.2.4
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: 0.2.4
49
63
  - !ruby/object:Gem::Dependency
50
64
  name: bundler
51
65
  requirement: !ruby/object:Gem::Requirement
@@ -134,10 +148,23 @@ files:
134
148
  - VERSION.semver
135
149
  - bin/console
136
150
  - bin/setup
137
- - expect-gem-public_cert.pem
151
+ - certs/gem-fixrb-public_cert.pem
152
+ - checksum/expect-0.0.1.gem.sha512
153
+ - checksum/expect-0.0.10.gem.sha512
154
+ - checksum/expect-0.0.11.gem.sha512
155
+ - checksum/expect-0.0.12.gem.sha512
156
+ - checksum/expect-0.0.2.gem.sha512
157
+ - checksum/expect-0.0.3.gem.sha512
158
+ - checksum/expect-0.0.4.gem.sha512
159
+ - checksum/expect-0.0.5.gem.sha512
160
+ - checksum/expect-0.0.6.gem.sha512
161
+ - checksum/expect-0.0.7.gem.sha512
162
+ - checksum/expect-0.0.8.gem.sha512
163
+ - checksum/expect-0.0.9.gem.sha512
138
164
  - expect.gemspec
139
165
  - lib/expect.rb
140
166
  - lib/expect/expectation_target.rb
167
+ - pkg_checksum
141
168
  homepage: https://github.com/fixrb/expect
142
169
  licenses:
143
170
  - MIT
metadata.gz.sig CHANGED
Binary file
@@ -1,21 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRAwDgYDVQQDDAdjb250
3
- YWN0MRUwEwYKCZImiZPyLGQBGRYFY3lyaWwxFTATBgoJkiaJk/IsZAEZFgVlbWFp
4
- bDAeFw0xNTA3MjUxNzEwMjlaFw0xNjA3MjQxNzEwMjlaMEAxEDAOBgNVBAMMB2Nv
5
- bnRhY3QxFTATBgoJkiaJk/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