moto 0.9.4 → 0.9.5

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: f3264031fdfd041409936bb977a67fc32bdbed39
4
- data.tar.gz: c3985904f1739e5a4c7ad9acc97454d4640701bf
3
+ metadata.gz: 211b0c8da771c97be5c9be847ca02e53b835e103
4
+ data.tar.gz: 470bd31ea0ee9e9b74232c8fc2b45e386d9a6523
5
5
  SHA512:
6
- metadata.gz: fe8c1224d59102cd7eff83c24450617c1ffc2d399072ac90daf07bc0ceaed1c149f949b4ee1f3a9512c8c74fb7d8dbc0f04e74ef8542d6cb76a8bcdc0c5dd11f
7
- data.tar.gz: 6f5d1d4ddb263ddf10723fe0ccce30d4f3cd6524f4c7a8fa4c705b5225bf6133b12f6916b45ffa19c77ddddf8435ec1585b4f1db5aea4301dbef0439592fde6d
6
+ metadata.gz: 572efc707f6bfc5f01b259a24c32845cc8a3053835c8719a60894870d8a7161bc9d68c6b8eb75e580a7451afbbd71f12985548093545c313c4d2e929093c20af
7
+ data.tar.gz: 6b4793ee87f2466f1d0236caabcfd6039a657ddb5098d27f4db092d387196101fd35ccf5c50cd436872fbc9f894f5b4fb3d078e3a2ad25dcf863d0223f0c3074
@@ -100,11 +100,11 @@ module Moto
100
100
  start_time: Time.now
101
101
  }
102
102
 
103
- if test_metadata.ticket_url
104
- test_data[:ticket_url] = test_metadata.ticket_url
103
+ if !test_metadata.ticket_urls.empty?
104
+ test_data[:ticket_urls] = test_metadata.ticket_urls.join(',')
105
105
  end
106
106
 
107
- if test_metadata.tags
107
+ if !test_metadata.tags.empty?
108
108
  test_data[:tags] = test_metadata.tags.join(',')
109
109
  end
110
110
 
data/lib/test/metadata.rb CHANGED
@@ -47,19 +47,19 @@ module Moto
47
47
  @tags
48
48
  end
49
49
 
50
- # @return [String] which represents contents of #TICKET_URL
51
- def ticket_url
52
- if @ticket_url.nil?
53
- matches = text.match(/^#(\s*)TICKET_URL:(.*?)$/)
50
+ # @return [Array] of [String] which represent contents of #TICKET_URL
51
+ def ticket_urls
52
+ if @ticket_urls.nil?
53
+ matches = text.match(/^#(\s*)TICKET_URLS:(.*?)$/)
54
54
 
55
55
  if matches
56
- @ticket_url = matches.to_a[2].gsub(/\s*/, '')
56
+ @ticket_urls = matches.to_a[2].gsub(/\s*/, '').split(',')
57
57
  else
58
- @ticket_url = ''
58
+ @ticket_urls = []
59
59
  end
60
60
  end
61
61
 
62
- @ticket_url
62
+ @ticket_urls
63
63
  end
64
64
 
65
65
  # Overriden eql? so various comparisons, array substractions etc. can be perfromed on
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Moto
2
- VERSION = '0.9.4'
2
+ VERSION = '0.9.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartek Wilczek
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-11-22 00:00:00.000000000 Z
14
+ date: 2016-11-24 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport