github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

lawrencepit / remarkable_paperclip

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 9
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Remarkable matchers for Paperclip. — Read more

  cancel

http://lawrencepit.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Use gemcutter.org 
lawrencepit (author)
Fri Oct 09 01:03:46 -0700 2009
commit  ea1e6f02112402f9474f9e9acdbd8286e2e49b6a
tree    35c82eb443a5feadf4f42b2eccd3ed77e8e7cb4a
parent  7606f2b48b5b3872d3a20d66a04b1b0435e83da2
remarkable_paperclip /
name age
history
message
file .gitignore Mon May 25 01:22:01 -0700 2009 Initial commit [lawrencepit]
file MIT-LICENSE Mon May 25 01:22:01 -0700 2009 Initial commit [lawrencepit]
file README.markdown Fri Oct 09 01:03:46 -0700 2009 Use gemcutter.org [lawrencepit]
file Rakefile Mon May 25 01:22:01 -0700 2009 Initial commit [lawrencepit]
file init.rb Mon May 25 05:07:15 -0700 2009 Plugin support. [lawrencepit]
directory lib/ Sat May 30 00:00:30 -0700 2009 Refactored ValidateAttachmentContentTypeMatcher... [lawrencepit]
directory locale/ Sat May 30 00:00:30 -0700 2009 Refactored ValidateAttachmentContentTypeMatcher... [lawrencepit]
file remarkable_paperclip.gemspec Sat May 30 00:00:30 -0700 2009 Refactored ValidateAttachmentContentTypeMatcher... [lawrencepit]
directory spec/ Sat May 30 00:00:30 -0700 2009 Refactored ValidateAttachmentContentTypeMatcher... [lawrencepit]
README.markdown

Remarkable Paperclip

Test matchers to test Paperclip with Remarkable.

Usage

it { should have_attached_file :avatar, :styles => { :ico => "16x16", :normal => "48x48" } }
it { should validate_attachment_presence :avatar }
it { should validate_attachment_size :avatar, :less_than => 1.megabyte }
it { should validate_attachment_content_type :avatar, :allows => ["image/png", "image/jpg"], :rejects => ["video/mpeg"] }

Installation

As a Gem

Use this if you prefer to use versioned releases of remarkable_paperclip. Specify the gem dependency in your config/environments/test.rb file:

Rails::Initializer.run do |config|
  config.gem "remarkable_paperclip", :lib => false, :source => "http://gemcutter.org"
end

Then:

$ rake gems:install
$ rake gems:unpack

Then require remarkable_paperclip from your spec/spec_helper.rb file, before Spec::Runner is configured:

# requires for RSpec
require 'remarkable_paperclip'
Spec::Runner.configure do |config|
# ...

As a Plugin

Use this if you prefer to use the edge version of remarkable_paperclip:

$ script/plugin install git://github.com/lawrencepit/remarkable_paperclip.git

Credits

Written by Lawrence Pit.

Thanks to Remarkable and Paperclip.


Copyright (c) 2009 Lawrence Pit, released under the MIT license

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server