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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdcf59e57398bd27898f31c2517b7a1beddeede1
4
- data.tar.gz: 020dc8beeff76ab9b7e16487fdb27c61aeb47ddd
3
+ metadata.gz: b427ad5f5a16c8d035aa521465d6615ee8b40d46
4
+ data.tar.gz: 6f1321860cb6abb30969fdf63bf0c79f4ca35b18
5
5
  SHA512:
6
- metadata.gz: 20f41542578a4814f1d7d5eaadd19bde6139212f4f725d301334159eae17dcbec2964adfebead8e1e033a4bbcfcd8c694a229cc1c48f09a8f8e0b40a9ded448e
7
- data.tar.gz: 4443a538580642e8471056863524c09e0783597725e3b65e41bad7a2c3d87bc71dc3d09e374870afa4d0ed9c872d30eb29d6115e316b2332be2ae84ab14739d5
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
- @website = self.class.website
11
- @ip = Resolv.getaddress @website
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].website Soba3kofta::Env.website
24
- env[:soba3kofta].ip = Soba3kofta::Env.resolv env[:soba3kofta].website
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soba3kofta-shamshama
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.pre26
4
+ version: 0.0.0.pre27
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy