paperclip_database 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +54 -0
- data/.rspec +1 -0
- data/Appraisals +14 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +102 -0
- data/LICENSE.txt +26 -0
- data/README.rdoc +19 -0
- data/Rakefile +41 -0
- data/features/basic_integration.feature +29 -0
- data/features/step_definitions/html_steps.rb +15 -0
- data/features/step_definitions/paperclip_database_steps.rb +0 -0
- data/features/step_definitions/rails_steps.rb +193 -0
- data/features/step_definitions/web_steps.rb +209 -0
- data/features/support/env.rb +15 -0
- data/features/support/fakeweb.rb +3 -0
- data/features/support/paths.rb +28 -0
- data/features/support/rails.rb +46 -0
- data/features/support/selectors.rb +19 -0
- data/gemfiles/rails2.gemfile +8 -0
- data/gemfiles/rails3.gemfile +8 -0
- data/gemfiles/rails3_1.gemfile +8 -0
- data/generators/paperclip_database/USAGE +5 -0
- data/generators/paperclip_database/paperclip_database_generator.rb +28 -0
- data/generators/paperclip_database/templates/paperclip_database_migration.rb.erb +17 -0
- data/generators/templates/paperclip_database_migration.rb.erb +17 -0
- data/lib/generators/paperclip_database/USAGE +8 -0
- data/lib/generators/paperclip_database/paperclip_database_generator.rb +33 -0
- data/lib/generators/paperclip_database/templates/paperclip_database_migration.rb.erb +17 -0
- data/lib/paperclip/storage/database.rb +198 -0
- data/lib/paperclip_database/version.rb +3 -0
- data/lib/paperclip_database.rb +4 -0
- data/paperclip_database.gemspec +37 -0
- data/rails/init.rb +3 -0
- data/spec/paperclip_database_spec.rb +7 -0
- data/spec/spec_helper.rb +12 -0
- data/test/fixtures/5k.png +0 -0
- metadata +199 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
$LOAD_PATH.push File.expand_path("../lib", __FILE__)
|
2
|
+
require 'paperclip_database/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "paperclip_database"
|
6
|
+
s.version = PaperclipDatabase::VERSION
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.author = "Jarl Friis"
|
9
|
+
s.email = ["jarl@softace.dk"]
|
10
|
+
s.homepage = "https://github.com/Softace/paperclip_database"
|
11
|
+
s.summary = "Database storage for paperclip"
|
12
|
+
s.description = "To have all your data i one place: the database"
|
13
|
+
|
14
|
+
s.rubyforge_project = "paperclip_database"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
s.requirements << "ImageMagick"
|
22
|
+
|
23
|
+
s.add_dependency('paperclip', '>= 2.5.0')
|
24
|
+
|
25
|
+
# s.add_development_dependency('shoulda')
|
26
|
+
s.add_development_dependency('appraisal', '~> 0.4.0')
|
27
|
+
s.add_development_dependency('mocha')
|
28
|
+
s.add_development_dependency('sqlite3', '~> 1.3.4')
|
29
|
+
s.add_development_dependency('cucumber', '~> 1.1.0')
|
30
|
+
s.add_development_dependency('aruba')
|
31
|
+
s.add_development_dependency('capybara')
|
32
|
+
s.add_development_dependency('bundler')
|
33
|
+
# s.add_development_dependency('cocaine', '~> 0.2')
|
34
|
+
# s.add_development_dependency('fog')
|
35
|
+
s.add_development_dependency('rake')
|
36
|
+
s.add_development_dependency('fakeweb')
|
37
|
+
end
|
data/rails/init.rb
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'paperclip_database'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,199 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: paperclip_database
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jarl Friis
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-01-30 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: paperclip
|
16
|
+
requirement: &13997900 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.5.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *13997900
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: appraisal
|
27
|
+
requirement: &14007300 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.4.0
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *14007300
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: mocha
|
38
|
+
requirement: &14469620 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *14469620
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: sqlite3
|
49
|
+
requirement: &14468840 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.3.4
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *14468840
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: cucumber
|
60
|
+
requirement: &14468080 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.1.0
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *14468080
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: aruba
|
71
|
+
requirement: &14467400 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *14467400
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: capybara
|
82
|
+
requirement: &14466060 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *14466060
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: bundler
|
93
|
+
requirement: &14465400 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
type: :development
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *14465400
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: rake
|
104
|
+
requirement: &14464740 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *14464740
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: fakeweb
|
115
|
+
requirement: &14464180 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *14464180
|
124
|
+
description: ! 'To have all your data i one place: the database'
|
125
|
+
email:
|
126
|
+
- jarl@softace.dk
|
127
|
+
executables: []
|
128
|
+
extensions: []
|
129
|
+
extra_rdoc_files: []
|
130
|
+
files:
|
131
|
+
- .document
|
132
|
+
- .gitignore
|
133
|
+
- .rspec
|
134
|
+
- Appraisals
|
135
|
+
- Gemfile
|
136
|
+
- Gemfile.lock
|
137
|
+
- LICENSE.txt
|
138
|
+
- README.rdoc
|
139
|
+
- Rakefile
|
140
|
+
- features/basic_integration.feature
|
141
|
+
- features/step_definitions/html_steps.rb
|
142
|
+
- features/step_definitions/paperclip_database_steps.rb
|
143
|
+
- features/step_definitions/rails_steps.rb
|
144
|
+
- features/step_definitions/web_steps.rb
|
145
|
+
- features/support/env.rb
|
146
|
+
- features/support/fakeweb.rb
|
147
|
+
- features/support/paths.rb
|
148
|
+
- features/support/rails.rb
|
149
|
+
- features/support/selectors.rb
|
150
|
+
- gemfiles/rails2.gemfile
|
151
|
+
- gemfiles/rails3.gemfile
|
152
|
+
- gemfiles/rails3_1.gemfile
|
153
|
+
- generators/paperclip_database/USAGE
|
154
|
+
- generators/paperclip_database/paperclip_database_generator.rb
|
155
|
+
- generators/paperclip_database/templates/paperclip_database_migration.rb.erb
|
156
|
+
- generators/templates/paperclip_database_migration.rb.erb
|
157
|
+
- lib/generators/paperclip_database/USAGE
|
158
|
+
- lib/generators/paperclip_database/paperclip_database_generator.rb
|
159
|
+
- lib/generators/paperclip_database/templates/paperclip_database_migration.rb.erb
|
160
|
+
- lib/paperclip/storage/database.rb
|
161
|
+
- lib/paperclip_database.rb
|
162
|
+
- lib/paperclip_database/version.rb
|
163
|
+
- paperclip_database.gemspec
|
164
|
+
- rails/init.rb
|
165
|
+
- spec/paperclip_database_spec.rb
|
166
|
+
- spec/spec_helper.rb
|
167
|
+
- test/fixtures/5k.png
|
168
|
+
homepage: https://github.com/Softace/paperclip_database
|
169
|
+
licenses: []
|
170
|
+
post_install_message:
|
171
|
+
rdoc_options: []
|
172
|
+
require_paths:
|
173
|
+
- lib
|
174
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
175
|
+
none: false
|
176
|
+
requirements:
|
177
|
+
- - ! '>='
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
segments:
|
181
|
+
- 0
|
182
|
+
hash: -4401073360080643654
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
+
none: false
|
185
|
+
requirements:
|
186
|
+
- - ! '>='
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '0'
|
189
|
+
segments:
|
190
|
+
- 0
|
191
|
+
hash: -4401073360080643654
|
192
|
+
requirements:
|
193
|
+
- ImageMagick
|
194
|
+
rubyforge_project: paperclip_database
|
195
|
+
rubygems_version: 1.8.10
|
196
|
+
signing_key:
|
197
|
+
specification_version: 3
|
198
|
+
summary: Database storage for paperclip
|
199
|
+
test_files: []
|