khronos 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- khronos (0.1.1)
4
+ khronos (0.1.3)
5
5
  activerecord (~> 3.2.8)
6
6
  girl_friday (~> 0.10.0)
7
7
  json (~> 1.7.5)
@@ -49,7 +49,7 @@ module Khronos
49
49
  # Retrieve a list of scheduling tasks
50
50
  get '/tasks' do
51
51
  if Storage::Schedule.name =~ /ActiveRecord/
52
- criteria = Storage::Schedule
52
+ criteria = Storage::Schedule.where({})
53
53
  params.each_pair do |field, value|
54
54
  if field == 'context'
55
55
  field = "#{field} LIKE ?"
@@ -1,3 +1,3 @@
1
1
  module Khronos
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
@@ -98,6 +98,10 @@ describe Khronos::Server::Scheduler do
98
98
  get('/tasks', {:context => "namespaced"})
99
99
  last_response.status.should == 200
100
100
  JSON.parse(last_response.body).length.should == 1
101
+
102
+ get('/tasks', {})
103
+ last_response.status.should == 200
104
+ JSON.parse(last_response.body).length.should == Khronos::Storage::Schedule.count
101
105
  end
102
106
  end
103
107
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: khronos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: