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: e59d8ef24cfcfbe754958ec6cc6d3738ea171310
4
- data.tar.gz: 55425bd03ec6e54a4732ddbc6810ec0b214214d9
3
+ metadata.gz: fc1739959bccd1657b2283239b10875b92ded4c2
4
+ data.tar.gz: fda8865e07e1a00d7141b956dbf9e8fa19d53df4
5
5
  SHA512:
6
- metadata.gz: 72ad0068869c62356dc0d9ac688df7a194073784a4e65c7ebd2b611d04985666816856b3fa959255fd92cb4e0fce606d8a8081494c98ac7e7e070818857707d2
7
- data.tar.gz: 96f2dbbb3ddce003287ca49632382b1bf8766f90212faa84e50ead5812afdfb386e65edfc9c9d8ab549daf7068602fe9f664099a3584782b97302b416a8110e2
6
+ metadata.gz: c53f96a7ec4701ffc194850ef355a5b8830a51742e184833e91427d49370836c2200b45685b361dc6bd92161af47cc5c5a400233f54807441c3c568d6ccc783b
7
+ data.tar.gz: 1de57330fe64125016df4aa73a9c849b6cb38a0bfbb47de6b05c73d2e84d71dec7f42dc1814f56eab715ae7bcd71a9f81a390f9a4f43d487b7a1f9aee77a4ec2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -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.1.0 ruby lib
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.1.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-10-31"
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 = [
@@ -122,7 +122,7 @@ module ActiveRecordExtensions::ClassMethods
122
122
  def blob_class
123
123
  #{blob_model}
124
124
  end
125
- def allows_nil?
125
+ def allow_nil?
126
126
  #{allow_nil}
127
127
  end
128
128
  attr_reader :owner
@@ -1,3 +1,3 @@
1
1
  class <%= file_name.classify %> < ActiveRecord::Base
2
- has_file_blob :<%= options[:attr_name] %>, allows_nil: <%= options[:allow_nil] %>, blob_model: <%= options[:blob_model].classify.inspect %>
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 '#allows_nil?' do
15
- assert_equal false, @blob_owner.file.allows_nil?
16
- assert_equal true, @message.attachment.allows_nil?
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.1.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-10-31 00:00:00.000000000 Z
11
+ date: 2016-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails