Skip to content
This repository
Browse code

Renaming table_for into table_for_collection to publish as a gem.

  • Loading branch information...
commit d290726ed3d12b0dec3d725435397efa62826bc5 1 parent fbfa9b5
Dmitry Shaposhnik e1senh0rn authored
2  .gitignore
@@ -2,6 +2,6 @@
2 2 .rspec
3 3 .bundle
4 4 Gemfile.lock
5   -table_for-*.gem
  5 +table_for_collection-*.gem
6 6 doc
7 7 doc/**/*
4 Changelog
... ... @@ -1,3 +1,7 @@
  1 +== v.0.2
  2 +
  3 +Packaged as a gem.
  4 +
1 5 == v.0.1
2 6
3 7 Initial version: table_for method added.
2  init.rb
... ... @@ -1 +1 @@
1   -require 'table_for'
  1 +require 'table_for_collection'
10 lib/table_for.rb
... ... @@ -1,10 +0,0 @@
1   -require "action_view"
2   -require "table_for/helper"
3   -
4   -module TableHelper
5   - private
6   - autoload :Column, "table_for/column"
7   - autoload :SimpleColumn, "table_for/simple_column"
8   - autoload :CallbackColumn, "table_for/callback_column"
9   - autoload :Table, "table_for/table"
10   -end
10 lib/table_for_collection.rb
... ... @@ -0,0 +1,10 @@
  1 +require "action_view"
  2 +require "table_for_collection/helper"
  3 +
  4 +module TableHelper
  5 + private
  6 + autoload :Column, "table_for_collection/column"
  7 + autoload :SimpleColumn, "table_for_collection/simple_column"
  8 + autoload :CallbackColumn, "table_for_collection/callback_column"
  9 + autoload :Table, "table_for_collection/table"
  10 +end
0  lib/table_for/callback_column.rb → lib/table_for_collection/callback_column.rb
File renamed without changes
0  lib/table_for/column.rb → lib/table_for_collection/column.rb
File renamed without changes
0  lib/table_for/helper.rb → lib/table_for_collection/helper.rb
File renamed without changes
0  lib/table_for/simple_column.rb → lib/table_for_collection/simple_column.rb
File renamed without changes
0  lib/table_for/table.rb → lib/table_for_collection/table.rb
File renamed without changes
2  lib/table_for/version.rb → lib/table_for_collection/version.rb
... ... @@ -1,4 +1,4 @@
1 1 module TableHelper
2   - GEM_NAME = "table_for"
  2 + GEM_NAME = "table_for_collection"
3 3 VERSION = "0.2"
4 4 end
2  spec/spec_helper.rb
... ... @@ -1,4 +1,4 @@
1   -require "table_for"
  1 +require "table_for_collection"
2 2 require "webrat"
3 3
4 4 RSpec.configure do |config|
0  spec/table_for/table_spec.rb → spec/table_for_collection/table_spec.rb
File renamed without changes
0  spec/table_for_spec.rb → spec/table_for_collection_spec.rb
File renamed without changes
2  table_for.gemspec → table_for_collection.gemspec
@@ -2,7 +2,7 @@
2 2 lib = File.expand_path('../lib/', __FILE__)
3 3 $:.unshift lib unless $:.include?(lib)
4 4
5   -require 'table_for/version'
  5 +require 'table_for_collection/version'
6 6
7 7 spec = Gem::Specification.new do |s|
8 8 s.authors = ["Dima Lunich", "Andrey Savchenko"]

0 comments on commit d290726

Please sign in to comment.
Something went wrong with that request. Please try again.