browse-everything 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTI0N2FkM2E1NWZmODQ5M2I1MzI5NTViMWYyMzAzYjVmZWYzMDdhNg==
4
+ NDAxNjZiMTdhZTE3MmQ2Yjc5NmU0ZGEwNmVjNDU2MDZhZWI1ZGVkOA==
5
5
  data.tar.gz: !binary |-
6
- OGM5ZDZhNmQ0MzE2MWM5YmNkNGM2ZTc3OGEwZmIxZDU5ZDUzY2QxZg==
6
+ MzFiZjY5ZTBiOGVhMWU2MTlkY2U3Y2I1YzBmNjAzYWFhMTdhNTg3NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTUwYjhkM2IzOWE1NmUyYjcxZDJmYjI0MmIzZGVhN2E3OGY4OWVmMzZmNDRl
10
- Nzc2M2RmNzE3YTgxOTQxMjI0ZGFjYjYwZjBmY2VhMzY2OWYwZThhZjcwN2Qz
11
- ZWExMTU2NjlhZmE1YjE5NmE5OWI0MzhhMTUyY2ZmNjRjZDQ0NWY=
9
+ ZGI2Nzc4MzlmMGJlYmU4NTU4NWYwNGZlMGMwYTMzNTFhNGZjMzY1N2U5NWM0
10
+ MmUyMDQ1Nzk1YzAwY2I5MjZlM2JkNTZhMWUyZTRmNmVkMzQ5MmI2YTdmNWU2
11
+ ZWVmYTQyNjg5NjA5YTk5N2Y4MDQzNWM3NWE3ZWVhN2JlZGZhODc=
12
12
  data.tar.gz: !binary |-
13
- MjlkZDNmYmQyMjg4YzQ3ZmU0M2UyNGExYjYzNjdkNTU5OWI4NjhlMzBkNTcz
14
- ZWQzNDdjNGQ0NzVlZDg1NjE1NmY2NjFlY2E0NWRlMjJjYmUyYWE5MWE5NTMw
15
- YWVkMzkyY2M3ZTBlNDk0ZmI4MjhjZGQ4NzExNDg1OWVmYjBlNTA=
13
+ ZDRhYmNhYjMzODkyYjg0ZDlmZjY4MWMwMmRhMjk1ZDQyOTFkZWNmMDA3ZGVh
14
+ YjU5OGZmOTU1N2VjZWRhODA4ZDgzMzlmNjYwMTAyYzcwODhkZjA0Nzg5NGY0
15
+ NmY1NmE0ZmQ5MTkzODUwMGYyMGVjNmI4OTQ4ZTdjMTY2MTA2Mjc=
data/HISTORY.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 0.4.5 (2014-06-20)
2
+ - Fix for filenames with special entities in them
3
+
1
4
  ### 0.4.4 (2014-06-19)
2
5
  - Add browse-everything assets to asset precompile
3
6
 
@@ -23,7 +23,9 @@ $ ->
23
23
  .split('&')
24
24
  .map (t) -> t.split('=',2)
25
25
  elements = $(fields).map () ->
26
- "<input type='hidden' name='#{decodeURIComponent(this[0])}' value='#{decodeURIComponent(this[1])}'/>"
26
+ $("<input type='hidden'/>")
27
+ .attr('name',decodeURIComponent(this[0]))
28
+ .val(decodeURIComponent(this[1]))[0].outerHTML
27
29
  $(elements.toArray().join("\n"))
28
30
 
29
31
  $.fn.browseEverything = (options) ->
@@ -86,7 +88,7 @@ $ ->
86
88
  file_location = target.data('ev-location')
87
89
  target.toggleClass('ev-selected')
88
90
  if target.hasClass('ev-selected')
89
- hidden_input = $("<input type='hidden' class='ev-url' name='selected_files[]' value='#{file_location}'>")
91
+ hidden_input = $("<input type='hidden' class='ev-url' name='selected_files[]'/>").val(file_location)
90
92
  target_form.append(hidden_input)
91
93
  else
92
94
  $("form.ev-submit-form input[value='#{file_location}']").remove()
@@ -1,3 +1,3 @@
1
1
  module BrowseEverything
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browse-everything
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carolyn Cole
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2014-06-19 00:00:00.000000000 Z
16
+ date: 2014-06-23 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails