paperclip_database 0.3.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm ruby-1.9.2-p320
data/Appraisals CHANGED
@@ -1,20 +1,125 @@
1
+ #-*- ruby -*-
1
2
  appraise "rails2_legacy" do
2
- gem "rails", "~> 2.3.14"
3
- gem "paperclip", "2.3.1"
3
+ gem "rails", "~> 2.3"
4
+ gem "paperclip", "~> 2.3"
4
5
  gem "paperclip_database", :path => "../"
5
6
  end
6
7
 
7
- appraise "rails2" do
8
- gem "rails", "~> 2.3.14"
8
+ appraise "rails2_paperclip25" do
9
+ gem "rails", "~> 2.3"
10
+ gem "paperclip", "~> 2.5"
9
11
  gem "paperclip_database", :path => "../"
10
12
  end
11
13
 
12
- appraise "rails3" do
13
- gem "rails", "~> 3.0.10"
14
+ appraise "rails2_paperclip26" do
15
+ gem "rails", "~> 2.3"
16
+ gem "paperclip", "~> 2.6"
14
17
  gem "paperclip_database", :path => "../"
15
18
  end
16
19
 
17
- appraise "rails3_1" do
18
- gem "rails", "~> 3.1.0"
20
+ appraise "rails2_paperclip27" do
21
+ gem "rails", "~> 2.3"
22
+ gem "paperclip", "~> 2.7"
19
23
  gem "paperclip_database", :path => "../"
20
24
  end
25
+
26
+
27
+ ## Rails 3.0
28
+
29
+ appraise "rails30_paperclip25" do
30
+ gem "rails", "~> 3.0"
31
+ gem "paperclip", "~> 2.5"
32
+ gem "paperclip_database", :path => "../"
33
+ end
34
+
35
+ appraise "rails30_paperclip26" do
36
+ gem "rails", "~> 3.0"
37
+ gem "paperclip", "~> 2.6"
38
+ gem "paperclip_database", :path => "../"
39
+ end
40
+
41
+ appraise "rails30_paperclip27" do
42
+ gem "rails", "~> 3.0"
43
+ gem "paperclip", "~> 2.7"
44
+ gem "paperclip_database", :path => "../"
45
+ end
46
+
47
+ appraise "rails30_paperclip30" do
48
+ gem "rails", "~> 3.0"
49
+ gem "paperclip", "~> 3.0"
50
+ gem "paperclip_database", :path => "../"
51
+ end
52
+
53
+ appraise "rails30_paperclip31" do
54
+ gem "rails", "~> 3.0"
55
+ gem "paperclip", "~> 3.1"
56
+ gem "paperclip_database", :path => "../"
57
+ end
58
+
59
+
60
+ ## Rails 3.1
61
+
62
+ appraise "rails31_paperclip25" do
63
+ gem "rails", "~> 3.1"
64
+ gem "paperclip", "~> 2.5"
65
+ gem "paperclip_database", :path => "../"
66
+ end
67
+
68
+ appraise "rails31_paperclip26" do
69
+ gem "rails", "~> 3.1"
70
+ gem "paperclip", "~> 2.6"
71
+ gem "paperclip_database", :path => "../"
72
+ end
73
+
74
+ appraise "rails31_paperclip27" do
75
+ gem "rails", "~> 3.1"
76
+ gem "paperclip", "~> 2.7"
77
+ gem "paperclip_database", :path => "../"
78
+ end
79
+
80
+ appraise "rails31_paperclip30" do
81
+ gem "rails", "~> 3.1"
82
+ gem "paperclip", "~> 3.0"
83
+ gem "paperclip_database", :path => "../"
84
+ end
85
+
86
+ appraise "rails31_paperclip31" do
87
+ gem "rails", "~> 3.1"
88
+ gem "paperclip", "~> 3.1"
89
+ gem "paperclip_database", :path => "../"
90
+ end
91
+
92
+
93
+ ## Rails 3.2
94
+
95
+ appraise "rails32_paperclip25" do
96
+ gem "rails", "~> 3.2"
97
+ gem "paperclip", "~> 2.5"
98
+ gem "paperclip_database", :path => "../"
99
+ end
100
+
101
+ appraise "rails32_paperclip26" do
102
+ gem "rails", "~> 3.2"
103
+ gem "paperclip", "~> 2.6"
104
+ gem "paperclip_database", :path => "../"
105
+ end
106
+
107
+ appraise "rails32_paperclip27" do
108
+ gem "rails", "~> 3.2"
109
+ gem "paperclip", "~> 2.7"
110
+ gem "paperclip_database", :path => "../"
111
+ end
112
+
113
+ appraise "rails32_paperclip30" do
114
+ gem "rails", "~> 3.2"
115
+ gem "paperclip", "~> 3.0"
116
+ gem "paperclip_database", :path => "../"
117
+ end
118
+
119
+ appraise "rails32_paperclip31" do
120
+ gem "rails", "~> 3.2"
121
+ gem "paperclip", "~> 3.1"
122
+ gem "paperclip_database", :path => "../"
123
+ end
124
+
125
+
data/Gemfile.lock CHANGED
@@ -1,27 +1,28 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paperclip_database (0.3.0)
4
+ paperclip_database (1.0.0)
5
5
  paperclip
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- activemodel (3.2.1)
11
- activesupport (= 3.2.1)
10
+ activemodel (3.2.6)
11
+ activesupport (= 3.2.6)
12
12
  builder (~> 3.0.0)
