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

28 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
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
Lance Ivy
1cdd969a34 create core for each provider. keep load hook for provider. 2014-02-01 21:13:17 -05:00
Brian D. Burns
abe8690d16 [rackspace] remove deprecated response block from request 2013-09-24 13:02:10 -04:00
Kyle Rames
329b0dec92 [rackspace] added transaction id to monitoring exceptions; passing service into slurp for compute, databases, dns and load balancers 2013-08-14 10:05:25 -05:00
Kyle Rames
ffa1ec4f75 [rackspace] adding block and parse_json parameters to request parameter calls 2013-06-24 10:13:57 -05:00
Kyle Rames
9e8fffb98b merging with master 2013-06-21 15:15:20 -05:00
Kyle Rames
04394eb054 [rackspace] updated services to re-authenticate when authentication token expires. 2013-06-21 15:11:17 -05:00
Kyle Rames
7f65d9f9a3 [rackspace|dns] fixing DNS pagination issue #1887 2013-06-18 12:42:35 -05:00
Kyle Rames
ee038e1da3 [rackspace] pass connection_options onto identity service so we can auth behind a proxy 2013-05-30 12:52:37 -05:00
Kyle Rames
9f1050c5c4 [rackspace|dns] updated DNS service to use Fog::DNS::Rackspace::NotFound exceptions in keeping with the rest of the services. 2013-04-16 15:01:07 -05:00
Kyle Rames
8fb41614f7 [rackspace] updated to normalize endpoints before detecting a standard endpoint. 2013-03-20 13:25:38 -05:00
Kyle Rames
81a414a16c [rackspace] fixing auth 20 issue where tenant id is not being appended to the service url 2013-03-18 10:37:05 -05:00
Kyle Rames
90c91078d3 [rackspace] adding auth 2.0 to compute, databases, dns, load balancers, cloud block storage 2013-03-13 16:01:32 -05:00
James Herdman
97b16d08d2 Remove absolute path when requiring 2012-05-26 11:27:28 -04:00
Kevin Menard
dcefc2d7de Fixed #875: Loosen multi_json version. 2012-04-25 10:31:28 -04:00
Steve Smith
d89dd56fe7 Use MultiJSON #dump and #load rather than #encode and #decode
MultiJSON deprecated these methods in 1.3.0 in favour of the new ones.
This requires an update to the gemspec to ensure ~>1.3
2012-04-20 13:09:14 +01:00
Brian Hartsock
179bae1990 [rackspace|dns] error state callbacks now return an error 2011-11-24 11:29:12 -05:00
geemus
de94fa70f8 [rackspace|dns] should recognize rackspace_dns_endpoint argument 2011-11-21 13:56:46 -06:00
geemus
455707b194 [glesys|compute] fixes to play nice with mock tests 2011-09-23 11:09:37 -05:00
geemus
ae7294bdfd [rackspace|dns] fix mock init to play nice with tests 2011-09-23 10:59:30 -05:00
geemus
f48b9f3afa [rackspace|dns] add mock initializer 2011-09-22 19:46:54 -05:00
geemus
ffd01e51dd [core] pass connection_options through service init
closes #411
2011-09-12 10:01:56 -05:00
geemus
b2c8ff0388 [core] work toward separate requires
Should facilitate the following:

    require 'fog/aws'
    require 'fog/compute'
    require 'fog/aws/compute'

I think once you `require 'rubygems'` those should work.

further cleanup should reduce common requires (ie nokogiri)
2011-08-31 15:52:53 -05:00
Rick Bradley
9f35ac613d Fix warning about whitespace before parentheses in dns.rb. 2011-08-31 10:37:50 -07:00
geemus
a90007b7d4 [dns|rackspace] move rackspace dns to its own shared area (namespacing should probably be corrected) 2011-08-29 10:37:01 -05:00
Renamed from lib/fog/dns/rackspace.rb (Browse further)