jungle_path 0.0.3 → 0.0.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
  SHA1:
3
- metadata.gz: 9281d125031a92326508b2c2e95ca6ec1ff428d7
4
- data.tar.gz: f7c3f540af52fd72836e2ffc52f1de0c642d78fa
3
+ metadata.gz: 6c9a76586270cb176c12b4cee2c5634f095986dd
4
+ data.tar.gz: 8c5a58c3e0c272e1e1d3fa54e0043eb515153a66
5
5
  SHA512:
6
- metadata.gz: abe8387c20be14a497d9bea9188e03036f170e38d8c46145663e937e198c675ec9e7c151b5087b315c8f056611a6d15d6e12103a304bd12588f36417cfa9a7ab
7
- data.tar.gz: 5b704801ffb5fb513c6e6f3f4e267bef3ed9a444d67c2ea401857a1ec56326d954e02b28e4d2f4cd516095fc4fc53d30b619076e583b81ab827840dcc812ca75
6
+ metadata.gz: 8fac534b4b48fcb7ccc3bcb3404da09e7f5108c867523e7eafb33f553b6cbfd0267359ed52c4ea4fa205f7c7235501ce006e23fa04475d8cc3acafbafa826b30
7
+ data.tar.gz: 8cbe0b457b9c522d8aadc11ec76b1dd24fef8803f052abfd78b55310770727d68596e461d773a9132274c7270e6db4256375aa3ce23d8610852febd709e96b52
@@ -1,5 +1,5 @@
1
1
  <% # api_template.erb %>
2
- <%= "#This file was generated using the ../lib/api_template.erb. Do not modify directly." %>
2
+ <%= "#This file was generated using the jungle_path/api/template.erb. Do not modify directly." %>
3
3
  require 'sinatra/base'
4
4
  require_relative '../db/db'
5
5
  require_relative '../schemas/schema'
@@ -80,7 +80,7 @@ module Server
80
80
  get '/cachetest/:key/:value' do
81
81
  key = params[:key]
82
82
  value = params[:value]
83
- LocalCache[key] = value
83
+ JunglePath::Cache[key] = value
84
84
  handle_result({key: "#{key}", value: "#{value}"})
85
85
  end
86
86
 
@@ -2,8 +2,8 @@
2
2
  require 'jungle_path/gen/api'
3
3
  require 'jungle_path/gen/controllers'
4
4
 
5
- require '../config/config.rb'
6
- require '../schemas/schema'
5
+ require_relative '../config/config.rb'
6
+ require_relative '../schemas/schema'
7
7
 
8
8
  JunglePath::Gen.controllers(jungle.application.root_dir, Schema::Base.models.values)
9
9
  JunglePath::Gen.api(jungle.application.root_dir, Schema::Base.models.values)
@@ -48,12 +48,17 @@ module Schema
48
48
  [:user_name, :string, :unique, :not_null, :alternate_key, :secure],
49
49
  [:hash, :string, :not_null, :secure, :calculated, :desc, "See password_hash.rb for details."],
50
50
  [:name, :string, :secure, :desc, "Your human name! :)"],
51
+ [:first_name, :string, :secure],
52
+ [:last_name, :string, :secure],
51
53
  [:email, :string, :secure],
52
54
  [:organization, :string, :secure],
53
55
  [:notes, :string, :desc, "For any misc. notes about this user including addition email addresses, phone numbers, etc."],
54
56
  [:active, :boolean, :default, true],
55
57
  [:is_valid, :boolean, :calculated],
56
58
  [:role, :string, :not_null],
59
+ [:sms_verification_code, :string, :secure, :desc, "phone verification/sign-in code."],
60
+ [:activation_key, :string, :secure],
61
+ [:password_reset_code, :string, :secure],
57
62
  [:audit_user]
58
63
  )
59
64
  end
@@ -1,3 +1,3 @@
1
1
  module JunglePath
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jungle_path
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael VanZant
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-20 00:00:00.000000000 Z
11
+ date: 2017-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler