spark-component 1.0.0.pre.alpha.4 → 1.0.0.pre.alpha.5

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: a346c10059d1486dd26c0705d6867ea3ea8c37f26b46012fea5bd1452ad2b155
4
- data.tar.gz: a2c5ff8ef1401af5df7495ca8c0d8dba16f90d3b42f707a28d553d2b4a043b0a
3
+ metadata.gz: 4d1bd4dedf7c1b85faaf558fa0e34383f9cbda2ee7f684f65138c60dd0b28c18
4
+ data.tar.gz: fe875a9bfef081afec06dc0d202a32539e4fff981ba9b56d6ba4816d79a63519
5
5
  SHA512:
6
- metadata.gz: 1955de23d4d4da5a00c2b222d9de2f9107d41eeb10d908464b8ef8d8e331bd9fdf5730704875ef2bee5ce7ff4794e107a4aaf6937f07594da9c2a4e711e990a6
7
- data.tar.gz: 8e9a693a36480a4543bdbafe26eca35265aba98079465a32885a36a6acfd296cd63d341fa5cffe2a8e3878437a608af9fec6f23f0bdb879bfff7bfc1144e7d4c
6
+ metadata.gz: 852c5e0a7bb30dd1380e9bd8354d1956d99e54754ba6d8cc24f825e603b7e4dd776d3e348565dcc8418764b76663d41bd9932d13e84080b0afd263f93c20570c
7
+ data.tar.gz: 3df0f24f2d5eec532633f865b999919a40aac22d9d041cdbd43562a1f3b4aa388ae6b7ade958fd1b032bd9824aaa6af6bceacd5886044c00b4e8cdfc5628b90b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spark-component (1.0.0.pre.alpha.4)
4
+ spark-component (1.0.0.pre.alpha.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -42,7 +42,7 @@ GEM
42
42
  erubi (~> 1.4)
43
43
  rails-dom-testing (~> 2.0)
44
44
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
45
- actionview-component (1.4.0)
45
+ actionview-component (1.5.3)
46
46
  activejob (6.0.1)
47
47
  activesupport (= 6.0.1)
48
48
  globalid (>= 0.3.6)
@@ -73,8 +73,8 @@ GEM
73
73
  activesupport (>= 4.2.0)
74
74
  i18n (1.7.0)
75
75
  concurrent-ruby (~> 1.0)
76
- jaro_winkler (1.5.3)
77
- loofah (2.3.1)
76
+ jaro_winkler (1.5.4)
77
+ loofah (2.4.0)
78
78
  crass (~> 1.0.2)
79
79
  nokogiri (>= 1.5.9)
80
80
  mail (2.7.1)
@@ -88,10 +88,10 @@ GEM
88
88
  mini_portile2 (2.4.0)
89
89
  minitest (5.1.0)
90
90
  nio4r (2.5.2)
91
- nokogiri (1.10.5)
91
+ nokogiri (1.10.7)
92
92
  mini_portile2 (~> 2.4.0)
93
- parallel (1.18.0)
94
- parser (2.6.3.0)
93
+ parallel (1.19.1)
94
+ parser (2.6.5.0)
95
95
  ast (~> 2.4.0)
96
96
  pry (0.12.2)
97
97
  coderay (~> 1.1.0)
@@ -130,7 +130,7 @@ GEM
130
130
  thor (>= 0.20.3, < 2.0)
131
131
  rainbow (3.0.0)
132
132
  rake (10.5.0)
133
- rubocop (0.74.0)
133
+ rubocop (0.77.0)
134
134
  jaro_winkler (~> 1.5.1)
135
135
  parallel (~> 1.10)
136
136
  parser (>= 2.6)
@@ -158,7 +158,7 @@ GEM
158
158
  websocket-driver (0.7.1)
159
159
  websocket-extensions (>= 0.1.0)
160
160
  websocket-extensions (0.1.4)
161
- zeitwerk (2.2.1)
161
+ zeitwerk (2.2.2)
162
162
 
163
163
  PLATFORMS
164
164
  ruby
@@ -223,8 +223,9 @@ module Spark
223
223
 
224
224
  # Prevent an element method from overwriting an existing method
225
225
  def define_method_if_able(method_name, &block)
226
- # Select instance methods but not those which are intance methods received by extending a class
227
- methods = (instance_methods - superclass.instance_methods(false))
226
+ # Protect instance methods which are crucial to components and elements
227
+ # Consider adding ActionView::Component::Base core instance methods to reserved list
228
+ methods = [Element, Attribute, superclass].map { |c| c.instance_methods(false) }.flatten
228
229
 
229
230
  if methods.include?(method_name.to_sym)
230
231
  raise(Element::Error, "Method '#{method_name}' already exists.")
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Spark
4
4
  module Component
5
- VERSION = "1.0.0.pre.alpha.4"
5
+ VERSION = "1.0.0.pre.alpha.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spark-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.alpha.4
4
+ version: 1.0.0.pre.alpha.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-09 00:00:00.000000000 Z
11
+ date: 2019-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview-component