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
James Bence
11de142ecf Add model, collection for instance_options 2013-07-08 17:19:20 -07: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
Eugene Howe & Josh Lane
853755d32f [ecloud] improvements and some mocking 2013-01-04 13:50:05 -05:00
James Herdman
22bdeba00a Remove unused variable 2012-05-26 11:27:26 -04:00
Josh Lane & Jason Hansen
54f1c92184 [cloudstack|compute] volumes support 2012-05-22 16:54:30 -07: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
geemus
35bbd854e0 [core] add collection#destroy(identity) 2011-08-23 09:43:33 -05:00
geemus
8be455e4a7 make collection class_eval more consistent 2011-07-20 16:36:22 -05: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
geemus
96a5c2f46a [core] making collection.new error more idiomatic 2011-05-27 11:17:32 -07:00
Joseph Anthony Pasquale Holsten
5d547d1ee8 give a more useful error if someone tries to say connection.directories.create('dir') 2011-04-22 16:00:52 -05:00
Eric Abbott
7ec4315065 the list returned from slice needs to be cloned so it won't bomb out with lazy loading 2011-03-05 02:18:43 +08:00
geemus
ca3e2b2432 require json for to_json of collection/model 2011-02-15 11:27:31 -08:00
geemus
f54546f16f make remove_method not needed in collection 2010-11-04 13:51:41 -07:00
geemus
906c292789 skip remove_method in collection, reintroduces mri errors but allows rbx to function 2010-11-04 11:42:44 -07:00
geemus
c04f777b93 small fixes to facilitate command line usage 2010-10-19 13:00:27 -07:00
geemus
f890f27141 fixing warnings 2010-10-12 16:23:35 -07:00
geemus
dfd30e521f cleanup lib/fog by segregating shared into 'core' 2010-09-29 13:22:30 -07:00
Renamed from lib/fog/collection.rb (Browse further)