dutws_foo 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/models/dutws_foo/web_service.rb +4 -4
- data/lib/dutws_foo/version.rb +1 -1
- metadata +42 -21
@@ -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
|
-
|
13
|
-
end
|
11
|
+
#rescue
|
12
|
+
# return {:success => false}
|
13
|
+
#end
|
14
14
|
{:success => true}
|
15
15
|
end
|
16
16
|
end
|
data/lib/dutws_foo/version.rb
CHANGED
metadata
CHANGED
@@ -1,23 +1,34 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: dutws_foo
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Muntasim Ahmed
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
17
|
+
|
18
|
+
date: 2011-11-03 00:00:00 +06:00
|
19
|
+
default_executable:
|
13
20
|
dependencies: []
|
21
|
+
|
14
22
|
description: right now only mongoid is supported
|
15
|
-
email:
|
23
|
+
email:
|
16
24
|
- muntasim@tasawr.com
|
17
25
|
executables: []
|
26
|
+
|
18
27
|
extensions: []
|
28
|
+
|
19
29
|
extra_rdoc_files: []
|
20
|
-
|
30
|
+
|
31
|
+
files:
|
21
32
|
- .gitignore
|
22
33
|
- Gemfile
|
23
34
|
- Rakefile
|
@@ -29,29 +40,39 @@ files:
|
|
29
40
|
- lib/dutws_foo/engine.rb
|
30
41
|
- lib/dutws_foo/mongoid/class_methods.rb
|
31
42
|
- lib/dutws_foo/version.rb
|
43
|
+
has_rdoc: true
|
32
44
|
homepage: http://www.tasawr.com
|
33
45
|
licenses: []
|
46
|
+
|
34
47
|
post_install_message:
|
35
48
|
rdoc_options: []
|
36
|
-
|
49
|
+
|
50
|
+
require_paths:
|
37
51
|
- lib
|
38
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
39
53
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
62
|
none: false
|
46
|
-
requirements:
|
47
|
-
- -
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
hash: 3
|
67
|
+
segments:
|
68
|
+
- 0
|
69
|
+
version: "0"
|
50
70
|
requirements: []
|
71
|
+
|
51
72
|
rubyforge_project: dutws_foo
|
52
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.4.2
|
53
74
|
signing_key:
|
54
75
|
specification_version: 3
|
55
|
-
summary: It will open a web service that take db update request and update the underlying
|
56
|
-
database
|
76
|
+
summary: It will open a web service that take db update request and update the underlying database
|
57
77
|
test_files: []
|
78
|
+
|