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: b0feeac9efadc9a0ca1e6dead9cfca72368dd954
4
- data.tar.gz: de497a2e497e10d6384cf71ce9dfc54b1b0f0d5c
3
+ metadata.gz: 7ec3266fe040980d47e8593735c76ae2aea2bcd3
4
+ data.tar.gz: a70d924ed4f412ae5a7ca3007c6b339afe262ea8
5
5
  SHA512:
6
- metadata.gz: 77aba83cb8c1b87499dcb5584afb939c109d182765369d4d0d634e5af67f60916f8cfcdec7ea9a3cb8edf20d2f4023b28d2de63441411c6470d524386d1075e4
7
- data.tar.gz: 63771c8b33ab7efb761a2c6fe5bfcc06841b2b04c014fa3d7f36eae0a2b2ff3fd41580a8a91abbec0f025799db3095f8238aba58387407b9d2cd717244420784
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
@@ -1,6 +1,6 @@
1
1
  module Netfira
2
2
  module WebConnect
3
- VERSION = '0.4.6'
3
+ VERSION = '0.4.7'
4
4
  PLATFORM_AND_VERSION = 'Rack/' << VERSION
5
5
  end
6
6
  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.6
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-07 00:00:00.000000000 Z
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