rack_web_console 0.1.2 → 0.1.3

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: 1dfaeac9ee45c324241bea12915d58f6bbd5be2e
4
- data.tar.gz: 2bd64bc6b3e89fc89610a7c570136237b300888b
3
+ metadata.gz: 314e65918f28b885675d30dcb5bcf1ae6463bef3
4
+ data.tar.gz: 5f0280aeba099f083cdf14e1fb1e1d4a1d3c9dcd
5
5
  SHA512:
6
- metadata.gz: 85a986e233d90c6723b59b35a8d5fa310ec6db0820b25b61c8b1dd4a85e069e53a3074817fa517fe27fd800ab08439228213a2fa301dc9d9acf02d60b0fd9269
7
- data.tar.gz: 422c7aa741fbae714a64ba95ca3530f86d98ec4a321519241897269a1155f2b315fb243140bbc3b8fc422babd27f51e71c7901df360aa3afd90566101316d7f0
6
+ metadata.gz: ad8b22b9a10a50e2915640531d076423d9e9a11a9323230723fd9d033b0de0340aba07da2c73a31a772ae0780403b8f05bc7c4d1da682733d14f13dc2b43020f
7
+ data.tar.gz: 7c172dd60203277bd8115ea402af16d44e45685fab81f1f01530933a6c7ea02bb3268ab1ff2e83e01ef053a8aed5a557ef74e44a61984ca179bb298476fd63ba
data/History.md ADDED
@@ -0,0 +1,23 @@
1
+ # Version 0.1.3
2
+
3
+ ### Enhancement
4
+
5
+ * Changed output white-space to pre-wrap to preserve leading spaces. This is specially
6
+ useful when `puts obj.method(:method).source` is used.
7
+
8
+ # Version 0.1.2
9
+
10
+ ### Security
11
+
12
+ * Added a token for better protection against CSRF.
13
+
14
+ # Version 0.1.1
15
+
16
+ ### Security
17
+
18
+ * Added basic protection against CSRF by checking Referer or Origin headers.
19
+
20
+ # Version 0.1.0
21
+
22
+ First release.
23
+
@@ -4,6 +4,7 @@
4
4
  <title>Console</title>
5
5
  <style>
6
6
  #script { width: 100% }
7
+ .console_result, .return { white-space: pre-wrap; }
7
8
  .return { background-color: blue }
8
9
  .console_result {
9
10
  background-color: black;
@@ -1,3 +1,3 @@
1
1
  class RackConsole
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
@@ -39,7 +39,7 @@ class RackConsole
39
39
  end
40
40
  headers = { 'Content-Type' => 'text/html; charset=utf-8' }
41
41
  @_storage.set_cookie_header! headers
42
- [ 200, headers, [ result.join("\n").gsub("\n", "<br>\n") ] ]
42
+ [ 200, headers, [ result.join("\n") ] ]
43
43
  end
44
44
 
45
45
  def same_origin?(env)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_web_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Rosenfeld Rosas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-23 00:00:00.000000000 Z
11
+ date: 2016-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,6 +77,7 @@ files:
77
77
  - ".rspec"
78
78
  - ".travis.yml"
79
79
  - Gemfile
80
+ - History.md
80
81
  - LICENSE.txt
81
82
  - README.md
82
83
  - Rakefile