quarantine 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: add162bb611c2a39d122a271b3b88e7709fa1e55541ac1bc3774a8b5162e391a
4
- data.tar.gz: 90a8ec4255d6680e0dc3afd6ba0ce68e72cf11b034cedb825f8da6229831fbfc
3
+ metadata.gz: 124d4c397570d733b8fff064d45174dac576a0a066e96468f195433803c54427
4
+ data.tar.gz: 2ccdb87664e827cb07eb7ac70c0909eac402463196908b9b1f3d661c08dda180
5
5
  SHA512:
6
- metadata.gz: 1e0df52c3ab029f23b7e88e55ae89c03118f2f49208c47e7b2b92a4d13143bf4333be1d5fd49ec40b5ebfd7ebc1e03880e9d727babb23038100b73391448cd31
7
- data.tar.gz: babd114928ee1c79d7c97fcc0e1ff94aae73cdf3987b71332569432818b31e0fdc6c46753f7a74b18cff4eaa36caa28b1b23151c31221b8f5d527ef798c21ef3
6
+ metadata.gz: da94641acc051c26921a07ca067915bda895b692fe6016918437aa9cce9a759fed0081965310da3374f2bde002780d650ec1b9dc2ff7c593793d5bf76dba726b
7
+ data.tar.gz: df1245c0034495fc9bfd1545e1222459530b7a420311fa218d5164d8fafafd8c3cb4cef9399994e439f75fed305247910837e420ebea23a530a1949ab5ef8546
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ ### 1.0.2
2
+ Relax Aws gem version constraint as aws-sdk v3 is 100% backwards
3
+ compatible with v2
4
+
5
+ ### 1.0.1
6
+ Initial Release
data/README.md CHANGED
@@ -22,7 +22,7 @@ The workflow at Flexport involves:
22
22
  ## Installation and Setup
23
23
 
24
24
  Add these lines to your application's Gemfile:
25
- ```
25
+ ```rb
26
26
  group :test do
27
27
  gem 'quarantine'
28
28
  gem 'rspec-retry
@@ -30,12 +30,12 @@ end
30
30
  ```
31
31
 
32
32
  And then execute:
33
- ```
33
+ ```sh
34
34
  bundle install
35
35
  ```
36
36
 
37
37
  In your `spec_helper.rb` setup quarantine and rspec-retry gem. Click [rspec-retry](https://github.com/NoRedInk/rspec-retry) to get a more detailed explaination on rspec-retry configurations and how to setup.
38
- ```
38
+ ```rb
39
39
  require 'quarantine'
40
40
  require 'rspec-retry'
41
41
 
@@ -52,14 +52,14 @@ end
52
52
 
53
53
  Consider wrapping `Quarantine.bind` in if statements so local flaky tests don't pollute the list of quarantined tests
54
54
 
55
- ```
55
+ ```rb
56
56
  if ENV[CI] && ENV[BRANCH] == "master"
57
57
  Quarantine.bind({database: :dynamodb, aws_region: 'us-west-1'})
58
58
  end
59
59
  ```
60
60
 
61
61
  Setup tables in AWS DynamoDB to support pulling and uploading quarantined tests
62
- ```
62
+ ```sh
63
63
  bundle exec quarantine_dynamodb -h # see all options
64
64
 
65
65
  bundle exec quarantine_dynamodb \ # create the tables in us-west-1 in aws dynamodb
@@ -71,7 +71,7 @@ You are all set to start quarantining tests!
71
71
 
72
72
  ## Try Quarantining Tests Locally
73
73
  Add a test that will flake
74
- ```
74
+ ```rb
75
75
  require "spec_helper"
76
76
 
77
77
  describe Quarantine do
@@ -82,7 +82,7 @@ end
82
82
  ```
83
83
 
84
84
  Run `rspec` on the test
85
- ```
85
+ ```sh
86
86
  CI=1 BRANCH=master rspec <filename>
87
87
  ```
88
88
 
@@ -91,7 +91,7 @@ If the test fails and passes on the test run (rspec-retry re-ran the test), the
91
91
  ## Configuration
92
92
 
93
93
  Go to `spec/spec_helper.rb` and set configuration variables through:
94
- ```
94
+ ```rb
95
95
  RSpec.configure do |config|
96
96
  config.VAR_NAME = VALUE
97
97
  end
@@ -134,7 +134,7 @@ To automatically unquarantine tests on Jira ticket completion, take a look at: `
134
134
 
135
135
  The `quarantine` gem may be configured to only run on certain environments. Make sure you pass all these `ENV` variables to `rspec` when you call it locally
136
136
 
137
- ```
137
+ ```sh
138
138
  CI="1" BRANCH="master" rspec
139
139
  ```
140
140
 
@@ -1,3 +1,3 @@
1
1
  class Quarantine
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
data/quarantine.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = ['quarantine_dynamodb']
19
19
  s.required_ruby_version = '>= 2.0'
20
20
 
21
- s.add_dependency('aws-sdk', '~> 2.11')
21
+ s.add_dependency('aws-sdk', '>= 2.11')
22
22
  s.add_dependency('rspec', '~> 3.0')
23
23
  s.add_dependency('rspec-retry', '~> 0.6')
24
24
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quarantine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flexport Engineering, Eric Zhu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-22 00:00:00.000000000 Z
11
+ date: 2019-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.11'
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
26
  version: '2.11'
27
27
  - !ruby/object:Gem::Dependency
@@ -60,6 +60,7 @@ executables:
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
+ - CHANGELOG.md
63
64
  - README.md
64
65
  - bin/quarantine_dynamodb
65
66
  - lib/quarantine.rb
@@ -90,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  - !ruby/object:Gem::Version
91
92
  version: '0'
92
93
  requirements: []
93
- rubygems_version: 3.0.2
94
+ rubygems_version: 3.0.3
94
95
  signing_key:
95
96
  specification_version: 4
96
97
  summary: Quarantine flaky Ruby Rspec tests