traitify-magis 1.0.3 → 1.0.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
  SHA1:
3
- metadata.gz: 7473b7334fd77b2992d37fa0c44a1aa6ab61120e
4
- data.tar.gz: 6b26a73d1b81e06e8b2ae079578306981af759b9
3
+ metadata.gz: 776d36f5ce1f84137c01e27c6182a95dcdee1f3e
4
+ data.tar.gz: 29d5e6ceac9c79866128dc53dbfbb20d5e455984
5
5
  SHA512:
6
- metadata.gz: ac02acc2881891e8628781aeaf251861af2058a8fdc4e780e14373b31320a8bdb29e3ac50642ee18f7c30d3f3bf01e97a870cf0e84113d60e7897b264a688c52
7
- data.tar.gz: 7b75870382899a7c936730b001692ac7c83b4f4e3d9bed32594957f0e33973eb26693a0b4157cd6e42219aa207bcc2d4686663a5646738359e6ae5dba9a35a8c
6
+ metadata.gz: e578385072f54dab1b2106c6adb449cf59182487d4c7a9872faa4cd4df3b5c6c143076770c37a051c658035268818caf996b7d2de4611904983dfb0fd0b9f26b
7
+ data.tar.gz: 99dba5223388541e0f4f2c5126ea86a6a2ed19edbf72f4f9bca4f4cef0081aa6b595485a75cb64670486ad625d8bed0cdd4dc128d687a18c2d7edfc5265024bd
@@ -27,7 +27,7 @@ class Api < Sinatra::Base
27
27
 
28
28
  if Magis.db["users"]["assessments"][id]
29
29
  assessment_id = traitify.create_assessment(deck_id: id).id
30
- assessments = Magis.db["users"]["assessments"]
30
+ assessments = current_user["assessments"] || Hash.new
31
31
  assessments[id] = {
32
32
  id.camelcase(:lower) => assessment_id
33
33
  }
@@ -1,3 +1,3 @@
1
1
  module TraitifyMagis
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traitify-magis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hashrocket Workstation