configuration_management_backdoor 2.1.0 → 3.0.0

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: 256d604237202d3ca98a9a824a6ef95d104706a3
4
- data.tar.gz: d19462405fc812186f24a8190d255060f6aaf753
3
+ metadata.gz: d7ce4b41c4f858520dcb945ea48b164b0677e938
4
+ data.tar.gz: 86770846f547f89f9f54dc6af26cd36b092f523d
5
5
  SHA512:
6
- metadata.gz: 8f5249845394a2c5034c81f82bc59260b63774d4a00ce5d0060ce9b0fc720c56ce2fa16a770855c1450456b8c0e30d7a6257256a1a0265ba02c0f256e9d7faa0
7
- data.tar.gz: 01baea46759ee3aa017b1b6d942d6a4146761cf614e928127cba85a9c1c202fffc573f8b8e0931bfcae93951110566fb83fc35905afb653c2c72b57d656867f3
6
+ metadata.gz: 7233db6361edab1eff640b1dcb9afed00f9b1903024ae86dfdbf188b7e1034abab54f98fbf51a27557533f1305664e29679f47c3e3ef385fbce9060c236be367
7
+ data.tar.gz: 926575bb85ea925083cb1d268e9a5123fe20ce35a241536813460098a59029c2976df406d167a415c1aeff24f772e5bde12bb38d6f08e14e9fc87ea33747774c
@@ -1,4 +1,5 @@
1
1
  class ConfigurationManagementBackdoorController < ApplicationController
2
+ skip_before_action :verify_authenticity_token
2
3
  before_action :authenticate
3
4
 
4
5
  def authenticate
@@ -13,8 +14,8 @@ class ConfigurationManagementBackdoorController < ApplicationController
13
14
  end
14
15
 
15
16
  def invoke_ruby
16
- code = request.body.read
17
17
  begin
18
+ code = request.body.read
18
19
  render json: {result: eval(code)}
19
20
  rescue Exception => e
20
21
  render json: {error: e.to_s}, status: 422
@@ -1,3 +1,3 @@
1
1
  module ConfigurationManagementBackdoor
2
- VERSION = '2.1.0'
2
+ VERSION = '3.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configuration_management_backdoor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Schank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-21 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails