simple_calendar 2.0.1 → 2.0.2

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
  SHA1:
3
- metadata.gz: 62254f5fef1e894c99a533e9e5254acbc5c9f1c5
4
- data.tar.gz: 6095a62f0af5cf5e48b9b2cba01307ddd24abbe7
3
+ metadata.gz: 1c19ecd82b330e094dbf597c6eb582bbd34fa251
4
+ data.tar.gz: c5e64e9ca17b180c50a1559c51f93dd14c1a15c4
5
5
  SHA512:
6
- metadata.gz: f51067733929d0d1885c389285517e2864a2b34d5b13772f31ee13a342c53ef4250238a1019fda310fc308e010349efb4c81076ffdc0f72e8b8f40410a55c5a6
7
- data.tar.gz: 28f2a049bcd185715bec4e18f3ce8bfb3c0ce144e698b7d1deb5e81ccdbd58b904fad908751a206e50deb0a2f0072c7fb633c983118a97f4ce9f9b61ac3f07a3
6
+ metadata.gz: adf85de715c435c06070a5ac1214c5cacebc55b588efde40a0c1a746514565db1dc9ddee1cec5f7e674616a011486e1d803f7f1b5920aac44bcb8c0154560965
7
+ data.tar.gz: 0b3c317bc8f602b09a1dcd9fed960d8302afe2014d527aa0b8fe4e5ca52031ca1f289ff583eb81e22a2beaf45807abb2632f2c5b937bbda8ac7a759737b8551a
@@ -17,7 +17,13 @@
17
17
  <tr>
18
18
  <% week.each do |day| %>
19
19
  <%= content_tag :td, class: calendar.td_classes_for(day) do %>
20
- <% block.call day, sorted_events.fetch(day, []) %>
20
+ <% if defined?(Haml) && block_is_haml?(block) %>
21
+ <% capture_haml do %>
22
+ <% block.call day, sorted_events.fetch(day, []) %>
23
+ <% end %>
24
+ <% else %>
25
+ <% block.call day, sorted_events.fetch(day, []) %>
26
+ <% end %>
21
27
  <% end %>
22
28
  <% end %>
23
29
  </tr>
@@ -17,7 +17,13 @@
17
17
  <tr>
18
18
  <% week.each do |day| %>
19
19
  <%= content_tag :td, class: calendar.td_classes_for(day) do %>
20
- <% block.call day, sorted_events.fetch(day, []) %>
20
+ <% if defined?(Haml) && block_is_haml?(block) %>
21
+ <% capture_haml do %>
22
+ <% block.call day, sorted_events.fetch(day, []) %>
23
+ <% end %>
24
+ <% else %>
25
+ <% block.call day, sorted_events.fetch(day, []) %>
26
+ <% end %>
21
27
  <% end %>
22
28
  <% end %>
23
29
  </tr>
@@ -17,7 +17,13 @@
17
17
  <tr>
18
18
  <% week.each do |day| %>
19
19
  <%= content_tag :td, class: calendar.td_classes_for(day) do %>
20
- <% block.call day, sorted_events.fetch(day, []) %>
20
+ <% if defined?(Haml) && block_is_haml?(block) %>
21
+ <% capture_haml do %>
22
+ <% block.call day, sorted_events.fetch(day, []) %>
23
+ <% end %>
24
+ <% else %>
25
+ <% block.call day, sorted_events.fetch(day, []) %>
26
+ <% end %>
21
27
  <% end %>
22
28
  <% end %>
23
29
  </tr>
@@ -1,3 +1,3 @@
1
1
  module SimpleCalendar
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails