soba3kofta-shamshama 0.0.0.pre12 → 0.0.0.pre13
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 +4 -6
- 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: 0289bbb7fffd599f7d112076de702bafe3010799
|
4
|
+
data.tar.gz: 14af354c557e05f653d215cf497b4715535a5ae1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8763ea4046758d2476a4461e5f103ac2457ba93c5f07a7e159755840e09c00d9cf9db5cfbb390b8e2eb7cc15c10f49dd95ac70ac06d334679fc20ed001f8e7c
|
7
|
+
data.tar.gz: 8ed48e54dd7d50d298f7923b726afe8d9a0b4157c102cf1c1c0f97f217be1e2473ee0934d4925778ee6b63863f57473522d60841af17d2be7303a154fc144163
|
@@ -1,14 +1,12 @@
|
|
1
1
|
require 'resolv'
|
2
2
|
Soba3kofta::Env.register do
|
3
3
|
attr_accessor :website, :ip
|
4
|
-
|
5
4
|
def self.website=(value)
|
6
5
|
p 'website self set'
|
7
|
-
|
6
|
+
@@website = value
|
8
7
|
end
|
9
|
-
|
10
|
-
|
11
|
-
@ip = Resolv.getaddress website
|
8
|
+
def execute
|
9
|
+
@ip = Resolv.getaddress this.website
|
12
10
|
end
|
13
11
|
end
|
14
12
|
|
@@ -20,7 +18,7 @@ module Soba3kofta
|
|
20
18
|
@params = params
|
21
19
|
end
|
22
20
|
def call(env)
|
23
|
-
env[:soba3kofta].
|
21
|
+
env[:soba3kofta].execute
|
24
22
|
@app.call(env) # run the next middleware
|
25
23
|
end
|
26
24
|
end
|