assertthat-bdd 1.3.0 → 1.4.0

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
  SHA256:
3
- metadata.gz: 89b7bffbb130b5733cc9b2fd356a9f864a80d708457574bd6f211bb31e1188bf
4
- data.tar.gz: bf6529f52a3ffb2c51ebbd1d268288f5a3f89cd2aeda3caf79456591e3edbc51
3
+ metadata.gz: 713c7de6c2c8f244ec1f5839c3708ccaad3ce9f5e5eaf7d717457da9cca24be2
4
+ data.tar.gz: 612e19f5a6d1c1610d1e0f31e71a033a06cfd29b92dd373ab8602a80135b61e1
5
5
  SHA512:
6
- metadata.gz: 7af3a0ef45966f55d4c38fe10386492782a42109c4e85b649bbde9df00cda59241d64489d62134cc4e41d2f610bc36dee7ae458a25972b57c4d323b0c8e9ecea
7
- data.tar.gz: c6199e9292e77abc2265ba1a36b6e7af1bb9fda66bae43de6db309aa464b5e091c2b197e40dd9c35bcb1f1fd2cef3e1bbafe510d6aea0b3799ebd41caeba4f63
6
+ metadata.gz: e50822e3c93b59a4ea7ad94ca4b512766ca54af8c3d69b8c4c51bb7f52f93a6cef3040c746f9c317f1253a055e24c56164945b68af07d74e72fc73b960c7153b
7
+ data.tar.gz: 6591ab7cc79a5366baf14950edfb5a27dc95aa23adf841b094c20cc10541d51a26df8ec74b57cd65fa329f426f5506d059b01fbf08f7e69a85e9ac668d83d7b6
@@ -12,6 +12,7 @@ OptionParser.new do |opt|
12
12
  opt.on('-p','--projectId PROJECT_ID', 'Jira project id') { |o| options[:projectId] = o }
13
13
  opt.on('-o','--outputFolder OUTPUT_FOLDER', 'Featured output folder - default ./features') { |o| options[:outputFolder] = o }
14
14
  opt.on('-m','--mode MODE', 'Mode one of automated,manual,both - deafult automated') { |o| options[:mode] = o }
15
+ opt.on('-t','--tags <tag-expression>', 'Cucucmber tag expression for scenarios filtering') { |o| options[:tags] = o }
15
16
  opt.on('-j','--jql JQL_FILTER', 'Jql issues filter') { |o| options[:jql] = o }
16
17
  opt.on('-x','--proxy PROXY_URL', 'proxy url to connect to Jira') { |o| options[:proxy] = o }
17
18
  opt.on_tail('-h', '--help', 'Show help') do
@@ -5,13 +5,13 @@ require 'json'
5
5
 
6
6
  module AssertThatBDD
7
7
  class Features
8
- def self.download(accessKey: ENV['ASSERTTHAT_ACCESS_KEY'], secretKey: ENV['ASSERTTHAT_ACCESS_KEY'], projectId: nil, outputFolder: './features/', proxy: nil, mode: 'automated', jql: '', jiraServerUrl: nil)
8
+ def self.download(accessKey: ENV['ASSERTTHAT_ACCESS_KEY'], secretKey: ENV['ASSERTTHAT_ACCESS_KEY'], projectId: nil, outputFolder: './features/', proxy: nil, mode: 'automated', jql: '', tags: '', jiraServerUrl: nil)
9
9
  RestClient.proxy = proxy unless proxy.nil?
10
10
  url = 'https://bdd.assertthat.app/rest/api/1/project/'+ projectId +'/features'
11
11
  url = jiraServerUrl+"/rest/assertthat/latest/project/"+projectId+"/client/features" unless jiraServerUrl.nil?
12
12
  resource = RestClient::Resource.new(url, :user => accessKey, :password => secretKey, :content_type => 'application/zip')
13
13
  begin
14
- contents = resource.get(:accept => 'application/zip', params: {mode: mode, jql: jql})
14
+ contents = resource.get(:accept => 'application/zip', params: {mode: mode, jql: jql, tags: tags})
15
15
  rescue => e
16
16
 
17
17
  if e.respond_to?('response') then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assertthat-bdd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glib Briia
@@ -34,22 +34,22 @@ dependencies:
34
34
  name: rubyzip
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '1.0'
40
37
  - - ">="
41
38
  - !ruby/object:Gem::Version
42
39
  version: 1.0.0
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '1.0'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '1.0'
50
47
  - - ">="
51
48
  - !ruby/object:Gem::Version
52
49
  version: 1.0.0
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '1.0'
53
53
  description:
54
54
  email: glib@assertthat.com
55
55
  executables:
@@ -80,8 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubyforge_project:
84
- rubygems_version: 2.7.7
83
+ rubygems_version: 3.0.8
85
84
  signing_key:
86
85
  specification_version: 4
87
86
  summary: AssertThat bdd integration for Ruby