air_test 0.1.4.7 → 0.1.4.9

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: '0069a37f8116260e17efe177462b3a992b63be18a4df02b9184b53285928ccca'
4
- data.tar.gz: e6b24ad8aa7810653187ce6cc33d769c1d55c489970204833d1ae2af8516d2c7
3
+ metadata.gz: 41ee1020896ed0182621576cb1573609558918eaf4c85d9ab8db7b614e8712ec
4
+ data.tar.gz: ef767755f30717379d16dabbe6d02be580dc7eddbed31ff57d4836b869bd3743
5
5
  SHA512:
6
- metadata.gz: b6278a3a66576c3ab747f9861099036770de8972c40f247da67416894c4716b8958fdc4afc7ecb8eec20dd1858f9173cbecfa98ffa9606512e755905a4d064a0
7
- data.tar.gz: 38e5b44fcf4a263f7b7524fc50ae91e28062ca068910873b5c36302f853c6719dbd18fd857b438d662df1caac08d66f6c54924f6add4af52153b5e031ca37cf8
6
+ metadata.gz: 9f48ef1eb88057ab4d8bb8d000238b30d315e3eb10f3e28a7e7659c97a080fd9ddd9d0435adab7db69fa1ce33cfd48668fa0ddbf559ae088f7261f14820059fe
7
+ data.tar.gz: 91e87b167e18552769891b65c1a2f004a8a9ea332a3a3b1591cc26ca8d4e697aab1b3f7e34930ce4d90d128c9d7e228ca5d1d11c90c527dbfe663a32c0ea2dbe
@@ -17,6 +17,14 @@ module AirTest
17
17
  else
18
18
  system("git checkout -b #{branch}")
19
19
  end
20
+ # Set git user to bot
21
+ system('git config user.name "air-test-bot"')
22
+ system('git config user.email "jbarbedienne3@gmail.com"')
23
+ # Set remote to use bot token if available
24
+ if @github_token
25
+ repo_url = "github.com/#{@repo}.git"
26
+ system("git remote set-url origin https://#{@github_token}@#{repo_url}")
27
+ end
20
28
  files.each { |f| system("git add -f #{f}") }
21
29
  has_changes = !system("git diff --cached --quiet")
22
30
  system("git commit -m '#{commit_message}'") if has_changes
@@ -8,7 +8,7 @@ module AirTest
8
8
  class SpecGenerator
9
9
  # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
10
10
  def generate_spec_from_parsed_data(ticket_id, parsed_data, output_dir: "spec/features")
11
- feature_slug = parsed_data[:feature].downcase.gsub(/[^a-z0-9]+/, "-").gsub(/^-|-$/, "")
11
+ feature_slug = parsed_data[:feature].downcase.gsub(/[^a-z0-9]+/, "-").gsub(/^-|-$/, "").slice(0, 50)
12
12
  filename = "#{feature_slug}_fdr#{ticket_id}.rb"
13
13
  filepath = File.join(output_dir, filename)
14
14
  FileUtils.mkdir_p(output_dir)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AirTest
4
- VERSION = "0.1.4.7"
4
+ VERSION = "0.1.4.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: air_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.7
4
+ version: 0.1.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - julien bouland