power_by_autobots 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/power_by_autobots.rb +9 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d80fad3e412f0597aad0bec56a9ce289a0afcc14
4
- data.tar.gz: 43d21a6a9c356a8a6d6f7fc5bc1fff214aebafc1
3
+ metadata.gz: 86ad5a97e7bd63536a067c91f5fcffc70d35109a
4
+ data.tar.gz: f5c429ce303551fdc9e21880523c9e4c97375ec0
5
5
  SHA512:
6
- metadata.gz: 026919f7116050992ee4abd9d59670a1914f61a6e30633e1931db5ba531429164a931c833ea9d1d1ed3eb62f6b9faae2abef247b9de7a4edfb712d656448ca99
7
- data.tar.gz: 1d9cec3c01ab5326d2cfd78273506201c8fd0b08936576c0b192df71399fa7f052b04ad64364c6e60987bb66ded97a5ebadfdf13ce40c230fe81de0b2028f2b7
6
+ metadata.gz: c43cb45e1ef00d1217c458de5e4e4bf640467ae325c28254889e0275b6431ea3b1bd63aacf6526c9a48572ea3f2d449341ae260a4a42f28e653f490dc2bcd87e
7
+ data.tar.gz: 5731e76a85a38e3152f576f24cd841bd005ef59ebd7889534ae00dfa994c05ac6a060a14d8681084bb743064f33901bbd57e0ed560c0ea9290881b6893f3d4cf
@@ -1,5 +1,12 @@
1
1
  class PowerByAutobots
2
- def self.hi
3
- puts "Hello world"
2
+ def initialize(app)
3
+ @app = app
4
+ end
5
+
6
+ def call(env)
7
+ status, headers, response = @app.call(env)
8
+ headers["X-Powered-By"] = "Autobots"
9
+
10
+ [status, headers, response]
4
11
  end
5
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power_by_autobots
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darmody