akamai_api 0.0.7 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/Guardfile +24 -0
  3. data/README.md +3 -0
  4. data/akamai_api.gemspec +4 -3
  5. data/lib/akamai_api/ccu.rb +60 -52
  6. data/lib/akamai_api/cp_code.rb +12 -7
  7. data/lib/akamai_api/eccu_request.rb +70 -62
  8. data/lib/akamai_api/soap_body.rb +15 -27
  9. data/lib/akamai_api/version.rb +1 -1
  10. data/lib/akamai_api.rb +1 -1
  11. data/spec/fixtures/{purge_request/success.xml → ccu/successful_purge.xml} +0 -0
  12. data/spec/fixtures/{get_cp_codes/sample.xml → cp_code/collection.xml} +0 -0
  13. data/spec/fixtures/{get_cp_codes/sample_one_item.xml → cp_code/single.xml} +0 -0
  14. data/spec/fixtures/{delete/success.xml → eccu/delete/successful.xml} +0 -0
  15. data/spec/fixtures/{get_ids/success.xml → eccu/get_ids/successful.xml} +0 -0
  16. data/spec/fixtures/{get_info/success.xml → eccu/get_info/successful.xml} +0 -0
  17. data/spec/fixtures/{set_notes/success.xml → eccu/set_notes/successful.xml} +0 -0
  18. data/spec/fixtures/eccu/set_status_change_email/fault.xml +8 -0
  19. data/spec/fixtures/{set_status_change_email/success.xml → eccu/set_status_change_email/successful.xml} +0 -0
  20. data/spec/fixtures/{upload → eccu/upload}/fault.xml +0 -0
  21. data/spec/fixtures/{upload/success.xml → eccu/upload/successful.xml} +0 -0
  22. data/spec/lib/akamai_api/ccu_spec.rb +24 -74
  23. data/spec/lib/akamai_api/cp_code_spec.rb +30 -26
  24. data/spec/lib/akamai_api/eccu_request_spec.rb +84 -46
  25. data/spec/lib/akamai_api/soap_body_spec.rb +10 -13
  26. data/spec/spec_helper.rb +7 -3
  27. data/spec/support/savon_backports.rb +10 -0
  28. data/wsdls/cpcode.wsdl +2765 -0
  29. data/wsdls/eccu.wsdl +584 -0
  30. metadata +36 -31
  31. data/spec/support/savon_tester.rb +0 -16
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akamai_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicola Racco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-24 00:00:00.000000000 Z
11
+ date: 2013-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -56,14 +56,14 @@ dependencies:
56
56
  requirements:
57
57
  - - ~>
58
58
  - !ruby/object:Gem::Version
59
- version: 1.2.0
59
+ version: 2.2.0
60
60
  type: :runtime
61
61
  prerelease: false
62
62
  version_requirements: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - ~>
65
65
  - !ruby/object:Gem::Version
66
- version: 1.2.0
66
+ version: 2.2.0
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: builder
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -93,19 +93,19 @@ dependencies:
93
93
  - !ruby/object:Gem::Version
94
94
  version: '2.11'
95
95
  - !ruby/object:Gem::Dependency
96
- name: savon_spec
96
+ name: guard-rspec
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - ~>
100
100
  - !ruby/object:Gem::Version
101
- version: '1.3'
101
+ version: 3.0.2
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ~>
107
107
  - !ruby/object:Gem::Version
108
- version: '1.3'
108
+ version: 3.0.2
109
109
  description: Ruby toolkit to work with Akamai Content Control Utility API
110
110
  email:
111
111
  - nicola@nicolaracco.com
@@ -117,6 +117,7 @@ files:
117
117
  - .gitignore
118
118
  - .rspec
119
119
  - Gemfile
120
+ - Guardfile
120
121
  - LICENSE.txt
121
122
  - README.md
122
123
  - Thorfile
@@ -137,24 +138,27 @@ files:
137
138
  - lib/akamai_api/eccu_request.rb
138
139
  - lib/akamai_api/soap_body.rb
139
140
  - lib/akamai_api/version.rb
140
- - spec/fixtures/delete/success.xml
141
+ - spec/fixtures/ccu/successful_purge.xml
142
+ - spec/fixtures/cp_code/collection.xml
143
+ - spec/fixtures/cp_code/single.xml
144
+ - spec/fixtures/eccu/delete/successful.xml
145
+ - spec/fixtures/eccu/get_ids/successful.xml
146
+ - spec/fixtures/eccu/get_info/successful.xml
147
+ - spec/fixtures/eccu/set_notes/successful.xml
148
+ - spec/fixtures/eccu/set_status_change_email/fault.xml
149
+ - spec/fixtures/eccu/set_status_change_email/successful.xml
150
+ - spec/fixtures/eccu/upload/fault.xml
151
+ - spec/fixtures/eccu/upload/successful.xml
141
152
  - spec/fixtures/eccu_request.xml
