is_bot 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # A sample Gemfile
2
2
  source "http://rubygems.org"
3
3
 
4
- gem "rails", "3.0.3"
5
- gem "rspec", "2.4.0"
4
+ gem "rails", "3.1.0.rc4"
5
+ gem "rspec", "2.6.0"
6
6
  gem "sqlite3", "1.3.3"
data/Gemfile.lock CHANGED
@@ -1,83 +1,99 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- abstract (1.0.0)
5
- actionmailer (3.0.3)
6
- actionpack (= 3.0.3)
7
- mail (~> 2.2.9)
8
- actionpack (3.0.3)
9
- activemodel (= 3.0.3)
10
- activesupport (= 3.0.3)
11
- builder (~> 2.1.2)
12
- erubis (~> 2.6.6)
13
- i18n (~> 0.4)
14
- rack (~> 1.2.1)
15
- rack-mount (~> 0.6.13)
16
- rack-test (~> 0.5.6)
17
- tzinfo (~> 0.3.23)
18
- activemodel (3.0.3)
19
- activesupport (= 3.0.3)
20
- builder (~> 2.1.2)
21
- i18n (~> 0.4)
22
- activerecord (3.0.3)
23
- activemodel (= 3.0.3)
24
- activesupport (= 3.0.3)
25
- arel (~> 2.0.2)
26
- tzinfo (~> 0.3.23)
27
- activeresource (3.0.3)
28
- activemodel (= 3.0.3)
29
- activesupport (= 3.0.3)
30
- activesupport (3.0.3)
31
- arel (2.0.7)
32
- builder (2.1.2)
4
+ actionmailer (3.1.0.rc4)
5
+ actionpack (= 3.1.0.rc4)
6
+ mail (~> 2.3.0)
7
+ actionpack (3.1.0.rc4)
8
+ activemodel (= 3.1.0.rc4)
9
+ activesupport (= 3.1.0.rc4)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ i18n (~> 0.6)
13
+ rack (~> 1.3.0)
14
+ rack-cache (~> 1.0.1)
15
+ rack-mount (~> 0.8.1)
16
+ rack-test (~> 0.6.0)
17
+ sprockets (~> 2.0.0.beta.10)
18
+ tzinfo (~> 0.3.27)
19
+ activemodel (3.1.0.rc4)
20
+ activesupport (= 3.1.0.rc4)
21
+ bcrypt-ruby (~> 2.1.4)
22
+ builder (~> 3.0.0)
23
+ i18n (~> 0.6)
24
+ activerecord (3.1.0.rc4)
25
+ activemodel (= 3.1.0.rc4)
26
+ activesupport (= 3.1.0.rc4)
27
+ arel (~> 2.1.1)
28
+ tzinfo (~> 0.3.27)
29
+ activeresource (3.1.0.rc4)
30
+ activemodel (= 3.1.0.rc4)
31
+ activesupport (= 3.1.0.rc4)
32
+ activesupport (3.1.0.rc4)
33
+ multi_json (~> 1.0)
34
+ arel (2.1.1)
35
+ bcrypt-ruby (2.1.4)
36
+ builder (3.0.0)
33
37
  diff-lcs (1.1.2)
34
- erubis (2.6.6)
35
- abstract (>= 1.0.0)
36
- i18n (0.5.0)
37
- mail (2.2.14)
38
- activesupport (>= 2.3.6)
38
+ erubis (2.7.0)
39
+ hike (1.1.0)
40
+ i18n (0.6.0)
41
+ mail (2.3.0)
39
42
  i18n (>= 0.4.0)
40
43
  mime-types (~> 1.16)
41
44
  treetop (~> 1.4.8)
42
45
  mime-types (1.16)
46
+ multi_json (1.0.3)
43
47
  polyglot (0.3.1)
44
- rack (1.2.1)
45
- rack-mount (0.6.13)
48
+ rack (1.3.0)
49
+ rack-cache (1.0.2)
50
+ rack (>= 0.4)
51
+ rack-mount (0.8.1)
46
52
  rack (>= 1.0.0)
47
- rack-test (0.5.7)
53
+ rack-ssl (1.3.2)
54
+ rack
55
+ rack-test (0.6.0)
48
56
  rack (>= 1.0)
49
- rails (3.0.3)
50
- actionmailer (= 3.0.3)
51
- actionpack (= 3.0.3)
52
- activerecord (= 3.0.3)
53
- activeresource (= 3.0.3)
54
- activesupport (= 3.0.3)
57
+ rails (3.1.0.rc4)
58
+ actionmailer (= 3.1.0.rc4)
59
+ actionpack (= 3.1.0.rc4)
60
+ activerecord (= 3.1.0.rc4)
61
+ activeresource (= 3.1.0.rc4)
62
+ activesupport (= 3.1.0.rc4)
55
63
  bundler (~> 1.0)
56
- railties (= 3.0.3)
57
- railties (3.0.3)
58
- actionpack (= 3.0.3)
59
- activesupport (= 3.0.3)
64
+ railties (= 3.1.0.rc4)
65
+ railties (3.1.0.rc4)
66
+ actionpack (= 3.1.0.rc4)
67
+ activesupport (= 3.1.0.rc4)
68
+ rack-ssl (~> 1.3.2)
60
69
  rake (>= 0.8.7)
61
- thor (~> 0.14.4)
62
- rake (0.8.7)
63
- rspec (2.4.0)
64
- rspec-core (~> 2.4.0)
65
- rspec-expectations (~> 2.4.0)
66
- rspec-mocks (~> 2.4.0)
67
- rspec-core (2.4.0)
68
- rspec-expectations (2.4.0)
70
+ rdoc (~> 3.4)
71
+ thor (~> 0.14.6)
72
+ rake (0.9.2)
73
+ rdoc (3.6.1)
74
+ rspec (2.6.0)
75
+ rspec-core (~> 2.6.0)
76
+ rspec-expectations (~> 2.6.0)
77
+ rspec-mocks (~> 2.6.0)
78
+ rspec-core (2.6.4)
79
+ rspec-expectations (2.6.0)
69
80
  diff-lcs (~> 1.1.2)
70
- rspec-mocks (2.4.0)
81
+ rspec-mocks (2.6.0)
82
+ sprockets (2.0.0.beta.10)
83
+ hike (~> 1.0)
84
+ rack (~> 1.0)
85
+ tilt (!= 1.3.0, ~> 1.1)
71
86
  sqlite3 (1.3.3)
72
87
  thor (0.14.6)
88
+ tilt (1.3.2)
73
89
  treetop (1.4.9)
74
90
  polyglot (>= 0.3.1)
75
- tzinfo (0.3.24)
91
+ tzinfo (0.3.28)
76
92
 
77
93
  PLATFORMS
78
94
  ruby
79
95
 
80
96
  DEPENDENCIES
81
- rails (= 3.0.3)
82
- rspec (= 2.4.0)
97
+ rails (= 3.1.0.rc4)
98
+ rspec (= 2.6.0)
83
99
  sqlite3 (= 1.3.3)
data/HISTORY ADDED
@@ -0,0 +1,16 @@
1
+ 19 June 2011
2
+ ---------------
3
+
4
+ * Upgraded to Rails 3.1.0.rc4
5
+ * Upgraded to Rspec 2.6.0
6
+ * class_inheritable_accessor changed to class_attribute
7
+
8
+
9
+ 23 January 2011
10
+ ---------------
11
+
12
+ * Moved to Ruby 1.9.2
13
+ * Upgraded to Rails3
14
+ * Upgraded to Bundler
15
+ * Cleaned up code
16
+ * Slightly improved the specs
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/is_bot.gemspec CHANGED
@@ -1,55 +1,63 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{is_bot}
8
- s.version = "0.1.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Anuj Dutta"]
12
- s.date = %q{2009-11-20}
12
+ s.date = %q{2011-06-19}
13
13
  s.description = %q{Simple gem to reduce the spam attacks on sign-up, sign-in and other similar sorts of forms.}
14
14
  s.email = %q{anuj@andhapp.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.markdown"
17
+ "README.markdown"
18
18
  ]
19
19
  s.files = [
20
- ".gitignore",
21
- "LICENSE",
22
- "README.markdown",
23
- "Rakefile",
24
- "VERSION",
25
- "init.rb",
26
- "lib/is_bot.rb",
27
- "lib/is_bot/is_bot.rb",
28
- "spec/database.yml",
29
- "spec/is_bot_spec.rb",
30
- "spec/models.rb",
31
- "spec/schema.db",
32
- "spec/spec.opts",
33
- "spec/spec_helper.rb"
20
+ ".rspec",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "HISTORY",
24
+ "LICENSE",
25
+ "README.markdown",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "init.rb",
29
+ "is_bot.gemspec",
30
+ "lib/is_bot.rb",
31
+ "lib/is_bot/is_bot.rb",
32
+ "pkg/is_bot-0.1.0.gem",
33
+ "pkg/is_bot-0.2.0.gem",
34
+ "spec/database.yml",
35
+ "spec/is_bot_spec.rb",
36
+ "spec/models.rb",
37
+ "spec/schema.db",
38
+ "spec/spec_helper.rb"
34
39
  ]
