easy_captcha 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ rvm:
2
+ - 1.9.2
3
+ - jruby
4
+ - ruby-head
5
+ notifications:
6
+ recipients:
7
+ - develop@marco-scholl.de
8
+ branches:
9
+ only:
10
+ - master
data/Gemfile CHANGED
@@ -1,11 +1,12 @@
1
1
  source "http://rubygems.org"
2
- gem "rails", "~> 3.0.0"
3
- gem "rmagick"
2
+ gem "rails", ">= 3.0.0"
3
+ gem "rmagick", :platforms => :ruby
4
+ gem "rmagick4j", :platforms => :jruby
4
5
 
5
6
  group :development do
6
7
  gem "bundler", "~> 1.0.0"
7
- gem "jeweler", "~> 1.5.2"
8
- gem 'simplecov', '>= 0.3.8', :require => false
9
- gem "rspec", "~> 2.3.0"
10
- gem "yard", "~> 0.6.0"
11
- end
8
+ gem "jeweler", "~> 1.6.4"
9
+ gem 'simplecov', '>= 0.3.8', :require => false, :platforms => :ruby
10
+ gem "rspec", "~> 2.6.0"
11
+ gem "yard", ">= 0.7.0"
12
+ end
data/Gemfile.lock CHANGED
@@ -1,96 +1,117 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- abstract (1.0.0)
5
- actionmailer (3.0.7)
6
- actionpack (= 3.0.7)
7
- mail (~> 2.2.15)
8
- actionpack (3.0.7)
9
- activemodel (= 3.0.7)
10
- activesupport (= 3.0.7)
11
- builder (~> 2.1.2)
12
- erubis (~> 2.6.6)
13
- i18n (~> 0.5.0)
14
- rack (~> 1.2.1)
15
- rack-mount (~> 0.6.14)
16
- rack-test (~> 0.5.7)
17
- tzinfo (~> 0.3.23)
18
- activemodel (3.0.7)
19
- activesupport (= 3.0.7)
20
- builder (~> 2.1.2)
21
- i18n (~> 0.5.0)
22
- activerecord (3.0.7)
23
- activemodel (= 3.0.7)
24
- activesupport (= 3.0.7)
25
- arel (~> 2.0.2)
26
- tzinfo (~> 0.3.23)
27
- activeresource (3.0.7)
28
- activemodel (= 3.0.7)
29
- activesupport (= 3.0.7)
30
- activesupport (3.0.7)
31
- arel (2.0.10)
32
- builder (2.1.2)
33
- diff-lcs (1.1.2)
34
- erubis (2.6.6)
35
- abstract (>= 1.0.0)
4
+ actionmailer (3.1.0)
5
+ actionpack (= 3.1.0)
6
+ mail (~> 2.3.0)
7
+ actionpack (3.1.0)
8
+ activemodel (= 3.1.0)
9
+ activesupport (= 3.1.0)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ i18n (~> 0.6)
13
+ rack (~> 1.3.2)
14
+ rack-cache (~> 1.0.3)
15
+ rack-mount (~> 0.8.2)
16
+ rack-test (~> 0.6.1)
17
+ sprockets (~> 2.0.0)
18
+ activemodel (3.1.0)
19
+ activesupport (= 3.1.0)
20
+ bcrypt-ruby (~> 3.0.0)
21
+ builder (~> 3.0.0)
22
+ i18n (~> 0.6)
23
+ activerecord (3.1.0)
24
+ activemodel (= 3.1.0)
25
+ activesupport (= 3.1.0)
26
+ arel (~> 2.2.1)
27
+ tzinfo (~> 0.3.29)
28
+ activeresource (3.1.0)
29
+ activemodel (= 3.1.0)
30
+ activesupport (= 3.1.0)
31
+ activesupport (3.1.0)
32
+ multi_json (~> 1.0)
33
+ arel (2.2.1)
34
+ bcrypt-ruby (3.0.1)
35
+ bcrypt-ruby (3.0.1-java)
36
+ builder (3.0.0)
37
+ diff-lcs (1.1.3)
38
+ erubis (2.7.0)
36
39
  git (1.2.5)
37
- i18n (0.5.0)
38
- jeweler (1.5.2)
39
- bundler (~> 1.0.0)
40
+ hike (1.2.1)
41
+ i18n (0.6.0)
42
+ jeweler (1.6.4)
43
+ bundler (~> 1.0)
40
44
  git (>= 1.2.5)
41
45
  rake
42
- mail (2.2.19)
43
- activesupport (>= 2.3.6)
46
+ mail (2.3.0)
44
47
  i18n (>= 0.4.0)
45
48
  mime-types (~> 1.16)
46
49
  treetop (~> 1.4.8)
47
50
  mime-types (1.16)
48
- polyglot (0.3.1)
49
- rack (1.2.3)
50
- rack-mount (0.6.14)
51
+ multi_json (1.0.3)
52
+ polyglot (0.3.2)
53
+ rack (1.3.2)
54
+ rack-cache (1.0.3)
55
+ rack (>= 0.4)
56
+ rack-mount (0.8.3)
51
57
  rack (>= 1.0.0)
52
- rack-test (0.5.7)
58
+ rack-ssl (1.3.2)
59
+ rack
60
+ rack-test (0.6.1)
53
61
  rack (>= 1.0)
54
- rails (3.0.7)
55
- actionmailer (= 3.0.7)
56
- actionpack (= 3.0.7)
57
- activerecord (= 3.0.7)
58
- activeresource (= 3.0.7)
59
- activesupport (= 3.0.7)
62
+ rails (3.1.0)
63
+ actionmailer (= 3.1.0)
64
+ actionpack (= 3.1.0)
65
+ activerecord (= 3.1.0)
66
+ activeresource (= 3.1.0)
67
+ activesupport (= 3.1.0)
60
68
  bundler (~> 1.0)
61
- railties (= 3.0.7)
62
- railties (3.0.7)
63
- actionpack (= 3.0.7)
64
- activesupport (= 3.0.7)
69
+ railties (= 3.1.0)
70
+ railties (3.1.0)
71
+ actionpack (= 3.1.0)
72
+ activesupport (= 3.1.0)
73
+ rack-ssl (~> 1.3.2)
65
74
  rake (>= 0.8.7)
66
- thor (~> 0.14.4)
75
+ rdoc (~> 3.4)
76
+ thor (~> 0.14.6)
67
77
  rake (0.9.2)
78
+ rdoc (3.9.4)
68
79
  rmagick (2.13.1)
69
- rspec (2.3.0)
70
- rspec-core (~> 2.3.0)
71
- rspec-expectations (~> 2.3.0)
72
- rspec-mocks (~> 2.3.0)
73
- rspec-core (2.3.1)
74
- rspec-expectations (2.3.0)
80
+ rmagick4j (0.3.7)
81
+ rspec (2.6.0)
82
+ rspec-core (~> 2.6.0)
83
+ rspec-expectations (~> 2.6.0)
84
+ rspec-mocks (~> 2.6.0)
85
+ rspec-core (2.6.4)
86
+ rspec-expectations (2.6.0)
75
87
  diff-lcs (~> 1.1.2)
76
- rspec-mocks (2.3.0)
77
- simplecov (0.4.2)
78
- simplecov-html (~> 0.4.4)
79
- simplecov-html (0.4.5)
88
+ rspec-mocks (2.6.0)
89
+ simplecov (0.5.3)
90
+ multi_json (~> 1.0.3)
91
+ simplecov-html (~> 0.5.3)
92
+ simplecov-html (0.5.3)
93
+ sprockets (2.0.0)
94
+ hike (~> 1.2)
95
+ rack (~> 1.0)
96
+ tilt (!= 1.3.0, ~> 1.1)
80
97
  thor (0.14.6)
81
- treetop (1.4.9)
98
+ tilt (1.3.3)
99
+ treetop (1.4.10)
100
+ polyglot
82
101
  polyglot (>= 0.3.1)
83
- tzinfo (0.3.27)
84
- yard (0.6.8)
102
+ tzinfo (0.3.29)
103
+ yard (0.7.2)
85
104
 
86
105
  PLATFORMS
106
+ java
87
107
  ruby
88
108
 
89
109
  DEPENDENCIES
90
110
  bundler (~> 1.0.0)
91
- jeweler (~> 1.5.2)
92
- rails (~> 3.0.0)
111
+ jeweler (~> 1.6.4)
112
+ rails (>= 3.0.0)
93
113
  rmagick
94
- rspec (~> 2.3.0)
114
+ rmagick4j
115
+ rspec (~> 2.6.0)
95
116
  simplecov (>= 0.3.8)
96
- yard (~> 0.6.0)
117
+ yard (>= 0.7.0)
data/README.rdoc CHANGED
@@ -1,6 +1,8 @@
1
1
  = EasyCaptcha
2
2
  A simple captcha implementation for rails 3 based on rmagick
3
3
 
4
+ https://travis-ci.org/phatworx/easy_captcha.png
5
+
4
6
  == Installation
5
7
  add to Gemfile
6
8
  gem 'easy_captcha'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
data/easy_captcha.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{easy_captcha}
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Marco Scholl"]
12
- s.date = %q{2011-06-07}
11
+ s.authors = [%q{Marco Scholl}]
12
+ s.date = %q{2011-09-15}
13
13
  s.description = %q{Captcha-Plugin for Rails}
14
14
  s.email = %q{team@phatworx.de}
15
15
  s.extra_rdoc_files = [
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
17
17
  "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
+ ".travis.yml",
20
21
  "Gemfile",
21
22
  "Gemfile.lock",
22
23
  "LICENSE.txt",
@@ -43,43 +44,42 @@ Gem::Specification.new do |s|
43
44
  "spec/spec_helper.rb"
44
45
  ]
45
46
  s.homepage = %q{http://github.com/phatworx/easy_captcha}
46
- s.licenses = ["MIT"]
47
- s.require_paths = ["lib"]
48
- s.rubygems_version = %q{1.6.2}
47
+ s.licenses = [%q{MIT}]
48
+ s.require_paths = [%q{lib}]
49
+ s.rubygems_version = %q{1.8.6}
49
50
  s.summary = %q{Captcha-Plugin for Rails}
50
- s.test_files = [
51
- "spec/easy_captcha_spec.rb",
52
- "spec/spec_helper.rb"
53
- ]
54
51
 
55
52
  if s.respond_to? :specification_version then
56
53
  s.specification_version = 3
57
54
 
58
55
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
59
- s.add_runtime_dependency(%q<rails>, ["~> 3.0.0"])
56
+ s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
60
57
  s.add_runtime_dependency(%q<rmagick>, [">= 0"])
58
+ s.add_runtime_dependency(%q<rmagick4j>, [">= 0"])
61
59
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
62
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
60
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
63
61
  s.add_development_dependency(%q<simplecov>, [">= 0.3.8"])
64
- s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
65
- s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
62
+ s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
63
+ s.add_development_dependency(%q<yard>, [">= 0.7.0"])
66
64
  else
67
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
65
+ s.add_dependency(%q<rails>, [">= 3.0.0"])
68
66
  s.add_dependency(%q<rmagick>, [">= 0"])
67
+ s.add_dependency(%q<rmagick4j>, [">= 0"])
69
68
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
70
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
69
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
71
70
  s.add_dependency(%q<simplecov>, [">= 0.3.8"])
72
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
73
- s.add_dependency(%q<yard>, ["~> 0.6.0"])
71
+ s.add_dependency(%q<rspec>, ["~> 2.6.0"])
72
+ s.add_dependency(%q<yard>, [">= 0.7.0"])
74
73
  end
75
74
  else
76
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
75
+ s.add_dependency(%q<rails>, [">= 3.0.0"])
77
76
  s.add_dependency(%q<rmagick>, [">= 0"])
77
+ s.add_dependency(%q<rmagick4j>, [">= 0"])
78
78
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
79
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
79
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
80
80
  s.add_dependency(%q<simplecov>, [">= 0.3.8"])
81
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
82
- s.add_dependency(%q<yard>, ["~> 0.6.0"])
81
+ s.add_dependency(%q<rspec>, ["~> 2.6.0"])
82
+ s.add_dependency(%q<yard>, [">= 0.7.0"])
83
83
  end
84
84
  end
85
85
 
data/lib/easy_captcha.rb CHANGED
@@ -71,6 +71,7 @@ module EasyCaptcha
71
71
 
72
72
  # depracated
73
73
  def method_missing name, *args
74
+ name = name.to_s # fix for jruby
74
75
  depracations = [
75
76
  :font_size, :font_fill_color, :font_family, :font_stroke, :font_stroke_color,
76
77
  :image_background_color, :sketch, :sketch_radius, :sketch_sigma, :wave,
@@ -79,7 +80,7 @@ module EasyCaptcha
79
80
 
80
81
  if depracations.include? name[0..-2].to_sym or depracations.include? name.to_sym
81
82
  ActiveSupport::Deprecation.warn "EasyCaptcha.#{name} is deprecated."
82
- if name[-1] == '='
83
+ if name[-1,1] == '='
83
84
  self.generator.send(name, args.first)
84
85
  else
85
86
  self.generator.send(name)
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,10 @@
1
1
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
2
  $LOAD_PATH.unshift(File.dirname(__FILE__))
3
- require 'simplecov'
4
- SimpleCov.start 'rails'
3
+ begin
4
+ require 'simplecov'
5
+ SimpleCov.start 'rails'
6
+ rescue LoadError
7
+ end
5
8
  require 'rspec'
6
9
  require 'easy_captcha'
7
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,23 +9,33 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-06-07 00:00:00.000000000 +02:00
13
- default_executable:
12
+ date: 2011-09-15 00:00:00.000000000Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rails
17
- requirement: &12696620 !ruby/object:Gem::Requirement
16
+ requirement: &18924280 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
- - - ~>
19
+ - - ! '>='
21
20
  - !ruby/object:Gem::Version
22
21
  version: 3.0.0
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *12696620
24
+ version_requirements: *18924280
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: rmagick
28
- requirement: &12696040 !ruby/object:Gem::Requirement
27
+ requirement: &18922440 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *18922440
36
+ - !ruby/object:Gem::Dependency
37
+ name: rmagick4j
38
+ requirement: &18921300 !ruby/object:Gem::Requirement
29
39
  none: false
30
40
  requirements:
31
41
  - - ! '>='
@@ -33,10 +43,10 @@ dependencies:
33
43
  version: '0'
34
44
  type: :runtime
35
45
  prerelease: false
36
- version_requirements: *12696040
46
+ version_requirements: *18921300
37
47
  - !ruby/object:Gem::Dependency
38
48
  name: bundler
39
- requirement: &12695460 !ruby/object:Gem::Requirement
49
+ requirement: &18920020 !ruby/object:Gem::Requirement
40
50
  none: false
41
51
  requirements:
42
52
  - - ~>
@@ -44,21 +54,21 @@ dependencies:
44
54
  version: 1.0.0
45
55
  type: :development
46
56
  prerelease: false
47
- version_requirements: *12695460
57
+ version_requirements: *18920020
48
58
  - !ruby/object:Gem::Dependency
49
59
  name: jeweler
50
- requirement: &12694680 !ruby/object:Gem::Requirement
60
+ requirement: &18918860 !ruby/object:Gem::Requirement
51
61
  none: false
52
62
  requirements:
53
63
  - - ~>
54
64
  - !ruby/object:Gem::Version
55
- version: 1.5.2
65
+ version: 1.6.4
56
66
  type: :development
57
67
  prerelease: false
58
- version_requirements: *12694680
68
+ version_requirements: *18918860
59
69
  - !ruby/object:Gem::Dependency
60
70
  name: simplecov
61
- requirement: &12693820 !ruby/object:Gem::Requirement
71
+ requirement: &18917920 !ruby/object:Gem::Requirement
62
72
  none: false
63
73
  requirements:
64
74
  - - ! '>='
@@ -66,29 +76,29 @@ dependencies:
66
76
  version: 0.3.8
67
77
  type: :development
68
78
  prerelease: false
69
- version_requirements: *12693820
79
+ version_requirements: *18917920
70
80
  - !ruby/object:Gem::Dependency
71
81
  name: rspec
72
- requirement: &12693040 !ruby/object:Gem::Requirement
82
+ requirement: &18916720 !ruby/object:Gem::Requirement
73
83
  none: false
74
84
  requirements:
75
85
  - - ~>
76
86
  - !ruby/object:Gem::Version
77
- version: 2.3.0
87
+ version: 2.6.0
78
88
  type: :development
79
89
  prerelease: false
80
- version_requirements: *12693040
90
+ version_requirements: *18916720
81
91
  - !ruby/object:Gem::Dependency
82
92
  name: yard
83
- requirement: &12692040 !ruby/object:Gem::Requirement
93
+ requirement: &18893020 !ruby/object:Gem::Requirement
84
94
  none: false
85
95
  requirements:
86
- - - ~>
96
+ - - ! '>='
87
97
  - !ruby/object:Gem::Version
88
- version: 0.6.0
98
+ version: 0.7.0
89
99
  type: :development
90
100
  prerelease: false
91
- version_requirements: *12692040
101
+ version_requirements: *18893020
92
102
  description: Captcha-Plugin for Rails
93
103
  email: team@phatworx.de
94
104
  executables: []
@@ -97,6 +107,7 @@ extra_rdoc_files:
97
107
  - LICENSE.txt
98
108
  - README.rdoc
99
109
  files:
110
+ - .travis.yml
100
111
  - Gemfile
101
112
  - Gemfile.lock
102
113
  - LICENSE.txt
@@ -121,7 +132,6 @@ files:
121
132
  - spec/easy_captcha_spec.rb
122
133
  - spec/spec.opts
123
134
  - spec/spec_helper.rb
124
- has_rdoc: true
125
135
  homepage: http://github.com/phatworx/easy_captcha
126
136
  licenses:
127
137
  - MIT
@@ -137,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
147
  version: '0'
138
148
  segments:
139
149
  - 0
140
- hash: 4431429861703401670
150
+ hash: -1962315220255275295
141
151
  required_rubygems_version: !ruby/object:Gem::Requirement
142
152
  none: false
143
153
  requirements:
@@ -146,10 +156,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
156
  version: '0'
147
157
  requirements: []
148
158
  rubyforge_project:
149
- rubygems_version: 1.6.2
159
+ rubygems_version: 1.8.6
150
160
  signing_key:
151
161
  specification_version: 3
152
162
  summary: Captcha-Plugin for Rails
153
- test_files:
154
- - spec/easy_captcha_spec.rb
155
- - spec/spec_helper.rb
163
+ test_files: []