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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47ef1033ef828a5f626e82e9917e4b933faf134b
4
- data.tar.gz: 468b191147aa0fe4f8609b2f3e6d7ed3cd5f5013
3
+ metadata.gz: 8d795da765b4e44459ed960007579ebae275c432
4
+ data.tar.gz: c89118d4efadaace7429c8b38bca8d5a6a342ac0
5
5
  SHA512:
6
- metadata.gz: 493917af41e616934deed8ae63115eda700c7972a1e1f8ee2fca69a67cf087e79aa0ffff669ca3d74ba8f3d44bcde97465e7a909e6d0c9ccabc729d47a648ebe
7
- data.tar.gz: f37b3b7e311b7ae90d0d75da0ef90cff99e8d2579369d7d52c40bda59e38ba69a2e51c0bf8891ab1063c11d2cf360c1df4c807679fd6b9e451fe82dff26e6e45
6
+ metadata.gz: d237142030a34e3f1b6515bc124573c5e9d24712d81b16d0ff91110f223c68fc8608f59ca1f6bb2f2411c8a1910d4b901dd7a1abba5ca66bb8dbf668ede20af6
7
+ data.tar.gz: d9063fdd8f726ee9fe9b2ae547f2764c5fce606a5473bf1548e5cd679f996f915828833d22def325468e20cb8e143a701007c3c3d799b1bb89c807b2075fb7a7
@@ -21,7 +21,7 @@ Layout/EmptyLinesAroundModuleBody:
21
21
  Layout/AlignParameters:
22
22
  EnforcedStyle: with_fixed_indentation
23
23
 
24
- Layout/IndentHash:
24
+ Layout/IndentFirstHashElement:
25
25
  EnforcedStyle: consistent
26
26
 
27
27
  Style/GuardClause:
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sorry-rails (0.1.2)
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.0)
13
- activesupport (= 5.2.0)
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.0)
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.0.5)
26
- crass (1.0.4)
25
+ concurrent-ruby (1.1.5)
26
+ crass (1.0.5)
27
27
  diff-lcs (1.3)
28
- erubi (1.7.1)
29
- faker (1.8.7)
30
- i18n (>= 0.7)
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.1)
32
+ i18n (1.7.0)
33
33
  concurrent-ruby (~> 1.0)
34
- jaro_winkler (1.5.1)
35
- loofah (2.2.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.3.0)
39
- minitest (5.11.3)
40
- nokogiri (1.8.4)
41
- mini_portile2 (~> 2.3.0)
42
- parallel (1.12.1)
43
- parser (2.5.1.2)
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.4)
50
- loofah (~> 2.2, >= 2.2.2)
48
+ rails-html-sanitizer (1.3.0)
49
+ loofah (~> 2.3)
51
50
  rainbow (3.0.0)
52
- rake (12.3.1)
53
- rspec (3.7.0)
54
- rspec-core (~> 3.7.0)
55
- rspec-expectations (~> 3.7.0)
56
- rspec-mocks (~> 3.7.0)
57
- rspec-core (3.7.1)
58
- rspec-support (~> 3.7.0)
59
- rspec-expectations (3.7.0)
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.7.0)
62
- rspec-html-matchers (0.9.1)
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.7.0)
64
+ rspec-mocks (3.9.0)
66
65
  diff-lcs (>= 1.2.0, < 2.0)
67
- rspec-support (~> 3.7.0)
68
- rspec-support (3.7.1)
69
- rubocop (0.58.1)
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.5, != 2.5.1.1)
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 (~> 1.0, >= 1.0.1)
77
- ruby-progressbar (1.9.0)
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.4.0)
79
+ unicode-display_width (1.6.0)
82
80
 
83
81
  PLATFORMS
84
82
  ruby
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rspec/core/rake_task'
3
5
 
@@ -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'.freeze
18
+ PLUGIN_VERSION = '4.latest'
17
19
 
18
20
  class << self
19
21
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'hashie/dash'
2
4
 
3
5
  module Sorry
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sorry
2
4
  module Rails
3
5
  #
@@ -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
- # Define the pages identity.
35
- data: { for: options.fetch('page_id') },
36
- # Load asynchronously.
37
- async: true
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)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'json'
2
4
 
3
5
  module Sorry
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Sorry
2
4
  module Rails
3
5
 
4
6
  # Define version number on release.
5
- VERSION = '0.1.2'.freeze
7
+ VERSION = '0.1.3'
6
8
 
7
9
  end
8
10
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  lib = File.expand_path('lib', __dir__)
2
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
5
  require 'sorry/rails/version'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Sorry::Rails::Configuration do
2
4
 
3
5
  # Get an instance for testing.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Sorry::Rails::ScriptTagHelper, type: :helper do
2
4
 
3
5
  # Include the helper methods for testing.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Sorry::Rails::SubscriberSerializer do
2
4
 
3
5
  # Mock a subscriber / user to serialize
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.describe Sorry::Rails do
2
4
 
3
5
  describe '#configure' do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/setup'
2
4
  require 'faker'
3
5
  require 'sorry/rails'
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.2
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: 2018-07-11 00:00:00.000000000 Z
11
+ date: 2019-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler