Permalink
Browse files

restructure file hierarchy, remove jeweler, handcraft gemfile

  • Loading branch information...
1 parent 5a39d7e commit efde62c8240862eb7982b33a428e921703676ce2 @arches committed Jul 27, 2012
View
@@ -9,24 +9,6 @@ rescue Bundler::BundlerError => e
end
require 'rake'
-require 'jeweler'
-Jeweler::Tasks.new do |gem|
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
- gem.name = "table_print"
- gem.homepage = "http://github.com/arches/table_print"
- gem.license = "MIT"
- gem.summary = %Q{Turn objects into nicely formatted columns for easy reading}
- gem.description = %Q{TablePrint formats an object or array of objects into columns for easy reading. To do this, it assumes the objects in your array all respond to the same methods (vs pretty_print or awesome_print, who can't create columns because your objects could be entirely different).}
- gem.email = "archslide@gmail.com"
- gem.authors = ["Chris Doyle"]
- # Include your dependencies below. Runtime dependencies are required when using your gem,
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
- # gem.add_runtime_dependency 'jabber4r', '> 0.1'
- gem.add_development_dependency 'rspec'
- gem.add_development_dependency 'cucumber'
-end
-Jeweler::RubygemsDotOrgTasks.new
-
require 'rspec/core/rake_task'
desc 'Default: run specs and cucumber features.'
View
@@ -1 +0,0 @@
-1.0.0.rc3
View
@@ -1,12 +1,14 @@
-require 'column'
-require 'config_resolver'
-require 'config'
-require 'fingerprinter'
-require 'formatter'
-require 'hash_extensions'
-require 'kernel_extensions'
-require 'printable'
-require 'row_group'
+require 'table_print/cattr'
+require 'table_print/column'
+require 'table_print/config_resolver'
+require 'table_print/config'
+require 'table_print/fingerprinter'
+require 'table_print/formatter'
+require 'table_print/hash_extensions'
+require 'table_print/kernel_extensions'
+require 'table_print/printable'
+require 'table_print/row_group'
+require 'table_print/returnable'
module TablePrint
class Printer
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,3 @@
-require 'cattr'
-
module TablePrint
class Config
cattr_accessor :max_width, :time_format
@@ -1,6 +1,3 @@
-require 'column'
-require 'config'
-
module TablePrint
class ConfigResolver
def initialize(klass, default_column_names, *options)
@@ -1,6 +1,3 @@
-require 'row_group'
-require 'hash_extensions'
-
module TablePrint
class Fingerprinter
def lift(columns, object)
@@ -1,5 +1,3 @@
-require 'config'
-
module TablePrint
class TimeFormatter
def initialize(time_format=nil)
File renamed without changes.
@@ -1,5 +1,3 @@
-require 'returnable'
-
module Kernel
def tp(data=[], *options)
start = Time.now
File renamed without changes.
File renamed without changes.
@@ -1,6 +1,3 @@
-require 'formatter'
-require 'column'
-
module TablePrint
module RowRecursion
@@ -0,0 +1,4 @@
+module TablePrint
+ VERSION = "1.0.0.rc4"
+end
+
View
@@ -1,5 +1,4 @@
require 'spec_helper'
-require 'column'
include TablePrint
@@ -1,5 +1,4 @@
require 'spec_helper'
-require 'config_resolver'
describe TablePrint::ConfigResolver do
View
@@ -1,5 +1,4 @@
require 'spec_helper'
-require 'config'
describe TablePrint::Config do
it "defaults max_width to 30" do
@@ -1,7 +1,4 @@
require 'spec_helper'
-require 'ostruct'
-require 'fingerprinter'
-require 'column'
class TablePrint::Row
attr_accessor :groups, :cells
View
@@ -1,5 +1,4 @@
require 'spec_helper'
-require "formatter"
include TablePrint
@@ -1,5 +1,4 @@
require 'spec_helper'
-require 'hash_extensions'
describe "#constructive_merge" do
it "merges hashes without clobbering" do
View
@@ -1,5 +1,4 @@
require 'spec_helper'
-require 'printable'
describe TablePrint::Printable do
before(:each) do
View
@@ -1,6 +1,4 @@
require 'spec_helper'
-require 'returnable'
-require 'config'
describe TablePrint::Returnable do
it "returns its initialized value from its to_s method" do
View
@@ -1,7 +1,4 @@
require 'spec_helper'
-require 'ostruct'
-require 'cat'
-require "row_group"
include TablePrint
View
@@ -1,5 +1,7 @@
require 'cat'
gem 'rspec'
+require 'table_print'
+require 'ostruct'
RSpec.configure do |c|
c.filter_run :focus => true
View
@@ -1,91 +1,26 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/table_print/version', __FILE__)
-Gem::Specification.new do |s|
- s.name = "table_print"
- s.version = "1.0.0.rc3"
+Gem::Specification.new do |gem|
+ gem.name = "table_print"
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
- s.authors = ["Chris Doyle"]
- s.date = "2012-06-25"
- s.description = "TablePrint formats an object or array of objects into columns for easy reading. To do this, it assumes the objects in your array all respond to the same methods (vs pretty_print or awesome_print, who can't create columns because your objects could be entirely different)."
- s.email = "archslide@gmail.com"
- s.extra_rdoc_files = [
- "LICENSE.txt",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- ".rspec",
- ".rvmrc",
- ".travis.yml",
- "Gemfile",
- "LICENSE.txt",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "features/adding_columns.feature",
- "features/configuring_output.feature",
- "features/excluding_columns.feature",
- "features/sensible_defaults.feature",
- "features/support/step_definitions/before.rb",
- "features/support/step_definitions/steps.rb",
- "lib/cattr.rb",
- "lib/column.rb",
- "lib/config.rb",
- "lib/config_resolver.rb",
- "lib/fingerprinter.rb",
- "lib/formatter.rb",
- "lib/hash_extensions.rb",
- "lib/kernel_extensions.rb",
- "lib/printable.rb",
- "lib/returnable.rb",
- "lib/row_group.rb",
- "lib/table_print.rb",
- "spec/column_spec.rb",
- "spec/config_resolver_spec.rb",
- "spec/config_spec.rb",
- "spec/fingerprinter_spec.rb",
- "spec/formatter_spec.rb",
- "spec/hash_extensions_spec.rb",
- "spec/printable_spec.rb",
- "spec/returnable_spec.rb",
- "spec/row_group_spec.rb",
- "spec/spec_helper.rb",
- "spec/table_print_spec.rb",
- "table_print.gemspec"
- ]
- s.homepage = "http://github.com/arches/table_print"
- s.licenses = ["MIT"]
- s.require_paths = ["lib"]
- s.rubygems_version = "1.8.19"
- s.summary = "Turn objects into nicely formatted columns for easy reading"
+ gem.authors = ["Chris Doyle"]
+ gem.email = ["archslide@gmail.com"]
+ gem.email = "archslide@gmail.com"
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ gem.description = "TablePrint formats an object or array of objects into columns for easy reading. To do this, it assumes the objects in your array all respond to the same methods (vs pretty_print or awesome_print, who can't create columns because your objects could be entirely different)."
+ gem.summary = "Turn objects into nicely formatted columns for easy reading"
+ gem.homepage = "http://tableprintgem.com"
+ gem.version = TablePrint::VERSION
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<bundler>, ["~> 1.1"])
- s.add_development_dependency(%q<bundler>, ["~> 1.1"])
- s.add_development_dependency(%q<jeweler>, [">= 0"])
- s.add_development_dependency(%q<rspec>, [">= 0"])
- s.add_development_dependency(%q<relish>, [">= 0"])
- s.add_development_dependency(%q<cucumber>, [">= 0"])
- else
- s.add_dependency(%q<bundler>, ["~> 1.1"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 0"])
- s.add_dependency(%q<cucumber>, [">= 0"])
- s.add_dependency(%q<relish>, [">= 0"])
- end
- else
- s.add_dependency(%q<bundler>, ["~> 1.1"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 0"])
- s.add_dependency(%q<cucumber>, [">= 0"])
- s.add_dependency(%q<relish>, [">= 0"])
- end
-end
+ gem.files = `git ls-files`.split($\)
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
+ gem.require_paths = ["lib"]
+ gem.add_development_dependency 'bundler'
+ gem.add_development_dependency 'rspec'
+ gem.add_development_dependency 'cucumber'
+ gem.add_development_dependency 'relish'
+ gem.add_development_dependency 'cat'
+ gem.add_development_dependency 'rake'
+end

0 comments on commit efde62c

Please sign in to comment.