13
- activerecord (3.2.1)
14
- activemodel (= 3.2.1)
15
- activesupport (= 3.2.1)
16
- arel (~> 3.0.0)
13
+ activerecord (3.2.6)
14
+ activemodel (= 3.2.6)
15
+ activesupport (= 3.2.6)
16
+ arel (~> 3.0.2)
17
17
  tzinfo (~> 0.3.29)
18
- activesupport (3.2.1)
18
+ activesupport (3.2.6)
19
19
  i18n (~> 0.6)
20
20
  multi_json (~> 1.0)
21
- appraisal (0.4.0)
21
+ addressable (2.2.8)
22
+ appraisal (0.4.1)
22
23
  bundler
23
24
  rake
24
- arel (3.0.0)
25
+ arel (3.0.2)
25
26
  aruba (0.4.11)
26
27
  childprocess (>= 0.2.3)
27
28
  cucumber (>= 1.1.1)
@@ -35,54 +36,59 @@ GEM
35
36
  rack-test (>= 0.5.4)
36
37
  selenium-webdriver (~> 2.0)
37
38
  xpath (~> 0.1.4)
38
- childprocess (0.3.0)
39
+ childprocess (0.3.3)
39
40
  ffi (~> 1.0.6)
40
41
  cocaine (0.2.1)
41
- cucumber (1.1.4)
42
+ cucumber (1.1.9)
42
43
  builder (>= 2.1.2)
43
44
  diff-lcs (>= 1.1.2)
44
- gherkin (~> 2.7.1)
45
+ gherkin (~> 2.9.0)
45
46
  json (>= 1.4.6)
46
47
  term-ansicolor (>= 1.0.6)
47
48
  diff-lcs (1.1.3)
48
49
  fakeweb (1.3.0)
49
50
  ffi (1.0.11)
50
- gherkin (2.7.4)
51
+ gherkin (2.9.3)
51
52
  json (>= 1.4.6)
52
53
  i18n (0.6.0)
53
- json (1.6.5)
54
+ json (1.7.3)
55
+ launchy (2.1.0)
56
+ addressable (~> 2.2.6)
57
+ libwebsocket (0.1.3)
58
+ addressable
54
59
  metaclass (0.0.1)
55
- mime-types (1.17.2)
56
- mocha (0.10.3)
60
+ mime-types (1.19)
61
+ mocha (0.11.4)
57
62
  metaclass (~> 0.0.1)
58
- multi_json (1.0.4)
59
- nokogiri (1.5.0)
60
- paperclip (2.5.2)
61
- activerecord (>= 2.3.0)
62
- activesupport (>= 2.3.2)
63
+ multi_json (1.3.6)
64
+ nokogiri (1.5.5)
65
+ paperclip (3.1.2)
66
+ activemodel (>= 3.0.0)
67
+ activerecord (>= 3.0.0)
68
+ activesupport (>= 3.0.0)
63
69
  cocaine (>= 0.0.2)
64
70
  mime-types
65
71
  rack (1.4.1)
66
72
  rack-test (0.6.1)
67
73
  rack (>= 1.0)
68
74
  rake (0.9.2.2)
69
- rspec (2.8.0)
70
- rspec-core (~> 2.8.0)
71
- rspec-expectations (~> 2.8.0)
72
- rspec-mocks (~> 2.8.0)
73
- rspec-core (2.8.0)
74
- rspec-expectations (2.8.0)
75
- diff-lcs (~> 1.1.2)
76
- rspec-mocks (2.8.0)
77
- rubyzip (0.9.5)
78
- selenium-webdriver (2.18.0)
75
+ rspec (2.10.0)
76
+ rspec-core (~> 2.10.0)
77
+ rspec-expectations (~> 2.10.0)
78
+ rspec-mocks (~> 2.10.0)
79
+ rspec-core (2.10.1)
80
+ rspec-expectations (2.10.0)
81
+ diff-lcs (~> 1.1.3)
82
+ rspec-mocks (2.10.1)
83
+ rubyzip (0.9.9)
84
+ selenium-webdriver (2.24.0)
79
85
  childprocess (>= 0.2.5)
80
- ffi (~> 1.0.9)
81
- multi_json (~> 1.0.4)
86
+ libwebsocket (~> 0.1.3)
87
+ multi_json (~> 1.0)
82
88
  rubyzip
83
- sqlite3 (1.3.5)
89
+ sqlite3 (1.3.6)
84
90
  term-ansicolor (1.0.7)
85
- tzinfo (0.3.31)
91
+ tzinfo (0.3.33)
86
92
  xpath (0.1.4)
87
93
  nokogiri (~> 1.3)
88
94
 
@@ -90,12 +96,13 @@ PLATFORMS
90
96
  ruby
91
97
 
92
98
  DEPENDENCIES
93
- appraisal (~> 0.4.0)
99
+ appraisal (~> 0.4.1)
94
100
  aruba
95
101
  bundler
96
102
  capybara
97
103
  cucumber (~> 1.1.0)
98
104
  fakeweb
105
+ launchy (~> 2.1.0)
99
106
  mocha
100
107
  paperclip_database!
101
108
  rake
data/README.md ADDED
@@ -0,0 +1,122 @@
1
+ Paperclip Database Storage
2
+ ==========================
3
+
4
+ Paperclip Database Storage is an additional storage option for
5
+ Paperclip. It give you the opportunity to store your paperclip binary
6
+ file uploads in the database along with all your other data.
7
+
8
+ Requirements
9
+ ------------
10
+
11
+ `paperclip_database` depends on `paperclip`
12
+
13
+ Installation
14
+ ------------
15
+
16
+ Paperclip Database Storage is distributed as a gem, which is how it
17
+ should be used in your app.
18
+
19
+ Include the gem in your Gemfile:
20
+
21
+ gem "paperclip_database", "~> 2.0"
22
+
23
+ Or, if you want to get the latest, you can get master from the main
24
+ paperclip repository:
25
+
26
+ gem "paperclip_database", :git => "git://github.com/softace/paperclip_database.git"
27
+
28
+ If you're trying to use features that don't seem to be in the latest
29
+ released gem, but are mentioned in this README, then you probably need
30
+ to specify the master branch if you want to use them. This README is
31
+ probably ahead of the latest released version, if you're reading it on
32
+ GitHub.
33
+
34
+ For rails 2 you should add this to snippet to your environment.
35
+
36
+ # In config/environment.rb
37
+ ...
38
+ Rails::Initializer.run do |config|
39
+ ...
40
+ config.gem "paperclip", :version => "~> 2.4"
41
+ ...
42
+ end
43
+
44
+ Supported Versions
45
+ ------------------
46
+
47
+ Supported version are rails >= 2.3 and paperclip version >= 2.5
48
+
49
+ Quick Start
50
+ -----------
51
+
52
+ There is no quick start. You definitely need to understand how to use
53
+ paperclip first.
54
+
55
+ Usage
56
+ -----
57
+
58
+ You use `paperclip_database` by specifying `database` as storage for
59
+ your paperclip and create a migration for the additional database
60
+ table.
61
+
62
+ In your model:
63
+
64
+ class User < ActiveRecord::Base
65
+ has_attached_file :avatar,
66
+ :storage => :database ## This is the essence
67
+ :styles => { :medium => "300x300>", :thumb => "100x100>" }
68
+ end
69
+
70
+ There is a migration generator that will create a basic migration for
71
+ the extra table.
72
+
73
+ On the console (rails 2):
74
+
75
+ ./script/generate paperclip_database_migration User avatar
76
+
77
+ On the console (rails 3):
78
+
79
+ rails generate paperclip_database_migration User avatar
80
+
81
+ The generated migration should be sufficient, but yo may consider
82
+ adding additional code to it such as `t.timestamps` for adding
83
+ standard rails timesstamps or a referential database constraint. If
84
+ you add a refferential constraint with the option `ON DELETE CASCADE`,
85
+ then you need to add the option `:cascade_deletion => true` to your
86
+ paperclip `has_attached_file` declaration.
87
+
88
+ Development
89
+ -----------
90
+
91
+ To start develop, please download the source code
92
+
93
+ git clone git://github.com/softace/paperclip_database.git
94
+
95
+ When downloaded, you can start issuing the commands like
96
+
97
+ bundle install
98
+ bundle exec rake appraisal:gemfiles
99
+ bundle exec rake appraisal:install
100
+ bundle exec rake all
101
+
102
+ Or you can see what other options are there:
103
+
104
+ bundle exec rake -T
105
+
106
+
107
+ History
108
+ -------
109
+
110
+ Paperclip Database Storage is heavily inspired by [this blog by Pat
111
+ Shaughnessy](http://patshaughnessy.net/2009/2/19/database-storage-for-paperclip). The
112
+ initial source code for that blog is no longer available, but the code
113
+ in this gem is based on that initial code.
114
+
115
+
116
+
117
+ Copyright
118
+ ---------
119
+
120
+ Copyright (c) 2012 Jarl Friis. See LICENSE.txt for
121
+ further details.
122
+
@@ -15,6 +15,7 @@ Feature: Rails integration
15
15
  :storage => :database,
16
16
  :database_table => :user_attachments,
17
17
  :url => '/user_attachment_views/:id?style=:style'
18
+ attr_accessible :name, :attachment
18
19
  """
19
20
  And I run a rails generator to generate a "UserAttachmentView" scaffold with ""
20
21
  Given I add this snippet to the "user_attachment_views" controller:
@@ -10,7 +10,6 @@ Given /^I generate a new rails application$/ do
10
10
  gem "sqlite3"
11
11
  gem "capybara"
12
12
  gem "gherkin"
13
- gem "aws-sdk"
14
13
  gem "paperclip", "#{paperclip_version}"
15
14
  """
16
15
  And I configure the application to use "paperclip_database" from this project
@@ -2,8 +2,8 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "rails", "~> 2.3.14"
6
- gem "paperclip", "2.3.1"
5
+ gem "rails", "~> 2.3"
6
+ gem "paperclip", "~> 2.3"
7
7
  gem "paperclip_database", :path=>"../"
8
8
 
9
9
  gemspec :path=>"../"
@@ -2,7 +2,8 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "rails", "~> 2.3.14"
5
+ gem "rails", "~> 2.3"
6
+ gem "paperclip", "~> 2.5"
6
7
  gem "paperclip_database", :path=>"../"
7
8
 
8
9
  gemspec :path=>"../"
@@ -2,7 +2,8 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "rails", "~> 3.0.10"
5
+ gem "rails", "~> 2.3"
6
+ gem "paperclip", "~> 2.6"
6
7
  gem "paperclip_database", :path=>"../"
7
8
 
8
9
  gemspec :path=>"../"
@@ -2,7 +2,8 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "rails", "~> 3.1.0"
5
+ gem "rails", "~> 2.3"
6
+ gem "paperclip", "~> 2.7"
6
7
  gem "paperclip_database", :path=>"../"
7
8
 
8
9
  gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.0"
6
+ gem "paperclip", "~> 2.5"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.0"
6
+ gem "paperclip", "~> 2.6"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.0"
6
+ gem "paperclip", "~> 2.7"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.0"
6
+ gem "paperclip", "~> 3.0"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.0"
6
+ gem "paperclip", "~> 3.1"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.1"
6
+ gem "paperclip", "~> 2.5"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.1"
6
+ gem "paperclip", "~> 2.6"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.1"
6
+ gem "paperclip", "~> 2.7"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.1"
6
+ gem "paperclip", "~> 3.0"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.1"
6
+ gem "paperclip", "~> 3.1"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.2"
6
+ gem "paperclip", "~> 2.5"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.2"
6
+ gem "paperclip", "~> 2.6"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.2"
6
+ gem "paperclip", "~> 2.7"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.2"
6
+ gem "paperclip", "~> 3.0"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "~> 3.2"
6
+ gem "paperclip", "~> 3.1"
7
+ gem "paperclip_database", :path=>"../"
8
+
9
+ gemspec :path=>"../"
@@ -84,13 +84,13 @@ module Paperclip
84
84
  @paperclip_files = "#{instance.class.name.underscore}_#{name.to_s}_paperclip_files"
85
85
  if !Object.const_defined?(@paperclip_files.classify)
86
86
  @paperclip_file = Object.const_set(@paperclip_files.classify, Class.new(::ActiveRecord::Base))
87
- @paperclip_file.set_table_name @options[:database_table] || name.to_s.pluralize
87
+ @paperclip_file.table_name = @options[:database_table] || name.to_s.pluralize
88
88
  @paperclip_file.validates_uniqueness_of :style, :scope => instance.class.table_name.classify.underscore + '_id'
89
89
  case Rails::VERSION::STRING
90
90
  when /^2/
91
91
  @paperclip_file.named_scope :file_for, lambda {|style| { :conditions => ['style = ?', style] }}
92
92
  else # 3.x
93
- @paperclip_file.scope :file_for, lambda {|style| { :conditions => ['style = ?', style] }}
93
+ @paperclip_file.scope :file_for, lambda {|style| @paperclip_file.where('style = ?', style) }
94
94
  end
95
95
  else
96
96
  @paperclip_file = Object.const_get(@paperclip_files.classify)
@@ -139,6 +139,7 @@ module Paperclip
139
139
  @queued_for_write[style]
140
140
  elsif exists?(style)
141
141
  tempfile = Tempfile.new instance_read(:file_name)
142
+ tempfile.binmode
142
143
  tempfile.write file_contents(style)
143
144
  tempfile.flush
144
145
  tempfile.rewind
@@ -166,6 +167,7 @@ module Paperclip
166
167
  paperclip_file = instance.send(@paperclip_files).send(:find_or_create_by_style, style.to_s)
167
168
  paperclip_file.file_contents = file.read
168
169
  paperclip_file.save!
170
+ instance.reload
169
171
  end
170
172
  @queued_for_write = {}
171
173
  end
@@ -1,3 +1,3 @@
1
1
  module PaperclipDatabase
2
- VERSION = "0.3.0" unless defined? PaperclipDatabase::VERSION
2
+ VERSION = "1.0.0" unless defined? PaperclipDatabase::VERSION
3
3
  end
@@ -23,10 +23,11 @@ Gem::Specification.new do |s|
23
23
  s.add_dependency('paperclip')
24
24
 
25
25
  # s.add_development_dependency('shoulda')
26
- s.add_development_dependency('appraisal', '~> 0.4.0')
26
+ s.add_development_dependency('appraisal', '~> 0.4.1')
27
27
  s.add_development_dependency('mocha')
28
28
  s.add_development_dependency('sqlite3', '~> 1.3.4')
29
29
  s.add_development_dependency('cucumber', '~> 1.1.0')
30
+ s.add_development_dependency('launchy', '~> 2.1.0')
30
31
  s.add_development_dependency('aruba')
31
32
  s.add_development_dependency('capybara')
32
33
  s.add_development_dependency('bundler')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip_database
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-02 00:00:00.000000000Z
12
+ date: 2012-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: paperclip
16
- requirement: &26588400 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,21 +21,31 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *26588400
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: appraisal
27
- requirement: &26579600 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
31
36
  - !ruby/object:Gem::Version
32
- version: 0.4.0
37
+ version: 0.4.1
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *26579600
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.4.1
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: mocha
38
- requirement: &26579100 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *26579100
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: sqlite3
49
- requirement: &26578340 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ~>
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: 1.3.4
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *26578340
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.3.4
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: cucumber
60
- requirement: &26577800 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ~>
@@ -65,10 +85,31 @@ dependencies:
65
85
  version: 1.1.0
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *26577800
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 1.1.0
94
+ - !ruby/object:Gem::Dependency
95
+ name: launchy
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 2.1.0
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 2.1.0
69
110
  - !ruby/object:Gem::Dependency
70
111
  name: aruba
71
- requirement: &26577400 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
72
113
  none: false
73
114
  requirements:
74
115
  - - ! '>='
@@ -76,10 +117,15 @@ dependencies:
76
117
  version: '0'
77
118
  type: :development
78
119
  prerelease: false
79
- version_requirements: *26577400
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
80
126
  - !ruby/object:Gem::Dependency
81
127
  name: capybara
82
- requirement: &26576920 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
83
129
  none: false
84
130
  requirements:
85
131
  - - ! '>='
@@ -87,10 +133,15 @@ dependencies:
87
133
  version: '0'
88
134
  type: :development
89
135
  prerelease: false
90
- version_requirements: *26576920
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
91
142
  - !ruby/object:Gem::Dependency
92
143
  name: bundler
93
- requirement: &26576500 !ruby/object:Gem::Requirement
144
+ requirement: !ruby/object:Gem::Requirement
94
145
  none: false
95
146
  requirements:
96
147
  - - ! '>='
@@ -98,10 +149,15 @@ dependencies:
98
149
  version: '0'
99
150
  type: :development
100
151
  prerelease: false
101
- version_requirements: *26576500
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
102
158
  - !ruby/object:Gem::Dependency
103
159
  name: rake
104
- requirement: &26576020 !ruby/object:Gem::Requirement
160
+ requirement: !ruby/object:Gem::Requirement
105
161
  none: false
106
162
  requirements:
107
163
  - - ! '>='
@@ -109,10 +165,15 @@ dependencies:
109
165
  version: '0'
110
166
  type: :development
111
167
  prerelease: false
112
- version_requirements: *26576020
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
113
174
  - !ruby/object:Gem::Dependency
114
175
  name: fakeweb
115
- requirement: &26575600 !ruby/object:Gem::Requirement
176
+ requirement: !ruby/object:Gem::Requirement
116
177
  none: false
117
178
  requirements:
118
179
  - - ! '>='
@@ -120,7 +181,12 @@ dependencies:
120
181
  version: '0'
121
182
  type: :development
122
183
  prerelease: false
123
- version_requirements: *26575600
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
124
190
  description: ! 'To have all your data i one place: the database'
125
191
  email:
126
192
  - jarl@softace.dk
@@ -131,11 +197,12 @@ files:
131
197
  - .document
132
198
  - .gitignore
133
199
  - .rspec
200
+ - .rvmrc
134
201
  - Appraisals
135
202
  - Gemfile
136
203
  - Gemfile.lock
137
204
  - LICENSE.txt
138
- - README.rdoc
205
+ - README.md
139
206
  - Rakefile
140
207
  - features/basic_integration.feature
141
208
  - features/step_definitions/html_steps.rb
@@ -147,10 +214,25 @@ files:
147
214
  - features/support/paths.rb
148
215
  - features/support/rails.rb
149
216
  - features/support/selectors.rb
150
- - gemfiles/rails2.gemfile
151
217
  - gemfiles/rails2_legacy.gemfile
152
- - gemfiles/rails3.gemfile
153
- - gemfiles/rails3_1.gemfile
218
+ - gemfiles/rails2_paperclip25.gemfile
219
+ - gemfiles/rails2_paperclip26.gemfile
220
+ - gemfiles/rails2_paperclip27.gemfile
221
+ - gemfiles/rails30_paperclip25.gemfile
222
+ - gemfiles/rails30_paperclip26.gemfile
223
+ - gemfiles/rails30_paperclip27.gemfile
224
+ - gemfiles/rails30_paperclip30.gemfile
225
+ - gemfiles/rails30_paperclip31.gemfile
226
+ - gemfiles/rails31_paperclip25.gemfile
227
+ - gemfiles/rails31_paperclip26.gemfile
228
+ - gemfiles/rails31_paperclip27.gemfile
229
+ - gemfiles/rails31_paperclip30.gemfile
230
+ - gemfiles/rails31_paperclip31.gemfile
231
+ - gemfiles/rails32_paperclip25.gemfile
232
+ - gemfiles/rails32_paperclip26.gemfile
233
+ - gemfiles/rails32_paperclip27.gemfile
234
+ - gemfiles/rails32_paperclip30.gemfile
235
+ - gemfiles/rails32_paperclip31.gemfile
154
236
  - generators/paperclip_database/USAGE
155
237
  - generators/paperclip_database/paperclip_database_generator.rb
156
238
  - generators/paperclip_database/templates/paperclip_database_migration.rb.erb
@@ -180,7 +262,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
262
  version: '0'
181
263
  segments:
182
264
  - 0
183
- hash: 1872684520246654573
265
+ hash: -247996340476176020
184
266
  required_rubygems_version: !ruby/object:Gem::Requirement
185
267
  none: false
186
268
  requirements:
@@ -189,11 +271,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
271
  version: '0'
190
272
  segments:
191
273
  - 0
192
- hash: 1872684520246654573
274
+ hash: -247996340476176020
193
275
  requirements:
194
276
  - ImageMagick
195
277
  rubyforge_project: paperclip_database
196
- rubygems_version: 1.8.10
278
+ rubygems_version: 1.8.24
197
279
  signing_key:
198
280
  specification_version: 3
199
281
  summary: Database storage for paperclip
data/README.rdoc DELETED
@@ -1,19 +0,0 @@
1
- = paperclip_database
2
-
3
- Description goes here.
4
-
5
- == Contributing to paperclip_database
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2012 Jarl Friis. See LICENSE.txt for
18
- further details.
19
-