super_tools 0.0.12 → 0.0.13

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
- SHA1:
3
- metadata.gz: e7d4fdaf5916965c3585fd595a0f190fbfc64f14
4
- data.tar.gz: a0d01581b71688501b8375f775c92c3b3d8a3fc5
2
+ SHA256:
3
+ metadata.gz: 0335c45c48a1df81df191c9f0b0ee4f4d7529af6407fdb8aeecca380847e5675
4
+ data.tar.gz: 149c4a2c0118d5cce4df3ca6d16a8ef53ac4e8c4ff994172c964887ad689a461
5
5
  SHA512:
6
- metadata.gz: 300cb71a4965abc27138b60b780b4f8a79b9b4d47f2f23f0c660957c3f4cde451175eafcddd0f358910d17672476ed1f80b852e4ecdc749593739882a5429a56
7
- data.tar.gz: c4902c4a0468b72fb20c4e3d7020ea95bf9ca5a946bbf3bd1ae1ff69102c26d3e2276b93819cdb22309665e736da3279c4d28cadefda3ed07b4267f36728bdf0
6
+ metadata.gz: c59b31cf7a51ae06c595f958cad780fc36169290cc4be478ecee84aaa15cd84fcc34fd665f83858cb977d52104c3efa43f99b78f0f685f3047add33ff30bee69
7
+ data.tar.gz: 42d10f4c9a3cd07527f64fb962c032a74b869d4d5b6965284bb3186b3ec0d16a7321b2061dcfa7b64d6693a2f5d3911761c556e27554a095ffe13f32f5ab3c2a
@@ -32,12 +32,7 @@ module SuperInteraction
32
32
  # 注意:不要包 respond_to :js 會有問題
33
33
  def modal(partial: nil, size: 'md', title: '', desc: '')
34
34
  partial ||= context.action_name
35
- case Rails.version[0]
36
- when "4"
37
- modal_html = context.render_to_string(partial, layout: 'modal.html.haml', locals: { bs_modal_size: size, title: title, desc: desc })
38
- when "5", "6"
39
- modal_html = context.render_to_string(partial, layout: 'modal.html.haml', assigns: { bs_modal_size: size, title: title, desc: desc })
40
- end
35
+ modal_html = context.render_to_string(partial, layout: 'modal.html.haml', locals: { bs_modal_size: size, title: title, desc: desc })
41
36
  cmd("$(function() { $.modal.show('#{helpers.j(modal_html)}'); });")
42
37
  end
43
38
 
@@ -1,3 +1,3 @@
1
1
  module SuperTools
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - eddie
@@ -352,7 +352,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
352
352
  version: '0'
353
353
  requirements: []
354
354
  rubyforge_project:
355
- rubygems_version: 2.4.8
355
+ rubygems_version: 2.7.6.2
356
356
  signing_key:
357
357
  specification_version: 4
358
358
  summary: Rails 開發環境常用工具 Forms/Process/Spreadsheet