diff --git a/.gitignore b/.gitignore index 28f4849..f80b5fd 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ /test/tmp/ /test/version_tmp/ /tmp/ +.DS_Store ## Specific to RubyMotion: .dat* diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a36c7ff --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: ruby +rvm: + - 2.2.3 diff --git a/Gemfile b/Gemfile index ef2b76b..563e95f 100644 --- a/Gemfile +++ b/Gemfile @@ -4,4 +4,3 @@ gemspec # For test OCR gem 'rtesseract' gem 'mini_magick' -gem 'activesupport' diff --git a/Gemfile.lock b/Gemfile.lock index 7149d80..2300048 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,21 +7,87 @@ PATH GEM remote: https://rubygems.org/ specs: + actionmailer (4.2.4) + actionpack (= 4.2.4) + actionview (= 4.2.4) + activejob (= 4.2.4) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 1.0, >= 1.0.5) + actionpack (4.2.4) + actionview (= 4.2.4) + activesupport (= 4.2.4) + rack (~> 1.6) + rack-test (~> 0.6.2) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (4.2.4) + activesupport (= 4.2.4) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + activejob (4.2.4) + activesupport (= 4.2.4) + globalid (>= 0.3.0) + activemodel (4.2.4) + activesupport (= 4.2.4) + builder (~> 3.1) + activerecord (4.2.4) + activemodel (= 4.2.4) + activesupport (= 4.2.4) + arel (~> 6.0) activesupport (4.2.4) i18n (~> 0.7) json (~> 1.7, >= 1.7.7) minitest (~> 5.1) thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) + arel (6.0.3) + builder (3.2.2) diff-lcs (1.2.5) + erubis (2.7.0) + globalid (0.3.6) + activesupport (>= 4.1.0) i18n (0.7.0) json (1.8.3) + loofah (2.0.3) + nokogiri (>= 1.5.9) + mail (2.6.3) + mime-types (>= 1.16, < 3) + mime-types (2.6.2) mini_magick (4.3.6) mini_portile (0.6.2) minitest (5.8.2) nokogiri (1.6.6.2) mini_portile (~> 0.6.0) posix-spawn (0.3.11) + rack (1.6.4) + rack-test (0.6.3) + rack (>= 1.0) + rails (4.2.4) + actionmailer (= 4.2.4) + actionpack (= 4.2.4) + actionview (= 4.2.4) + activejob (= 4.2.4) + activemodel (= 4.2.4) + activerecord (= 4.2.4) + activesupport (= 4.2.4) + bundler (>= 1.3.0, < 2.0) + railties (= 4.2.4) + sprockets-rails + rails-deprecated_sanitizer (1.0.3) + activesupport (>= 4.2.0.alpha) + rails-dom-testing (1.0.7) + activesupport (>= 4.2.0.beta, < 5.0) + nokogiri (~> 1.6.0) + rails-deprecated_sanitizer (>= 1.0.1) + rails-html-sanitizer (1.0.2) + loofah (~> 2.0) + railties (4.2.4) + actionpack (= 4.2.4) + activesupport (= 4.2.4) + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) rake (10.4.2) rspec (3.3.0) rspec-core (~> 3.3.0) @@ -38,6 +104,13 @@ GEM rspec-support (3.3.0) rtesseract (1.3.1) nokogiri + sprockets (3.3.5) + rack (> 1, < 3) + sprockets-rails (2.3.3) + actionpack (>= 3.0) + activesupport (>= 3.0) + sprockets (>= 2.8, < 4.0) + thor (0.19.1) thread_safe (0.3.5) tzinfo (1.2.2) thread_safe (~> 0.1) @@ -46,8 +119,8 @@ PLATFORMS ruby DEPENDENCIES - activesupport mini_magick + rails rake rspec (>= 3.3.0) rtesseract diff --git a/README.md b/README.md index 75e9001..8639ce5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # RuCaptcha [![Gem Version](https://badge.fury.io/rb/rucaptcha.svg)](https://badge.fury.io/rb/rucaptcha) +[![Build Status](https://travis-ci.org/rucaptcha/rucaptcha.svg)](https://travis-ci.org/rucaptcha/rucaptcha) This is a Captcha gem for Rails Applications. It runs an ImageMagick command to draw Captcha image - so it has NO performance issues or memory leak issues. diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..378dab3 --- /dev/null +++ b/Rakefile @@ -0,0 +1,5 @@ +require "bundler/gem_tasks" +require "rspec/core/rake_task" + +RSpec::Core::RakeTask.new(:spec) +task default: :spec diff --git a/rucaptcha.gemspec b/rucaptcha.gemspec index b69a818..eda9bea 100644 --- a/rucaptcha.gemspec +++ b/rucaptcha.gemspec @@ -16,5 +16,6 @@ Gem::Specification.new do |s| s.add_dependency 'posix-spawn', '>= 0.3.0' s.add_development_dependency 'rake' + s.add_development_dependency 'rails' s.add_development_dependency 'rspec', '>= 3.3.0' end