wallaby-view 0.1.7 → 0.1.8

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: c7144207990b4071d9aa101d8a2bbee5b282264bd896768f5b4a0640d8eba14f
4
- data.tar.gz: f8190dfba431bafbf38eb6c23cffb17932c6b223e7d52840c0846ddad2a654b3
3
+ metadata.gz: 4195c62d1989f2e8aabcdb5644f3c9e6769bdf72b7265008d4d98ceb4b0fac19
4
+ data.tar.gz: cf907d7053b1dfa3e7319a0b17f48847bfdb6a366ad7e086cb7a1909ca207f2d
5
5
  SHA512:
6
- metadata.gz: c44424c02029a37a88a5a7b090befda949dfb72838ff0dd113fa1efdaacc942b12e1aed6c15fcc5c38ec07e3e0fd8f38cc7c197a79b6bb89835714c7d3bb69ca
7
- data.tar.gz: 0ed6828b6445a7b9c101a6cd07100d726308536c58e684a2f1d61531c74d62cbb6e0a8d0dd745d66776d4e912f715d8ecd9fdd065b8bbaf317f5acbb2ead712d
6
+ metadata.gz: f80d3a9d4061a9808089cd81e3b166a6f4d7b4cc9d2b7f46dda6b1da1f676cacb306b5e56d5942cbb7660d1b65bd7be8ced024d5122575f00ccb7bc513008b4c
7
+ data.tar.gz: 8855c702f2fd9cd04de29f0c2135d415bdbd48898e8eed2ac9c93064791b75c03b27dacce58b11727dbef034e2a5424151f13706ec25a8411e25654fbb32b903
data/LICENSE CHANGED
@@ -1,20 +1,21 @@
1
- Copyright 2019
1
+ The MIT License
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
3
+ Copyright (c) 2010-2019 Google LLC. http://angular.io/license
10
4
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
13
11
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -42,7 +42,7 @@ module Wallaby
42
42
 
43
43
  # (see #lookup_context)
44
44
  def override_lookup_context
45
- @_lookup_context ||= # rubocop:disable Naming/MemoizedInstanceVariableName
45
+ @_lookup_context ||=
46
46
  CustomLookupContext.convert(original_lookup_context, prefixes: _prefixes)
47
47
  end
48
48
 
@@ -63,7 +63,7 @@ module Wallaby
63
63
  themes: nil,
64
64
  options: nil, &block
65
65
  )
66
- @_prefixes ||= # rubocop:disable Naming/MemoizedInstanceVariableName
66
+ @_prefixes ||=
67
67
  CustomPrefixes.execute(
68
68
  prefixes: prefixes || original_prefixes,
69
69
  action_name: action_name || params[:action],
@@ -14,7 +14,7 @@ module Wallaby
14
14
 
15
15
  new(
16
16
  lookup_context.view_paths,
17
- details || lookup_context.instance_variable_get('@details'),
17
+ details || lookup_context.instance_variable_get(:@details),
18
18
  prefixes || lookup_context.prefixes
19
19
  )
20
20
  end
@@ -26,7 +26,7 @@ module Wallaby
26
26
  # @param partial [true, false]
27
27
  # @param args [Array] the rest of the arguments
28
28
  # @return [ActionView::Template]
29
- alias original_find find
29
+ alias_method :original_find, :find
30
30
 
31
31
  # This is to resolve the performance bottleneck for template/partial lookup.
32
32
  #
@@ -44,7 +44,7 @@ module Wallaby
44
44
  # @!method find_template(path, prefixes, partial, *args)
45
45
  # This is an alias method of {#find}
46
46
  # (see #find)
47
- alias find_template find
47
+ alias_method :find_template, :find
48
48
 
49
49
  protected
50
50
 
@@ -135,7 +135,7 @@ module Wallaby
135
135
  # Map the {#action_name} using `options[:mapping_actions]`
136
136
  # @return [Array<String>] mapped action name
137
137
  def mapped_action_name
138
- Array((options[:mapping_actions] || options).try(:[], action_name))
138
+ Array.wrap((options[:mapping_actions] || options).try(:[], action_name))
139
139
  end
140
140
  end
141
141
  end
@@ -44,14 +44,14 @@ module Wallaby
44
44
  # layout} method
45
45
  def theme_name=(theme_name, **options, &block)
46
46
  layout theme_name, options, &block
47
- @theme_path = theme_name && controller_path || nil
47
+ @theme_path = (theme_name && controller_path) || nil
48
48
  @theme_name = theme_name || nil
49
49
  end
50
50
 
51
51
  # @!attribute [r] theme_name
52
52
  # @return [String, nil] theme name
53
53
  def theme_name
54
- defined?(@theme_name) && @theme_name || superclass.try(:theme_name)
54
+ (defined?(@theme_name) && @theme_name) || superclass.try(:theme_name)
55
55
  end
56
56
 
57
57
  # @!attribute [r] theme
@@ -69,10 +69,10 @@ module Wallaby
69
69
  # end
70
70
  # @return [Hash] theme metadata
71
71
  def theme
72
- defined?(@theme_name) && @theme_name && {
72
+ (defined?(@theme_name) && @theme_name && {
73
73
  theme_name: @theme_name,
74
74
  theme_path: @theme_path
75
- } || superclass.try(:theme)
75
+ }) || superclass.try(:theme)
76
76
  end
77
77
 
78
78
  # @!attribute [r] themes
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Wallaby
4
4
  module View
5
- VERSION = '0.1.7' # :nodoc:
5
+ VERSION = '0.1.8' # :nodoc:
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wallaby-view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
- - Tian Chen
7
+ - Tianwen Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-27 00:00:00.000000000 Z
11
+ date: 2026-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -16,14 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0
19
+ version: 8.0.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 9.0.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: 4.2.0
29
+ version: 8.0.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 9.0.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: github-markup
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -123,14 +129,14 @@ files:
123
129
  - lib/wallaby/view/custom_prefixes.rb
124
130
  - lib/wallaby/view/themeable.rb
125
131
  - lib/wallaby/view/version.rb
126
- homepage: https://github.com/wallaby-rails/wallaby-view
132
+ homepage: https://github.com/wallaby-rails/wallaby-rails/blob/main/wallaby-view
127
133
  licenses:
128
134
  - MIT
129
135
  metadata:
136
+ homepage_uri: https://github.com/wallaby-rails/wallaby-rails/blob/main/wallaby-view
137
+ source_code_uri: https://github.com/wallaby-rails/wallaby-rails/blob/main/wallaby-view
138
+ changelog_uri: https://github.com/wallaby-rails/wallaby-rails/blob/main/wallaby-view/CHANGELOG.md
130
139
  rubygems_mfa_required: 'true'
131
- homepage_uri: https://github.com/wallaby-rails/wallaby-view
132
- source_code_uri: https://github.com/wallaby-rails/wallaby-view
133
- changelog_uri: https://github.com/wallaby-rails/wallaby-view/blob/master/CHANGELOG.md
134
140
  post_install_message:
135
141
  rdoc_options: []
136
142
  require_paths:
@@ -139,14 +145,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
145
  requirements:
140
146
  - - ">="
141
147
  - !ruby/object:Gem::Version
142
- version: '0'
148
+ version: 3.3.0
143
149
  required_rubygems_version: !ruby/object:Gem::Requirement
144
150
  requirements:
145
151
  - - ">="
146
152
  - !ruby/object:Gem::Version
147
153
  version: '0'
148
154
  requirements: []
149
- rubygems_version: 3.1.2
155
+ rubygems_version: 3.5.22
150
156
  signing_key:
151
157
  specification_version: 4
152
158
  summary: Wallaby View to extend Rails layout/template/partial inheritance chain.