effective_assets 1.2.5 → 1.3.0

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: a86a59f4d74f4beca65e775b0635ee72eaa830aa
4
- data.tar.gz: 5575f2a0e62e9f0dff6f5167393b1d111253cec7
3
+ metadata.gz: 160c04b9bda2f5142520959215381c7b8d8b2f2b
4
+ data.tar.gz: 5bbf8413fae92e984a7a7477afbce819cfd7ea86
5
5
  SHA512:
6
- metadata.gz: 987b187eaf4975516d26945239e00cbf860d090fd00fae9e514dc42287d7df0ef97f3d65f94c2f88901396e8f072b4b09462db849a50b136a74c0b2d60fc80d6
7
- data.tar.gz: 3ed41d5c9ef2267665c3b22bb4df85deb97c461f26dcd36ec0861d03c7799f4d70a5a087d0a9d11158a020b46bf0d8d5743b0bbc866604f2b1fe998d5bb712bd
6
+ metadata.gz: e7bed61b177038a1b442b8d1e3495d27b29b51f696dc49109c58dd596ba42da5fbbadfcce20cf1f45c91bac46f9dbaa4b656e3438894bdb286ff03cb0b7e4f17
7
+ data.tar.gz: 41995bd175a697e1cb2ba902519982575b9a425128e59d5739eed7fa4414a953ca915dbc05503c7d4503c061b0495c6cc09e706420867f49a6566db8d15ac77c
@@ -25,6 +25,11 @@ module EffectiveAssets
25
25
  end
26
26
  end
27
27
 
28
+ # Set up our default configuration options.
29
+ initializer "effective_assets.defaults", :before => :load_config_initializers do |app|
30
+ eval File.read("#{config.root}/lib/generators/templates/effective_assets.rb")
31
+ end
32
+
28
33
  initializer "effective_assets.append_precompiled_assets" do |app|
29
34
  Rails.application.config.assets.precompile += ['effective_assets.js', 'effective_assets_iframe.js', 'effective_assets_iframe.css', 'spinner.gif']
30
35
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveAssets
2
- VERSION = '1.2.5'.freeze
2
+ VERSION = '1.3.0'.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 = AssetUploader if defined?(AssetUploader) # 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.2.5
4
+ version: 1.3.0
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-04-15 00:00:00.000000000 Z
11
+ date: 2015-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails