demo_mode 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: ff44831da006533421fb5947344feb6cde8e7859ea4ddc67041d64cceca9059f
4
- data.tar.gz: f00a4f1fcb6d836d103afb7339339322f8eca7b514d2197960f0bba9cd3fc9f9
3
+ metadata.gz: f5c2aba2f095198967b8781b28d20d3a57c5d0c4d9d816792fe275c6d039148b
4
+ data.tar.gz: 607c5cdaa82d3070aa37447d7c268c98df3ba0bb91ca6cff2b465a5fa0888dd0
5
5
  SHA512:
6
- metadata.gz: e3c8858b7b47e88725ab8be7258608b4664781f559ed74a4d33189a54f87deeb33948a02b93cf6ccbe9b31df18c176cab290c9aaf709f03f1a8141d88673dbfb
7
- data.tar.gz: c1bbaeb0b81913fef55c82d05e05229a5357e90587d7f6f9c8833a1dfd2b5471bf913edf67ec565606ad71817af5c6d3da23fab70e98a8e8cb079e99edefa51d
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**, stay tuned for
33
- our ✨ [upcoming RailsConf talk entitled
34
- "RAILS_ENV=demo"](https://railsconf.com/program/sessions#session-1284) ✨!
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**, stay tuned for our ✨ [upcoming
644
- RailsConf talk entitled
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
@@ -45,7 +45,7 @@ class CleverSequence
45
45
  end
46
46
 
47
47
  def reset!
48
- remove_instance_variable(:@last_value) if instance_variable_defined?('@last_value')
48
+ remove_instance_variable(:@last_value) if instance_variable_defined?(:@last_value)
49
49
  end
50
50
 
51
51
  private
@@ -103,7 +103,7 @@ module DemoMode
103
103
  end
104
104
 
105
105
  def personas
106
- unless instance_variable_defined?('@personas')
106
+ unless instance_variable_defined?(:@personas)
107
107
  @personas = []
108
108
  auto_load_personas!
109
109
  end
@@ -66,7 +66,7 @@ module DemoMode
66
66
  end
67
67
 
68
68
  def callout?
69
- instance_variable_defined?('@callout') && @callout
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?('@display_credentials')
77
+ if instance_variable_defined?(:@display_credentials)
78
78
  @display_credentials
79
79
  else
80
80
  DemoMode.display_credentials?
@@ -1,3 +1,3 @@
1
1
  module DemoMode
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require 'rails/generators/base'
2
+ require 'demo_mode/engine'
2
3
 
3
4
  module DemoMode
4
5
  class InstallGenerator < Rails::Generators::Base
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.1
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-06-03 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails