quintocumber 1.1.2 → 1.1.4

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
  SHA1:
3
- metadata.gz: 380dd9838bd05ca966fc0e23ee8f76fc4211596a
4
- data.tar.gz: 6ebd05e6b6ba66fe301358330c585fa5e0a466ef
3
+ metadata.gz: e610f9d458216be13fbb2f93ac16aa505d4705be
4
+ data.tar.gz: 3365c5045a3bac69b13296db6cfae8d398cb8ee9
5
5
  SHA512:
6
- metadata.gz: d116b54826a0144fcf8b9d491b09ab2e7d09903a89ee928429d6b01e3ea8a5a23938dea2fff03d293fc26bf3077cb6b1658b7e4929cc4dddc4bf28cfc74242fa
7
- data.tar.gz: 25a4270942f7f6a98bdfcd459da73c7dc18472ec0785a4f58081789859ffa23c178bf2885f30d91b31a0c0af887f24e69361cf7f382dc31f3a7620e0fbbc96c7
6
+ metadata.gz: 6253863357ceb3ea86bdc01dd1a84caa032ae96d595a242339e1bf861d8fd67880c8cc00a8185fb46a8d3f84ed9c77932577fb94241f3bc8a2bfb4aa95712860
7
+ data.tar.gz: b9abac84ff2c64845cc60aa2ecc2edcfd2782f7577ad215df136f7bb8f7cff15a5ac00a4233a709f901a29a23cbff9ff227d0e3d2cec11c56c995c224318b9dc
data/README.md CHANGED
@@ -30,11 +30,13 @@ Install development external dependencies:
30
30
  * Allure CLI 2.2.1 (https://github.com/allure-framework/allure2/releases/tag/2.2.1)
31
31
  * Firefox and geckodriver
32
32
 
33
- To install this gem onto your local machine, run `bundle exec rake install`.
33
+ To install this gem onto your local machine, run `bundle exec rake install`.
34
34
 
35
35
  To run all tests: `bin/test`
36
36
 
37
- To release a new version run `gem bump --version (major|minor|patch)`, which will create a git tag and commit for the version. Push the new commit and tag with `git push`.
37
+ To release a new version run `bump patch`, which will create a git tag and commit for the version. Push the new commit and tag with `git push`.
38
+
39
+ To generate a new gem, now run `gem build quintocumber.gemspec`.
38
40
 
39
41
  Push the `.gem` file to [rubygems.org](https://rubygems.org) using `gem push quintocumber-<NEW_VERSION_TAG>.gem`
40
42
 
@@ -8,8 +8,8 @@ tests_failed = []
8
8
  def pagerduty_payload(failed_length, reports_list_str)
9
9
  {
10
10
  payload: {
11
- summary: failed_length.to_s + ' #{PROJECT_NAME} test(s) failed',
12
- source: '#{PROJECT_NAME}',
11
+ summary: failed_length.to_s + " #{PROJECT_NAME} test(s) failed",
12
+ source: "#{PROJECT_NAME}",
13
13
  severity: 'critical',
14
14
  custom_details: "Failed test(s):\n- #{reports_list_str}"
15
15
  },
@@ -26,7 +26,7 @@ end
26
26
 
27
27
  def generate_report_and_upload_to_s3
28
28
  bucket = ENV['REPORT_BUCKET']
29
- bucket_region = ENV['REPORT_BUCKET_REGION']
29
+ bucket_region = ENV['REPORT_BUCKET_REGION'] || 'us-east-1'
30
30
  return unless bucket && system('allure --help >> /dev/null')
31
31
  puts 'Generating allure report and uploading to s3'
32
32
  system('allure generate --clean reports')
@@ -51,15 +51,16 @@ end
51
51
  def upload_to_s3(s3, bucket, file)
52
52
  file_name = file.clone
53
53
  file_name.sub! File.join(Dir.pwd, 'allure-report/'), ''
54
- obj = s3.bucket(bucket).object('#{BUILD}/#{file_name}')
54
+ obj = s3.bucket(bucket).object("#{BUILD}/#{file_name}")
55
55
  obj.upload_file(file)
56
56
  obj.acl.put(acl: 'public-read')
57
+ puts "Sending #{BUILD}/#{file_name} to #{bucket}"
57
58
  end
58
59
 
59
60
  def insert_report_url_on_pagerduty_payload(report_url, payload)
60
61
  payload[:links] = [{
61
62
  href: report_url,
62
- text: 'Report for #{BUILD}'
63
+ text: "Report for #{BUILD}"
63
64
  }]
64
65
  puts 'Sending s3 report url to PagerDuty'
65
66
  end
@@ -76,5 +77,6 @@ end
76
77
 
77
78
  at_exit do
78
79
  report_url = generate_report_and_upload_to_s3
80
+ puts "Report url: #{report_url}"
79
81
  report_to_pagerduty(report_url, tests_failed)
80
82
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Quintocumber
4
- VERSION = '1.1.2'
4
+ VERSION = '1.1.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quintocumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Queiroz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-23 00:00:00.000000000 Z
11
+ date: 2017-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler