file_blobs_rails 0.1.0 → 0.2.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc1739959bccd1657b2283239b10875b92ded4c2
|
|
4
|
+
data.tar.gz: fda8865e07e1a00d7141b956dbf9e8fa19d53df4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c53f96a7ec4701ffc194850ef355a5b8830a51742e184833e91427d49370836c2200b45685b361dc6bd92161af47cc5c5a400233f54807441c3c568d6ccc783b
|
|
7
|
+
data.tar.gz: 1de57330fe64125016df4aa73a9c849b6cb38a0bfbb47de6b05c73d2e84d71dec7f42dc1814f56eab715ae7bcd71a9f81a390f9a4f43d487b7a1f9aee77a4ec2
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.2.0
|
data/file_blobs_rails.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: file_blobs_rails 0.
|
|
5
|
+
# stub: file_blobs_rails 0.2.0 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "file_blobs_rails"
|
|
9
|
-
s.version = "0.
|
|
9
|
+
s.version = "0.2.0"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Victor Costan"]
|
|
14
|
-
s.date = "2016-
|
|
14
|
+
s.date = "2016-11-13"
|
|
15
15
|
s.description = "This gem is a quick way to add database-backed file storage to a Rails application. Files are stored in a dedicated table and de-duplicated."
|
|
16
16
|
s.email = "victor@costan.us"
|
|
17
17
|
s.extra_rdoc_files = [
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
class <%= file_name.classify %> < ActiveRecord::Base
|
|
2
|
-
has_file_blob :<%= options[:attr_name] %>,
|
|
2
|
+
has_file_blob :<%= options[:attr_name] %>, allow_nil: <%= options[:allow_nil] %>, blob_model: <%= options[:blob_model].classify.inspect %>
|
|
3
3
|
end
|
|
@@ -11,9 +11,9 @@ class FileBlobProxyTest < ActiveSupport::TestCase
|
|
|
11
11
|
assert_equal GemTestBlob, @message.attachment.blob_class
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
test '#
|
|
15
|
-
assert_equal false, @blob_owner.file.
|
|
16
|
-
assert_equal true, @message.attachment.
|
|
14
|
+
test '#allow_nil?' do
|
|
15
|
+
assert_equal false, @blob_owner.file.allow_nil?
|
|
16
|
+
assert_equal true, @message.attachment.allow_nil?
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
test '#owner' do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: file_blobs_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Victor Costan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-11-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|