intrusion 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.
data/README.rdoc CHANGED
@@ -2,10 +2,16 @@
2
2
 
3
3
  Intrusion is a gem helping you to detect and prevent intrusion attempts within your ruby on rails application.
4
4
 
5
- == Preparation
6
- include intrusion in your Gemfile (Rails 3)
5
+ == Installation
6
+ Install the gem:
7
+ gem install intrusion
8
+
9
+ Rails 3: include intrusion in your Gemfile
7
10
  gem 'intrusion'
8
11
 
12
+ Rails 2: include the gem in config/environment.rb
13
+ config.gem "intrusion"
14
+
9
15
  create a 'ids' attribute for the ActiveRecord model you want to protect and migrate, e.g:
10
16
 
11
17
  # rails generate migration add_ids_to_accounts ids:string
@@ -20,7 +26,7 @@ include Intrusion in your model:
20
26
  == Examples:
21
27
 
22
28
  === Check if IP adress is blocked
23
- return "your ip is blocked" if Account.find(1).is_blocked?(request.remote_addr)
29
+ return "your ip is blocked" if Account.find(1).ids_is_blocked?(request.remote_addr)
24
30
 
25
31
 
26
32
  === Report suspicious activity
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('intrusion', '0.1.0') do |p|
5
+ Echoe.new('intrusion', '0.1.1') do |p|
6
6
  p.description = "intrusion detection and prevention for rails apps"
7
7
  p.url = "http://github.com/symontech/intrusion"
8
8
  p.author = "Simon Wepfer"
data/intrusion.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{intrusion}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Simon Wepfer"]
data/lib/intrusion.rb CHANGED
@@ -47,8 +47,6 @@ module Intrusion
47
47
  end
48
48
  return false
49
49
  end
50
-
51
- protected
52
50
 
53
51
  # convert yaml string helper
54
52
  def ids_load
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ���ä�� f�٭�V�[$��(��)�߽��U��m�$�����p�B|Q.�T@���Y��ލ����1�oP���Ƶ�Y<K;U��Ń"�`�r6l��X0��*_���(�g���蓭Z�D���|��I
2
- [�ϗ����셹�k}.��kJ��Gכ�q}�J-n!FK�!lR��[��QF|�9"Ff������&–�$��/����k��ژB��(�?�*�ڗ%�C���p 2���V�@� X_<
1
+ �����![-�&�� V��ok���f��Ӂ�����<g�®u(HQ��\s��>} 0���*���nl
2
+ ���_JtH ���hw�zn��j����r�ʚ�J��XD��2T�RT���T�)�thW��@�A�Cm�( �E������(�(}�����ƵR�+���e��l��Z��"7��!���s{���9��^��mx�WS� L9�Ԅ�qg�:TD��t斎��~��-���vCq�9��
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Simon Wepfer
metadata.gz.sig CHANGED
Binary file