brightcontent-attachments 2.4.6 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/db/migrate/20121222172513_create_attachments.rb +1 -1
- data/lib/brightcontent/attachments/attachable.rb +1 -1
- data/spec/dummy/config/application.rb +2 -1
- data/spec/dummy/db/migrate/20121206225720_create_blogs.rb +1 -1
- data/spec/dummy/db/schema.rb +43 -0
- data/spec/spec_helper.rb +1 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b2b8d00058b33fff44eb227978db3343b318e7d8d55bf3dba31a43214aa952a3
|
4
|
+
data.tar.gz: 4016c9065adc62f117569d84eff74d375edc6d4ee47abf595358b91b9b8b90d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab7016a7351f877fadfa2cc934ba175113b3c16858bedec4a1cc5527b99493481ff329f2d678608dd5da681bad8953155f837c532396bf5d524fb7255efd45e2
|
7
|
+
data.tar.gz: cc1d6d66c70a7fbb2d0ba5f0d10bc05611c95682ace9942606017cf54cef6f8fd322370ec70241e24f8069aea923c8339fc0b307cbdebee3674d262b91d2d5f0
|
@@ -5,7 +5,7 @@ module Brightcontent
|
|
5
5
|
|
6
6
|
included do
|
7
7
|
add_brightcontent_column :attachments
|
8
|
-
has_many :attachments, as: :attachable, dependent: :destroy, class_name: Brightcontent::Attachment, inverse_of: :attachable
|
8
|
+
has_many :attachments, as: :attachable, dependent: :destroy, class_name: "Brightcontent::Attachment", inverse_of: :attachable
|
9
9
|
end
|
10
10
|
|
11
11
|
def attachment
|
@@ -20,6 +20,7 @@ module Dummy
|
|
20
20
|
|
21
21
|
# Activate observers that should always be running.
|
22
22
|
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
23
|
+
config.active_record.sqlite3&.represent_boolean_as_integer = true
|
23
24
|
|
24
25
|
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
25
26
|
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
@@ -47,7 +48,7 @@ module Dummy
|
|
47
48
|
config.assets.enabled = true
|
48
49
|
|
49
50
|
# config.i18n.enforce_available_locales = true
|
50
|
-
config.active_record.raise_in_transactional_callbacks = true
|
51
|
+
# config.active_record.raise_in_transactional_callbacks = true
|
51
52
|
|
52
53
|
# Version of your assets, change this if you want to expire all your assets
|
53
54
|
config.assets.version = '1.0'
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(version: 2012_12_22_172513) do
|
14
|
+
|
15
|
+
create_table "blogs", force: :cascade do |t|
|
16
|
+
t.string "name"
|
17
|
+
t.text "body"
|
18
|
+
t.datetime "created_at"
|
19
|
+
t.datetime "updated_at"
|
20
|
+
end
|
21
|
+
|
22
|
+
create_table "brightcontent_admin_users", force: :cascade do |t|
|
23
|
+
t.string "email"
|
24
|
+
t.string "password_digest"
|
25
|
+
t.datetime "created_at"
|
26
|
+
t.datetime "updated_at"
|
27
|
+
end
|
28
|
+
|
29
|
+
create_table "brightcontent_attachments", force: :cascade do |t|
|
30
|
+
t.integer "attachable_id"
|
31
|
+
t.string "attachable_type"
|
32
|
+
t.string "asset_file_name"
|
33
|
+
t.string "asset_content_type"
|
34
|
+
t.integer "asset_file_size"
|
35
|
+
t.datetime "asset_updated_at"
|
36
|
+
t.integer "position"
|
37
|
+
t.datetime "created_at"
|
38
|
+
t.datetime "updated_at"
|
39
|
+
t.index ["attachable_id"], name: "index_brightcontent_attachments_on_attachable_id"
|
40
|
+
t.index ["attachable_type"], name: "index_brightcontent_attachments_on_attachable_type"
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brightcontent-attachments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Developers at Brightin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: brightcontent-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.5.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: paperclip
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- spec/dummy/config/locales/en.yml
|
114
114
|
- spec/dummy/config/routes.rb
|
115
115
|
- spec/dummy/db/migrate/20121206225720_create_blogs.rb
|
116
|
+
- spec/dummy/db/schema.rb
|
116
117
|
- spec/dummy/lib/assets/.gitkeep
|
117
118
|
- spec/dummy/public/404.html
|
118
119
|
- spec/dummy/public/422.html
|
@@ -158,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
159
|
version: '0'
|
159
160
|
requirements: []
|
160
161
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.7.6
|
162
163
|
signing_key:
|
163
164
|
specification_version: 4
|
164
165
|
summary: Assets resource for brightcontent
|
@@ -194,6 +195,7 @@ test_files:
|
|
194
195
|
- spec/dummy/config/locales/en.yml
|
195
196
|
- spec/dummy/config/routes.rb
|
196
197
|
- spec/dummy/db/migrate/20121206225720_create_blogs.rb
|
198
|
+
- spec/dummy/db/schema.rb
|
197
199
|
- spec/dummy/lib/assets/.gitkeep
|
198
200
|
- spec/dummy/public/404.html
|
199
201
|
- spec/dummy/public/422.html
|