early_bird 0.1.2 → 0.1.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
  SHA256:
3
- metadata.gz: 78645b534dbdfcd84a8d4eabf71fee07851bf9c26e0f55beeb218a7e77109bcf
4
- data.tar.gz: 44a128fa7e0ade6675a332f88699571d0185c3d15b611c955a3b03eed4c5b3d3
3
+ metadata.gz: 68ebd78a76a935c5f2044e05b0f793ec08541ea615f02b0f159d8a25a340ccf9
4
+ data.tar.gz: 7bfe75352d5e53b1ae722df0eee40b690bcef95a920dbdf69be8f9c53927bbf3
5
5
  SHA512:
6
- metadata.gz: a1f9e76e64c5120d63c4038ac3d48d36b9e1a2099ae3629a520f654d3f03497ae4dd4ef78f82a6c3c162aac1129fc3c8936f651be8dbe9572408cf9f7fea3646
7
- data.tar.gz: 2e757522c8d55652e890870f1d461242df6a0c874b5f17e920c65c165dfddb4d74b493dbc76d9272d94db5603bddd2f7fd7523a3de75cc093765f9e751f1b7ad
6
+ metadata.gz: 186ad4bd6ca357cc972ea61bbdf80d5c03ced9f4fa4d2b1519a43039e7915223585b510d4b01dbc135b4999e7cfcc0a2f972429c22306a504659f77d806c0d11
7
+ data.tar.gz: b75fa440bd0c21ba19fe36b580b167cf7a527e47b4623dc70a9ec615916ea51a878ee94c6dbe650e39c782d02fc4fe17e719bb331d22ab68024a93e1419ddfd0
data/README.md CHANGED
@@ -54,10 +54,16 @@ Then mount the engine in your routes.rb file:
54
54
  mount EarlyBird::Engine => "/"
55
55
  ```
56
56
 
57
- And (optionally) prevent access to the rest of the app while you're building it:
57
+ In your application_controller.rb file, define an `authenticate_user!` method, which EarlyBird skips (to allow access to the waitlist while preventing access to the rest of the app):
58
58
  ```ruby
59
59
  class ApplicationController < ActionController::Base
60
- http_basic_authenticate_with name: "dev", password: "secret"
60
+ before_action :authenticate_user!
61
+
62
+ private
63
+
64
+ def authenticate_user!
65
+ http_basic_authenticate_with name: "dev", password: "secret"
66
+ end
61
67
  end
62
68
  ```
63
69
 
@@ -1,2 +1,3 @@
1
1
  class EarlyBird::ApplicationController < ::ApplicationController
2
+ skip_before_action :authenticate_user!
2
3
  end
@@ -1,3 +1,3 @@
1
1
  module EarlyBird
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: early_bird
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Dawson