soba3kofta-shamshama 0.0.0.pre1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 28c7ad22178a9b11a56b7b061950e74527060601
4
+ data.tar.gz: 5f38db7386c9d31a51950b454766883932b07f3c
5
+ SHA512:
6
+ metadata.gz: 184fd851c6216b220b69af5092a6fb5cb84cf9908bba766f78dfeb0b2b062c8e515c1b94f4ad74c9cf291ab90401302c654cd44dd027b518063a42784d208789
7
+ data.tar.gz: 6f9b673722287e1512244598c68fb38674418dcdc40bc7f213e76702d1eea20086e0dc98dfb90e1214212cceb8a44bf2810a828702e811053665c1f4db47131f
@@ -0,0 +1,21 @@
1
+ require 'resolv'
2
+ Soba3kofta::Env.register do
3
+ attr_accessor :website, :ip
4
+ def attack
5
+ @ip = Resolv.getaddress @website
6
+ end
7
+ end
8
+
9
+ module Soba3kofta
10
+ class Shamshama
11
+ def initialize(app, opts={},params={})
12
+ @app = app
13
+ @opts = opts
14
+ @params = params
15
+ end
16
+ def call(env)
17
+ env[:soba3kofta].attack
18
+ @app.call(env) # run the next middleware
19
+ end
20
+ end
21
+ end
@@ -0,0 +1 @@
1
+ require 'soba3kofta-shamshama/base'
metadata ADDED
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: soba3kofta-shamshama
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0.pre1
5
+ platform: ruby
6
+ authors:
7
+ - theotherstupidguy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: soba3kofta
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: shamshama
28
+ email:
29
+ - theotherstupidguy@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - lib/soba3kofta-shamshama.rb
35
+ - lib/soba3kofta-shamshama/base.rb
36
+ homepage: https://github.com/theotherstupidguy/soba3kofta-shamshama
37
+ licenses:
38
+ - MIT
39
+ metadata: {}
40
+ post_install_message:
41
+ rdoc_options: []
42
+ require_paths:
43
+ - lib
44
+ required_ruby_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - '>'
52
+ - !ruby/object:Gem::Version
53
+ version: 1.3.1
54
+ requirements: []
55
+ rubyforge_project:
56
+ rubygems_version: 2.2.2
57
+ signing_key:
58
+ specification_version: 4
59
+ summary: simple shamshama system for soba3kofta
60
+ test_files: []