table_for_helper 0.2 → 0.21

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.
@@ -1,7 +1,7 @@
1
- require "table_for/version"
2
- require "table_for/builder"
1
+ require "table_for_helper/version"
2
+ require "table_for_helper/builder"
3
3
 
4
- module TableFor
4
+ module TableForHelper
5
5
  # Creates a html table from a resource collection
6
6
  def table_for(resources, options = {}, &block)
7
7
  Builder.new(resources, options, &block).to_html
@@ -9,5 +9,5 @@ module TableFor
9
9
  end
10
10
 
11
11
  ActionController::Base.class_eval do
12
- helper TableFor
12
+ helper TableForHelper
13
13
  end
@@ -1,4 +1,4 @@
1
- module TableFor
1
+ module TableForHelper
2
2
  class Builder
3
3
  include ActionView::Helpers::TagHelper
4
4
 
@@ -0,0 +1,3 @@
1
+ module TableForHelper
2
+ VERSION = "0.21"
3
+ end
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/table_for/version', __FILE__)
2
+ require File.expand_path('../lib/table_for_helper/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ['Nick Nizovtsev']
@@ -13,5 +13,5 @@ Gem::Specification.new do |gem|
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
14
  gem.name = "table_for_helper"
15
15
  gem.require_paths = ["lib"]
16
- gem.version = TableFor::VERSION
16
+ gem.version = TableForHelper::VERSION
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_for_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.21'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -23,9 +23,9 @@ files:
23
23
  - LICENSE
24
24
  - README.md
25
25
  - Rakefile
26
- - lib/table_for.rb
27
- - lib/table_for/builder.rb
28
- - lib/table_for/version.rb
26
+ - lib/table_for_helper.rb
27
+ - lib/table_for_helper/builder.rb
28
+ - lib/table_for_helper/version.rb
29
29
  - table_for_helper.gemspec
30
30
  homepage: http://github.com/nizovtsevnv/table_for_helper
31
31
  licenses: []
@@ -1,3 +0,0 @@
1
- module TableFor
2
- VERSION = "0.2"
3
- end