effective_assets 1.9.8 → 1.9.9

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: 6be178f6d429097f2f0eacb3ef3bc163639c0083
4
- data.tar.gz: 26d939f795922ab2c3e1141cf715968a093272f8
3
+ metadata.gz: 3a5ec4c3fd08df8fd4fa4746c988c05a71bbeeb7
4
+ data.tar.gz: 2790762d8b17b592c521799b6ff6ae80fe9322f7
5
5
  SHA512:
6
- metadata.gz: dc22d53aeeee705a5842efc215f55b1977eb387c63429431bedcc6dccb2e32679cb245767701ef4aa5afd8091cff11762253466bc1d6eeafc962ec3375a80267
7
- data.tar.gz: c9265c7b18d4dbc296183ebfcced94533758c1fce8c68613e8549db0ca406ca318d0d9a5904ea8a45ae33c8e2e8ee3da2fa153d517d01d9719bb6c3bfed36ae4
6
+ metadata.gz: db6ff9491afe90ff7c22103317cbeae96327537ec82c39765a02ef218b6e67191556bfbc40d483e016d63f0ab467583bdd5048fed13cbfa3663bc9aa0bd8d3d0
7
+ data.tar.gz: 42a04fdcf8d9b682aa869ee976e0ace7f76e8674c8ee5fc3388b498c865c3fa0aafce4775910adb89839edbe7713d0440c247a44f5c345ac67334674eff8c39c
data/README.md CHANGED
@@ -21,6 +21,7 @@ Rails 3.2.x and Rails4 support
21
21
  Add to your Gemfile:
22
22
 
23
23
  ```ruby
24
+ gem 'haml-rails' # or try using gem 'hamlit-rails'
24
25
  gem 'effective_assets'
25
26
  ```
26
27
 
@@ -17,11 +17,11 @@
17
17
  - if attachment_actions.include?('insert') || attachment_actions.include?('attach')
18
18
  - asset = attachment.asset
19
19
  - if asset.image? || asset.icon?
20
- %a.btn.btn-primary.attachment-insert{:href => '#', 'data-asset-id' => asset.id, 'data-asset' => effective_asset_image_tag(asset, nil, public: true)} Attach
20
+ %a.btn.btn-primary.attachment-insert{:href => '#', 'data-asset-id' => asset.id, 'data-asset' => effective_asset_image_tag(asset, nil, public: true).gsub("'", '"').html_safe} Attach
21
21
  - elsif asset.video?
22
- %a.btn.btn-primary.attachment-insert{:href => '#', 'data-asset-id' => asset.id, 'data-asset' => effective_asset_video_tag(asset, nil, public: true)} Attach
22
+ %a.btn.btn-primary.attachment-insert{:href => '#', 'data-asset-id' => asset.id, 'data-asset' => effective_asset_video_tag(asset, nil, public: true).gsub("'", '"').html_safe} Attach
23
23
  - else
24
- %a.btn.btn-primary.attachment-insert{:href => '#', 'data-asset-id' => asset.id, 'data-asset' => effective_asset_link_to(asset, nil, public: true)} Attach
24
+ %a.btn.btn-primary.attachment-insert{:href => '#', 'data-asset-id' => asset.id, 'data-asset' => effective_asset_link_to(asset, nil, public: true).gsub("'", '"').html_safe} Attach
25
25
 
26
26
  - if attachment_actions.include?('remove')
27
27
  %a.attachment-remove{:href => '#', :title => 'Remove'}
@@ -1,3 +1,3 @@
1
1
  module EffectiveAssets
2
- VERSION = '1.9.8'.freeze
2
+ VERSION = '1.9.9'.freeze
3
3
  end
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.9.8
4
+ version: 1.9.9
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: 2017-06-13 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails