rt-client 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/rt_client.rb +5 -4
  3. data/rtxmlsrv2.rb +2 -2
  4. metadata +17 -21
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e5742298919b2bca18ea995cc7eff83c07d7d6ff
4
+ data.tar.gz: da99c4dc44e9e0079e57b1288268b2ae658aa190
5
+ SHA512:
6
+ metadata.gz: 9629657c11031d90355d228b76c3f53a6d897e33cd8f279897a0ba7f505e9e363b4883a507ade0ea77d92b167f5819d242c4521ca1fcc4b78ed9a7dbead5f774
7
+ data.tar.gz: 9777406a42545d0dd91f8a07c1f688dde77040acc45d9592ac660a8a2129596f1238cc9d4988e683a44bab3cfb3a3b8c1a45b830f40086581e3f3d71e1038561
data/rt_client.rb CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/local/src/rubinius-2.2.7/bin/rbx
1
2
  #!/usr/bin/ruby
2
3
 
3
4
  require "rubygems"
@@ -69,7 +70,7 @@ class RT_Client
69
70
  # cookies=<directory>
70
71
  def initialize(*params)
71
72
  @boundary = "----xYzZY#{rand(1000000).to_s}xYzZY"
72
- @version = "0.8.0"
73
+ @version = "0.8.1"
73
74
  @status = "Not connected"
74
75
  @server = "http://localhost/"
75
76
  @user = "rt_user"
@@ -113,7 +114,7 @@ class RT_Client
113
114
  @cookie = ""
114
115
  end
115
116
 
116
- site = RestClient::Resource.new(@resource, :headers => headers, :timeout => 240)
117
+ site = RestClient::Resource.new(@resource, :headers => headers, :timeout => 240, :verify_ssl => false)
117
118
  data = site.post "" # a null post just to check that we are logged in
118
119
 
119
120
  if @cookie.length == 0 or data =~ /401/ # we're not logged in
@@ -131,7 +132,7 @@ class RT_Client
131
132
  headers = { 'User-Agent' => UA,
132
133
  'Content-Type' => "multipart/form-data; boundary=#{@boundary}",
133
134
  'Cookie' => @cookie }
134
- @site = RestClient::Resource.new(@resource, :headers => headers)
135
+ @site = RestClient::Resource.new(@resource, :headers => headers, :verify_ssl => false)
135
136
  @status = data
136
137
  self.untaint
137
138
 
@@ -733,7 +734,7 @@ class RT_Client
733
734
  addr = params[:addr] if params.has_key? :addr
734
735
  type = params[:type] if params.has_key? :type
735
736
  end
736
- addr = addr.to_a.uniq # make it array if its just a string, and remove dups
737
+ addr = addr.lines.to_a.uniq # make it array if its just a string, and remove dups
737
738
  type.downcase!
738
739
  tobj = show(tid) # get current watchers
739
740
  ccs = tobj["cc"].split(", ")
data/rtxmlsrv2.rb CHANGED
@@ -1,11 +1,11 @@
1
-
1
+ #!/usr/local/src/rubinius-2.2.7/bin/rbx
2
2
 
3
3
  ## XML RPC service to provide a cross-platform API for
4
4
  ## RT ticket creation/maintenance. Essentially just a wrapper
5
5
  ## around the rt/client library.
6
6
 
7
7
  require "rubygems" # so we can load gems
8
- require "rt_client/rt_client" # rt-client REST library
8
+ require "./rt_client" # rt-client REST library
9
9
  require "builder"
10
10
  require "rack/rpc"
11
11
  require "date" # for parsing arbitrary date formats
metadata CHANGED
@@ -1,73 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rt-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
5
- prerelease:
4
+ version: 0.8.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tom Lahti
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-07-07 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rest-client
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0.9'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0.9'
30
- description: ! "RT_Client is a ruby object that accesses the REST interface version
31
- 1.0\n of a Request Tracker instance. See http://www.bestpractical.com/ for\n
32
- \ Request Tracker.\n"
27
+ description: |
28
+ RT_Client is a ruby object that accesses the REST interface version 1.0
29
+ of a Request Tracker instance. See http://www.bestpractical.com/ for
30
+ Request Tracker.
33
31
  email: tlahti@dmsolutions.com
34
32
  executables: []
35
33
  extensions: []
36
34
  extra_rdoc_files: []
37
35
  files:
36
+ - ".yardopts"
37
+ - rt/client.rb
38
38
  - rt_client.rb
39
39
  - rtxmlsrv.rb
40
40
  - rtxmlsrv2.rb
41
- - rt/client.rb
42
- - .yardopts
43
41
  homepage: http://rubygems.org/gems/rt-client
44
42
  licenses:
45
43
  - APACHE-2.0
44
+ metadata: {}
46
45
  post_install_message:
47
46
  rdoc_options:
48
- - --inline-source
49
- - --main
47
+ - "--inline-source"
48
+ - "--main"
50
49
  - RT_Client
51
50
  require_paths:
52
- - .
51
+ - "."
53
52
  required_ruby_version: !ruby/object:Gem::Requirement
54
- none: false
55
53
  requirements:
56
- - - ! '>='
54
+ - - ">="
57
55
  - !ruby/object:Gem::Version
58
56
  version: 1.8.6
59
57
  required_rubygems_version: !ruby/object:Gem::Requirement
60
- none: false
61
58
  requirements:
62
- - - ! '>='
59
+ - - ">="
63
60
  - !ruby/object:Gem::Version
64
61
  version: '0'
65
62
  requirements:
66
63
  - A working installation of RT with the REST 1.0 interface
67
64
  rubyforge_project:
68
- rubygems_version: 1.8.23
65
+ rubygems_version: 2.2.2
69
66
  signing_key:
70
67
  specification_version: 4
71
68
  summary: Ruby object for RT access via REST
72
69
  test_files: []
73
- has_rdoc: