dynect_rest 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/dynect_rest/resource.rb +3 -3
  3. metadata +88 -95
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -53,9 +53,9 @@ class DynectRest
53
53
 
54
54
  def resource_path(full=false)
55
55
  if (full == true || full == :full)
56
- "/REST/#{@record_type}/#{@zone}"
56
+ "/REST/#{@record_type}Record/#{@zone}"
57
57
  else
58
- "#{@record_type}/#{@zone}"
58
+ "#{@record_type}Record/#{@zone}"
59
59
  end
60
60
  end
61
61
 
@@ -63,7 +63,7 @@ class DynectRest
63
63
  if record_id && fqdn
64
64
  raw_rr = @dynect.get("#{resource_path}/#{fqdn}/#{record_id}")
65
65
  DynectRest::Resource.new(dynect,
66
- raw_rr["record_type"],
66
+ raw_rr["record_type"] + 'Record',
67
67
  raw_rr["zone"],
68
68
  raw_rr["fqdn"],
69
69
  raw_rr["record_id"],
metadata CHANGED
@@ -1,137 +1,134 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: dynect_rest
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.1
4
5
  prerelease:
5
- version: 0.4.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Adam Jacob
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-06-08 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-03-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: rest-client
17
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &21760740 !ruby/object:Gem::Requirement
18
17
  none: false
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
24
+ version_requirements: *21760740
25
+ - !ruby/object:Gem::Dependency
27
26
  name: json
28
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ requirement: &21759880 !ruby/object:Gem::Requirement
29
28
  none: false
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *21759880
36
+ - !ruby/object:Gem::Dependency
38
37
  name: rake
39
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirement: &21758720 !ruby/object:Gem::Requirement
40
39
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
45
44
  type: :development
46
45
  prerelease: false
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
46
+ version_requirements: *21758720
47
+ - !ruby/object:Gem::Dependency
49
48
  name: rspec
50
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ requirement: &21799120 !ruby/object:Gem::Requirement
51
50
  none: false
52
- requirements:
51
+ requirements:
53
52
  - - ~>
54
- - !ruby/object:Gem::Version
53
+ - !ruby/object:Gem::Version
55
54
  version: 2.0.0
56
55
  type: :development
57
56
  prerelease: false
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
57
+ version_requirements: *21799120
58
+ - !ruby/object:Gem::Dependency
60
59
  name: yard
61
- requirement: &id005 !ruby/object:Gem::Requirement
60
+ requirement: &21798260 !ruby/object:Gem::Requirement
62
61
  none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
67
66
  type: :development
68
67
  prerelease: false
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
68
+ version_requirements: *21798260
69
+ - !ruby/object:Gem::Dependency
71
70
  name: jeweler
72
- requirement: &id006 !ruby/object:Gem::Requirement
71
+ requirement: &21797320 !ruby/object:Gem::Requirement
73
72
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- version: "0"
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
78
77
  type: :development
79
78
  prerelease: false
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
79
+ version_requirements: *21797320
80
+ - !ruby/object:Gem::Dependency
82
81
  name: rspec
83
- requirement: &id007 !ruby/object:Gem::Requirement
82
+ requirement: &21796000 !ruby/object:Gem::Requirement
84
83
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: "2.0"
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '2.0'
89
88
  type: :development
90
89
  prerelease: false
91
- version_requirements: *id007
92
- - !ruby/object:Gem::Dependency
90
+ version_requirements: *21796000
91
+ - !ruby/object:Gem::Dependency
93
92
  name: yard
94
- requirement: &id008 !ruby/object:Gem::Requirement
93
+ requirement: &21795520 !ruby/object:Gem::Requirement
95
94
  none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- version: "0"
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
100
99
  type: :development
101
100
  prerelease: false
102
- version_requirements: *id008
103
- - !ruby/object:Gem::Dependency
101
+ version_requirements: *21795520
102
+ - !ruby/object:Gem::Dependency
104
103
  name: json
105
- requirement: &id009 !ruby/object:Gem::Requirement
104
+ requirement: &21794980 !ruby/object:Gem::Requirement
106
105
  none: false
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: "0"
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
111
110
  type: :runtime
112
111
  prerelease: false
113
- version_requirements: *id009
114
- - !ruby/object:Gem::Dependency
112
+ version_requirements: *21794980
113
+ - !ruby/object:Gem::Dependency
115
114
  name: rest-client
116
- requirement: &id010 !ruby/object:Gem::Requirement
115
+ requirement: &21794440 !ruby/object:Gem::Requirement
117
116
  none: false
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- version: "0"
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
122
121
  type: :runtime
123
122
  prerelease: false
124
- version_requirements: *id010
123
+ version_requirements: *21794440
125
124
  description: Use the Dynect services REST API
126
125
  email: adam@opscode.com
127
126
  executables: []
128
-
129
127
  extensions: []
130
-
131
- extra_rdoc_files:
128
+ extra_rdoc_files:
132
129
  - LICENSE
133
130
  - README.rdoc
134
- files:
131
+ files:
135
132
  - .document
136
133
  - .rspec
137
134
  - Gemfile
@@ -149,30 +146,26 @@ files:
149
146
  - spec/spec_helper.rb
150
147
  homepage: http://github.com/adamhjk/dynect-rest
151
148
  licenses: []
152
-
153
149
  post_install_message:
154
150
  rdoc_options: []
155
-
156
- require_paths:
151
+ require_paths:
157
152
  - lib
158
- required_ruby_version: !ruby/object:Gem::Requirement
153
+ required_ruby_version: !ruby/object:Gem::Requirement
159
154
  none: false
160
- requirements:
161
- - - ">="
162
- - !ruby/object:Gem::Version
163
- version: "0"
164
- required_rubygems_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ! '>='
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ required_rubygems_version: !ruby/object:Gem::Requirement
165
160
  none: false
166
- requirements:
167
- - - ">="
168
- - !ruby/object:Gem::Version
169
- version: "0"
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
170
165
  requirements: []
171
-
172
166
  rubyforge_project:
173
- rubygems_version: 1.8.5
167
+ rubygems_version: 1.8.10
174
168
  signing_key:
175
169
  specification_version: 3
176
170
  summary: Dynect REST API library
177
171
  test_files: []
178
-