anaconda 0.9.9 → 0.9.10

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: f267674828c154fdf30473bcee6e61c4823f234a
4
- data.tar.gz: 7af7b81115ffe95e602e4d3fb64760dc7d030278
3
+ metadata.gz: ec2d1ef0a9efcf1065ca2210f211c9a20653b662
4
+ data.tar.gz: 4ca928455cb8bc4be2ae93b5b5d4d03c9db0900e
5
5
  SHA512:
6
- metadata.gz: 1ed5c20d0ebebd468e541d44de9262a71675d7bd24dedfa077241b96e3e59c79a62c1a441c655b0e19bfea960bc0b9fe36c72092e06ae897592b8217cb3f4223
7
- data.tar.gz: 6dd4417a7cb481ebff2ec14c280b685782f6cfe9df6ca0420f6b4600c45ce3af5b7699c7c11ac43ecfcc6914036b1a42820be23df49bff7ba7f16f84681bcc37
6
+ metadata.gz: c5f122214ac0b2fa4cdde29f29ec2d1d6ba421d7213bdcd344795958a72bb6b9d8083eb1f1a68c318c36d8253488c9d884a37e8440c44c40c625030bcea7de69
7
+ data.tar.gz: 9d0c53d7bd5e1aa15ccf81f320e0225826824b23d705473aa80426d3b439e5414e496ecd8c5ffd9c5c74ae50a59f61c35f7e14c41862d5ba911437d0f323f9ff
@@ -152,6 +152,9 @@ We highly recommend the `figaro` gem [https://github.com/laserlemon/figaro](http
152
152
  The magic method is asset_url which will return a signed S3 URL if the file is stored with an ACL of `private` and will return a non-signed URL if the file is stored with public access.
153
153
 
154
154
  ## Changelog
155
+ * 0.9.10
156
+ * Fix bug when attribute had more than one underscore
157
+
155
158
  * 0.9.9
156
159
  * Fix bug untroduced in previous version
157
160
  * 0.9.8
@@ -239,8 +239,9 @@ class @AnacondaUploadField
239
239
  # DLog "will now fill form #{@upload_complete_form_to_fill}"
240
240
 
241
241
  DLog "#{@resource}_#{@attribute}_file_path"
242
- hyphenated_resource = @resource.replace("_", "-")
243
- hyphenated_attribute = @attribute.replace("_", "-")
242
+ hyphenated_resource = @resource.replace(/_/g, "-")
243
+ hyphenated_attribute = @attribute.replace(/_/g, "-")
244
+ DLog "input[data-#{hyphenated_resource}-#{hyphenated_attribute}-file-path]"
244
245
 
245
246
  $( @element_id ).siblings( "input[data-#{hyphenated_resource}-#{hyphenated_attribute}-file-path]" ).val( @key.replace("${filename}", @file.name) )
246
247
  $( @element_id ).siblings( "input[data-#{hyphenated_resource}-#{hyphenated_attribute}-filename]" ).val( @file.name )
@@ -1,5 +1,5 @@
1
1
  module Anaconda
2
2
  module Rails
3
- VERSION = "0.9.9"
3
+ VERSION = "0.9.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anaconda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McFadden