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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79a111eff709b480acb08cba26d806ea76ce0633
4
- data.tar.gz: 44029faa8af23ebc77d50a3a2bca7b9f092cbba7
3
+ metadata.gz: fdcf59e57398bd27898f31c2517b7a1beddeede1
4
+ data.tar.gz: 020dc8beeff76ab9b7e16487fdb27c61aeb47ddd
5
5
  SHA512:
6
- metadata.gz: 4032fe9ca77400f917e24f5cd08f506629be1271717251e43f2e211325965429c96ec10de2e5967cc3376cb9600483d305c19509b1dbef36f5acdc8c8e1c9aee
7
- data.tar.gz: 89a9c99022de7fd370df2e96611cdd3d5fec306b27f3109c205b162dc30ba37d26254b918c3226566d8264882f170f0066e5918fadaf237ed41a6c6aecde7306
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 execute
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].execute #Soba3kofta::Env.website
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
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.pre25
4
+ version: 0.0.0.pre26
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy