roust 1.8.0 → 1.8.1

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
  SHA1:
3
- metadata.gz: adb62caf4380e165a89d2f82f76d73d547714e53
4
- data.tar.gz: 9e4df8a5696550388821a139258f317f31866469
3
+ metadata.gz: c4b39b8c377e3ff0189444fc873909125f5c8a6c
4
+ data.tar.gz: 397ca6c7c0d04ce9ae323e03c7e98f4f4551c938
5
5
  SHA512:
6
- metadata.gz: a66ae81eb10c83712f7bf3adfe96d4e6d01ca764eb15bbfc5164c2e9cec56e3c30d78e9c645a73cdd85d23e690f2921e55cd983d2d28261a08415f997021b314
7
- data.tar.gz: d72f69e97951c026451cef70e2c5c2cd1a11963ed2a2c2bbe954e2e2c3b9263a2b0594c97bf6ab38ecbe1034630a792f1fb87539515c32a445be7d18f984ee30
6
+ metadata.gz: 25d96d2bbb5c5545772e05fcc8c6541e44b010c3a06a9ebaa9e0802b7ddeaa66e285d1dbd1be0448fbfc4ff6bcc1a8826cd8df3c9dc8d4795c5a94146b4283c4
7
+ data.tar.gz: 21ee9e8dffa21cf36b97866d2a51e2f35189a8a0c127ca167fa0b1090dd26293cde9fdd2417e046707567234e11894cc80b7d95a3eed6744e65ee397d596df67
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roust (1.8.0)
4
+ roust (1.8.1)
5
5
  activesupport (>= 4.0.10)
6
6
  httparty (>= 0.13.1)
7
7
  mail (>= 2.5.4)
@@ -9,66 +9,68 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (4.1.1)
12
+ activesupport (4.1.8)
13
13
  i18n (~> 0.6, >= 0.6.9)
14
14
  json (~> 1.7, >= 1.7.7)
15
15
  minitest (~> 5.1)
16
16
  thread_safe (~> 0.1)
17
17
  tzinfo (~> 1.1)
18
- addressable (2.3.5)
18
+ addressable (2.3.6)
19
19
  ast (2.0.0)
20
- coderay (1.0.9)
21
- colorize (0.5.8)
22
- crack (0.4.1)
23
- safe_yaml (~> 0.9.0)
20
+ astrolabe (1.3.0)
21
+ parser (>= 2.2.0.pre.3, < 3.0)
22
+ coderay (1.1.0)
23
+ colorize (0.7.3)
24
+ crack (0.4.2)
25
+ safe_yaml (~> 1.0.0)
24
26
  diff-lcs (1.2.5)
25
- httparty (0.13.1)
27
+ httparty (0.13.3)
26
28
  json (~> 1.8)
27
29
  multi_xml (>= 0.5.2)
28
30
  i18n (0.6.11)
29
31
  json (1.8.1)
30
- mail (2.6.1)
32
+ mail (2.6.3)
31
33
  mime-types (>= 1.16, < 3)
32
34
  method_source (0.8.2)
33
- mime-types (2.3)
34
- minitest (5.3.3)
35
+ mime-types (2.4.3)
36
+ minitest (5.4.3)
35
37
  multi_xml (0.5.5)
36
- parser (2.2.0.pre.3)
38
+ parser (2.2.0.pre.8)
37
39
  ast (>= 1.1, < 3.0)
38
40
  slop (~> 3.4, >= 3.4.5)
39
41
  powerpack (0.0.9)
40
- pry (0.9.12.2)
41
- coderay (~> 1.0.5)
42
- method_source (~> 0.8)
42
+ pry (0.10.1)
43
+ coderay (~> 1.1.0)
44
+ method_source (~> 0.8.1)
43
45
  slop (~> 3.4)
44
46
  rainbow (2.0.0)
45
- rake (10.1.0)
47
+ rake (10.4.2)
46
48
  rspec (3.1.0)
47
49
  rspec-core (~> 3.1.0)
48
50
  rspec-expectations (~> 3.1.0)
49
51
  rspec-mocks (~> 3.1.0)
50
- rspec-core (3.1.1)
52
+ rspec-core (3.1.7)
51
53
  rspec-support (~> 3.1.0)
52
- rspec-expectations (3.1.0)
54
+ rspec-expectations (3.1.2)
53
55
  diff-lcs (>= 1.2.0, < 2.0)
54
56
  rspec-support (~> 3.1.0)
55
- rspec-mocks (3.1.0)
57
+ rspec-mocks (3.1.3)
56
58
  rspec-support (~> 3.1.0)
57
- rspec-support (3.1.0)
58
- rubocop (0.24.1)
59
- json (>= 1.7.7, < 2)
60
- parser (>= 2.2.0.pre.3, < 3.0)
59
+ rspec-support (3.1.2)
60
+ rubocop (0.27.1)
61
+ astrolabe (~> 1.3)
62
+ parser (>= 2.2.0.pre.7, < 3.0)
61
63
  powerpack (~> 0.0.6)
62
64
  rainbow (>= 1.99.1, < 3.0)
63
65
  ruby-progressbar (~> 1.4)
64
- ruby-progressbar (1.5.1)
65
- safe_yaml (0.9.7)
66
- slop (3.5.0)
67
- thread_safe (0.3.3)
68
- tzinfo (1.1.0)
66
+ ruby-progressbar (1.7.0)
67
+ safe_yaml (1.0.4)
68
+ slop (3.6.0)
69
+ thread_safe (0.3.4)
70
+ tzinfo (1.2.2)
69
71
  thread_safe (~> 0.1)
70
- webmock (1.17.1)
71
- addressable (>= 2.2.7)
72
+ webmock (1.20.4)
73
+ addressable (>= 2.3.6)
72
74
  crack (>= 0.3.2)
73
75
 
74
76
  PLATFORMS
data/README.md CHANGED
@@ -36,7 +36,7 @@ require 'roust'
36
36
 
37
37
  credentials = {
38
38
  :server => 'http://rt.example.org',
39
- :username => 'admin'
39
+ :username => 'admin',
40
40
  :password => 's3cr3t'
41
41
  }
42
42
 
data/lib/roust/ticket.rb CHANGED
@@ -374,7 +374,9 @@ class Roust
374
374
  atarr = temp[1].split("\n")
375
375
  atarr.map { |a| a.gsub!(/^\s*/, '') }
376
376
  atarr.each do |a|
377
- i = a.match(/(\d+):\s*(.*)/)
377
+ i = a.match(/(\d+):\s+(.*)/)
378
+ # Something is wrong here, probably "\n\nAttachments" in the body of the transaction :(
379
+ next unless i
378
380
  s = {
379
381
  :id => i[1].to_s,
380
382
  :name => i[2].to_s
data/lib/roust/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Roust
2
- VERSION = '1.8.0'
2
+ VERSION = '1.8.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roust
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lindsay Holmwood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-03 00:00:00.000000000 Z
11
+ date: 2014-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail
@@ -131,33 +131,4 @@ rubygems_version: 2.2.2
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Ruby client for RT's REST API
134
- test_files:
135
- - spec/mocks/queue-13.txt
136
- - spec/mocks/queue-nil.txt
137
- - spec/mocks/ticket-1-history-long.txt
138
- - spec/mocks/ticket-1-history-short.txt
139
- - spec/mocks/ticket-1-show-unauthenticated.txt
140
- - spec/mocks/ticket-1-show.txt
141
- - spec/mocks/ticket-100-show.txt
142
- - spec/mocks/ticket-100-update.txt
143
- - spec/mocks/ticket-150-links-update.txt
144
- - spec/mocks/ticket-150-links.txt
145
- - spec/mocks/ticket-151-links-update.txt
146
- - spec/mocks/ticket-151-links.txt
147
- - spec/mocks/ticket-3-links.txt
148
- - spec/mocks/ticket-99-show.txt
149
- - spec/mocks/ticket-create.txt
150
- - spec/mocks/ticket-search-1-or-2-long.txt
151
- - spec/mocks/ticket-search-1-or-2.txt
152
- - spec/mocks/ticket-search-that-does-not-exist.txt
153
- - spec/mocks/user-dan@us.example-after-edit.txt
154
- - spec/mocks/user-dan@us.example-edit.txt
155
- - spec/mocks/user-dan@us.example.txt
156
- - spec/mocks/user-erin@us.example-create.txt
157
- - spec/mocks/user-erin@us.example.txt
158
- - spec/mocks/user-nil.txt
159
- - spec/roust/authentication_spec.rb
160
- - spec/roust/queue_spec.rb
161
- - spec/roust/ticket_spec.rb
162
- - spec/roust/user_spec.rb
163
- - spec/spec_helper.rb
134
+ test_files: []