web-connect 0.2.1 → 0.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1367d123d83df26fee0006d1910bf27b5c06f2b
4
- data.tar.gz: adfa62b6321f122bc9c429c8e3f51d4ef6f98c1a
3
+ metadata.gz: 810c9f86338860a0ced0f39617ccc0a0b9cff27f
4
+ data.tar.gz: fdb92385501bde33487bb9ab8b340ce954083cc2
5
5
  SHA512:
6
- metadata.gz: 0acc51783eeba275d2c6f2343b10e105f6392e26791646d4cc1235bb77dc6906d694404b761870c8fe0aa9a351d48fbc6483b467c1544b95177e940eefa4fc63
7
- data.tar.gz: d22b336362381320cf4619ba754eb59fa8cd72f643ddd292d4817042e66d0a74767dd5091342aac51960d1302b561fdba5ded538c7feb4bb49a79a92fd237055
6
+ metadata.gz: 73e97a19149d5dc6e05267a2625cbc5446b7313764280d98e3da3b7591a53f112a6041774fb204689dfc357a887b798aa58473a69f9babc75c8357286c059a59
7
+ data.tar.gz: f7a7bc98991f2a17cbffd0ad86e753d8a1c69a37600debe4bf314f9b537cbb2ef113a026e6a5b8f27e10230a8286aed11d9f066a06a39fa64e3eb46a74dad4fb
@@ -1,5 +1,7 @@
1
1
  require 'ostruct'
2
2
 
3
+ require_relative 'version'
4
+
3
5
  module Netfira::WebConnect
4
6
  class RackApp
5
7
  def call(env)
@@ -38,6 +40,7 @@ module Netfira::WebConnect
38
40
  [
39
41
  status,
40
42
  {
43
+ 'X-Netfira-Version' => PLATFORM_AND_VERSION,
41
44
  'Content-Type' => 'application/json',
42
45
  'Content-Length' => body_string.length.to_s
43
46
  }.merge(headers),
@@ -1,5 +1,6 @@
1
1
  module Netfira
2
2
  module WebConnect
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
+ PLATFORM_AND_VERSION = 'Rack/' << VERSION
4
5
  end
5
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.2.1
4
+ version: 0.2.2
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-07-29 00:00:00.000000000 Z
12
+ date: 2014-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord