brightcontent-attachments 2.1.0 → 2.1.1

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: 9fe1f577211b1bff0afc4b534bcea4542074de68
4
- data.tar.gz: 325702f3a132bf2655a27b0bc013699b191e4927
3
+ metadata.gz: 03fb02b1878e72fe3041b83eaa5380ad19cc98e2
4
+ data.tar.gz: 71982af229c693f391ba99103fae1b5f18c0567d
5
5
  SHA512:
6
- metadata.gz: 66247189162509cd49e45c686ae5ad59a260053110da12da42bb3f5ce975fef2d97918d8f2b1f0079ba8881c06c87676a33944c200d1fced267d188cec991c54
7
- data.tar.gz: 83d89ffac4c3f21c62f0818c7d73ad35e3cbe1f32fa0cac70c302e2972ee58b644e80f70594eaad9bb641160b8a7800004dca1ac369ca85e7197e682cf578298
6
+ metadata.gz: 572f2c8976736d27f54c5370cbb9c079d357d43589334b6177b1c8a1abdbd25e7a8f3aff4fd343fdfe7f4fdb6923514b9495e48d2d012285dc833ec6a9d84dca
7
+ data.tar.gz: 03056679b624c263c401d35b53ae0df6be1237ca347dd17b32883af08470307d89b37a7a778ed02bd415ffe09d6036a684dd882a29e8f9804c86514f83e6c836
@@ -14,6 +14,8 @@ module Brightcontent
14
14
  validates :attachable, presence: true
15
15
  validates :asset, attachment_presence: true
16
16
 
17
+ attr_accessible *column_names if defined? ProtectedAttributes
18
+
17
19
  def self.reposition!(positions)
18
20
  positions.map! &:to_i
19
21
  transaction do
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.add_dependency "jquery-fileupload-rails"
21
21
 
22
22
  s.add_development_dependency "sqlite3"
23
+ s.add_development_dependency "rspec", "~> 2.14.1"
23
24
  s.add_development_dependency "rspec-rails"
24
25
  s.add_development_dependency "capybara"
25
26
  s.add_development_dependency "launchy"
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.1.0
4
+ version: 2.1.1
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: 2014-05-19 00:00:00.000000000 Z
11
+ date: 2014-08-01 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.1.0
19
+ version: 2.1.1
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.1.0
26
+ version: 2.1.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: paperclip
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.14.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.14.1
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rspec-rails
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -186,7 +200,6 @@ files:
186
200
  - spec/dummy/config/routes.rb
187
201
  - spec/dummy/db/migrate/20121206121725_create_brightcontent_admin_users.rb
188
202
  - spec/dummy/db/migrate/20121206225720_create_blogs.rb
189
- - spec/dummy/db/schema.rb
190
203
  - spec/dummy/lib/assets/.gitkeep
191
204
  - spec/dummy/public/404.html
192
205
  - spec/dummy/public/422.html
@@ -269,7 +282,6 @@ test_files:
269
282
  - spec/dummy/config/routes.rb
270
283
  - spec/dummy/db/migrate/20121206121725_create_brightcontent_admin_users.rb
271
284
  - spec/dummy/db/migrate/20121206225720_create_blogs.rb
272
- - spec/dummy/db/schema.rb
273
285
  - spec/dummy/lib/assets/.gitkeep
274
286
  - spec/dummy/public/404.html
275
287
  - spec/dummy/public/422.html
@@ -1,45 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20140203140819) do
15
-
16
- create_table "blogs", force: true do |t|
17
- t.string "name"
18
- t.text "body"
19
- t.datetime "created_at", null: false
20
- t.datetime "updated_at", null: false
21
- end
22
-
23
- create_table "brightcontent_admin_users", force: true do |t|
24
- t.string "email"
25
- t.string "password_digest"
26
- t.datetime "created_at", null: false
27
- t.datetime "updated_at", null: false
28
- end
29
-
30
- create_table "brightcontent_attachments", force: true do |t|
31
- t.integer "attachable_id"
32
- t.string "attachable_type"
33
- t.string "asset_file_name"
34
- t.string "asset_content_type"
35
- t.integer "asset_file_size"
36
- t.datetime "asset_updated_at"
37
- t.datetime "created_at", null: false
38
- t.datetime "updated_at", null: false
39
- t.integer "position"
40
- end
41
-
42
- add_index "brightcontent_attachments", ["attachable_id"], name: "index_brightcontent_attachments_on_attachable_id"
43
- add_index "brightcontent_attachments", ["attachable_type"], name: "index_brightcontent_attachments_on_attachable_type"
44
-
45
- end