invisible_captcha 0.6.4 → 0.6.5

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/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ .bundle
2
+ pkg
3
+ .rvmrc
4
+ Gemfile.lock
data/Gemfile CHANGED
@@ -1,9 +1,3 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
- gem 'activemodel'
4
-
5
- group :development do
6
- gem 'bundler'
7
- gem 'jeweler'
8
- gem 'debugger'
9
- end
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2012-2014 Marc Anguera Insa
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -74,14 +74,14 @@ end
74
74
  ### Controller style (resource oriented):
75
75
 
76
76
  In your form:
77
- ```
77
+ ```erb
78
78
  <%= form_for(@topic) do |f| %>
79
79
  <%= f.invisible_captcha :subtitle %>
80
80
  <% end %>
81
81
  ```
82
82
 
83
83
  In your controller:
84
- ```
84
+ ```ruby
85
85
  def create
86
86
  if invisible_captcha?(:topic, :subtitle)
87
87
  head 200 # or redirect_to new_topic_path
@@ -94,7 +94,7 @@ end
94
94
  ### Setup
95
95
  If you want to customize some defaults, add the following to an initializer (config/initializers/invisible_captcha.rb):
96
96
 
97
- ```
97
+ ```ruby
98
98
  InvisibleCaptcha.setup do |ic|
99
99
  ic.sentence_for_humans = 'If you are a human, ignore this field'
100
100
  ic.error_message = 'You are a robot!'
@@ -103,4 +103,4 @@ end
103
103
  ```
104
104
 
105
105
  ## License
