authify-api 0.4.2 → 0.4.3

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: 3127c5ad5b8138e5b9665ffc2065c39b9665dd35
4
- data.tar.gz: 79080bb74c9cde1f41620080dec388b0890a9ec8
3
+ metadata.gz: 836953fab50ba0ca070a7556a2d23a20951d5d49
4
+ data.tar.gz: 8923b8d048285d3dc09440fa598855d174e4a87d
5
5
  SHA512:
6
- metadata.gz: ccdb294165b2ca5a997d6bedc66dadf78fd5e08c21c1e4bc4c7a2b1ef12bab7bc7385ebcf390f2dee00ab1f8a406511a551db834befc9b895cbe70322372508a
7
- data.tar.gz: 02c2a745018fc38ace50d2ff046a5bd8b9003d80dc780b6cb0bfca69d7cc275b8898d17198fbb1e1f05fe8179d56212fc7303c74d85512c9d4b86a5f893c92ba
6
+ metadata.gz: 9aea4b4146a3a8652fee589e2e414f8e144110b3367421815dae87a3a76b4de58c16985fd5dc6616907dfb85788b5cc704bb46be9d00a6e756f49f6e13a4fc3b
7
+ data.tar.gz: 73c3b021b747f9cd8690257be62b4c1f4080e3a994c3576e4bfdc61233e732f0863a578a95f876c6894a66e5573e89a994d80ffbacb1a41728ca1a0eec3d7b7e
data/Dockerfile CHANGED
@@ -1,8 +1,8 @@
1
- FROM ruby:2.3.3-alpine
1
+ FROM ruby:2.3.4-alpine
2
2
 
3
3
  ENV AUTHIFY_PORT=9292
4
4
  ENV AUTHIFY_ENVIRONMENT=development
5
- ENV AUTHIFY_DB_URL=sqlite3:///app/authify-api.db
5
+ ENV AUTHIFY_DB_URL=sqlite3:///tmp/authify-api.db
6
6
  ENV AUTHIFY_REDIS_HOST=redis
7
7
  ENV AUTHIFY_PUBKEY_PATH=/ssl/public.pem
8
8
  ENV AUTHIFY_PRIVKEY_PATH=/ssl/private.pem
@@ -70,7 +70,7 @@ module Authify
70
70
  new_user.add_verification_token!
71
71
  end
72
72
 
73
- new_user.save
73
+ halt(422, 'Failed to save user') unless new_user.save
74
74
  update_current_user new_user
75
75
 
76
76
  response = { id: new_user.id, email: new_user.email }
@@ -3,7 +3,7 @@ module Authify
3
3
  VERSION = [
4
4
  0, # Major
5
5
  4, # Minor
6
- 2 # Patch
6
+ 3 # Patch
7
7
  ].join('.')
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authify-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Gnagy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-15 00:00:00.000000000 Z
11
+ date: 2017-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: authify-core