fastapi 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fastapi.rb +9 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0af071723d04b7cb79104f53f4d800278380524a
4
- data.tar.gz: 9841776f060fcdfa5f121f6f7cb162c0df45f557
3
+ metadata.gz: 12367d026f5f83cf55f9262cddcaa7d5794ddef5
4
+ data.tar.gz: cec18a9230a8316ad48afc554863074a40177064
5
5
  SHA512:
6
- metadata.gz: 73a147f323c7ce14b43316cead922a31ff1bd1934c17749646201c71c94493f5ed926ce76571b628890d7d4405701add9d7957d46d7a4f0157a1e456dcfa6454
7
- data.tar.gz: 2614da3a0b1d1537bc9d67460f42831b27fc1651d2dc25ef1a728d50e6e1c181492dc779a45709c27c81fa6f96f05fbaed7fab898b4aea96027a3225af35d84c
6
+ metadata.gz: 862a5c01a476e2f9f54d0126d56fe6bb67c657663a63252bd91ac9daaad4c0d38bdf1b3294cbeb8929cafc8b3faf026be8efcc36c39a0c039aa9422af2240913
7
+ data.tar.gz: 8533e2cb8d464bf8cff64f4e5dd6c589238f902e246c7fa993fbfe46e2e4ce211f238749c7b885817c2e80f537d7f4973740c4e106a6eee3ea024ea712f1bcfa
data/lib/fastapi.rb CHANGED
@@ -156,7 +156,7 @@ class FastAPI
156
156
  #
157
157
  # @return [String] available metadata in JSON format
158
158
  def meta_json
159
- Oj.dump(meta, mode: :compat)
159
+ Oj.dump(@metadata, mode: :compat)
160
160
  end
161
161
 
162
162
  # Returns both the data and metadata from the most recently executed `filter` or `fetch` call.
@@ -176,6 +176,13 @@ class FastAPI
176
176
  Oj.dump(self.to_hash, mode: :compat)
177
177
  end
178
178
 
179
+ # Spoofs data from Model
180
+ #
181
+ # @return [String] JSON data and metadata
182
+ def spoof(data, meta)
183
+
184
+ end
185
+
179
186
  # Returns a JSONified string representing a standardized empty API response, with a provided error message
180
187
  #
181
188
  # @param message [String] Error message to be used in response
@@ -451,7 +458,7 @@ class FastAPI
451
458
  if comparator == 'in'
452
459
  ' IN(' + (value.map { |val| ActiveRecord::Base.connection.quote(val.to_s) }).join(',') + ')'
453
460
  else
454
- ' NOT IN(' + (value.map { |value| ActiveRecord::Base.connection.quote(val.to_s) }).join(',') + ')'
461
+ ' NOT IN(' + (value.map { |val| ActiveRecord::Base.connection.quote(val.to_s) }).join(',') + ')'
455
462
  end
456
463
 
457
464
  elsif comparator == 'contains'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Horwood