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

17 commits

Author SHA1 Message Date
Philip Mark M. Deazeta
a86dcbd596 [core] Fix service instance variable being included when doing
model.to_json
2013-01-11 14:28:13 +08:00
Paul Thornthwaite
7961ad6508 [core] Deprecates 'connection' accessor
The 'connection' accessor in collections and models actually refered to
a subclassed instance of Fog::Service which creates confusion in the
code.

References to 'connection' could have meant the service or the
Fog::Connection held within that service.

This deprecates the connection accessor and replaces it with `#service`
as a read only value. When a collection or model is initalised then
service should be passed.

This commit also updates all the changes to @connection made by
providers in model initialisers since these depending on the presence of
the 'connection' key. The key is still accepted by outputs a warning.
2013-01-07 20:53:24 +00: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
Thom May
7006cc4d59 support alias records in the route53 models 2012-03-08 15:25:59 +00:00
geemus
7cbf1861aa [misc] to_json calls to use MultiJson 2011-07-20 11:08:11 -05:00
Claudio Poli
507127a0c5 Use multi_json gem 2011-07-16 04:51:03 +02:00
Claudio Poli
1d9f0af243 Make Rails' respond_with play nice with to_json. 2011-07-15 23:58:41 +02:00
Christopher Meiklejohn
49d8a92a63 Move timeout up to Fog from Fog::Mock. 2011-07-11 18:06:47 -04:00
Christopher Meiklejohn
74c4689691 Move the timeout to Mock and stop hardcoding. 2011-07-09 20:47:49 -04:00
Pieter van de Bruggen
331d58dabf Make Model#reload more resilient against errors.
Connection errors had the behavior of failing catastrophically, which had
some rather unpleasant implications for things like Model#wait_for, which
implicitly reload repeatedly without any protection.

This change may be better suited to special cases (e.g. Model#wait_for).
2011-04-14 15:41:47 -07:00
Pieter van de Bruggen
e71895f1a4 Fix small logic error in Model#wait_for. 2011-04-14 15:41:47 -07:00
geemus
ca3e2b2432 require json for to_json of collection/model 2011-02-15 11:27:31 -08:00
geemus
e28b05ac86 [core] allow eventual consistency in wait_for
closes #102
2010-12-16 12:05:15 -08:00
geemus
f9eafff835 make collection into an accessor, fixes respond_to in attributes and should be more performant 2010-10-28 11:33:10 -07:00
geemus
7f38159f7b model #reload should require identity 2010-10-27 16:09:00 -07:00
geemus
dfd30e521f cleanup lib/fog by segregating shared into 'core' 2010-09-29 13:22:30 -07:00
Renamed from lib/fog/model.rb (Browse further)