primer_view_components 0.0.30 → 0.0.31

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: 6a17e4735cb2057fb6c76458ff5cfdd4b833aeb4f6a7de14c4e6fbc3a556e010
4
- data.tar.gz: 7677caa7f8f052b51d983eb8581e198f7daff976c3793015b811c9edf48ed891
3
+ metadata.gz: 0f3b2f2609173d59173576d7bd384ae8902540a1be4434930c9b982d3f86c50c
4
+ data.tar.gz: 4d0d573d72270fcb808857fa502a9cda31279755dc7859121301e97ea6a1b305
5
5
  SHA512:
6
- metadata.gz: 600e505c9cdcc74243127140de5b5f5a6ff634ba6946d653f3473982b2affc2f343c78bc9f9d8913165b15f2986a9ffe16b174c694e8943f041c9b58814a04ae
7
- data.tar.gz: 25828e4691fed95aa5b9eb8401ecdbea09d6248f5ee7521402fbf9c84bb81f542df5108c785270496604ce48f0d086d964271ff2f12662aebbbced19fa364509
6
+ metadata.gz: f14ba8ad8f0698e04791c839ac68f1f355c15d37436306c510589c3a67f1197cdc7449ee4301f87b5cecf6f0234c5d704c074ecdc52fd3d5dbad735d9b7bd6c9
7
+ data.tar.gz: a6b4b86bd72500b3d853a5ca2f68a14b76188a6e219b33f091d992f509772dd7f0e707d1a609b2a8ff4e382f6237104b4423c5ba9bec6ca8a0b0cf8c7822417a
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## main
4
4
 
5
+ ## 0.0.31
6
+
7
+ * Fix `Popover` bug where body was only returning the last line of the HTML.
8
+
9
+ *Manuel Puyol, Blake Williams*
10
+
5
11
  ## 0.0.30
6
12
 
7
13
  * Make `color:`, `bg:` and `border_color:` accept string values.
@@ -54,7 +54,7 @@ module Primer
54
54
 
55
55
  # This is a hack to allow the parent to set the slot's content
56
56
  @body_arguments = system_arguments
57
- block&.call
57
+ view_context.capture { block&.call }
58
58
  }
59
59
 
60
60
  # @example Default
@@ -83,7 +83,24 @@ module Primer
83
83
  # Activity feed
84
84
  # <% end %>
85
85
  # <% component.body(caret: :left) do %>
86
- # This is the large Popover body.
86
+ # This is the Popover body.
87
+ # <% end %>
88
+ # <% end %>
89
+ #
90
+ # @example With HTML body
91
+ # <%= render Primer::PopoverComponent.new do |component| %>
92
+ # <% component.heading do %>
93
+ # Activity feed
94
+ # <% end %>
95
+ # <% component.body(caret: :left) do %>
96
+ # <p> This is the Popover body.</p>
97
+ # <div>
98
+ # This is using HTML.
99
+ # <ul>
100
+ # <li>Thing #1</li>
101
+ # <li>Thing #2</li>
102
+ # </ul>
103
+ # </div>
87
104
  # <% end %>
88
105
  # <% end %>
89
106
  #
@@ -5,7 +5,7 @@ module Primer
5
5
  module VERSION
6
6
  MAJOR = 0
7
7
  MINOR = 0
8
- PATCH = 30
8
+ PATCH = 31
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH].join(".")
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.30
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-12 00:00:00.000000000 Z
11
+ date: 2021-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octicons_helper