gromit 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
  SHA256:
3
- metadata.gz: 9932004042ffb0cc538889e78933675898b22305fa251e56cff964d3d79e46b0
4
- data.tar.gz: 021d95202589af85ac778f35be87004ab36fafcd4c636aaedda0c0d9096f54e6
3
+ metadata.gz: 3af444898dfcaac1bfcaa106def438caafb97f2668bdf631847fa128a9d3a741
4
+ data.tar.gz: 7ce00d2776eda91d2e43cf6b0bca71065507097c7f54d20c8e610af1e0acf828
5
5
  SHA512:
6
- metadata.gz: 7f2c28d1f9549c9271124eae5386b5e8b2b4aa79b03c31786f071c09471ecef517c0ac33301d5590ce03aac3eb6e0b2f615f1af50f28b646c7f8ff1807c4fe33
7
- data.tar.gz: 716276f9c72f67a31d451f7ddbf4344dfd1a7d05d3e4ebea55e0c65da6b1ec018cbb53e163c1845ec7ed8433c48a0f5221144320578a47b1f5e7d41aa18b63b0
6
+ metadata.gz: d8d7267e931fc77cde96a23cb69777e801bb6ba523ccafc175484b6959b674301106e0a780976847f3fdf9d9c7f30c65df416e7402bbee768fdef306db6f855c
7
+ data.tar.gz: bd40e1cc12be3992fa54bfdfd9ac31ba47a7266190da7a3dccae9d1568b71cad136afc81856c880963653fdaf068c276ea6862a50f2b76a332e86d437e5ecbc5
@@ -1,3 +1,5 @@
1
+ require 'rejson'
2
+
1
3
  module Gromit
2
4
  class GromitController < ApplicationController
3
5
  skip_before_action :verify_authenticity_token
@@ -42,7 +44,7 @@ module Gromit
42
44
  id = params[:id]
43
45
 
44
46
  # Upsert the record into the Redis database
45
- gromit.redis.json_set("item:#{id}", Rejson::Path.root_path, params.deep_stringify_keys)
47
+ gromit.redis.json_set("item:#{id}", Rejson::Path.root_path, params.to_unsafe_h.deep_stringify_keys)
46
48
 
47
49
  # Return a success response
48
50
  render json: { status: 'success', message: "Record upserted successfully", key: "item:#{id}" }
@@ -1,6 +1,4 @@
1
1
  module Gromit
2
- module Rails
3
- module ApplicationHelper
4
- end
2
+ module ApplicationHelper
5
3
  end
6
4
  end
@@ -1,3 +1,3 @@
1
1
  module Gromit
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: gromit
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
  - David Giffin