abraham 2.1.1 → 2.1.2

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: ff95535b276b88084751642aa2341e3d412b121cca7679a399b17517ff4678f0
4
- data.tar.gz: 8897682f52af7bb97d4b27c4d7132a1fa09fdf742bbea871da73d19fdfbd1f7b
3
+ metadata.gz: 934942f3a067c17e06029f1095f7abf5b570d5e7b63a8d16601769df4d3300e1
4
+ data.tar.gz: 2389400109634350208fff528edf7c70577982677f34e8af9ef84dcb49aa9d5a
5
5
  SHA512:
6
- metadata.gz: f3a6e11f58d202a7030586fc4c9cbd7542bd48f7552c680d1c5374f207fb6cb8dc592f92e271a9778f5d3cb6baee75142c6afd48e6269e5120ad3537df4e61b8
7
- data.tar.gz: 89582b9bda14987c417d09a924ab7bd8a7641e57d0bc0db25e035730558cbe35c8cbd31cfa111ca7586f827232e1ec427ff0757f57f142af1446e37025162244
6
+ metadata.gz: ec5c02fcd3b19038b65b9a3af6ce3d84f585c47e465a914021d05a18c340665fb1891fb590fb76b332a05eb5d7e6736e89aba9e854cf94ad0acb921c4cc623ce
7
+ data.tar.gz: c00a73dfe7269459459fadaa4db889de665ec0601273fa431d94372cf38383e4f0a5c1b5959fbf0a7f5ea681fb149948dadc2ec4670e09941b54356979500274
@@ -25,9 +25,18 @@ module AbrahamHelper
25
25
  end
26
26
 
27
27
  def abraham_cookie_prefix
28
- "abraham-#{Rails.application.class.parent.to_s.underscore}-#{current_user.id}-#{controller_name}-#{action_name}"
28
+ "abraham-#{fetch_application_name.to_s.underscore}-#{current_user.id}-#{controller_name}-#{action_name}"
29
29
  end
30
30
 
31
+ def fetch_application_name
32
+ if Module.method_defined?(:module_parent)
33
+ Rails.application.class.module_parent
34
+ else
35
+ Rails.application.class.parent
36
+ end
37
+ end
38
+
39
+
31
40
  def abraham_domain
32
41
  request.host
33
42
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Abraham
4
- VERSION = "2.1.1"
4
+ VERSION = "2.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abraham
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Abbett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-09 00:00:00.000000000 Z
11
+ date: 2020-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sassc-rails
@@ -130,7 +130,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
- rubygems_version: 3.0.2
133
+ rubyforge_project:
134
+ rubygems_version: 2.7.6
134
135
  signing_key:
135
136
  specification_version: 4
136
137
  summary: Trackable application tours for Rails with i18n support, based on Shepherd.js.