esapiserver 0.0.1 → 0.0.3

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: 33680dd437314e1cb518cea3a1f0e8933e660114
4
- data.tar.gz: b7ada46fee8ba713cba8afd7756eeac3d1c34246
3
+ metadata.gz: 4474751b09bee298a35d46ae71b801514a6a158e
4
+ data.tar.gz: 9b19b611f7d2b423c5769dfd9330d14896cbdba2
5
5
  SHA512:
6
- metadata.gz: 48ea616d169c574614741b72aa2a2b618de04de65881d6490af1dd58fa39fe535fbea912b3d054ccec29cd95fd8bcd9ed265dfb4b595369a48a2341cfd3e94d5
7
- data.tar.gz: 69ad24beade92bd1e1986003d60e05fd22cbf2898b94a6ddb46e8b28966b069d22960fd60439d34e9fffdf9effa93af8265d5341487cc6198f60edbf4ddb74c9
6
+ metadata.gz: bbd46703d6f466b45e708864de487b67668c8d120016f68dc40711be33fb5963632a717f344a62502d8afb4337b728bfa71b20673217b2a25505ad54dd24ec16
7
+ data.tar.gz: 4c20fb2a0d1cb8e31300b31eabfac9985d929408953662d1159308018ed9c9d874014f64fcf98e2ea915234fbe9ef9a35a4f571dbcc9f7a5551cf34ab7e6a70a
data/bin/esapiserver ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'esapiserver'
4
+ Esapiserver::Server.run!
data/esapiserver.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.executables = ['esapiserver']
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
data/lib/esapiserver.rb CHANGED
@@ -75,7 +75,6 @@ module Esapiserver
75
75
  if request.query_string.empty?
76
76
  result = collection.find.to_a.map{|t| frombsonid(t, params[:thing])}.to_json
77
77
  else
78
- #TODO Handle a single ID
79
78
  if request.query_string.include? 'ids[]' or request.query_string.include? 'ids%5B%5D'
80
79
  ids = []
81
80
 
@@ -1,3 +1,3 @@
1
1
  module Esapiserver
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esapiserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Miles
@@ -251,7 +251,8 @@ dependencies:
251
251
  description: A Sinatra/MongoDB API server to use for EmberJS development
252
252
  email:
253
253
  - william@miles.dk
254
- executables: []
254
+ executables:
255
+ - esapiserver
255
256
  extensions: []
256
257
  extra_rdoc_files: []
257
258
  files:
@@ -267,6 +268,7 @@ files:
267
268
  - lib/esapiserver/version.rb
268
269
  - spec/esapiserver_spec.rb
269
270
  - spec/spec_helper.rb
271
+ - bin/esapiserver
270
272
  homepage: https://github.com/mawiza/esapiserver
271
273
  licenses:
272
274
  - MIT