wall 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecf1c0e67cc2516485e420bf13f91e3bc1765908
4
- data.tar.gz: 43d9d6a3beecc1de9ad1e5b12963448bccb526ac
3
+ metadata.gz: 6c10a56e33d102065c973802482645bc9cae1a3a
4
+ data.tar.gz: 6a214836d76c4554ee01917b8dacc69fd29d2a81
5
5
  SHA512:
6
- metadata.gz: 7542557a2d3e6b749b256a76bc866da271382cb3bf4e5ecc2aca85a25f25e91c063114963fdc6de06a6e58dee4ff5abf92621b9f40b03cdafc8be0bc4d3f037c
7
- data.tar.gz: df6fe852ce7188f88b7a961080247da688cdba71050e372139e065db4f2e0975ed257886c2f9c4252e20d39b0921d38e76cd903fa77bae23749b43202b933a38
6
+ metadata.gz: 876a344f92cb1ca2c0a8fe7efd7ccf3cf06a0cabcbf2872e0ce8a67a3ebbd00c2e751862146df4da54b51f1122ca55ed1f3e192a44bf32a6829e78a19c1142be
7
+ data.tar.gz: c006e68d94c84a58cd1115dfa27ddcf17efffd6ade080bb2ec4900fed2d1f6802c39b9861e82036a2d5b39b0960969cd4c4d058e32c06b7431ffac5da36d645a
data/README.md CHANGED
@@ -22,7 +22,13 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ in rails:
26
+
27
+ ```ruby
28
+ Rails::Initializer.run do |config|
29
+ config.middleware.use "Wall::Middlware"
30
+ end
31
+ ```
26
32
 
27
33
  ## Development
28
34
 
@@ -32,7 +38,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
38
 
33
39
  ## Contributing
34
40
 
35
- 1. Fork it ( https://github.com/[my-github-username]/wall/fork )
41
+ 1. Fork it ( https://git.world/eadz/wall )
36
42
  2. Create your feature branch (`git checkout -b my-new-feature`)
37
43
  3. Commit your changes (`git commit -am 'Add some feature'`)
38
44
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,4 +1,5 @@
1
1
  require "wall/version"
2
+ require "wall/middleware"
2
3
 
3
4
  module Wall
4
5
  # Your code goes here...
@@ -0,0 +1,11 @@
1
+ module Wall
2
+ class Middleware
3
+ def initialize(app)
4
+ _ = app
5
+ end
6
+
7
+ def call(env)
8
+ [401, {"Content-Type" => "text/html"}, "Blocked"]
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Wall
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{Wall is rack middleware that blocks requests}
13
13
  spec.description = %q{Wall is rack middleware that blocks requests}
14
- spec.homepage = "https://eaden.net/#wall"
14
+ spec.homepage = "https://git.world/eadz/wall"
15
15
 
16
16
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
17
17
  # delete this section to allow pushing this gem to any host.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eaden McKee
@@ -68,9 +68,10 @@ files:
68
68
  - bin/console
69
69
  - bin/setup
70
70
  - lib/wall.rb
71
+ - lib/wall/middleware.rb
71
72
  - lib/wall/version.rb
72
73
  - wall.gemspec
73
- homepage: https://eaden.net/#wall
74
+ homepage: https://git.world/eadz/wall
74
75
  licenses: []
75
76
  metadata: {}
76
77
  post_install_message: