soba3kofta-shamshama 0.0.0.pre25 → 0.0.0.pre26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/soba3kofta-shamshama/base.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdcf59e57398bd27898f31c2517b7a1beddeede1
|
4
|
+
data.tar.gz: 020dc8beeff76ab9b7e16487fdb27c61aeb47ddd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20f41542578a4814f1d7d5eaadd19bde6139212f4f725d301334159eae17dcbec2964adfebead8e1e033a4bbcfcd8c694a229cc1c48f09a8f8e0b40a9ded448e
|
7
|
+
data.tar.gz: 4443a538580642e8471056863524c09e0783597725e3b65e41bad7a2c3d87bc71dc3d09e374870afa4d0ed9c872d30eb29d6115e316b2332be2ae84ab14739d5
|
@@ -6,7 +6,7 @@ Soba3kofta::Env.register do
|
|
6
6
|
end
|
7
7
|
attr_accessor :website, :ip
|
8
8
|
|
9
|
-
def
|
9
|
+
def self.resolv website
|
10
10
|
@website = self.class.website
|
11
11
|
@ip = Resolv.getaddress @website
|
12
12
|
end
|
@@ -20,7 +20,8 @@ module Soba3kofta
|
|
20
20
|
@params = params
|
21
21
|
end
|
22
22
|
def call(env)
|
23
|
-
env[:soba3kofta].
|
23
|
+
env[:soba3kofta].website Soba3kofta::Env.website
|
24
|
+
env[:soba3kofta].ip = Soba3kofta::Env.resolv env[:soba3kofta].website
|
24
25
|
@app.call(env) # run the next middleware
|
25
26
|
end
|
26
27
|
end
|