web-connect 0.4.6 → 0.4.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ec3266fe040980d47e8593735c76ae2aea2bcd3
|
4
|
+
data.tar.gz: a70d924ed4f412ae5a7ca3007c6b339afe262ea8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5d363c252b73d37f9e1bd0767d107426805c4b7f2ef1b398018ac8645546e3772fc183cde346528216eb21cf0b5cc9366922689fec01cfe105d56595ff6567f
|
7
|
+
data.tar.gz: 860b18a65c7ffc1145387012e5706094f832f2c53fddb18db592f3b1d890594ddc97b4b28025c4ee3a9120ae07dc7b7933382d3212821eae8967afedca2be6f4
|
@@ -36,7 +36,7 @@ module Netfira::WebConnect
|
|
36
36
|
# Match [/]<api-version-number>/<anything other than a forward slash>
|
37
37
|
raise NotFound unless env['PATH_INFO'] =~ /\A\/?(\d+)\/([^\/]+)/
|
38
38
|
version = $1.to_i
|
39
|
-
action_name = $2.to_sym
|
39
|
+
action_name = $2.underscore.to_sym
|
40
40
|
action = Action.create(action_name, version)
|
41
41
|
raise NotFound unless action
|
42
42
|
action.import_env env
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class Netfira::WebConnect::RackApp
|
2
|
+
module Action::Version1
|
3
|
+
class DeprecatedDownstream < Action
|
4
|
+
def call
|
5
|
+
{self.class.name.demodulize.downcase[3..-1] => []}
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
%w(Orders Documents InboundDocuments).each do |name|
|
10
|
+
const_set :"New#{name}", Class.new(DeprecatedDownstream)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web-connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil E. Pearson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-08-
|
12
|
+
date: 2014-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -165,6 +165,7 @@ files:
|
|
165
165
|
- lib/netfira/web_connect/rack_app/action_helpers/env_importer.rb
|
166
166
|
- lib/netfira/web_connect/rack_app/action_helpers/env_methods.rb
|
167
167
|
- lib/netfira/web_connect/rack_app/action_helpers/send_file.rb
|
168
|
+
- lib/netfira/web_connect/rack_app/actions/version_1/deprecated_downstream.rb
|
168
169
|
- lib/netfira/web_connect/rack_app/actions/version_1/info.rb
|
169
170
|
- lib/netfira/web_connect/rack_app/actions/version_1/not_supported.rb
|
170
171
|
- lib/netfira/web_connect/rack_app/actions/version_8/checksums.rb
|