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

20 commits

Author SHA1 Message Date
Paul Thornthwaite
51cb839405 [GH-1390] Remove redundant calls to Fog.credentials
If you use the supported means to create services such as:

    Fog::Service.new(:provider => "Example")

It already loads the contents of `~/.fog` and filters the values based
on if they are recognised or required.

That means in a number of services that are initialising based on
`options` or a value from `Fog.credentials` both are the same.

The `options` should have been loaded and merged from credentials in the
service "builder".
2014-03-27 09:25:13 +00:00
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
Kevin Olbrich
716af47b8a add tests for metrics, types and a few other things 2014-01-21 16:24:25 +00:00
Kevin Olbrich
552e59caa4 tests for joyent_modules 2014-01-21 16:24:24 +00:00
Kevin Olbrich
d78c5b541d tests for fields and describe analytics requests 2014-01-21 16:24:24 +00:00
Kevin Olbrich
db1520952d mock instrumentation values 2014-01-21 16:24:24 +00:00
Kevin Olbrich
619a66216c add tests for instrumentations 2014-01-21 16:24:24 +00:00
Kevin Olbrich
a3016d6f50 add mutex to real class instead of mock 2014-01-21 16:24:24 +00:00
Kevin Olbrich
467dd39281 perhaps make more threadsafe 2014-01-21 16:24:24 +00:00
Kevin Olbrich
72cfed5b35 add support for getting values from an instrumentation 2014-01-21 16:24:23 +00:00
Kevin Olbrich
bc9e04c31f allow creation and deletion of instrumentations 2014-01-21 16:24:22 +00:00
Kevin Olbrich
df73f445d7 create instrumentations, handle errors better, get an individual instrumentation 2014-01-21 16:24:22 +00:00
Kevin Olbrich
6f42542600 add support for getting 'instrumentations' 2014-01-21 16:24:22 +00:00
Kevin Olbrich
83e32fad2f add transformations 2014-01-21 16:24:22 +00:00
Kevin Olbrich
11b28cd780 add 'types' 2014-01-21 16:24:22 +00:00
Kevin Olbrich
fc8ec4e6e8 metrics and fields 2014-01-21 16:24:21 +00:00
Kevin Olbrich
1118bc5420 add support for 'metrics' 2014-01-21 16:24:21 +00:00
Kevin Olbrich
35964c89aa Basic analytics support including a class for joyent 'modules'. Note that these are named 'JoyentModule' instead of 'Module' to avoid obvious namespace problems. 2014-01-21 16:24:21 +00:00