carrierwave-postgresql-table 0.1.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 606a3f681178f3501773588c990aa65d44f454a3
4
- data.tar.gz: 2e1d3f645eb2565a0f3c1a9c1331fbb6e568ecbb
3
+ metadata.gz: 1acea8b0ae20a4bb912ce7d5a5df5e2571a9a02f
4
+ data.tar.gz: '03580cc9b8b753506515ede6e7288acad0b42a79'
5
5
  SHA512:
6
- metadata.gz: c5d6d260bd95518750cf02e803a5ad185d5b2707fc8d8d028dfbc5acc6eefe8aa5ba831ccb385d045f78426a7ba9e9e91b93a4ff954c570fa2ed88743e326248
7
- data.tar.gz: 0e8b18b78ac51fe9a651f2baf9e2f117dc649eae92d0d1f31c123c597485692362c65aca087459fb6c4acd88626501312af8ee594d6d5ab6c9485c3e5f753ee3
6
+ metadata.gz: c9c0dfd5c70067a3854f01c8840ba288b6740fd5b816649074297d08a05e2c4a9ec3c36cabbd1ec0808a109a8f32eb17cd5328dc09d32905a2df1873f8eb04e6
7
+ data.tar.gz: 26822a70714b3f0783f9e8bd4a6fd85a6814232fe9a8c59decdfbb577e30bcfa41e708524d76c0892448b3cd40f72ef1ba980ccd2db1207cb33b27b4b754e46f
data/Appraisals CHANGED
@@ -4,11 +4,11 @@ appraise "carrierwave-0.11-rails-4.2" do
4
4
  end
5
5
 
6
6
  appraise "carrierwave-1.0.0-rails-4.2" do
7
- gem "carrierwave", "~> 1.0.0.beta"
7
+ gem "carrierwave", "~> 1.0.0"
8
8
  gem "rails", "~> 4.2.7"
9
9
  end
10
10
 
11
11
  appraise "carrierwave-1.0.0-rails-5.0" do
12
- gem "carrierwave", "~> 1.0.0.beta"
12
+ gem "carrierwave", "~> 1.0.0"
13
13
  gem "rails", "~> 5.0.0"
14
14
  end
@@ -0,0 +1,31 @@
1
+ # Change Log
2
+
3
+ ## [1.0.0] - 2017-04-09
4
+
5
+ ### Fixed
6
+ - Fix the Rack application when running with Rails under a relative URL root.
7
+ - Fix the Rack application to return 404 not found responses for unknown files.
8
+
9
+ ### Changed
10
+ - Test against final, released version of CarrierWave 1.0.0.
11
+
12
+ ## [0.1.3] - 2016-09-28
13
+
14
+ ### Fixed
15
+ - Don't delete non-cached files when cleaning the cache.
16
+
17
+ ## [0.1.2] - 2016-09-25
18
+
19
+ ### Fixed
20
+ - Fix when connecting as a non-superuser account to PostgreSQL.
21
+
22
+ ## [0.1.1] - 2016-09-25
23
+
24
+ ### Fixed
25
+ - Fix `move_to` resulting in duplicate records.
26
+ - Fix `copy_to` leaving left over records in table.
27
+
28
+ ## [0.1.0] - 2016-09-25
29
+
30
+ ### Added
31
+ - Initial release.
data/README.md CHANGED
@@ -19,7 +19,7 @@ gem "carrierwave-postgresql-table"
19
19
  carrierwave-postgresql-table is tested against the following versions of CarrierWave and Rails:
20
20
 
21
21
  - CarrierWave 0.11
22
- - CarrierWave 1.0 (beta)
22
+ - CarrierWave 1.0
23
23
  - Rails 4.2
24
24
  - Rails 5.0
25
25
 
@@ -27,6 +27,8 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "appraisal", "~> 2.1.0"
28
28
  spec.add_development_dependency "database_cleaner", "~> 1.5.3"
29
29
  spec.add_development_dependency "bundler", "~> 1.12"
30
+ spec.add_development_dependency "rails", "> 4.2"
30
31
  spec.add_development_dependency "rake", "~> 10.0"
32
+ spec.add_development_dependency "rack-test", "~> 0.6.3"
31
33
  spec.add_development_dependency "minitest", "~> 5.0"
32
34
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- carrierwave-postgresql-table (0.1.2)
4
+ carrierwave-postgresql-table (1.0.0)
5
5
  activerecord
6
6
  carrierwave
7
7
  pg
@@ -9,38 +9,37 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionmailer (4.2.7.1)
13
- actionpack (= 4.2.7.1)
14
- actionview (= 4.2.7.1)
15
- activejob (= 4.2.7.1)
12
+ actionmailer (4.2.8)
13
+ actionpack (= 4.2.8)
14
+ actionview (= 4.2.8)
15
+ activejob (= 4.2.8)
16
16
  mail (~> 2.5, >= 2.5.4)
17
17
  rails-dom-testing (~> 1.0, >= 1.0.5)
18
- actionpack (4.2.7.1)
19
- actionview (= 4.2.7.1)
20
- activesupport (= 4.2.7.1)
18
+ actionpack (4.2.8)
19
+ actionview (= 4.2.8)
20
+ activesupport (= 4.2.8)
21
21
  rack (~> 1.6)
22
22
  rack-test (~> 0.6.2)
23
23
  rails-dom-testing (~> 1.0, >= 1.0.5)
24
24
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
25
- actionview (4.2.7.1)
26
- activesupport (= 4.2.7.1)
25
+ actionview (4.2.8)
26
+ activesupport (= 4.2.8)
27
27
  builder (~> 3.1)
28
28
  erubis (~> 2.7.0)
29
29
  rails-dom-testing (~> 1.0, >= 1.0.5)
30
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
31
- activejob (4.2.7.1)
32
- activesupport (= 4.2.7.1)
30
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
31
+ activejob (4.2.8)
32
+ activesupport (= 4.2.8)
33
33
  globalid (>= 0.3.0)
34
- activemodel (4.2.7.1)
35
- activesupport (= 4.2.7.1)
34
+ activemodel (4.2.8)
35
+ activesupport (= 4.2.8)
36
36
  builder (~> 3.1)
37
- activerecord (4.2.7.1)
38
- activemodel (= 4.2.7.1)
39
- activesupport (= 4.2.7.1)
37
+ activerecord (4.2.8)
38
+ activemodel (= 4.2.8)
39
+ activesupport (= 4.2.8)
40
40
  arel (~> 6.0)
41
- activesupport (4.2.7.1)
41
+ activesupport (4.2.8)
42
42
  i18n (~> 0.7)
43
- json (~> 1.7, >= 1.7.7)
44
43
  minitest (~> 5.1)
45
44
  thread_safe (~> 0.3, >= 0.3.4)
46
45
  tzinfo (~> 1.1)
@@ -48,21 +47,21 @@ GEM
48
47
  bundler
49
48
  rake
50
49
  thor (>= 0.14.0)
51
- arel (6.0.3)
52
- builder (3.2.2)
50
+ arel (6.0.4)
51
+ builder (3.2.3)
53
52
  carrierwave (0.11.2)
54
53
  activemodel (>= 3.2.0)
55
54
  activesupport (>= 3.2.0)
56
55
  json (>= 1.7)
57
56
  mime-types (>= 1.16)
58
57
  mimemagic (>= 0.3.0)
59
- concurrent-ruby (1.0.2)
58
+ concurrent-ruby (1.0.5)
60
59
  database_cleaner (1.5.3)
61
60
  erubis (2.7.0)
62
61
  globalid (0.3.7)
63
62
  activesupport (>= 4.1.0)
64
- i18n (0.7.0)
65
- json (1.8.3)
63
+ i18n (0.8.1)
64
+ json (2.0.3)
66
65
  loofah (2.0.3)
67
66
  nokogiri (>= 1.5.9)
68
67
  mail (2.6.4)
@@ -72,50 +71,48 @@ GEM
72
71
  mime-types-data (3.2016.0521)
73
72
  mimemagic (0.3.2)
74
73
  mini_portile2 (2.1.0)
75
- minitest (5.9.0)
76
- nokogiri (1.6.8)
74
+ minitest (5.10.1)
75
+ nokogiri (1.7.1)
77
76
  mini_portile2 (~> 2.1.0)
78
- pkg-config (~> 1.1.7)
79
- pg (0.19.0)
80
- pkg-config (1.1.7)
81
- rack (1.6.4)
77
+ pg (0.20.0)
78
+ rack (1.6.5)
82
79
  rack-test (0.6.3)
83
80
  rack (>= 1.0)
84
- rails (4.2.7.1)
85
- actionmailer (= 4.2.7.1)
86
- actionpack (= 4.2.7.1)
87
- actionview (= 4.2.7.1)
88
- activejob (= 4.2.7.1)
89
- activemodel (= 4.2.7.1)
90
- activerecord (= 4.2.7.1)
91
- activesupport (= 4.2.7.1)
81
+ rails (4.2.8)
82
+ actionmailer (= 4.2.8)
83
+ actionpack (= 4.2.8)
84
+ actionview (= 4.2.8)
85
+ activejob (= 4.2.8)
86
+ activemodel (= 4.2.8)
87
+ activerecord (= 4.2.8)
88
+ activesupport (= 4.2.8)
92
89
  bundler (>= 1.3.0, < 2.0)
93
- railties (= 4.2.7.1)
90
+ railties (= 4.2.8)
94
91
  sprockets-rails
95
92
  rails-deprecated_sanitizer (1.0.3)
96
93
  activesupport (>= 4.2.0.alpha)
97
- rails-dom-testing (1.0.7)
94
+ rails-dom-testing (1.0.8)
98
95
  activesupport (>= 4.2.0.beta, < 5.0)
99
- nokogiri (~> 1.6.0)
96
+ nokogiri (~> 1.6)
100
97
  rails-deprecated_sanitizer (>= 1.0.1)
101
98
  rails-html-sanitizer (1.0.3)
102
99
  loofah (~> 2.0)
103
- railties (4.2.7.1)
104
- actionpack (= 4.2.7.1)
105
- activesupport (= 4.2.7.1)
100
+ railties (4.2.8)
101
+ actionpack (= 4.2.8)
102
+ activesupport (= 4.2.8)
106
103
  rake (>= 0.8.7)
107
104
  thor (>= 0.18.1, < 2.0)
108
105
  rake (10.5.0)
109
- sprockets (3.7.0)
106
+ sprockets (3.7.1)
110
107
  concurrent-ruby (~> 1.0)
111
108
  rack (> 1, < 3)
112
109
  sprockets-rails (3.2.0)
113
110
  actionpack (>= 4.0)
114
111
  activesupport (>= 4.0)
115
112
  sprockets (>= 3.0.0)
116
- thor (0.19.1)
117
- thread_safe (0.3.5)
118
- tzinfo (1.2.2)
113
+ thor (0.19.4)
114
+ thread_safe (0.3.6)
115
+ tzinfo (1.2.3)
119
116
  thread_safe (~> 0.1)
120
117
 
121
118
  PLATFORMS
@@ -128,8 +125,9 @@ DEPENDENCIES
128
125
  carrierwave-postgresql-table!
129
126
  database_cleaner (~> 1.5.3)
130
127
  minitest (~> 5.0)
128
+ rack-test (~> 0.6.3)
131
129
  rails (~> 4.2.7)
132
130
  rake (~> 10.0)
133
131
 
134
132
  BUNDLED WITH
135
- 1.13.1
133
+ 1.14.6
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "carrierwave", "~> 1.0.0.beta"
5
+ gem "carrierwave", "~> 1.0.0"
6
6
  gem "rails", "~> 4.2.7"
7
7
 
8
8
  gemspec :path => "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- carrierwave-postgresql-table (0.1.2)
4
+ carrierwave-postgresql-table (1.0.0)
5
5
  activerecord
6
6
  carrierwave
7
7
  pg
@@ -9,38 +9,37 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionmailer (4.2.7.1)
13
- actionpack (= 4.2.7.1)
14
- actionview (= 4.2.7.1)
15
- activejob (= 4.2.7.1)
12
+ actionmailer (4.2.8)
13
+ actionpack (= 4.2.8)
14
+ actionview (= 4.2.8)
15
+ activejob (= 4.2.8)
16
16
  mail (~> 2.5, >= 2.5.4)
17
17
  rails-dom-testing (~> 1.0, >= 1.0.5)
18
- actionpack (4.2.7.1)
19
- actionview (= 4.2.7.1)
20
- activesupport (= 4.2.7.1)
18
+ actionpack (4.2.8)
19
+ actionview (= 4.2.8)
20
+ activesupport (= 4.2.8)
21
21
  rack (~> 1.6)
22
22
  rack-test (~> 0.6.2)
23
23
  rails-dom-testing (~> 1.0, >= 1.0.5)
24
24
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
25
- actionview (4.2.7.1)
26
- activesupport (= 4.2.7.1)
25
+ actionview (4.2.8)
26
+ activesupport (= 4.2.8)
27
27
  builder (~> 3.1)
28
28
  erubis (~> 2.7.0)
29
29
  rails-dom-testing (~> 1.0, >= 1.0.5)
30
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
31
- activejob (4.2.7.1)
32
- activesupport (= 4.2.7.1)
30
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
31
+ activejob (4.2.8)
32
+ activesupport (= 4.2.8)
33
33
  globalid (>= 0.3.0)
34
- activemodel (4.2.7.1)
35
- activesupport (= 4.2.7.1)
34
+ activemodel (4.2.8)
35
+ activesupport (= 4.2.8)
36
36
  builder (~> 3.1)
37
- activerecord (4.2.7.1)
38
- activemodel (= 4.2.7.1)
39
- activesupport (= 4.2.7.1)
37
+ activerecord (4.2.8)
38
+ activemodel (= 4.2.8)
39
+ activesupport (= 4.2.8)
40
40
  arel (~> 6.0)
41
- activesupport (4.2.7.1)
41
+ activesupport (4.2.8)
42
42
  i18n (~> 0.7)
43
- json (~> 1.7, >= 1.7.7)
44
43
  minitest (~> 5.1)
45
44
  thread_safe (~> 0.3, >= 0.3.4)
46
45
  tzinfo (~> 1.1)
@@ -48,19 +47,18 @@ GEM
48
47
  bundler
49
48
  rake
50
49
  thor (>= 0.14.0)
51
- arel (6.0.3)
52
- builder (3.2.2)
53
- carrierwave (1.0.0.beta)
50
+ arel (6.0.4)
51
+ builder (3.2.3)
52
+ carrierwave (1.0.0)
54
53
  activemodel (>= 4.0.0)
55
54
  activesupport (>= 4.0.0)
56
55
  mime-types (>= 1.16)
57
- concurrent-ruby (1.0.2)
56
+ concurrent-ruby (1.0.5)
58
57
  database_cleaner (1.5.3)
59
58
  erubis (2.7.0)
60
59
  globalid (0.3.7)
61
60
  activesupport (>= 4.1.0)
62
- i18n (0.7.0)
63
- json (1.8.3)
61
+ i18n (0.8.1)
64
62
  loofah (2.0.3)
65
63
  nokogiri (>= 1.5.9)
66
64
  mail (2.6.4)
@@ -69,50 +67,48 @@ GEM
69
67
  mime-types-data (~> 3.2015)
70
68
  mime-types-data (3.2016.0521)
71
69
  mini_portile2 (2.1.0)
72
- minitest (5.9.0)
73
- nokogiri (1.6.8)
70
+ minitest (5.10.1)
71
+ nokogiri (1.7.1)
74
72
  mini_portile2 (~> 2.1.0)
75
- pkg-config (~> 1.1.7)
76
- pg (0.19.0)
77
- pkg-config (1.1.7)
78
- rack (1.6.4)
73
+ pg (0.20.0)
74
+ rack (1.6.5)
79
75
  rack-test (0.6.3)
80
76
  rack (>= 1.0)
81
- rails (4.2.7.1)
82
- actionmailer (= 4.2.7.1)
83
- actionpack (= 4.2.7.1)
84
- actionview (= 4.2.7.1)
85
- activejob (= 4.2.7.1)
86
- activemodel (= 4.2.7.1)
87
- activerecord (= 4.2.7.1)
88
- activesupport (= 4.2.7.1)
77
+ rails (4.2.8)
78
+ actionmailer (= 4.2.8)
79
+ actionpack (= 4.2.8)
80
+ actionview (= 4.2.8)
81
+ activejob (= 4.2.8)
82
+ activemodel (= 4.2.8)
83
+ activerecord (= 4.2.8)
84
+ activesupport (= 4.2.8)
89
85
  bundler (>= 1.3.0, < 2.0)
90
- railties (= 4.2.7.1)
86
+ railties (= 4.2.8)
91
87
  sprockets-rails
92
88
  rails-deprecated_sanitizer (1.0.3)
93
89
  activesupport (>= 4.2.0.alpha)
94
- rails-dom-testing (1.0.7)
90
+ rails-dom-testing (1.0.8)
95
91
  activesupport (>= 4.2.0.beta, < 5.0)
96
- nokogiri (~> 1.6.0)
92
+ nokogiri (~> 1.6)
97
93
  rails-deprecated_sanitizer (>= 1.0.1)
98
94
  rails-html-sanitizer (1.0.3)
99
95
  loofah (~> 2.0)
100
- railties (4.2.7.1)
101
- actionpack (= 4.2.7.1)
102
- activesupport (= 4.2.7.1)
96
+ railties (4.2.8)
97
+ actionpack (= 4.2.8)
98
+ activesupport (= 4.2.8)
103
99
  rake (>= 0.8.7)
104
100
  thor (>= 0.18.1, < 2.0)
105
101
  rake (10.5.0)
106
- sprockets (3.7.0)
102
+ sprockets (3.7.1)
107
103
  concurrent-ruby (~> 1.0)
108
104
  rack (> 1, < 3)
109
105
  sprockets-rails (3.2.0)
110
106
  actionpack (>= 4.0)
111
107
  activesupport (>= 4.0)
112
108
  sprockets (>= 3.0.0)
113
- thor (0.19.1)
114
- thread_safe (0.3.5)
115
- tzinfo (1.2.2)
109
+ thor (0.19.4)
110
+ thread_safe (0.3.6)
111
+ tzinfo (1.2.3)
116
112
  thread_safe (~> 0.1)
117
113
 
118
114
  PLATFORMS
@@ -121,12 +117,13 @@ PLATFORMS
121
117
  DEPENDENCIES
122
118
  appraisal (~> 2.1.0)
123
119
  bundler (~> 1.12)
124
- carrierwave (~> 1.0.0.beta)
120
+ carrierwave (~> 1.0.0)
125
121
  carrierwave-postgresql-table!
126
122
  database_cleaner (~> 1.5.3)
127
123
  minitest (~> 5.0)
124
+ rack-test (~> 0.6.3)
128
125
  rails (~> 4.2.7)
129
126
  rake (~> 10.0)
130
127
 
131
128
  BUNDLED WITH
132
- 1.13.1
129
+ 1.14.6
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "carrierwave", "~> 1.0.0.beta"
5
+ gem "carrierwave", "~> 1.0.0"
6
6
  gem "rails", "~> 5.0.0"
7
7
 
8
8
  gemspec :path => "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- carrierwave-postgresql-table (0.1.2)
4
+ carrierwave-postgresql-table (1.0.0)
5
5
  activerecord
6
6
  carrierwave
7
7
  pg
@@ -9,39 +9,39 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actioncable (5.0.0.1)
13
- actionpack (= 5.0.0.1)
14
- nio4r (~> 1.2)
12
+ actioncable (5.0.2)
13
+ actionpack (= 5.0.2)
14
+ nio4r (>= 1.2, < 3.0)
15
15
  websocket-driver (~> 0.6.1)
16
- actionmailer (5.0.0.1)
17
- actionpack (= 5.0.0.1)
18
- actionview (= 5.0.0.1)
19
- activejob (= 5.0.0.1)
16
+ actionmailer (5.0.2)
17
+ actionpack (= 5.0.2)
18
+ actionview (= 5.0.2)
19
+ activejob (= 5.0.2)
20
20
  mail (~> 2.5, >= 2.5.4)
21
21
  rails-dom-testing (~> 2.0)
22
- actionpack (5.0.0.1)
23
- actionview (= 5.0.0.1)
24
- activesupport (= 5.0.0.1)
22
+ actionpack (5.0.2)
23
+ actionview (= 5.0.2)
24
+ activesupport (= 5.0.2)
25
25
  rack (~> 2.0)
26
26
  rack-test (~> 0.6.3)
27
27
  rails-dom-testing (~> 2.0)
28
28
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- actionview (5.0.0.1)
30
- activesupport (= 5.0.0.1)
29
+ actionview (5.0.2)
30
+ activesupport (= 5.0.2)
31
31
  builder (~> 3.1)
32
32
  erubis (~> 2.7.0)
33
33
  rails-dom-testing (~> 2.0)
34
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
35
- activejob (5.0.0.1)
36
- activesupport (= 5.0.0.1)
34
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
+ activejob (5.0.2)
36
+ activesupport (= 5.0.2)
37
37
  globalid (>= 0.3.6)
38
- activemodel (5.0.0.1)
39
- activesupport (= 5.0.0.1)
40
- activerecord (5.0.0.1)
41
- activemodel (= 5.0.0.1)
42
- activesupport (= 5.0.0.1)
38
+ activemodel (5.0.2)
39
+ activesupport (= 5.0.2)
40
+ activerecord (5.0.2)
41
+ activemodel (= 5.0.2)
42
+ activesupport (= 5.0.2)
43
43
  arel (~> 7.0)
44
- activesupport (5.0.0.1)
44
+ activesupport (5.0.2)
45
45
  concurrent-ruby (~> 1.0, >= 1.0.2)
46
46
  i18n (~> 0.7)
47
47
  minitest (~> 5.1)
@@ -50,18 +50,18 @@ GEM
50
50
  bundler
51
51
  rake
52
52
  thor (>= 0.14.0)
53
- arel (7.1.2)
54
- builder (3.2.2)
55
- carrierwave (1.0.0.beta)
53
+ arel (7.1.4)
54
+ builder (3.2.3)
55
+ carrierwave (1.0.0)
56
56
  activemodel (>= 4.0.0)
57
57
  activesupport (>= 4.0.0)
58
58
  mime-types (>= 1.16)
59
- concurrent-ruby (1.0.2)
59
+ concurrent-ruby (1.0.5)
60
60
  database_cleaner (1.5.3)
61
61
  erubis (2.7.0)
62
62
  globalid (0.3.7)
63
63
  activesupport (>= 4.1.0)
64
- i18n (0.7.0)
64
+ i18n (0.8.1)
65
65
  loofah (2.0.3)
66
66
  nokogiri (>= 1.5.9)
67
67
  mail (2.6.4)
@@ -71,52 +71,50 @@ GEM
71
71
  mime-types-data (~> 3.2015)
72
72
  mime-types-data (3.2016.0521)
73
73
  mini_portile2 (2.1.0)
74
- minitest (5.9.0)
75
- nio4r (1.2.1)
76
- nokogiri (1.6.8)
74
+ minitest (5.10.1)
75
+ nio4r (2.0.0)
76
+ nokogiri (1.7.1)
77
77
  mini_portile2 (~> 2.1.0)
78
- pkg-config (~> 1.1.7)
79
- pg (0.19.0)
80
- pkg-config (1.1.7)
78
+ pg (0.20.0)
81
79
  rack (2.0.1)
82
80
  rack-test (0.6.3)
83
81
  rack (>= 1.0)
84
- rails (5.0.0.1)
85
- actioncable (= 5.0.0.1)
86
- actionmailer (= 5.0.0.1)
87
- actionpack (= 5.0.0.1)
88
- actionview (= 5.0.0.1)
89
- activejob (= 5.0.0.1)
90
- activemodel (= 5.0.0.1)
91
- activerecord (= 5.0.0.1)
92
- activesupport (= 5.0.0.1)
82
+ rails (5.0.2)
83
+ actioncable (= 5.0.2)
84
+ actionmailer (= 5.0.2)
85
+ actionpack (= 5.0.2)
86
+ actionview (= 5.0.2)
87
+ activejob (= 5.0.2)
88
+ activemodel (= 5.0.2)
89
+ activerecord (= 5.0.2)
90
+ activesupport (= 5.0.2)
93
91
  bundler (>= 1.3.0, < 2.0)
94
- railties (= 5.0.0.1)
92
+ railties (= 5.0.2)
95
93
  sprockets-rails (>= 2.0.0)
96
- rails-dom-testing (2.0.1)
94
+ rails-dom-testing (2.0.2)
97
95
  activesupport (>= 4.2.0, < 6.0)
98
- nokogiri (~> 1.6.0)
96
+ nokogiri (~> 1.6)
99
97
  rails-html-sanitizer (1.0.3)
100
98
  loofah (~> 2.0)
101
- railties (5.0.0.1)
102
- actionpack (= 5.0.0.1)
103
- activesupport (= 5.0.0.1)
99
+ railties (5.0.2)
100
+ actionpack (= 5.0.2)
101
+ activesupport (= 5.0.2)
104
102
  method_source
105
103
  rake (>= 0.8.7)
106
104
  thor (>= 0.18.1, < 2.0)
107
105
  rake (10.5.0)
108
- sprockets (3.7.0)
106
+ sprockets (3.7.1)
109
107
  concurrent-ruby (~> 1.0)
110
108
  rack (> 1, < 3)
111
109
  sprockets-rails (3.2.0)
112
110
  actionpack (>= 4.0)
113
111
  activesupport (>= 4.0)
114
112
  sprockets (>= 3.0.0)
115
- thor (0.19.1)
116
- thread_safe (0.3.5)
117
- tzinfo (1.2.2)
113
+ thor (0.19.4)
114
+ thread_safe (0.3.6)
115
+ tzinfo (1.2.3)
118
116
  thread_safe (~> 0.1)
119
- websocket-driver (0.6.4)
117
+ websocket-driver (0.6.5)
120
118
  websocket-extensions (>= 0.1.0)
121
119
  websocket-extensions (0.1.2)
122
120
 
@@ -126,12 +124,13 @@ PLATFORMS
126
124
  DEPENDENCIES
127
125
  appraisal (~> 2.1.0)
128
126
  bundler (~> 1.12)
129
- carrierwave (~> 1.0.0.beta)
127
+ carrierwave (~> 1.0.0)
130
128
  carrierwave-postgresql-table!
131
129
  database_cleaner (~> 1.5.3)
132
130
  minitest (~> 5.0)
131
+ rack-test (~> 0.6.3)
133
132
  rails (~> 5.0.0)
134
133
  rake (~> 10.0)
135
134
 
136
135
  BUNDLED WITH
137
- 1.13.1
136
+ 1.14.6
@@ -6,7 +6,16 @@ module CarrierWave
6
6
  def call(env)
7
7
  request = Rack::Request.new(env)
8
8
 
9
- file = CarrierWave::Storage::PostgresqlTable::File.new(request.path.sub(/^\//, ""))
9
+ strip_prefix = "/"
10
+ if(defined?(Rails) && Rails.application && Rails.application.config.relative_url_root)
11
+ strip_prefix = File.join(Rails.application.config.relative_url_root, "/")
12
+ end
13
+ path = request.path.sub(/^#{Regexp.escape(strip_prefix)}/, "")
14
+ file = CarrierWave::Storage::PostgresqlTable::File.new(path)
15
+
16
+ unless(file.exists?)
17
+ return [404, { "Content-Type" => "text/plain" }, "Not Found"]
18
+ end
10
19
 
11
20
  headers = {
12
21
  "Last-Modified" => file.last_modified.httpdate,
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module PostgresqlTable
3
- VERSION = "0.1.3"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -171,6 +171,10 @@ module CarrierWave
171
171
  retry
172
172
  end
173
173
  end
174
+
175
+ def exists?
176
+ @record && @record.persisted?
177
+ end
174
178
  end
175
179
 
176
180
  def move_to(new_path)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-postgresql-table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Muerdter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-29 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.12'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">"
102
+ - !ruby/object:Gem::Version
103
+ version: '4.2'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">"
109
+ - !ruby/object:Gem::Version
110
+ version: '4.2'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rake
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +122,20 @@ dependencies:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
124
  version: '10.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rack-test
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.6.3
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.6.3
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: minitest
113
141
  requirement: !ruby/object:Gem::Requirement
@@ -131,6 +159,7 @@ extra_rdoc_files: []
131
159
  files:
132
160
  - ".gitignore"
133
161
  - Appraisals
162
+ - CHANGELOG.md
134
163
  - Gemfile
135
164
  - LICENSE.txt
136
165
  - README.md
@@ -172,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
201
  version: '0'
173
202
  requirements: []
174
203
  rubyforge_project:
175
- rubygems_version: 2.5.1
204
+ rubygems_version: 2.5.2
176
205
  signing_key:
177
206
  specification_version: 4
178
207
  summary: Store CarrierWave files in PostgreSQL (supporting multiple versions per uploader).