effective_assets 1.5.2 → 1.5.3

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: c006f8da2100d57927ae98097485ec52f1106af8
4
- data.tar.gz: 7617b72b67b27d90d0cfc8fe3be3d4abb6fda416
3
+ metadata.gz: 6d12ddf2e317507afadf68ca4c07213c5c4b129b
4
+ data.tar.gz: 2beb8eafb8d02667d023ec956a226491f0b5da15
5
5
  SHA512:
6
- metadata.gz: 8176d543b54d8571828cd6343f71dae8883a43739eba4ec684b24e21a056e4896c020e9c9f448eda4569f98eab28ab5d8bb1c33e704eb21098160b4e2d2d2b7e
7
- data.tar.gz: cc46a87b4664f146a0577502de55907d263cbad1ededa68bb031a273fcd53fdd6bcb095f7c3524ff702dda875302fb4a205ef0d2f945d58ffbd975a0657b0205
6
+ metadata.gz: 97cc2b30e80a17ed3b27b5b5a038d3d51f9e6cba6e84f97c4ec5df79a876e0f25dfd5d6c4c5814fea5afb2b951e9159bfb624bb20eab556e622377493d60f6bf
7
+ data.tar.gz: ec1b78221b5a902884ec20c18e2bad67a7f8cbfd0ec28c31f1d0a4099146e4ed4d16429a0e5e3a2fa996272ad5190900f092e45e47041718b5270eb8f7bdf2d2
data/README.md CHANGED
@@ -484,26 +484,11 @@ DelayedJob (https://github.com/collectiveidea/delayed_job)
484
484
  jQuery-File-Upload (https://github.com/blueimp/jQuery-File-Upload)
485
485
 
486
486
 
487
- ## Testing
488
-
489
- Testing uses the Combustion gem, for easier Rails Engine Testing.
490
-
491
- https://github.com/pat/combustion
492
-
493
- You will need a valid initializer in spec/internal/config/initializers/effective_assets.rb
494
-
495
- Run tests by
496
-
497
- ```ruby
498
- bundle exec guard
499
- ```
500
-
501
487
  ## Contributing
502
488
 
503
489
  1. Fork it
504
490
  2. Create your feature branch (`git checkout -b my-new-feature`)
505
491
  3. Commit your changes (`git commit -am 'Add some feature'`)
506
492
  4. Push to the branch (`git push origin my-new-feature`)
507
- 5. Bonus points for test coverage
508
- 6. Create new Pull Request
493
+ 5. Create new Pull Request
509
494
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveAssets
2
- VERSION = '1.5.2'.freeze
2
+ VERSION = '1.5.3'.freeze
3
3
  end
@@ -4,7 +4,7 @@ EffectiveAssets.setup do |config|
4
4
  config.assets_table_name = :assets
5
5
  config.attachments_table_name = :attachments
6
6
 
7
- config.uploader = AssetUploader # Must extend from EffectiveAssetsUploader
7
+ config.uploader = TestAssetUploader # Must extend from EffectiveAssetsUploader
8
8
 
9
9
  # Authorization Method
10
10
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-30 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -229,17 +229,6 @@ files:
229
229
  - lib/generators/templates/asset_uploader.rb
230
230
  - lib/generators/templates/effective_assets.rb
231
231
  - lib/tasks/effective_assets_tasks.rake
232
- - spec/internal/config/database.yml
233
- - spec/internal/config/initializers/effective_assets.rb
234
- - spec/internal/config/routes.rb
235
- - spec/internal/db/combustion_test.sqlite
236
- - spec/internal/db/schema.rb
237
- - spec/internal/log/test.log
238
- - spec/internal/public/favicon.ico
239
- - spec/internal/public/sprites.png
240
- - spec/models/asset_spec.rb
241
- - spec/spec_helper.rb
242
- - spec/support/factories.rb
243
232
  homepage: https://github.com/code-and-effect/effective_assets
244
233
  licenses:
245
234
  - MIT
@@ -265,15 +254,4 @@ signing_key:
265
254
  specification_version: 4
266
255
  summary: Upload images and files directly to AWS S3 with a custom form input then
267
256
  seamlessly organize and attach them to any ActiveRecord object.
268
- test_files:
269
- - spec/internal/config/database.yml
270
- - spec/internal/config/initializers/effective_assets.rb
271
- - spec/internal/config/routes.rb
272
- - spec/internal/db/combustion_test.sqlite
273
- - spec/internal/db/schema.rb
274
- - spec/internal/log/test.log
275
- - spec/internal/public/favicon.ico
276
- - spec/internal/public/sprites.png
277
- - spec/models/asset_spec.rb
278
- - spec/spec_helper.rb
279
- - spec/support/factories.rb
257
+ test_files: []
@@ -1,3 +0,0 @@
1
- test:
2
- adapter: sqlite3
3
- database: db/combustion_test.sqlite
@@ -1,18 +0,0 @@
1
- # EffectiveAssets Rails Engine
2
-
3
- EffectiveAssets.setup do |config|
4
- config.assets_table_name = :assets
5
- config.attachments_table_name = :attachments
6
-
7
- config.uploader = TestAssetUploader
8
-
9
- # DONT COMMIT ME
10
- config.aws_bucket = 'as-rails-skeleton'
11
- config.aws_access_key_id = 'AKIAJOLWUEBMTM5QJTQQ'
12
- config.aws_secret_access_key = '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'
13
-
14
- config.aws_path = 'assets/'
15
- config.aws_acl = 'public-read'
16
-
17
- config.authorization_method = Proc.new { |controller, action, resource| true }
18
- end
@@ -1,3 +0,0 @@
1
- Rails.application.routes.draw do
2
- #
3
- end
@@ -1,50 +0,0 @@
1
- ActiveRecord::Schema.define do
2
-
3
- create_table "assets", :force => true do |t|
4
- t.string "title"
5
- t.integer "user_id"
6
- t.string "content_type"
7
- t.string "upload_file"
8
- t.string "data"
9
- t.boolean "processed", :default => false
10
- t.integer "data_size"
11
- t.integer "height"
12
- t.integer "width"
13
- t.text "versions_info"
14
- t.datetime "created_at", :null => false
15
- t.datetime "updated_at", :null => false
16
- t.string "aws_acl", :default => "public-read"
17
- end
18
-
19
- add_index "assets", ["content_type"], :name => "index_assets_on_content_type"
20
- add_index "assets", ["user_id"], :name => "index_assets_on_user_id"
21
-
22
- create_table "attachments", :force => true do |t|
23
- t.integer "asset_id"
24
- t.string "attachable_type"
25
- t.integer "attachable_id"
26
- t.integer "position"
27
- t.string "box"
28
- end
29
-
30
- add_index "attachments", ["asset_id"], :name => "index_attachments_on_asset_id"
31
- add_index "attachments", ["attachable_id"], :name => "index_attachments_on_attachable_id"
32
- add_index "attachments", ["attachable_type", "attachable_id"], :name => "index_attachments_on_attachable_type_and_attachable_id"
33
-
34
- create_table "delayed_jobs", :force => true do |t|
35
- t.integer "priority", :default => 0
36
- t.integer "attempts", :default => 0
37
- t.text "handler"
38
- t.text "last_error"
39
- t.datetime "run_at"
40
- t.datetime "locked_at"
41
- t.datetime "failed_at"
42
- t.string "locked_by"
43
- t.string "queue"
44
- t.datetime "created_at", :null => false
45
- t.datetime "updated_at", :null => false
46
- end
47
-
48
- add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
49
-
50
- end