1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

21 commits

Author SHA1 Message Date
Paul Thornthwaite
0e1daf3ddd [GH-2711] Replace Fog::Connection with XML shim
Unlike last attempt this replaces Fog::Connection with
Fog::XML::Connection which should be directly compatible.

Fog::Connection is there for old PRs but should be removed real soon.

Providers using JSON should be able to replace "XML" with "Core" within
their code to cut down on the dependency.

If I get the time I may attempt to clean up some but testing with Mock
will mean that is mostly educated guesswork.
2014-02-27 00:54:17 +00:00
Paul Thornthwaite
5007aac401 Revert "[core] Replace Fog::Connection with stable version"
This reverts commit 7ee3535d99.
2014-02-26 09:52:02 +00:00
Paul Thornthwaite
7ee3535d99 [core] Replace Fog::Connection with stable version
Fog::Connection mixed in XML parsing via the `parser` argument which
wasn't much use for the majority of APIs using JSON.

This adds the deprecation warning and attempts to update providers to
the correct version of Connection that they need.

Either the cleaner `Fog::Core::Connection` or if reliant on the XML
parsing still `Fog::XML::SAXParserConnection`

The SAX parser will be moving to `fog/xml` fairly soon.
2014-02-25 21:42:34 +00:00
Paul Thornthwaite
15ef5365e5 Require json or xml in provider cores
Since `fog-json` was extracted from `fog` it means if you rely on:

    require "fog/provider/compute"

`Fog::JSON` was not defined although it was supposed to be a supported
use case.

This adds the requires for JSON or XML based APIs based on a quick scan
of each provider to declare the required part.

AWS seems to be relying on both. Which is nice.

Providers relying on native code dependencies
2014-02-19 14:58:00 +00:00
Paul Thornthwaite
a72433d2f8 Remove duplicate requires from services
Following work on reorganising the requires, there was an inconsistent
approach to where service wrappers are required. (Fog::Compute...)

Since they should be standardised and shared across providers (although
they really aren't yet) they have been moved to `fog-core` gem.

Each provider has their own `lib/fog/{provider}/core` files that is
required by each of their services. These files should all require
`fog/core` which already required most or these.

So this removes the extra cases to concentrate them in core.
2014-02-13 17:44:48 +00:00
Joshua Gross
aed512fe24 fixing service creation in rage4 2014-02-05 10:19:09 -05:00
Joshua Gross
05b15ab7e6 fixing rage4 structure as to recent fog chagnes 2014-02-05 10:04:27 -05:00
Joshua Gross
53c7eb67b6 minor fixes for record and domain destroying 2014-02-04 20:10:48 -05:00
Joshua Gross
e288659a5b fixing a typo in rage4 record 2014-02-04 18:05:01 -05:00
Joshua Gross
dfdb7a62dd updating documentation for list records in rage4 2014-01-27 09:05:50 -05:00
Joshua Gross
63a1ca94d2 adding more attributes to rage4 records 2014-01-24 10:25:51 -05:00
Joshua Gross
7d2b460149 making a reader for domain to duplicate name attribute 2014-01-23 18:47:24 -05:00
Joshua Gross
b3fae0dc88 quick syntax fix for an attribute alias 2014-01-23 18:40:24 -05:00
Joshua Gross
83b98a3f6f adding domain alias to record to match zerigo api in rage4 2014-01-23 18:35:15 -05:00
Joshua Gross
463a7a819f changing handling of zone returns after testing that data was different on errors and success 2014-01-23 18:27:35 -05:00
Joshua Gross
a5ce18ce6b previous change was for records, duplicating nil return for zones now 2014-01-23 18:17:08 -05:00
Joshua Gross
7d817875d4 when a zone doesn't exist return nil for rage4 2014-01-23 18:07:05 -05:00
Joshua Gross
832fefe6db using proper hash syntax for ruby 1.8.7 2014-01-23 16:53:04 -05:00
Joshua Gross
c7ec9711be Wrote shindo tests for all supported requests. Resulted in a lot of debuggin of
request methods.  As well update zone/record models to work in simple cases.
2014-01-23 16:27:04 -05:00
Joshua Gross
7e61b90d85 setting up testing library to start writing tests 2014-01-21 17:23:55 -05:00
Joshua Gross
341ccf56f3 all request types support by the rage4 api without mocks or tests 2014-01-21 14:39:48 -05:00