showbuilder 0.0.12 → 0.0.13

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.
@@ -42,6 +42,24 @@ module Showbuilder
42
42
  content_tag :td, content
43
43
  end
44
44
 
45
+ # show_time_column :create_at
46
+ # show_time_column :sale, :create_at
47
+ def show_time_column(*methods)
48
+ return show_header_column(methods) if is_header
49
+
50
+ content = get_methods_time_value(model, methods)
51
+ content_tag :td, content
52
+ end
53
+
54
+ # show_date_column :create_at
55
+ # show_date_column :sale, :create_at
56
+ def show_date_column(*methods)
57
+ return show_header_column(methods) if is_header
58
+
59
+ content = get_methods_date_value(model, methods)
60
+ content_tag :td, content
61
+ end
62
+
45
63
  # show_text_link_column :number
46
64
  # show_text_link_column :sale, :number
47
65
  # show_text_link_column :sale, :number, :link => :sale
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: showbuilder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-21 00:00:00.000000000 Z
12
+ date: 2013-05-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A Rails View Helper. Show model/s as view, form, table.
15
15
  email: ery@baoleihang.com
@@ -19,17 +19,17 @@ extra_rdoc_files: []
19
19
  files:
20
20
  - lib/showbuilder.rb
21
21
  - lib/showbuilder/show_model_view.rb
22
+ - lib/showbuilder/show_form.rb
23
+ - lib/showbuilder/show_paginate_renderer.rb
22
24
  - lib/showbuilder/i18n_text.rb
25
+ - lib/showbuilder/show_model_table.rb
26
+ - lib/showbuilder/show_model_form.rb
23
27
  - lib/showbuilder/corekit.rb
24
- - lib/showbuilder/show_paginate_renderer.rb
25
- - lib/showbuilder/builders/template_methods.rb
26
- - lib/showbuilder/builders/form_builder.rb
28
+ - lib/showbuilder/builders/model_table_row_builder.rb
27
29
  - lib/showbuilder/builders/model_form_builder.rb
28
30
  - lib/showbuilder/builders/model_view_builder.rb
29
- - lib/showbuilder/builders/model_table_row_builder.rb
30
- - lib/showbuilder/show_model_form.rb
31
- - lib/showbuilder/show_model_table.rb
32
- - lib/showbuilder/show_form.rb
31
+ - lib/showbuilder/builders/template_methods.rb
32
+ - lib/showbuilder/builders/form_builder.rb
33
33
  homepage: https://github.com/ery/showbuilder
34
34
  licenses: []
35
35
  post_install_message:
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
50
  version: '0'
51
51
  requirements: []
52
52
  rubyforge_project:
53
- rubygems_version: 1.8.10
53
+ rubygems_version: 1.8.25
54
54
  signing_key:
55
55
  specification_version: 3
56
56
  summary: A Rails View Helper.