restrack-client 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module RESTRackClient
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -8,7 +8,7 @@ module RESTRack
8
8
  class Client
9
9
 
10
10
  def initialize(uri, format=:JSON)
11
- @uri = URI.parse(uri) unless uri.is_a? URI
11
+ uri.is_a? URI ? @uri = uri : @uri = URI.parse(uri)
12
12
  @path = ''
13
13
  @format = format
14
14
  end
metadata CHANGED
@@ -1,83 +1,104 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: restrack-client
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.0
4
5
  prerelease:
5
- version: 1.1.1
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Chris St. John
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-07-17 00:00:00 -04:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2012-12-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: shoulda
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
25
22
  type: :development
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: mime-types
29
23
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: mime-types
32
+ requirement: !ruby/object:Gem::Requirement
31
33
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "0"
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
36
38
  type: :runtime
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: i18n
40
39
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: i18n
48
+ requirement: !ruby/object:Gem::Requirement
42
49
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
47
54
  type: :runtime
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: json
51
55
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: json
64
+ requirement: !ruby/object:Gem::Requirement
53
65
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
58
70
  type: :runtime
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
61
- name: xml-simple
62
71
  prerelease: false
63
- requirement: &id005 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
64
73
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: xml-simple
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
68
85
  version: 1.0.13
69
86
  type: :runtime
70
- version_requirements: *id005
71
- description: A library for interacting with RESTful web services. Use this to communicate with RESTRack based services.
72
- email:
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 1.0.13
94
+ description: A library for interacting with RESTful web services. Use this to communicate
95
+ with RESTRack based services.
96
+ email:
73
97
  - chris@stjohnstudios.com
74
98
  executables: []
75
-
76
99
  extensions: []
77
-
78
100
  extra_rdoc_files: []
79
-
80
- files:
101
+ files:
81
102
  - .document
82
103
  - .gitignore
83
104
  - Gemfile
@@ -87,7 +108,6 @@ files:
87
108
  - lib/restrack-client.rb
88
109
  - lib/restrack-client/version.rb
89
110
  - restrack-client.gemspec
90
- - restrack-client.komodoproject
91
111
  - test/helper.rb
92
112
  - test/test_app/config.ru
93
113
  - test/test_app/config/constants.yaml
@@ -95,39 +115,30 @@ files:
95
115
  - test/test_app/controllers/responses_controller.rb
96
116
  - test/test_app/loader.rb
97
117
  - test/test_restrack-client.rb
98
- has_rdoc: true
99
118
  homepage: http://github.com/stjohncj/RESTRack-Client
100
119
  licenses: []
101
-
102
120
  post_install_message:
103
121
  rdoc_options: []
104
-
105
- require_paths:
122
+ require_paths:
106
123
  - lib
107
- required_ruby_version: !ruby/object:Gem::Requirement
124
+ required_ruby_version: !ruby/object:Gem::Requirement
108
125
  none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: "0"
113
- required_rubygems_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ! '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
131
  none: false
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: "0"
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
119
136
  requirements: []
120
-
121
137
  rubyforge_project: restrack-client
122
- rubygems_version: 1.5.2
138
+ rubygems_version: 1.8.21
123
139
  signing_key:
124
140
  specification_version: 3
125
- summary: A library for interacting with RESTful web services. Use this to communicate with RESTRack based services.
126
- test_files:
127
- - test/helper.rb
128
- - test/test_app/config.ru
129
- - test/test_app/config/constants.yaml
130
- - test/test_app/controllers/parent_controller.rb
131
- - test/test_app/controllers/responses_controller.rb
132
- - test/test_app/loader.rb
133
- - test/test_restrack-client.rb
141
+ summary: A library for interacting with RESTful web services. Use this to communicate
142
+ with RESTRack based services.
143
+ test_files: []
144
+ has_rdoc:
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- Komodo Project File - DO NOT EDIT -->
3
- <project id="38789326-4a41-d142-9a1f-bae0a8355b32" kpf_version="5" name="restrack-client.komodoproject">
4
- </project>