amoniac 0.1.3 → 0.1.4

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: 8fbf258b172502b78290338c498c023af15afb3c23c42dfb0ba274e2a4a0d1d3
4
- data.tar.gz: 5a760b87b31b319f9904c49cea052d7c13f7de04804b9d596df86306ba018112
3
+ metadata.gz: 6cb1362ccd01ae826e34b2578ce8e448b4a758b9155536fca9389dea685e176f
4
+ data.tar.gz: 7b87863684a410c870354718c836e0f4305c1cc1d6e8d36b8d6d401ec077c1dd
5
5
  SHA512:
6
- metadata.gz: 4258c47982f5621e7795b3e4c907dd51a814287f9c9bc7453b56a0ac4432fcfc5af72948c588dd12c0e2aa38a6e74478ed93466435822add19215139d6fef163
7
- data.tar.gz: 4639fba97927545c2a2ef7448470fe2cf8221a05091cad2a91df4d916bb89f1bb96e53d42ddc6d88966a9d191ac7d26a2553a06b27e1cfd00195beb003da38b9
6
+ metadata.gz: f23ee5e7f3ee4cb918d88a2de3e1aceef8c9001e7f19446acb0a871925379c79869e6cd036d79c99888c39650b322421dc8bbcb0c02c2c4a81a4fc3e097fdae4
7
+ data.tar.gz: c4e3e8249be23344479e2ac167c7422df41dff55e57e36b919ae440afa313b0f8ad434647a52d749f719e9c146c323352ceb03c41501d7d46fe3b41b0522b857
@@ -3,7 +3,7 @@ require_dependency "amoniac/application_controller"
3
3
  module Amoniac
4
4
  class DataController < ApplicationController
5
5
  def index
6
- input = {:key1=>"value1", :key2=>"value2", :key3=>"value3", :key4=>"value4", :key5=>"value5"}
6
+ input = params
7
7
  output = Hash[input.map { |k, str| [k, str.reverse] }.to_h]
8
8
 
9
9
  render json: output
@@ -1,3 +1,3 @@
1
1
  Amoniac::Engine.routes.draw do
2
- get "data/collect", to: 'data#index'
2
+ post "data/collect", to: 'amoniac/data#index'
3
3
  end
@@ -5,7 +5,7 @@ module Amoniac
5
5
  config.amoniac = ActiveSupport::OrderedOptions.new
6
6
  initializer 'amoniac.configuration' do |app|
7
7
  app.routes.append do
8
- mount Amoniac::Engine => "/"
8
+ mount Amoniac::Engine, :at => "/"
9
9
  end
10
10
  end
11
11
  config.generators do |g|
@@ -1,3 +1,3 @@
1
1
  module Amoniac
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amoniac
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
  - Dmytro Lysohor