gaku_helpers 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1 +1,18 @@
1
- View Helpers for Twitter Bootstrap
1
+ What does it do?
2
+ ----------------
3
+ View Helpers for Twitter Bootstrap:
4
+ ### [link_helper](https://github.com/kalkov/gaku_helpers/blob/master/lib/gaku_helpers/view_helpers/link_helper.rb)
5
+ ### [modal_helper] (https://github.com/kalkov/gaku_helpers/blob/master/lib/gaku_helpers/view_helpers/modal_helper.rb)
6
+ ### [table_helper] (https://github.com/kalkov/gaku_helpers/blob/master/lib/gaku_helpers/view_helpers/table_helper.rb)
7
+ ### [html_helper] (https://github.com/kalkov/gaku_helpers/blob/master/lib/gaku_helpers/view_helpers/html_helper.rb)
8
+
9
+ Instalation
10
+ -----------
11
+ Add to your `Gemfile`
12
+ ```ruby
13
+ gem 'gaku_helpers'
14
+ ```
15
+ Run bundle
16
+ ```shell
17
+ bundle
18
+ ```
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'gaku_helpers'
5
- s.version = '0.0.4'
5
+ s.version = '0.0.5'
6
6
  s.summary = 'Gaku View Helpers'
7
7
  s.description = ''
8
8
  s.required_ruby_version = '>= 1.8.7'
@@ -83,6 +83,15 @@ module GakuHelpers
83
83
  link_to name, resource, attributes
84
84
  end
85
85
 
86
+ def link_to_delete(resource, options = {})
87
+ name = ("<i class='icon-white icon-remove'></i>").html_safe
88
+ attributes = {
89
+ :method => :delete,
90
+ :class => 'btn btn-mini btn-danger delete-link'
91
+ }.merge(options)
92
+ link_to name, resource, attributes
93
+ end
94
+
86
95
  def ajax_link_to_delete(resource, options = {})
87
96
  name = ("<i class='icon-white icon-remove'></i>").html_safe
88
97
  attributes = {
@@ -0,0 +1,10 @@
1
+ ja:
2
+ gaku_helpers:
3
+ cancel: "キャンセル"
4
+ back: "戻る"
5
+ picture:
6
+ change: "画像を変更"
7
+ upload: "画像をアップロード"
8
+ are_you_sure: "これで宜しいですか?"
9
+ edit: "編集"
10
+
metadata CHANGED
@@ -1,22 +1,32 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gaku_helpers
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.4
3
+ version: !ruby/object:Gem::Version
4
+ hash: 21
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 5
10
+ version: 0.0.5
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Vassil Kalkov
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-04-22 00:00:00.000000000 Z
17
+
18
+ date: 2013-04-30 00:00:00 Z
13
19
  dependencies: []
14
- description: ''
20
+
21
+ description: ""
15
22
  email: vassilkalkov@gmail.com
16
23
  executables: []
24
+
17
25
  extensions: []
26
+
18
27
  extra_rdoc_files: []
19
- files:
28
+
29
+ files:
20
30
  - .gitignore
21
31
  - README.md
22
32
  - gaku_helpers.gemspec
@@ -28,29 +38,41 @@ files:
28
38
  - lib/gaku_helpers/view_helpers/modal_helper.rb
29
39
  - lib/gaku_helpers/view_helpers/table_helper.rb
30
40
  - locales/en.yml
41
+ - locales/ja.yml
31
42
  homepage: http://kalkov.github.io
32
43
  licenses: []
44
+
33
45
  post_install_message:
34
46
  rdoc_options: []
35
- require_paths:
47
+
48
+ require_paths:
36
49
  - lib
37
- required_ruby_version: !ruby/object:Gem::Requirement
50
+ required_ruby_version: !ruby/object:Gem::Requirement
38
51
  none: false
39
- requirements:
40
- - - ! '>='
41
- - !ruby/object:Gem::Version
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ hash: 57
56
+ segments:
57
+ - 1
58
+ - 8
59
+ - 7
42
60
  version: 1.8.7
43
- required_rubygems_version: !ruby/object:Gem::Requirement
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
62
  none: false
45
- requirements:
46
- - - ! '>='
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- requirements:
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ hash: 3
67
+ segments:
68
+ - 0
69
+ version: "0"
70
+ requirements:
50
71
  - none
51
72
  rubyforge_project:
52
- rubygems_version: 1.8.25
73
+ rubygems_version: 1.8.15
53
74
  signing_key:
54
75
  specification_version: 3
55
76
  summary: Gaku View Helpers
56
77
  test_files: []
78
+