dutws_foo 0.0.5 → 0.0.6

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
@@ -8,11 +8,11 @@ module DutwsFoo
8
8
 
9
9
  def update(p_data)
10
10
  data = p_data["Data"]
11
- self.where(:reference_id => p_data["ID"].to_i).first.update_attributes(p_data["Data"])
11
+ self.where(:reference_id => p_data["ID"]).first.update_attributes(p_data["Data"])
12
12
  end
13
13
 
14
14
  def remove(p_data)
15
- self.where(:reference_id => p_data["ID"].to_i).first.destroy
15
+ self.where(:reference_id => p_data["ID"]).first.destroy
16
16
  end
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module DutwsFoo
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,33 +1,23 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: dutws_foo
3
- version: !ruby/object:Gem::Version
4
- hash: 21
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 5
10
- version: 0.0.5
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Muntasim Ahmed
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-10-26 00:00:00 Z
12
+ date: 2011-11-03 00:00:00.000000000Z
19
13
  dependencies: []
20
-
21
14
  description: right now only mongoid is supported
22
- email:
15
+ email:
23
16
  - muntasim@tasawr.com
24
17
  executables: []
25
-
26
18
  extensions: []
27
-
28
19
  extra_rdoc_files: []
29
-
30
- files:
20
+ files:
31
21
  - .gitignore
32
22
  - Gemfile
33
23
  - Rakefile
@@ -41,36 +31,27 @@ files:
41
31
  - lib/dutws_foo/version.rb
42
32
  homepage: http://www.tasawr.com
43
33
  licenses: []
44
-
45
34
  post_install_message:
46
35
  rdoc_options: []
47
-
48
- require_paths:
36
+ require_paths:
49
37
  - lib
50
- required_ruby_version: !ruby/object:Gem::Requirement
38
+ required_ruby_version: !ruby/object:Gem::Requirement
51
39
  none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- hash: 3
56
- segments:
57
- - 0
58
- version: "0"
59
- required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
45
  none: false
61
- requirements:
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- hash: 3
65
- segments:
66
- - 0
67
- version: "0"
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
68
50
  requirements: []
69
-
70
51
  rubyforge_project: dutws_foo
71
- rubygems_version: 1.8.11
52
+ rubygems_version: 1.8.10
72
53
  signing_key:
73
54
  specification_version: 3
74
- summary: It will open a web service that take db update request and update the underlying database
55
+ summary: It will open a web service that take db update request and update the underlying
56
+ database
75
57
  test_files: []
76
-