json_voorhees 1.4.5 → 1.4.6

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: c6f2eab0df10d6e1e8ad40dc83e8102b3fe18675
4
- data.tar.gz: f7f6418c6be9c0bc139c57af5c8c61c056f10a78
3
+ metadata.gz: 44f7b33678c4972cb79e8c84e36e98765ca83447
4
+ data.tar.gz: a19e27c96af21ff3056afee921b5195eebe58b9e
5
5
  SHA512:
6
- metadata.gz: 27c697b7b514b85030cb972a84bc1aec83112e9c46b9dc60b64de4b35147db7abaea155ec24e3508d73203e76ca87c6267ca83bb08bde8b715064fa629243b01
7
- data.tar.gz: 89e6cbe41f549e99f9104fb984f7dcfe2edbd4e26d7e460caf18c9e3e3f5ddc712d0d244210edc02604e7c35dbaabce12e3985b4005b4a7be13a2a102c5552dd
6
+ metadata.gz: f899d5d9d0a747741ad2deb33fbc0757db7708dc7289f8816500500cde33898091731942d033a16f31dbfb6f73d4017daeb79e7ddb06bfc8014dc03602b3c8bc
7
+ data.tar.gz: c94ac31d320c10ac162049f0278594cb20abc5c72eefc4955132007826d5990b9c9fda03b913291913bba794d66da5cf0cb8879022df691723e12525cc6689d1
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # JsonVoorhees 1.4.5
1
+ # JsonVoorhees 1.4.6
2
2
 
3
3
  ## Introduction
4
4
 
@@ -65,6 +65,11 @@ headers or params hash. Look at the settings file in config to see what the
65
65
  default header and keys are. In production, make sure this key is set to
66
66
  something different and remove it from version control.
67
67
 
68
+ 401s are sent for a number on reasons but if the user is not authenticated
69
+ it will send a header along with the 401. Check for this header and a 401
70
+ to know if a user needs to log in again. Look the api controller to see
71
+ the defaults.
72
+
68
73
  1. Make sure the version of Rails is the same in both engine and app.
69
74
  2. The mailer doesn't need to be set up. For test and development it is set so this doesn't have to be the case but change the environment config file to make it work.
70
75
  3. To use the mailer, make sure to export GMAIL_USERNAME and GMAIL_PASSWORD to your environment. Or you can just overwrite the values in the environment config file.
@@ -15,7 +15,7 @@ module JsonVoorhees
15
15
  def createSettings
16
16
  run "rails g rails_config:install"
17
17
  prepend_to_file 'config/settings.yml' do
18
- "token_header: \"Auth_Token\"\nmain_api_header: \"Main_Api_Header\"\n"
18
+ "token_header: \"Auth-Token\"\nmain_api_header: \"Main-Api-Header\"\n"
19
19
  end
20
20
  createEnvSettings
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module JsonVoorhees
2
- VERSION = "1.4.5"
2
+ VERSION = "1.4.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_voorhees
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cleophus Robinson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-17 00:00:00.000000000 Z
11
+ date: 2014-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails