rails_onboarding 0.8.4 → 0.8.5

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: 007cab6c758c3d50c9c2b9dca6c8f798956b6c09d61a0078de8c347f2b857395
4
- data.tar.gz: d431ee736da8d5de6af011483929f64cefd5da668844d88934ad48d30e3af5a1
3
+ metadata.gz: f8afb9ad8022edcb79752a590ddc52652c947b42be298065194aa28399347fcc
4
+ data.tar.gz: 46d9cfba7ca062ea59075ab52d796a250691e1fcddc58f53438f049af131d2e3
5
5
  SHA512:
6
- metadata.gz: b6f99c18d8a9e4143aa445392866e46e88561ec28e51f8d29a72c37458eecfbab311bed79ed9c400104849ba2669acecc8307464a5bbb8edbe3001543df763ec
7
- data.tar.gz: c4db1b37aeec6472fb839ac1647f8d4ddc9fd1f643e4118e889e0a14db9a5ec1b9793bd3d3af0cfbb1f1550cced75c5439216f8a3c1b7f26402bf26d276a0dfb
6
+ metadata.gz: d933e36a68ab7d438a06c2dea6dcbf7536d90ae9e5df4e060bf5bd2bccd503f24ff0061c2a1fb40046fbeefd2d211552c0750b9f48bac05e61db027ba02936df
7
+ data.tar.gz: 295d2dc68da00f371d82a592f3355a691d49732270fb45dcc3992958a3cb9d1501cd2433bae931a2b15d661a7b1b9925e9727023f1d7a7759a42d2640bd200c1
@@ -6,7 +6,7 @@
6
6
  viewport and zooms out to fit the physical screen - everything (text,
7
7
  buttons, spacing) looks shrunk even though the CSS itself is correct. %>
8
8
  <meta name="viewport" content="width=device-width, initial-scale=1">
9
- <title><%= Rails.application.class.module_parent.name %> Onboarding</title>
9
+ <title><%= RailsOnboarding.configuration.app_name.presence || Rails.application.class.module_parent.name %> Onboarding</title>
10
10
  <%= csrf_meta_tags %>
11
11
  <%= csp_meta_tag %>
12
12
 
@@ -33,7 +33,8 @@ module RailsOnboarding
33
33
  include RateLimiting
34
34
  include Templates
35
35
 
36
- attr_accessor :user_class_name,
36
+ attr_accessor :app_name,
37
+ :user_class_name,
37
38
  :include_host_styles,
38
39
  :redirect_after_completion,
39
40
  :redirect_after_skip,
@@ -45,6 +46,11 @@ module RailsOnboarding
45
46
  :admin_user_search
46
47
 
47
48
  def initialize
49
+ # What to call the host product on onboarding pages. Defaults to the Rails
50
+ # application's module name, which is a code identifier and often not what
51
+ # the product is actually called - "Gift" for an app called Gift Posse.
52
+ # nil keeps the derived name.
53
+ @app_name = nil
48
54
  @user_class_name = "User"
49
55
  @include_host_styles = true # Default to including host app css
50
56
 
@@ -1,3 +1,3 @@
1
1
  module RailsOnboarding
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_onboarding
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lewis
@@ -282,7 +282,7 @@ licenses:
282
282
  metadata:
283
283
  allowed_push_host: https://rubygems.org
284
284
  homepage_uri: https://github.com/bunnahabhain/rails_onboarding
285
- source_code_uri: https://github.com/bunnahabhain/rails_onboarding/tree/v0.8.4
285
+ source_code_uri: https://github.com/bunnahabhain/rails_onboarding/tree/v0.8.5
286
286
  changelog_uri: https://github.com/bunnahabhain/rails_onboarding/blob/master/docs/CHANGELOG.md
287
287
  rdoc_options: []
288
288
  require_paths: