soba3kofta-shamshama 0.0.0.pre26 → 0.0.0.pre27
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 +6 -5
- 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: b427ad5f5a16c8d035aa521465d6615ee8b40d46
|
4
|
+
data.tar.gz: 6f1321860cb6abb30969fdf63bf0c79f4ca35b18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30800965ae5cc69e86afee4e826ead8b4008bd9caa90efe0067cb533dfb6e68cb08c2ac2b848d6fd523294d6fe725245abd1352411038161060d164bb0ee83e3
|
7
|
+
data.tar.gz: 52ae2f7203300dff403992b1d7a43c3923c696793e3b42eba13b1270151dd19e63905cd21920baa8fd84df8bfce8020ab74163619872324fc5cf0724c59ac969
|
@@ -4,11 +4,12 @@ Soba3kofta::Env.register do
|
|
4
4
|
class << self
|
5
5
|
attr_accessor :website, :ip
|
6
6
|
end
|
7
|
-
attr_accessor :website, :ip
|
7
|
+
#attr_accessor :website, :ip
|
8
8
|
|
9
9
|
def self.resolv website
|
10
|
-
|
11
|
-
|
10
|
+
#@website = self.class.website
|
11
|
+
#@ip = Resolv.getaddress @website
|
12
|
+
Resolv.getaddress website
|
12
13
|
end
|
13
14
|
end
|
14
15
|
|
@@ -20,8 +21,8 @@ module Soba3kofta
|
|
20
21
|
@params = params
|
21
22
|
end
|
22
23
|
def call(env)
|
23
|
-
env[:soba3kofta]
|
24
|
-
env[:soba3kofta]
|
24
|
+
env[:soba3kofta][:website] = Soba3kofta::Env.website
|
25
|
+
env[:soba3kofta][:ip] = Soba3kofta::Env.resolv env[:soba3kofta].website
|
25
26
|
@app.call(env) # run the next middleware
|
26
27
|
end
|
27
28
|
end
|