106
- Copyright (c) 2012 Marc Anguera. Invisible Captcha is released under the [MIT](http://opensource.org/licenses/MIT) License.
106
+ Copyright (c) 2012-2014 Marc Anguera. Invisible Captcha is released under the [MIT](LICENSE) License.
data/Rakefile CHANGED
@@ -1,51 +1 @@
1
- # encoding: utf-8
2
-
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- gem.name = "invisible_captcha"
17
- gem.homepage = "http://github.com/markets/invisible_captcha"
18
- gem.license = "MIT"
19
- gem.summary = %Q{Simple honeypot protection for RoR apps}
20
- gem.description = %Q{Simple spam protection for Rails applications using honeypot strategy for better user experience.}
21
- gem.email = "srmarc.ai@gmail.com"
22
- gem.authors = ["Marc Anguera Insa"]
23
- # dependencies defined in Gemfile
24
- end
25
- Jeweler::RubygemsDotOrgTasks.new
26
-
27
- namespace :release do
28
- desc "create a patch release, create tag and push to github"
29
- task :patch do
30
- Rake::Task['version:bump:patch'].invoke
31
- Rake::Task['gemspec'].invoke
32
- `git commit -am 'Regenerate gemspec'`
33
- Rake::Task['git:release'].invoke
34
- end
35
-
36
- desc "create a minor, create tag and push to github"
37
- task :minor do
38
- Rake::Task['version:bump:minor'].invoke
39
- Rake::Task['gemspec'].invoke
40
- `git commit -am 'Regenerate gemspec'`
41
- Rake::Task['git:release'].invoke
42
- end
43
-
44
- desc "create a major, create tag and push to github"
45
- task :major do
46
- Rake::Task['version:bump:major'].invoke
47
- Rake::Task['gemspec'].invoke
48
- `git commit -am 'Regenerate gemspec'`
49
- Rake::Task['git:release'].invoke
50
- end
51
- end
1
+ require "bundler/gem_tasks"
@@ -1,57 +1,23 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+ require 'invisible_captcha/version'
5
3
 
6
- Gem::Specification.new do |s|
7
- s.name = "invisible_captcha"
8
- s.version = "0.6.4"
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "invisible_captcha"
6
+ spec.version = InvisibleCaptcha::VERSION
7
+ spec.authors = ["Marc Anguera Insa"]
8
+ spec.email = ["srmarc.ai@gmail.com"]
9
+ spec.description = %q{Simple spam protection for Rails applications using honeypot strategy for better user experience.}
10
+ spec.summary = %q{Simple honeypot protection for RoR apps}
11
+ spec.homepage = "https://github.com/markets/invisible_captcha"
12
+ spec.license = "MIT"
9
13
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Marc Anguera Insa"]
12
- s.date = "2013-11-21"
13
- s.description = "Simple spam protection for Rails applications using honeypot strategy for better user experience."
14
- s.email = "srmarc.ai@gmail.com"
15
- s.extra_rdoc_files = [
16
- "README.md"
17
- ]
18
- s.files = [
19
- "Gemfile",
20
- "README.md",
21
- "Rakefile",
22
- "VERSION",
23
- "invisible_captcha.gemspec",
24
- "lib/invisible_captcha.rb",
25
- "lib/invisible_captcha/controller_methods.rb",
26
- "lib/invisible_captcha/form_helpers.rb",
27
- "lib/invisible_captcha/validator.rb",
28
- "lib/invisible_captcha/view_helpers.rb"
29
- ]
30
- s.homepage = "http://github.com/markets/invisible_captcha"
31
- s.licenses = ["MIT"]
32
- s.require_paths = ["lib"]
33
- s.rubygems_version = "1.8.24"
34
- s.summary = "Simple honeypot protection for RoR apps"
14
+ spec.files = `git ls-files`.split($/)
15
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
+ spec.require_paths = ["lib"]
35
18
 
36
- if s.respond_to? :specification_version then
37
- s.specification_version = 3
19
+ spec.add_dependency "activemodel", ">= 0"
38
20
 
39
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
40
- s.add_runtime_dependency(%q<activemodel>, [">= 0"])
41
- s.add_development_dependency(%q<bundler>, [">= 0"])
42
- s.add_development_dependency(%q<jeweler>, [">= 0"])
43
- s.add_development_dependency(%q<debugger>, [">= 0"])
44
- else
45
- s.add_dependency(%q<activemodel>, [">= 0"])
46
- s.add_dependency(%q<bundler>, [">= 0"])
47
- s.add_dependency(%q<jeweler>, [">= 0"])
48
- s.add_dependency(%q<debugger>, [">= 0"])
49
- end
50
- else
51
- s.add_dependency(%q<activemodel>, [">= 0"])
52
- s.add_dependency(%q<bundler>, [">= 0"])
53
- s.add_dependency(%q<jeweler>, [">= 0"])
54
- s.add_dependency(%q<debugger>, [">= 0"])
55
- end
21
+ spec.add_development_dependency "debugger"
56
22
  end
57
23
 
@@ -1,7 +1,8 @@
1
- require 'invisible_captcha/controller_methods.rb'
2
- require 'invisible_captcha/view_helpers.rb'
3
- require 'invisible_captcha/form_helpers.rb'
4
- require 'invisible_captcha/validator.rb'
1
+ require 'invisible_captcha/version'
2
+ require 'invisible_captcha/controller_methods'
3
+ require 'invisible_captcha/view_helpers'
4
+ require 'invisible_captcha/form_helpers'
5
+ require 'invisible_captcha/validator'
5
6
 
6
7
  module InvisibleCaptcha
7
8
  # Default sentence for humans if text field is visible
@@ -0,0 +1,3 @@
1
+ module InvisibleCaptcha
2
+ VERSION = "0.6.5"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invisible_captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-21 00:00:00.000000000 Z
12
+ date: 2014-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -27,38 +27,6 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: bundler
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: jeweler
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
30
  - !ruby/object:Gem::Dependency
63
31
  name: debugger
64
32
  requirement: !ruby/object:Gem::Requirement
@@ -77,23 +45,25 @@ dependencies:
77
45
  version: '0'
78
46
  description: Simple spam protection for Rails applications using honeypot strategy
79
47
  for better user experience.
80
- email: srmarc.ai@gmail.com
48
+ email:
49
+ - srmarc.ai@gmail.com
81
50
  executables: []
82
51
  extensions: []
83
- extra_rdoc_files:
84
- - README.md
52
+ extra_rdoc_files: []
85
53
  files:
54
+ - .gitignore
86
55
  - Gemfile
56
+ - LICENSE
87
57
  - README.md
88
58
  - Rakefile
89
- - VERSION
90
59
  - invisible_captcha.gemspec
91
60
  - lib/invisible_captcha.rb
92
61
  - lib/invisible_captcha/controller_methods.rb
93
62
  - lib/invisible_captcha/form_helpers.rb
94
63
  - lib/invisible_captcha/validator.rb
64
+ - lib/invisible_captcha/version.rb
95
65
  - lib/invisible_captcha/view_helpers.rb
96
- homepage: http://github.com/markets/invisible_captcha
66
+ homepage: https://github.com/markets/invisible_captcha
97
67
  licenses:
98
68
  - MIT
99
69
  post_install_message:
@@ -106,9 +76,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
76
  - - ! '>='
107
77
  - !ruby/object:Gem::Version
108
78
  version: '0'
109
- segments:
110
- - 0
111
- hash: -428601357
112
79
  required_rubygems_version: !ruby/object:Gem::Requirement
113
80
  none: false
114
81
  requirements:
@@ -117,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
84
  version: '0'
118
85
  requirements: []
119
86
  rubyforge_project:
120
- rubygems_version: 1.8.24
87
+ rubygems_version: 1.8.23
121
88
  signing_key:
122
89
  specification_version: 3
123
90
  summary: Simple honeypot protection for RoR apps
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.6.4