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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c2201d59942751150a1ba19b7a3b852b912fe16
4
- data.tar.gz: 2d897abdaa21495424a02c7d33fe6267e36c7cca
3
+ metadata.gz: 0289bbb7fffd599f7d112076de702bafe3010799
4
+ data.tar.gz: 14af354c557e05f653d215cf497b4715535a5ae1
5
5
  SHA512:
6
- metadata.gz: 80786c36b9df8feb79f8e30c3ed2c71684b1c2f0bc4b1816af587c0b940f8d7ee428c5d4b12a8460498024c401c107c4536ca01c8b880337e85db99893c3d02e
7
- data.tar.gz: dab4e19bba1dcab9e63ecaa57d3d57da44fc541b8a62d18df825d21590b38e17907e4324d37909484a4bfa2a23e525208f39dee0752c57c476244e9f9c811217
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
- @website = value
6
+ @@website = value
8
7
  end
9
-
10
- def attack website
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].attack(env[:soba3kofta].website)
21
+ env[:soba3kofta].execute
24
22
  @app.call(env) # run the next middleware
25
23
  end
26
24
  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.pre12
4
+ version: 0.0.0.pre13
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy