paperclip_redis 0.0.9 → 0.1.0
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.
- checksums.yaml +5 -13
- data/Gemfile +11 -5
- data/Gemfile.lock +145 -40
- data/README.rdoc +3 -1
- data/VERSION +1 -1
- data/lib/paperclip/myversion.rb +2 -2
- data/lib/paperclip/storage/redis.rb +12 -4
- data/paperclip_redis.gemspec +75 -6
- data/spec/file.png +0 -0
- data/spec/models/paperclip_model_spec.rb +30 -0
- data/spec/{paperclip_redis_spec.rb → models/paperclip_redis_spec.rb} +2 -2
- data/spec/paperclip-app/.gitignore +16 -0
- data/spec/paperclip-app/Gemfile +44 -0
- data/spec/paperclip-app/Gemfile.lock +167 -0
- data/spec/paperclip-app/README.rdoc +28 -0
- data/spec/paperclip-app/Rakefile +6 -0
- data/spec/paperclip-app/app/assets/images/.keep +0 -0
- data/spec/paperclip-app/app/assets/javascripts/application.js +16 -0
- data/spec/paperclip-app/app/assets/stylesheets/application.css +15 -0
- data/spec/paperclip-app/app/controllers/application_controller.rb +5 -0
- data/spec/paperclip-app/app/controllers/concerns/.keep +0 -0
- data/spec/paperclip-app/app/helpers/application_helper.rb +2 -0
- data/spec/paperclip-app/app/mailers/.keep +0 -0
- data/spec/paperclip-app/app/models/.keep +0 -0
- data/spec/paperclip-app/app/models/concerns/.keep +0 -0
- data/spec/paperclip-app/app/models/test_paperclip.rb +9 -0
- data/spec/paperclip-app/app/views/layouts/application.html.erb +14 -0
- data/spec/paperclip-app/bin/bundle +3 -0
- data/spec/paperclip-app/bin/rails +8 -0
- data/spec/paperclip-app/bin/rake +8 -0
- data/spec/paperclip-app/bin/spring +18 -0
- data/spec/paperclip-app/config/application.rb +23 -0
- data/spec/paperclip-app/config/boot.rb +4 -0
- data/spec/paperclip-app/config/database.yml +25 -0
- data/spec/paperclip-app/config/environment.rb +5 -0
- data/spec/paperclip-app/config/environments/development.rb +37 -0
- data/spec/paperclip-app/config/environments/production.rb +82 -0
- data/spec/paperclip-app/config/environments/test.rb +39 -0
- data/spec/paperclip-app/config/initializers/assets.rb +8 -0
- data/spec/paperclip-app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/paperclip-app/config/initializers/cookies_serializer.rb +3 -0
- data/spec/paperclip-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/paperclip-app/config/initializers/inflections.rb +16 -0
- data/spec/paperclip-app/config/initializers/mime_types.rb +4 -0
- data/spec/paperclip-app/config/initializers/session_store.rb +3 -0
- data/spec/paperclip-app/config/initializers/wrap_parameters.rb +14 -0
- data/spec/paperclip-app/config/locales/en.yml +23 -0
- data/spec/paperclip-app/config/routes.rb +56 -0
- data/spec/paperclip-app/config/secrets.yml +22 -0
- data/spec/paperclip-app/config.ru +4 -0
- data/spec/paperclip-app/db/migrate/20140626105022_create_test_paperclips.rb +8 -0
- data/spec/paperclip-app/db/migrate/20140626114326_add_attachment_avatar_to_test_paperclips.rb +11 -0
- data/spec/paperclip-app/db/schema.rb +25 -0
- data/spec/paperclip-app/db/seeds.rb +7 -0
- data/spec/paperclip-app/lib/assets/.keep +0 -0
- data/spec/paperclip-app/lib/tasks/.keep +0 -0
- data/spec/paperclip-app/log/.keep +0 -0
- data/spec/paperclip-app/public/404.html +67 -0
- data/spec/paperclip-app/public/422.html +67 -0
- data/spec/paperclip-app/public/500.html +66 -0
- data/spec/paperclip-app/public/favicon.ico +0 -0
- data/spec/paperclip-app/public/robots.txt +5 -0
- data/spec/paperclip-app/vendor/assets/javascripts/.keep +0 -0
- data/spec/paperclip-app/vendor/assets/stylesheets/.keep +0 -0
- data/spec/spec_helper.rb +5 -3
- metadata +141 -16
@@ -0,0 +1,56 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
3
|
+
# See how all your routes lay out with "rake routes".
|
4
|
+
|
5
|
+
# You can have the root of your site routed with "root"
|
6
|
+
# root 'welcome#index'
|
7
|
+
|
8
|
+
# Example of regular route:
|
9
|
+
# get 'products/:id' => 'catalog#view'
|
10
|
+
|
11
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
12
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
13
|
+
|
14
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
15
|
+
# resources :products
|
16
|
+
|
17
|
+
# Example resource route with options:
|
18
|
+
# resources :products do
|
19
|
+
# member do
|
20
|
+
# get 'short'
|
21
|
+
# post 'toggle'
|
22
|
+
# end
|
23
|
+
#
|
24
|
+
# collection do
|
25
|
+
# get 'sold'
|
26
|
+
# end
|
27
|
+
# end
|
28
|
+
|
29
|
+
# Example resource route with sub-resources:
|
30
|
+
# resources :products do
|
31
|
+
# resources :comments, :sales
|
32
|
+
# resource :seller
|
33
|
+
# end
|
34
|
+
|
35
|
+
# Example resource route with more complex sub-resources:
|
36
|
+
# resources :products do
|
37
|
+
# resources :comments
|
38
|
+
# resources :sales do
|
39
|
+
# get 'recent', on: :collection
|
40
|
+
# end
|
41
|
+
# end
|
42
|
+
|
43
|
+
# Example resource route with concerns:
|
44
|
+
# concern :toggleable do
|
45
|
+
# post 'toggle'
|
46
|
+
# end
|
47
|
+
# resources :posts, concerns: :toggleable
|
48
|
+
# resources :photos, concerns: :toggleable
|
49
|
+
|
50
|
+
# Example resource route within a namespace:
|
51
|
+
# namespace :admin do
|
52
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
53
|
+
# # (app/controllers/admin/products_controller.rb)
|
54
|
+
# resources :products
|
55
|
+
# end
|
56
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 6b95e1e05e8fbc388d59aee17d50fc65bbc8ac56380d31b8343e57777c2e1930bfaca68d11044842f20c9f8d343e8f84c366dfd61b1a76ebf27ad899fb312156
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 6cebb0a67cb0385ed20cccc0eb20cdd1e0b8150242a61967b6f2edf2f752bd3a9fbaff961efec8d1be5acd2b82129c6c50ad25971f440dde14382b66bdf3406b
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20140626114326) do
|
15
|
+
|
16
|
+
create_table "test_paperclips", force: true do |t|
|
17
|
+
t.datetime "created_at"
|
18
|
+
t.datetime "updated_at"
|
19
|
+
t.string "avatar_file_name"
|
20
|
+
t.string "avatar_content_type"
|
21
|
+
t.integer "avatar_file_size"
|
22
|
+
t.datetime "avatar_updated_at"
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
+
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
|
+
#
|
4
|
+
# Examples:
|
5
|
+
#
|
6
|
+
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
7
|
+
# Mayor.create(name: 'Emanuel', city: cities.first)
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
@@ -8,7 +8,6 @@ end
|
|
8
8
|
|
9
9
|
SimpleCov.configure do
|
10
10
|
clean_filters
|
11
|
-
load_adapter 'test_frameworks'
|
12
11
|
end
|
13
12
|
|
14
13
|
ENV["COVERAGE"] && SimpleCov.start do
|
@@ -17,13 +16,16 @@ end
|
|
17
16
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
18
17
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
19
18
|
|
20
|
-
require 'rspec'
|
21
19
|
require 'paperclip_redis'
|
20
|
+
require 'paperclip-app/config/environment'
|
21
|
+
require 'rails/all'
|
22
|
+
require 'rspec/rails'
|
23
|
+
require "paperclip/matchers"
|
22
24
|
|
23
25
|
# Requires supporting files with custom matchers and macros, etc,
|
24
26
|
# in ./support/ and its subdirectories.
|
25
27
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
26
28
|
|
27
29
|
RSpec.configure do |config|
|
28
|
-
|
30
|
+
config.include Paperclip::Shoulda::Matchers
|
29
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip_redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel W. Crompton
|
@@ -9,48 +9,48 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: paperclip
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - '>='
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - '>='
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: redis
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - '>='
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - '>='
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: shoulda
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - '>='
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - '>='
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
@@ -99,28 +99,98 @@ dependencies:
|
|
99
99
|
name: simplecov
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - '>='
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- -
|
109
|
+
- - '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: guard-rspec
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: guard-yard
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - '>='
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: rails
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - '>='
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: 4.0.0
|
147
|
+
type: :development
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 4.0.0
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: sqlite3
|
156
|
+
requirement: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - '>='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
type: :development
|
162
|
+
prerelease: false
|
163
|
+
version_requirements: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - '>='
|
110
166
|
- !ruby/object:Gem::Version
|
111
167
|
version: '0'
|
112
168
|
- !ruby/object:Gem::Dependency
|
113
169
|
name: rspec
|
114
170
|
requirement: !ruby/object:Gem::Requirement
|
115
171
|
requirements:
|
116
|
-
- -
|
172
|
+
- - '>='
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
type: :development
|
176
|
+
prerelease: false
|
177
|
+
version_requirements: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
- !ruby/object:Gem::Dependency
|
183
|
+
name: rspec-rails
|
184
|
+
requirement: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - '>='
|
117
187
|
- !ruby/object:Gem::Version
|
118
188
|
version: '0'
|
119
189
|
type: :development
|
120
190
|
prerelease: false
|
121
191
|
version_requirements: !ruby/object:Gem::Requirement
|
122
192
|
requirements:
|
123
|
-
- -
|
193
|
+
- - '>='
|
124
194
|
- !ruby/object:Gem::Version
|
125
195
|
version: '0'
|
126
196
|
description: This module stores the image files in Redis
|
@@ -146,7 +216,62 @@ files:
|
|
146
216
|
- lib/paperclip/storage/redis.rb
|
147
217
|
- lib/paperclip_redis.rb
|
148
218
|
- paperclip_redis.gemspec
|
149
|
-
- spec/
|
219
|
+
- spec/file.png
|
220
|
+
- spec/models/paperclip_model_spec.rb
|
221
|
+
- spec/models/paperclip_redis_spec.rb
|
222
|
+
- spec/paperclip-app/.gitignore
|
223
|
+
- spec/paperclip-app/Gemfile
|
224
|
+
- spec/paperclip-app/Gemfile.lock
|
225
|
+
- spec/paperclip-app/README.rdoc
|
226
|
+
- spec/paperclip-app/Rakefile
|
227
|
+
- spec/paperclip-app/app/assets/images/.keep
|
228
|
+
- spec/paperclip-app/app/assets/javascripts/application.js
|
229
|
+
- spec/paperclip-app/app/assets/stylesheets/application.css
|
230
|
+
- spec/paperclip-app/app/controllers/application_controller.rb
|
231
|
+
- spec/paperclip-app/app/controllers/concerns/.keep
|
232
|
+
- spec/paperclip-app/app/helpers/application_helper.rb
|
233
|
+
- spec/paperclip-app/app/mailers/.keep
|
234
|
+
- spec/paperclip-app/app/models/.keep
|
235
|
+
- spec/paperclip-app/app/models/concerns/.keep
|
236
|
+
- spec/paperclip-app/app/models/test_paperclip.rb
|
237
|
+
- spec/paperclip-app/app/views/layouts/application.html.erb
|
238
|
+
- spec/paperclip-app/bin/bundle
|
239
|
+
- spec/paperclip-app/bin/rails
|
240
|
+
- spec/paperclip-app/bin/rake
|
241
|
+
- spec/paperclip-app/bin/spring
|
242
|
+
- spec/paperclip-app/config.ru
|
243
|
+
- spec/paperclip-app/config/application.rb
|
244
|
+
- spec/paperclip-app/config/boot.rb
|
245
|
+
- spec/paperclip-app/config/database.yml
|
246
|
+
- spec/paperclip-app/config/environment.rb
|
247
|
+
- spec/paperclip-app/config/environments/development.rb
|
248
|
+
- spec/paperclip-app/config/environments/production.rb
|
249
|
+
- spec/paperclip-app/config/environments/test.rb
|
250
|
+
- spec/paperclip-app/config/initializers/assets.rb
|
251
|
+
- spec/paperclip-app/config/initializers/backtrace_silencers.rb
|
252
|
+
- spec/paperclip-app/config/initializers/cookies_serializer.rb
|
253
|
+
- spec/paperclip-app/config/initializers/filter_parameter_logging.rb
|
254
|
+
- spec/paperclip-app/config/initializers/inflections.rb
|
255
|
+
- spec/paperclip-app/config/initializers/mime_types.rb
|
256
|
+
- spec/paperclip-app/config/initializers/session_store.rb
|
257
|
+
- spec/paperclip-app/config/initializers/wrap_parameters.rb
|
258
|
+
- spec/paperclip-app/config/locales/en.yml
|
259
|
+
- spec/paperclip-app/config/routes.rb
|
260
|
+
- spec/paperclip-app/config/secrets.yml
|
261
|
+
- spec/paperclip-app/db/migrate/20140626105022_create_test_paperclips.rb
|
262
|
+
- spec/paperclip-app/db/migrate/20140626114326_add_attachment_avatar_to_test_paperclips.rb
|
263
|
+
- spec/paperclip-app/db/schema.rb
|
264
|
+
- spec/paperclip-app/db/seeds.rb
|
265
|
+
- spec/paperclip-app/lib/assets/.keep
|
266
|
+
- spec/paperclip-app/lib/tasks/.keep
|
267
|
+
- spec/paperclip-app/log/.keep
|
268
|
+
- spec/paperclip-app/public/404.html
|
269
|
+
- spec/paperclip-app/public/422.html
|
270
|
+
- spec/paperclip-app/public/500.html
|
271
|
+
- spec/paperclip-app/public/favicon.ico
|
272
|
+
- spec/paperclip-app/public/robots.txt
|
273
|
+
- spec/paperclip-app/vendor/assets/javascripts/.keep
|
274
|
+
- spec/paperclip-app/vendor/assets/stylesheets/.keep
|
150
275
|
- spec/spec_helper.rb
|
151
276
|
homepage: http://github.com/webhat/paperclip_redis
|
152
277
|
licenses:
|
@@ -158,17 +283,17 @@ require_paths:
|
|
158
283
|
- lib
|
159
284
|
required_ruby_version: !ruby/object:Gem::Requirement
|
160
285
|
requirements:
|
161
|
-
- -
|
286
|
+
- - '>='
|
162
287
|
- !ruby/object:Gem::Version
|
163
288
|
version: '0'
|
164
289
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
290
|
requirements:
|
166
|
-
- -
|
291
|
+
- - '>='
|
167
292
|
- !ruby/object:Gem::Version
|
168
293
|
version: '0'
|
169
294
|
requirements: []
|
170
295
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
296
|
+
rubygems_version: 2.0.6
|
172
297
|
signing_key:
|
173
298
|
specification_version: 4
|
174
299
|
summary: Store Images in Redis
|