35
40
  s.homepage = %q{http://github.com/andhapp/is_bot}
36
- s.rdoc_options = ["--charset=UTF-8"]
37
41
  s.require_paths = ["lib"]
38
- s.rubygems_version = %q{1.3.5}
42
+ s.rubygems_version = %q{1.6.2}
39
43
  s.summary = %q{Fight the bot.}
40
- s.test_files = [
41
- "spec/is_bot_spec.rb",
42
- "spec/models.rb",
43
- "spec/spec_helper.rb"
44
- ]
45
44
 
46
45
  if s.respond_to? :specification_version then
47
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
46
  s.specification_version = 3
49
47
 
50
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
48
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
+ s.add_runtime_dependency(%q<rails>, ["= 3.1.0.rc4"])
50
+ s.add_runtime_dependency(%q<rspec>, ["= 2.6.0"])
51
+ s.add_runtime_dependency(%q<sqlite3>, ["= 1.3.3"])
51
52
  else
53
+ s.add_dependency(%q<rails>, ["= 3.1.0.rc4"])
54
+ s.add_dependency(%q<rspec>, ["= 2.6.0"])
55
+ s.add_dependency(%q<sqlite3>, ["= 1.3.3"])
52
56
  end
53
57
  else
58
+ s.add_dependency(%q<rails>, ["= 3.1.0.rc4"])
59
+ s.add_dependency(%q<rspec>, ["= 2.6.0"])
60
+ s.add_dependency(%q<sqlite3>, ["= 1.3.3"])
54
61
  end
55
62
  end
63
+
data/lib/is_bot/is_bot.rb CHANGED
@@ -3,7 +3,7 @@ module IsBot
3
3
  def self.included(base)
4
4
  base.class_eval do
5
5
  extend ClassMethods
6
- class_inheritable_accessor :captcha_in_reverse
6
+ class_attribute :captcha_in_reverse
7
7
  end
8
8
  end
9
9
 
Binary file
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,8 @@
1
+ require 'bundler'
2
+ Bundler.require(:default)
3
+
1
4
  require 'active_record'
2
5
  require 'action_view'
3
- require 'yaml'
4
- require 'rspec'
5
6
 
6
7
  require File.expand_path("../../init", __FILE__)
7
8
  require File.expand_path("../models", __FILE__)
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: is_bot
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 0
9
- version: 0.2.0
4
+ prerelease:
5
+ version: 0.3.0
10
6
  platform: ruby
11
7
  authors:
12
8
  - Anuj Dutta
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-01-23 00:00:00 +00:00
13
+ date: 2011-06-19 00:00:00 +01:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -24,11 +20,7 @@ dependencies:
24
20
  requirements:
25
21
  - - "="
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 3
29
- - 0
30
- - 3
31
- version: 3.0.3
23
+ version: 3.1.0.rc4
32
24
  type: :runtime
33
25
  prerelease: false
34
26
  version_requirements: *id001
@@ -39,11 +31,7 @@ dependencies:
39
31
  requirements:
40
32
  - - "="
41
33
  - !ruby/object:Gem::Version
42
- segments:
43
- - 2
44
- - 4
45
- - 0
46
- version: 2.4.0
34
+ version: 2.6.0
47
35
  type: :runtime
48
36
  prerelease: false
49
37
  version_requirements: *id002
@@ -54,10 +42,6 @@ dependencies:
54
42
  requirements:
55
43
  - - "="
56
44
  - !ruby/object:Gem::Version
57
- segments:
58
- - 1
59
- - 3
60
- - 3
61
45
  version: 1.3.3
62
46
  type: :runtime
63
47
  prerelease: false
@@ -75,6 +59,7 @@ files:
75
59
  - .rspec
76
60
  - Gemfile
77
61
  - Gemfile.lock
62
+ - HISTORY
78
63
  - LICENSE
79
64
  - README.markdown
80
65
  - Rakefile
@@ -84,6 +69,7 @@ files:
84
69
  - lib/is_bot.rb
85
70
  - lib/is_bot/is_bot.rb
86
71
  - pkg/is_bot-0.1.0.gem
72
+ - pkg/is_bot-0.2.0.gem
87
73
  - spec/database.yml
88
74
  - spec/is_bot_spec.rb
89
75
  - spec/models.rb
@@ -103,25 +89,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
89
  requirements:
104
90
  - - ">="
105
91
  - !ruby/object:Gem::Version
106
- segments:
107
- - 0
108
92
  version: "0"
109
93
  required_rubygems_version: !ruby/object:Gem::Requirement
110
94
  none: false
111
95
  requirements:
112
96
  - - ">="
113
97
  - !ruby/object:Gem::Version
114
- segments:
115
- - 0
116
98
  version: "0"
117
99
  requirements: []
118
100
 
119
101
  rubyforge_project:
120
- rubygems_version: 1.3.7
102
+ rubygems_version: 1.6.2
121
103
  signing_key:
122
104
  specification_version: 3
123
105
  summary: Fight the bot.
124
- test_files:
125
- - spec/is_bot_spec.rb
126
- - spec/models.rb
127
- - spec/spec_helper.rb
106
+ test_files: []
107
+