rails-semantic-ui 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8627135e7a2b87ecd9917a3dbc9172b98f925ea9
4
- data.tar.gz: e9806b5c04b8cca89e27bc1689fe34c2cf41de3e
3
+ metadata.gz: a0d1ddf252c9caa5aa5fd2d1eeb4a46a5fbe7dab
4
+ data.tar.gz: d4ac40d33164f75a92c03b16dd522db8ee0f73ca
5
5
  SHA512:
6
- metadata.gz: dc22b42301227a0b377796997ba248d55e652e13bbcabb131924a8f6bfa7f2427c0decfd10ab6cacf95f204effb79de936295818909baaaee77c5b72c9b91c1f
7
- data.tar.gz: 2818de14a2386275f207ccebfa853ef8b44296d0e74c3535be709137dbb08bae21e2933569d7b0f0ee8423f7323f2d575caa9cf59c97f62f1e68a932ebdf1e8f
6
+ metadata.gz: 8ac2a378e2b972816d8e1bd0073329d5db1e392f4d9fd6df900b5ce5a10ef239e683f5bcf02ee417806121fc2c653c4e8f353069a6fe730af9f271fd231748c9
7
+ data.tar.gz: 915d4e732e62119c8a4b3261823a9f90c0afbfb65f86155e4b3da7444f61952a819d6d51135edb5be19fe58df2d59c62a98d7298193c286c6cab4c09dc996906
@@ -5,7 +5,7 @@ module SemanticUi
5
5
  class_option :force, type: :boolean, default: false, aliases: :f
6
6
 
7
7
  def overwrite_layout
8
- copy_file 'layout.slim', "app/views/layout/#{layout_name.underscore}.html.slim", force: options[:force]
8
+ copy_file 'layout.slim', "app/views/layouts/#{layout_name.underscore}.html.slim", force: options[:force]
9
9
  end
10
10
  end
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module SemanticUI
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
@@ -0,0 +1,25 @@
1
+ h1 Listing <%= plural_table_name %>
2
+
3
+ table.ui.compact.striped.table
4
+ thead
5
+ tr
6
+ <% attributes.each do |attribute| -%>
7
+ th <%= attribute.human_name %>
8
+ <% end -%>
9
+ th
10
+ th
11
+ th
12
+
13
+ tbody
14
+ - @<%= plural_table_name %>.each do |<%= singular_table_name %>|
15
+ tr
16
+ <% attributes.each do |attribute| -%>
17
+ td = <%= singular_table_name %>.<%= attribute.name %>
18
+ <% end -%>
19
+ td = link_to 'Show', <%= singular_table_name %>
20
+ td = link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
21
+ td = link_to 'Destroy', <%= singular_table_name %>, data: { confirm: 'Are you sure?' }, method: :delete
22
+
23
+ br
24
+
25
+ = link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-semantic-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeong, Jiung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-28 00:00:00.000000000 Z
11
+ date: 2015-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -64,6 +64,7 @@ files:
64
64
  - lib/rails/semantic_ui/version.rb
65
65
  - lib/rails_semantic_ui.rb
66
66
  - lib/tasks/semantic_ui.rake
67
+ - lib/templates/slim/scaffold/index.html.slim
67
68
  homepage: https://github.com/astral1/rails-semantic-ui
68
69
  licenses:
69
70
  - MIT
@@ -84,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
85
  version: '0'
85
86
  requirements: []
86
87
  rubyforge_project:
87
- rubygems_version: 2.4.5
88
+ rubygems_version: 2.4.6
88
89
  signing_key:
89
90
  specification_version: 4
90
91
  summary: Rails plugin for using semantic-ui with rails-webpack