142
- - spec/fixtures/get_cp_codes/sample.xml
143
- - spec/fixtures/get_cp_codes/sample_one_item.xml
144
- - spec/fixtures/get_ids/success.xml
145
- - spec/fixtures/get_info/success.xml
146
- - spec/fixtures/purge_request/success.xml
147
- - spec/fixtures/set_notes/success.xml
148
- - spec/fixtures/set_status_change_email/success.xml
149
- - spec/fixtures/upload/fault.xml
150
- - spec/fixtures/upload/success.xml
151
153
  - spec/lib/akamai_api/ccu_spec.rb
152
154
  - spec/lib/akamai_api/cp_code_spec.rb
153
155
  - spec/lib/akamai_api/eccu_request_spec.rb
154
156
  - spec/lib/akamai_api/soap_body_spec.rb
155
157
  - spec/spec_helper.rb
156
- - spec/support/savon_tester.rb
158
+ - spec/support/savon_backports.rb
157
159
  - wsdls/ccuapi.wsdl
160
+ - wsdls/cpcode.wsdl
161
+ - wsdls/eccu.wsdl
158
162
  homepage: ''
159
163
  licenses: []
160
164
  metadata: {}
@@ -166,7 +170,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
170
  requirements:
167
171
  - - '>='
168
172
  - !ruby/object:Gem::Version
169
- version: '0'
173
+ version: 1.9.2
170
174
  required_rubygems_version: !ruby/object:Gem::Requirement
171
175
  requirements:
172
176
  - - '>='
@@ -174,25 +178,26 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
178
  version: '0'
175
179
  requirements: []
176
180
  rubyforge_project:
177
- rubygems_version: 2.0.3
181
+ rubygems_version: 2.0.5
178
182
  signing_key:
179
183
  specification_version: 4
180
184
  summary: Ruby toolkit to work with Akamai Content Control Utility API
181
185
  test_files:
182
- - spec/fixtures/delete/success.xml
186
+ - spec/fixtures/ccu/successful_purge.xml
187
+ - spec/fixtures/cp_code/collection.xml
188
+ - spec/fixtures/cp_code/single.xml
189
+ - spec/fixtures/eccu/delete/successful.xml
190
+ - spec/fixtures/eccu/get_ids/successful.xml
191
+ - spec/fixtures/eccu/get_info/successful.xml
192
+ - spec/fixtures/eccu/set_notes/successful.xml
193
+ - spec/fixtures/eccu/set_status_change_email/fault.xml
194
+ - spec/fixtures/eccu/set_status_change_email/successful.xml
195
+ - spec/fixtures/eccu/upload/fault.xml
196
+ - spec/fixtures/eccu/upload/successful.xml
183
197
  - spec/fixtures/eccu_request.xml
184
- - spec/fixtures/get_cp_codes/sample.xml
185
- - spec/fixtures/get_cp_codes/sample_one_item.xml
186
- - spec/fixtures/get_ids/success.xml
187
- - spec/fixtures/get_info/success.xml
188
- - spec/fixtures/purge_request/success.xml
189
- - spec/fixtures/set_notes/success.xml
190
- - spec/fixtures/set_status_change_email/success.xml
191
- - spec/fixtures/upload/fault.xml
192
- - spec/fixtures/upload/success.xml
193
198
  - spec/lib/akamai_api/ccu_spec.rb
194
199
  - spec/lib/akamai_api/cp_code_spec.rb
195
200
  - spec/lib/akamai_api/eccu_request_spec.rb
196
201
  - spec/lib/akamai_api/soap_body_spec.rb
197
202
  - spec/spec_helper.rb
198
- - spec/support/savon_tester.rb
203
+ - spec/support/savon_backports.rb
@@ -1,16 +0,0 @@
1
- module SavonTester
2
- def self.included base
3
- base.class_eval do
4
- let(:client) do
5
- Savon::Client.new do
6
- wsdl.endpoint = "http://example.com"
7
- wsdl.namespace = "http://users.example.com"
8
- end
9
- end
10
- end
11
- end
12
-
13
- def stub_savon_model model
14
- model.stub :client => client, :basic_auth => nil
15
- end
16
- end