sinatra-footnotes 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b8818eb7cef08c90c1f3836c3faac6842d797a0
4
- data.tar.gz: 880540a36749519b1121f380977073b39422d203
3
+ metadata.gz: f26b2b3a5a935c2e5a1c4966cef93dbf2d27f379
4
+ data.tar.gz: 4cc42a532182d82de797cf2f923e6a4f646709ff
5
5
  SHA512:
6
- metadata.gz: 933161b8a6b1556a9e1010df3fea9bfb5769a01eec69decea2cf175ad0b3e4c925108173a4d52d4154aa88cbf6171b26b2acde1c7a6eb435d255b2cf1e791ccd
7
- data.tar.gz: 6a0193f18551c6b48176695444459253946905c3ae6aef74116a556dd3b77e4cfe25b5e3e033cd866a5a7ea49e553ff4f4145017a67475afbd9c0aa1017f1e31
6
+ metadata.gz: c297e1b146728e8186b616b049e560ec77083795923f468c2b505c89fcd5b7b6576e61da3a55e72d1506e6f9c0c36cd3e5898536f02ce14f1e5171c26adb9144
7
+ data.tar.gz: db5434c48e7531decb9731f96889443d80012c71ccf432e632cf824b0c994b9bbfb9b1e1625ce3ffd5ca970ca3a7afb41c0be582aee11fda9c712f74d0bdc286
@@ -162,7 +162,7 @@ module Footnotes
162
162
  def mount_table_for_hash(hash, options={})
163
163
  rows = []
164
164
  hash.each do |key, value|
165
- rows << [ key.to_sym.inspect, escape(value.inspect) ]
165
+ rows << [ escape(key.inspect), escape(value.inspect) ]
166
166
  end
167
167
  mount_table(rows.unshift(['Name', 'Value']), {:class => 'name_value'}.merge(options))
168
168
  end
@@ -4,7 +4,7 @@ module Footnotes
4
4
  module Notes
5
5
  class ParamsNote < AbstractNote
6
6
  def initialize(controller)
7
- @params = controller.params.symbolize_keys
7
+ @params = make_keys_strings(controller.params)
8
8
  end
9
9
 
10
10
  def title
@@ -14,6 +14,14 @@ module Footnotes
14
14
  def content
15
15
  mount_table_for_hash(@params, :summary => "Debug information for #{title}")
16
16
  end
17
+
18
+ private
19
+ def make_keys_strings(hash)
20
+ hash.inject({}) do |output, key_value|
21
+ key, value = key_value
22
+ output.update({ key.to_s => value })
23
+ end
24
+ end
17
25
  end
18
26
  end
19
27
  end
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module Footnotes
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-footnotes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Stutzman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-17 00:00:00.000000000 Z
11
+ date: 2013-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra