dutws_foo 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,14 +3,14 @@ module DutwsFoo
3
3
  class << self
4
4
  def handle_request(args)
5
5
  if (args['Command'] == 'data_update_notification')
6
- #begin
6
+ begin
7
7
  attrs = args['Body']["attributes"]
8
8
  operation = attrs.keys.first
9
9
  data = attrs[operation]#["Data"]
10
10
  args['Document'].singularize.classify.constantize.send(operation.downcase.to_sym, data)
11
- #rescue
12
- # return {:success => false}
13
- #end
11
+ rescue
12
+ return {:success => false}
13
+ end
14
14
  {:success => true}
15
15
  end
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module DutwsFoo
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dutws_foo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Muntasim Ahmed
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-22 00:00:00 Z
18
+ date: 2011-10-26 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: right now only mongoid is supported