Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validations #238

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ rvm:
- 2.2.0
before_script: RAILS_ENV=test bundle exec rake --trace db:migrate
script: RAILS_ENV=test bundle exec rspec

#Installing ruby-filemagic gem
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libmagic-dev
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ gem 'rails-observers'
# for producing thumbnails.
gem 'rmagick', '~> 2.13.4'

#for checking file format
gem 'ruby-filemagic'

#for client side validation
gem 'client_side_validations', github: "DavyJonesLocker/client_side_validations", branch: "4-2-stable"
gem 'sass-rails'
gem 'coffee-rails'

Expand Down
10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
GIT
remote: git://github.com/DavyJonesLocker/client_side_validations.git
revision: 86b5c93df07b3f04743c86d024fce178bfb073e3
branch: 4-2-stable
specs:
client_side_validations (4.2.0)

GEM
remote: http://rubygems.org/
specs:
Expand Down Expand Up @@ -225,6 +232,7 @@ GEM
rspec-mocks (~> 3.1.0)
rspec-support (~> 3.1.0)
rspec-support (3.1.2)
ruby-filemagic (0.6.3)
ruby-openid (2.6.0)
ruby-openid-apps-discovery (1.2.0)
ruby-openid (>= 2.1.7)
Expand Down Expand Up @@ -282,6 +290,7 @@ DEPENDENCIES
better_errors
binding_of_caller
capybara
client_side_validations!
coffee-rails
devise
escape
Expand All @@ -308,6 +317,7 @@ DEPENDENCIES
redcarpet
rmagick (~> 2.13.4)
rspec-rails
ruby-filemagic
rugged (~> 0.21)
sass-rails
sketchily
Expand Down
3 changes: 2 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
//= require nprogress
//= require nprogress-turbolinks
//= require main
//= require jquery.sidr.min
//= require jquery.sidr.min
//= require rails.validations
Loading