lite-component 1.0.7 → 1.0.8

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: 7a8da63bbff0a8b2ff1ed61b3c3a8ae03219c44c068f3a4ae341f2cf28505e16
4
- data.tar.gz: 9e47f787be905cc2f3d08818aec1d8a91f111f3998e8f36bdfdd322d6c1f817f
3
+ metadata.gz: 42c871c9d4d37bbc347dc56f867e94cb7b0f79cdca1d59d19178b53efb0f5ac3
4
+ data.tar.gz: 5344d77cc6ba9ca376de5109a1705482438ab41c249e4c94c674e6d51b0f4468
5
5
  SHA512:
6
- metadata.gz: '029d1ed5a40fc81b0692d7a911a75a6f0238e2bc5bf54e2f41398f4a0293f75a44a32c44b990b181377ffe68c245d84b8ab9cc50e5e7e5e76eb4837b6a5da285'
7
- data.tar.gz: 8db291f7a80fcbb8824460c0fc7bc8d92beb8baf5300fefc630242f5e159f5bcf9e4cfb5a94ec3fa84ad06b88a1a5fa978f68d62b55ed9d9ff79427791e46272
6
+ metadata.gz: 30378e2f2adc971d9254c7b861b83c1e0f6dcc088113fd5e48980ec99171659492b0c9400e6257719eb91b05bea0a0ea0f779ca7441d671b68a5b148372e04c4
7
+ data.tar.gz: 3665e9afb7967818478bb7a8591e76c1eedf5ef70f07da03e2779322b99ab52dcfcfd930814eb31b46d78e10a349022cfb5716db68b9edbcc40b7ce6da48ac95
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.8] - 2019-12-26
10
+ ### Added
11
+ - Added `c` local variable to access the component
12
+
9
13
  ## [1.0.7] - 2019-12-24
10
14
  ### Changed
11
15
  - Fixed path to nested partials
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-component (1.0.7)
4
+ lite-component (1.0.8)
5
5
  actionview
6
6
 
7
7
  GEM
@@ -51,7 +51,7 @@ GEM
51
51
  nokogiri (1.10.7)
52
52
  mini_portile2 (~> 2.4.0)
53
53
  parallel (1.19.1)
54
- parser (2.6.5.0)
54
+ parser (2.7.0.0)
55
55
  ast (~> 2.4.0)
56
56
  rack (2.0.8)
57
57
  rack-test (1.1.0)
@@ -89,7 +89,7 @@ GEM
89
89
  rainbow (>= 2.2.2, < 4.0)
90
90
  ruby-progressbar (~> 1.7)
91
91
  unicode-display_width (>= 1.4.0, < 1.7)
92
- rubocop-performance (1.5.1)
92
+ rubocop-performance (1.5.2)
93
93
  rubocop (>= 0.71.0)
94
94
  rubocop-rspec (1.37.1)
95
95
  rubocop (>= 0.68.1)
@@ -99,7 +99,7 @@ GEM
99
99
  sexp_processor (4.13.0)
100
100
  thor (1.0.1)
101
101
  thread_safe (0.3.6)
102
- tzinfo (1.2.5)
102
+ tzinfo (1.2.6)
103
103
  thread_safe (~> 0.1)
104
104
  unicode-display_width (1.6.0)
105
105
  zeitwerk (2.2.2)
data/README.md CHANGED
@@ -220,7 +220,7 @@ accessed by their key.
220
220
  ```
221
221
 
222
222
  Access to anything provided within its `*_component.rb` file can be done using the
223
- `component` local which is the instance of the component.
223
+ `component` or `c` local methods which is the instance of the component.
224
224
 
225
225
  ```erb
226
226
  <%# app/views/components/_alert.html.erb %>
@@ -75,6 +75,7 @@ module Lite
75
75
  object: self,
76
76
  as: :component,
77
77
  locals: {
78
+ c: self,
78
79
  object: nil,
79
80
  iteration: iteration
80
81
  }
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Component
5
5
 
6
- VERSION ||= '1.0.7'
6
+ VERSION ||= '1.0.8'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-24 00:00:00.000000000 Z
11
+ date: 2019-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview