sinatra-hexacta 0.7.2 → 0.8.0

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
  SHA256:
3
- metadata.gz: 115ee19675f4a6656e5cc4ccfc255843554df41d75ed555ccfabb995db36c881
4
- data.tar.gz: 7806d95f9d62eee4aac7d9d0ee4126967949034de13249991eff6e251c8f03ab
3
+ metadata.gz: cf7bd04016342bd07385c0cf5563cedf741872fdc2a039bfff20fc79732b4c4a
4
+ data.tar.gz: 49b06e855602b5adeb9388d70e68069b0e4224de01479fe90bb88c20589dde42
5
5
  SHA512:
6
- metadata.gz: 2d563c5d7667db660e12dd701fc1f4d4e5d1eea5601bb24aad493e0f4d68d4f1f31a2ac821a445353c5e3973c062db63169b9a101c0b85414cc3b8ae82e10ef1
7
- data.tar.gz: c80381ecdc7dd61517190c4681a3783d5780da3789d80dae322b8faa707204fdcc6314eb912e9ae816cb80dd680efe78c48f90bba20e650e643c6ec3cddea68b
6
+ metadata.gz: 64fce926468323720435353eb1f08f95740a82fc38d277cd94a8b3e78e1099e110144a4c56140fea01a6daa05ef63cdd8752b5e586a469c62de93cb52eeeac17
7
+ data.tar.gz: 48970007cb884898fa670d3e5ce984b2867570b0142c033df85e1919a850f9e0368bfe51d393d45e59a97f1bcc0e3c43193d51b7b3f35c55599727097f27435b
@@ -6,4 +6,4 @@ require_relative 'mailsender'
6
6
  require_relative 'mail'
7
7
  require_relative 'generalmail'
8
8
  require_relative 'mailbuilder'
9
- #require_relative 'processmanager'
9
+ require_relative 'processmanager'
@@ -3,4 +3,4 @@ require_relative 'errors'
3
3
  require_relative 'notifications'
4
4
  require_relative 'params'
5
5
  require_relative 'reports'
6
- #require_relative 'processes'
6
+ require_relative 'processes'
@@ -17,7 +17,8 @@ module Sinatra
17
17
  end
18
18
 
19
19
  post '/process' do
20
- a_handler = ProcessManager.instance.run(params)
20
+ klass = Object.const_get("#{params[:class]}")
21
+ a_handler = ProcessManager.instance.run(klass)
21
22
  a_handler.to_json
22
23
  end
23
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-hexacta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Zanger