demo_mode 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -6
- data/lib/demo_mode/clever_sequence.rb +1 -1
- data/lib/demo_mode/config.rb +1 -1
- data/lib/demo_mode/persona.rb +2 -2
- data/lib/demo_mode/version.rb +1 -1
- data/lib/generators/demo_mode/install_generator.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5c2aba2f095198967b8781b28d20d3a57c5d0c4d9d816792fe275c6d039148b
|
4
|
+
data.tar.gz: 607c5cdaa82d3070aa37447d7c268c98df3ba0bb91ca6cff2b465a5fa0888dd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ba3edc9678b5d98819abd4fe1a12b631ced1d145ce781e6780dd60515776bf1c4f6dad8ef1abbc0a317f5135c179ecbaf9987318388681c2c3f6800d79ff701
|
7
|
+
data.tar.gz: eab477fb3021f61f9c6d35586228e7880e901f72ac03f717df7bafd3664a5e838f0f28fb04e8b490e6f9350a2a7fdb9a3b27840873561f93bb96a09f2bf930a9
|
data/README.md
CHANGED
@@ -29,9 +29,9 @@ accounts concisely). That said, you'll get the most mileage out of whatever
|
|
29
29
|
tools you _already use_ in local development & testing, so if you already have
|
30
30
|
solutions for isolating your app and generating users, use those!
|
31
31
|
|
32
|
-
To learn more about how we use `demo_mode` at **Betterment**,
|
33
|
-
|
34
|
-
"
|
32
|
+
To learn more about how we use `demo_mode` at **Betterment**, check out :sparkles: ["RAILS_ENV=demo" (RailsConf 2022)](https://youtu.be/VibJu9IMohc) :sparkles::
|
33
|
+
|
34
|
+
<p align="center"><a href="https://youtu.be/VibJu9IMohc"><img width="50%" src="https://user-images.githubusercontent.com/83998/180073238-b59f42e5-5c3d-4027-9558-e5a6ad6333fe.png" /></a></p>
|
35
35
|
|
36
36
|
## Table of Contents
|
37
37
|
|
@@ -640,9 +640,8 @@ that this demo environment _is_ a "production-like" environment
|
|
640
640
|
and should expect "production-like" uptime guarantees.
|
641
641
|
|
642
642
|
Again, to learn more about how we use and operate our "demo"
|
643
|
-
environments at **Betterment**,
|
644
|
-
|
645
|
-
"RAILS_ENV=demo"](https://railsconf.com/program/sessions#session-1284)
|
643
|
+
environments at **Betterment**, check out our ✨ [RailsConf 2022 talk entitled
|
644
|
+
"RAILS_ENV=demo"](https://youtu.be/VibJu9IMohc)
|
646
645
|
✨!
|
647
646
|
|
648
647
|
## How to Contribute
|
data/lib/demo_mode/config.rb
CHANGED
data/lib/demo_mode/persona.rb
CHANGED
@@ -66,7 +66,7 @@ module DemoMode
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def callout?
|
69
|
-
instance_variable_defined?(
|
69
|
+
instance_variable_defined?(:@callout) && @callout
|
70
70
|
end
|
71
71
|
|
72
72
|
def display_credentials(display_credentials = true) # rubocop:disable Style/OptionalBooleanParameter
|
@@ -74,7 +74,7 @@ module DemoMode
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def display_credentials?
|
77
|
-
if instance_variable_defined?(
|
77
|
+
if instance_variable_defined?(:@display_credentials)
|
78
78
|
@display_credentials
|
79
79
|
else
|
80
80
|
DemoMode.display_credentials?
|
data/lib/demo_mode/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: demo_mode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Griffith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|