frails 0.5.1 → 0.6.0

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: be11f37a9eb2399e8c7da768f1a69f3b72280c453b23c9fa38725c3f3c835a3c
4
- data.tar.gz: eeb4c69660eb4602fff64a38d298b386ab0351616a3faea9f4f0d8421c9d57a0
3
+ metadata.gz: 9e2019a4307891e5178133fc9f650899438107417cb2e27114fd312d76fb27ee
4
+ data.tar.gz: 81257e95be178039ff24d51d75edc4fb901e537a22376db859f7f22cebe66b4d
5
5
  SHA512:
6
- metadata.gz: 2f8c3536fa4fb8944533dc6a9dd4842b62a9f23e6092324224d1a715ac33fb555adcd28a6a5155a5d892ddff16071d025ca9476ba0be18aead3191ad09352b1b
7
- data.tar.gz: 23a6cd608d128f1961cca8ed6623ecd7b05ba36c07f148c81300ba832471b4a1c069fec379b33571637c1181563f41ea7764d675f78c579d675d98ffb8e86a6c
6
+ metadata.gz: '095364fec3c7b02572e771e2ca5edbf82baecb1ebd36bc8eb94c2cc93a3238c0b8853daa8af32fec36532a34a18c4346ed45c128202c0a855d72129b3461d40b'
7
+ data.tar.gz: 7f75601a78753eecd204a8c45767bcf9529a3936145b236d9d216f0a2348ce1f90c95b0b1bed70cecbd2518166bac5f2434f40b8b7006696ab949281366b6428
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- frails (0.5.0)
4
+ frails (0.5.1)
5
5
  nokogiri (>= 1.10.4)
6
6
  rack-proxy (>= 0.6.5)
7
7
  rails (>= 6.0)
@@ -67,11 +67,11 @@ GEM
67
67
  ast (2.4.0)
68
68
  builder (3.2.3)
69
69
  concurrent-ruby (1.1.5)
70
- crass (1.0.4)
70
+ crass (1.0.5)
71
71
  erubi (1.9.0)
72
72
  globalid (0.4.2)
73
73
  activesupport (>= 4.2.0)
74
- i18n (1.6.0)
74
+ i18n (1.7.0)
75
75
  concurrent-ruby (~> 1.0)
76
76
  jaro_winkler (1.5.3)
77
77
  loofah (2.3.0)
@@ -115,8 +115,8 @@ GEM
115
115
  rails-dom-testing (2.0.3)
116
116
  activesupport (>= 4.2.0)
117
117
  nokogiri (>= 1.6)
118
- rails-html-sanitizer (1.2.0)
119
- loofah (~> 2.2, >= 2.2.2)
118
+ rails-html-sanitizer (1.3.0)
119
+ loofah (~> 2.3)
120
120
  railties (6.0.0)
121
121
  actionpack (= 6.0.0)
122
122
  activesupport (= 6.0.0)
@@ -133,7 +133,7 @@ GEM
133
133
  ruby-progressbar (~> 1.7)
134
134
  unicode-display_width (>= 1.4.0, < 1.7)
135
135
  ruby-progressbar (1.10.1)
136
- sprockets (3.7.2)
136
+ sprockets (4.0.0)
137
137
  concurrent-ruby (~> 1.0)
138
138
  rack (> 1, < 3)
139
139
  sprockets-rails (3.2.1)
@@ -148,7 +148,7 @@ GEM
148
148
  websocket-driver (0.7.1)
149
149
  websocket-extensions (>= 0.1.0)
150
150
  websocket-extensions (0.1.4)
151
- zeitwerk (2.1.10)
151
+ zeitwerk (2.2.0)
152
152
 
153
153
  PLATFORMS
154
154
  ruby
@@ -15,7 +15,6 @@ class Frails::Component::ReactComponentRenderer
15
15
 
16
16
  private
17
17
 
18
- # rubocop:disable Rails/OutputSafety
19
18
  def render_with_callbacks
20
19
  @presenter.run_callbacks :render do
21
20
  @prerender = @presenter.prerender
@@ -32,7 +31,6 @@ class Frails::Component::ReactComponentRenderer
32
31
  @prerender ? move_console_replay_script(rendered_tag) : rendered_tag
33
32
  end
34
33
  end
35
- # rubocop:enable Rails/OutputSafety
36
34
 
37
35
  def presenter_class
38
36
  super || Frails::Component::ReactComponent
@@ -58,19 +56,17 @@ class Frails::Component::ReactComponentRenderer
58
56
  end
59
57
 
60
58
  def loader
61
- return unless @content_loader
62
-
63
- @view.render "shared/content_loaders/#{@content_loader == true ? 'code' : @content_loader}"
64
- end
59
+ @content_loader ? @view.render(@content_loader) : nil
60
+ end
65
61
 
66
62
  # Grab the server-rendered console replay script and move it outside the container div.
67
63
  #
68
- # rubocop:disable Rails/OutputSafety, Style/RegexpLiteral
64
+ # rubocop:disable Style/RegexpLiteral
69
65
  def move_console_replay_script(rendered_tag)
70
66
  regex = /\n(<script class="js__reactServerConsoleReplay">.*<\/script>)<\/(\w+)>$/m
71
67
  rendered_tag.sub(regex, '</\2>\1').html_safe
72
68
  end
73
- # rubocop:enable Rails/OutputSafety, Style/RegexpLiteral
69
+ # rubocop:enable Style/RegexpLiteral
74
70
 
75
71
  def stylesheet_entry_file
76
72
  "#{@component.tr('/', '-')}-index-entry-jsx"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Frails
4
- VERSION = '0.5.1'
4
+ VERSION = '0.6.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-17 00:00:00.000000000 Z
11
+ date: 2019-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri