sorry-rails 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 +4 -4
- data/.rubocop.yml +1 -1
- data/Gemfile +2 -0
- data/Gemfile.lock +38 -40
- data/Rakefile +2 -0
- data/lib/sorry/rails.rb +3 -1
- data/lib/sorry/rails/configuration.rb +2 -0
- data/lib/sorry/rails/railtie.rb +2 -0
- data/lib/sorry/rails/script_tag_helper.rb +6 -4
- data/lib/sorry/rails/subscriber_serializer.rb +2 -0
- data/lib/sorry/rails/version.rb +3 -1
- data/sorry-rails.gemspec +2 -0
- data/spec/sorry/rails/configuration_spec.rb +2 -0
- data/spec/sorry/rails/script_tag_helper_spec.rb +2 -0
- data/spec/sorry/rails/subscriber_serializer_spec.rb +2 -0
- data/spec/sorry/rails_spec.rb +2 -0
- data/spec/spec_helper.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d795da765b4e44459ed960007579ebae275c432
|
4
|
+
data.tar.gz: c89118d4efadaace7429c8b38bca8d5a6a342ac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d237142030a34e3f1b6515bc124573c5e9d24712d81b16d0ff91110f223c68fc8608f59ca1f6bb2f2411c8a1910d4b901dd7a1abba5ca66bb8dbf668ede20af6
|
7
|
+
data.tar.gz: d9063fdd8f726ee9fe9b2ae547f2764c5fce606a5473bf1548e5cd679f996f915828833d22def325468e20cb8e143a701007c3c3d799b1bb89c807b2075fb7a7
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sorry-rails (0.1.
|
4
|
+
sorry-rails (0.1.3)
|
5
5
|
actionview
|
6
6
|
activesupport
|
7
7
|
hashie (~> 2.0)
|
@@ -9,76 +9,74 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actionview (5.2.
|
13
|
-
activesupport (= 5.2.
|
12
|
+
actionview (5.2.3)
|
13
|
+
activesupport (= 5.2.3)
|
14
14
|
builder (~> 3.1)
|
15
15
|
erubi (~> 1.4)
|
16
16
|
rails-dom-testing (~> 2.0)
|
17
17
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
18
|
-
activesupport (5.2.
|
18
|
+
activesupport (5.2.3)
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
20
|
i18n (>= 0.7, < 2)
|
21
21
|
minitest (~> 5.1)
|
22
22
|
tzinfo (~> 1.1)
|
23
23
|
ast (2.4.0)
|
24
24
|
builder (3.2.3)
|
25
|
-
concurrent-ruby (1.
|
26
|
-
crass (1.0.
|
25
|
+
concurrent-ruby (1.1.5)
|
26
|
+
crass (1.0.5)
|
27
27
|
diff-lcs (1.3)
|
28
|
-
erubi (1.
|
29
|
-
faker (
|
30
|
-
i18n (>=
|
28
|
+
erubi (1.9.0)
|
29
|
+
faker (2.7.0)
|
30
|
+
i18n (>= 1.6, < 1.8)
|
31
31
|
hashie (2.1.2)
|
32
|
-
i18n (1.0
|
32
|
+
i18n (1.7.0)
|
33
33
|
concurrent-ruby (~> 1.0)
|
34
|
-
jaro_winkler (1.5.
|
35
|
-
loofah (2.
|
34
|
+
jaro_winkler (1.5.4)
|
35
|
+
loofah (2.3.1)
|
36
36
|
crass (~> 1.0.2)
|
37
37
|
nokogiri (>= 1.5.9)
|
38
|
-
mini_portile2 (2.
|
39
|
-
minitest (5.
|
40
|
-
nokogiri (1.
|
41
|
-
mini_portile2 (~> 2.
|
42
|
-
parallel (1.
|
43
|
-
parser (2.5.
|
38
|
+
mini_portile2 (2.4.0)
|
39
|
+
minitest (5.13.0)
|
40
|
+
nokogiri (1.10.5)
|
41
|
+
mini_portile2 (~> 2.4.0)
|
42
|
+
parallel (1.18.0)
|
43
|
+
parser (2.6.5.0)
|
44
44
|
ast (~> 2.4.0)
|
45
|
-
powerpack (0.1.2)
|
46
45
|
rails-dom-testing (2.0.3)
|
47
46
|
activesupport (>= 4.2.0)
|
48
47
|
nokogiri (>= 1.6)
|
49
|
-
rails-html-sanitizer (1.0
|
50
|
-
loofah (~> 2.
|
48
|
+
rails-html-sanitizer (1.3.0)
|
49
|
+
loofah (~> 2.3)
|
51
50
|
rainbow (3.0.0)
|
52
|
-
rake (
|
53
|
-
rspec (3.
|
54
|
-
rspec-core (~> 3.
|
55
|
-
rspec-expectations (~> 3.
|
56
|
-
rspec-mocks (~> 3.
|
57
|
-
rspec-core (3.
|
58
|
-
rspec-support (~> 3.
|
59
|
-
rspec-expectations (3.
|
51
|
+
rake (13.0.0)
|
52
|
+
rspec (3.9.0)
|
53
|
+
rspec-core (~> 3.9.0)
|
54
|
+
rspec-expectations (~> 3.9.0)
|
55
|
+
rspec-mocks (~> 3.9.0)
|
56
|
+
rspec-core (3.9.0)
|
57
|
+
rspec-support (~> 3.9.0)
|
58
|
+
rspec-expectations (3.9.0)
|
60
59
|
diff-lcs (>= 1.2.0, < 2.0)
|
61
|
-
rspec-support (~> 3.
|
62
|
-
rspec-html-matchers (0.9.
|
60
|
+
rspec-support (~> 3.9.0)
|
61
|
+
rspec-html-matchers (0.9.2)
|
63
62
|
nokogiri (~> 1)
|
64
63
|
rspec (>= 3.0.0.a, < 4)
|
65
|
-
rspec-mocks (3.
|
64
|
+
rspec-mocks (3.9.0)
|
66
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
-
rspec-support (~> 3.
|
68
|
-
rspec-support (3.
|
69
|
-
rubocop (0.
|
66
|
+
rspec-support (~> 3.9.0)
|
67
|
+
rspec-support (3.9.0)
|
68
|
+
rubocop (0.76.0)
|
70
69
|
jaro_winkler (~> 1.5.1)
|
71
70
|
parallel (~> 1.10)
|
72
|
-
parser (>= 2.
|
73
|
-
powerpack (~> 0.1)
|
71
|
+
parser (>= 2.6)
|
74
72
|
rainbow (>= 2.2.2, < 4.0)
|
75
73
|
ruby-progressbar (~> 1.7)
|
76
|
-
unicode-display_width (
|
77
|
-
ruby-progressbar (1.
|
74
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
75
|
+
ruby-progressbar (1.10.1)
|
78
76
|
thread_safe (0.3.6)
|
79
77
|
tzinfo (1.2.5)
|
80
78
|
thread_safe (~> 0.1)
|
81
|
-
unicode-display_width (1.
|
79
|
+
unicode-display_width (1.6.0)
|
82
80
|
|
83
81
|
PLATFORMS
|
84
82
|
ruby
|
data/Rakefile
CHANGED
data/lib/sorry/rails.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'sorry/rails/configuration'
|
2
4
|
require 'sorry/rails/script_tag_helper'
|
3
5
|
require 'sorry/rails/subscriber_serializer'
|
@@ -13,7 +15,7 @@ module Sorry
|
|
13
15
|
|
14
16
|
# Define the JS plugin version to be used
|
15
17
|
# by the script tag generator.
|
16
|
-
PLUGIN_VERSION = '4.latest'
|
18
|
+
PLUGIN_VERSION = '4.latest'
|
17
19
|
|
18
20
|
class << self
|
19
21
|
|
data/lib/sorry/rails/railtie.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'active_support/all'
|
2
4
|
require 'action_view'
|
3
5
|
|
@@ -31,10 +33,10 @@ module Sorry
|
|
31
33
|
# Build the JavaScript tag for the plugin include.
|
32
34
|
# Use the latest JS version defined in the plugin.
|
33
35
|
javascript_include_tag "https://code.sorryapp.com/status-bar/#{Sorry::Rails::PLUGIN_VERSION}/status-bar.min.js",
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
36
|
+
# Define the pages identity.
|
37
|
+
data: { for: options.fetch('page_id') },
|
38
|
+
# Load asynchronously.
|
39
|
+
async: true
|
38
40
|
end
|
39
41
|
|
40
42
|
def sorry_script_payload_tag(options)
|
data/lib/sorry/rails/version.rb
CHANGED
data/sorry-rails.gemspec
CHANGED
data/spec/sorry/rails_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorry-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Rawlins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|