flakyci_rspec 0.1.1 → 0.1.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: 35ac67f4173089d08a0143a146ec07d7c66be8549efc09c069ecdf07d99e5c39
4
- data.tar.gz: c23ae3890bf1698a0b5b5b40503ba2bb5030cb07f30a76a03552895c4cb811d9
3
+ metadata.gz: 2b23489299594f896558f0822dbc85d1f1e3f1474ac35f6767f9dec502f52fd0
4
+ data.tar.gz: c54a03f662d81740cf8303d006302a0dd7b4a1ae63091a2572a949125f935c40
5
5
  SHA512:
6
- metadata.gz: ce0984f9e925cd35959421e6b713abe29e752af3246822b9dedf6a241fa43afe55139f59a115c893abfda6157ff9361438f04e07fc16d18bd2fa16faad3f7306
7
- data.tar.gz: 5acc329f107bb82646551e8d7b2025f1073829dc5bd5fc0a995b0ae1178dbee146704d5c4d92b344f2382b8dca5ce11b04edc69fedb5c486fb051f0174c4c1ef
6
+ metadata.gz: 2221258390a4a63887c1c3c79e466255e0118e32ca6c383bbc576ca2cbbdcf4d5cc95888b320a7a026a1b852288742f944c4af0c53a979cd775b8a08d2634c6a
7
+ data.tar.gz: fcf1903be3655e7f346b6cbd37324f82a881d9e25fa153109a85ace702a1d1f14fcb2273e4070d41953a018bc17787fe19412e13f6768e874d4ae331d25addff
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # FlakyciRspec
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/flakyci_rspec`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Welcome to your new gem!
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ [FlakyCI](https://www.flakyci.com) helps you flight test flakiness.
6
6
 
7
7
  ## Installation
8
8
 
@@ -22,17 +22,27 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ In order to use FlakyCI rspec you have to add FlakyciRspec to your formaters.
26
26
 
27
- ## Development
27
+ In `.rspec` file add this line
28
+
29
+ ```
30
+ --format FlakyciRspec
31
+ ```
32
+
33
+ You should set your FlakyCI project key in your enviroment variables.
34
+
35
+ ```
36
+ FLAKYCI_KEY="YOUR FLAKYCI PROJECT KEY"
37
+ ```
28
38
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
39
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
40
+ ## Example
32
41
 
42
+ An example is available here https://github.com/flakyci/flakyci_rspec_example.
33
43
  ## Contributing
34
44
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/flakyci_rspec.
45
+ Bug reports and pull requests are welcome on GitHub at https://github.com/flakyci/flakyci_rspec.
36
46
 
37
47
 
38
48
  ## License
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "flakyci_rspec"
3
- spec.version = "0.1.1"
3
+ spec.version = "0.1.2"
4
4
  spec.authors = ["flakyci"]
5
5
  spec.email = ["contact@flakyci.com"]
6
6
 
data/lib/flakyci_rspec.rb CHANGED
@@ -33,7 +33,7 @@ class FlakyciRspec
33
33
  line: location[1],
34
34
  file: location[0],
35
35
  status: example.execution_result.status,
36
- time: (example.execution_result.run_time * 1000).round
36
+ duration: (example.execution_result.run_time * 1000).round
37
37
  }
38
38
  end
39
39
  build = @env.get_env()
@@ -28,6 +28,6 @@ class Environments::Codeship
28
28
  end
29
29
 
30
30
  def self.is_codeship?()
31
- ENV["CI_NAME"] != "codeship"
31
+ ENV["CI_NAME"] == "codeship"
32
32
  end
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flakyci_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - flakyci
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-22 00:00:00.000000000 Z
11
+ date: 2020-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -66,7 +66,6 @@ files:
66
66
  - lib/flakyci_rspec/environments/gitlab.rb
67
67
  - lib/flakyci_rspec/environments/local.rb
68
68
  - lib/flakyci_rspec/environments/travis_ci.rb
69
- - lib/flakyci_rspec/formatter.rb
70
69
  homepage: https://www.flakyci.com/
71
70
  licenses:
72
71
  - MIT
File without changes