orchestrate-rails 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35f1213941eab49abfccaaad4a7eda59de6d0807
4
- data.tar.gz: c1f62d130844202acf89e8f6a8092adfea4a121b
3
+ metadata.gz: 45a5bf3c95eed7c945ba37051d9993fab5f45266
4
+ data.tar.gz: bb3f294d24c43b41425469a7c899fb3a24a0a024
5
5
  SHA512:
6
- metadata.gz: 193afdfd1767315d72e84a74d1cecfec6b1af58473cbd0dbfc64c2e7f7b3540a87fdcd9cea805f7aa0b065fbf1062f7e72ef270f1b23107c9683e4268215776f
7
- data.tar.gz: ca1bcc6b0a34b22c0d5e639a8237e3126167e7100d4994b6730724d4457193ac8ac81f6ff3d5175e7489f845fadd78d598afe5972e3f61dac1aa0f55df879d65
6
+ metadata.gz: 132574ad45f7a4cefb3936bc0fcfcebcc8fd6869e170d8ea10f3d06baacee79dd8d048d31be480f6916cf757059f626e0558630518f64e916c2eb59d556f9ab1
7
+ data.tar.gz: 613cfd0eaf2fe8ed9be89bd9562be28625a0e7b84f046ec5e603dc2601cbb10c78947e29ce88aeff037eb64dc875584e5498e41eaa5994a08c7f18a8894c224a
@@ -10,7 +10,7 @@ module Orchestrate
10
10
  The rails model interface to orchestrate.io collections
11
11
  is defined in the <b> Model</b> class.
12
12
 
13
- ==== {Usage example}[Rails/Example.html]
13
+ ==== {User Guide}[Rails/UserGuide.html]
14
14
 
15
15
  ==== {Try out the Tutorial!}[Rails/Tutorial.html]
16
16
  =end
@@ -187,7 +187,6 @@ module Orchestrate::Rails
187
187
  #
188
188
  # where the timestamp range is specified as { :start => start, :end => end }
189
189
  def events(event_type, timestamp={})
190
- # orchio_get_events(event_type, timestamp).results.map { |odoc| odoc.to_event }
191
190
  res = orchio_get_events(event_type, timestamp)
192
191
  (res.success?) ? res.results.map { |odoc| odoc.to_event } : false
193
192
  end
@@ -217,7 +216,6 @@ module Orchestrate::Rails
217
216
 
218
217
  # Returns array of instances associated with the specified kind of relation.
219
218
  def graph(kind)
220
- # orchio_get_graph(kind).results.map { |odoc| odoc.to_rails }
221
219
  res = orchio_get_graph(kind)
222
220
  (res.success?) ? res.results.map { |odoc| odoc.to_rails } : false
223
221
  end
@@ -316,14 +314,22 @@ module Orchestrate::Rails
316
314
  new(key_value_pairs).save!
317
315
  end
318
316
 
319
- # Delete the specified instance from the collection.
317
+ # Deletes the specified instance from the collection.
320
318
  #
321
319
  # Returns boolean status.
322
320
  def self.destroy(id)
323
321
  new(:id => id).destroy
324
322
  end
325
323
 
326
- # Delete the entire collection.
324
+ # Deletes the specified instance and
325
+ # <b>purges all of its immutable data</b> from the collection.
326
+ #
327
+ # Returns boolean status.
328
+ def self.destroy!(id)
329
+ new(:id => id).destroy!
330
+ end
331
+
332
+ # Deletes the entire collection.
327
333
  #
328
334
  # Returns boolean status.
329
335
  def self.destroy_all
@@ -372,7 +378,7 @@ module Orchestrate::Rails
372
378
 
373
379
  # Returns all instances that match the specified criteria.
374
380
  def self.where(key_value_pairs)
375
- search(key_value_pairs.map{ |k,v| "#{k}:#{v}" }.join(' AND ')).results
381
+ search_results(key_value_pairs.map{ |k,v| "#{k}:#{v}" }.join(' AND '))
376
382
  end
377
383
 
378
384
  # Returns the first instance that matches the specified criteria.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orchestrate-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Carrasquer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-27 00:00:00.000000000 Z
11
+ date: 2014-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orchestrate-api
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description: Gem to define rails models for orchestrate.io
27
+ description: Maps rails models to Orchestrate.io DBaaS
28
28
  email: jimcar@aracnet.com
29
29
  executables: []
30
30
  extensions: []