tableize 0.0.1

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.
Files changed (64) hide show
  1. data/README.md +132 -0
  2. data/lib/tableize.rb +4 -0
  3. data/lib/tableize/column_builder.rb +77 -0
  4. data/lib/tableize/helper.rb +8 -0
  5. data/lib/tableize/table_builder.rb +130 -0
  6. data/lib/tableize/utils.rb +11 -0
  7. data/lib/version.rb +7 -0
  8. data/tableize.gemspec +20 -0
  9. data/test/app/.gitignore +5 -0
  10. data/test/app/Gemfile +43 -0
  11. data/test/app/Gemfile.lock +138 -0
  12. data/test/app/README +261 -0
  13. data/test/app/Rakefile +7 -0
  14. data/test/app/app/assets/images/rails.png +0 -0
  15. data/test/app/app/assets/javascripts/application.js +9 -0
  16. data/test/app/app/assets/stylesheets/application.css +7 -0
  17. data/test/app/app/controllers/application_controller.rb +3 -0
  18. data/test/app/app/controllers/posts_controller.rb +5 -0
  19. data/test/app/app/helpers/application_helper.rb +2 -0
  20. data/test/app/app/mailers/.gitkeep +0 -0
  21. data/test/app/app/models/.gitkeep +0 -0
  22. data/test/app/app/models/post.rb +5 -0
  23. data/test/app/app/views/layouts/application.html.erb +14 -0
  24. data/test/app/app/views/posts/index.html.haml +3 -0
  25. data/test/app/config.ru +4 -0
  26. data/test/app/config/application.rb +48 -0
  27. data/test/app/config/boot.rb +6 -0
  28. data/test/app/config/database.yml +25 -0
  29. data/test/app/config/environment.rb +5 -0
  30. data/test/app/config/environments/development.rb +30 -0
  31. data/test/app/config/environments/production.rb +60 -0
  32. data/test/app/config/environments/test.rb +39 -0
  33. data/test/app/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/app/config/initializers/inflections.rb +10 -0
  35. data/test/app/config/initializers/mime_types.rb +5 -0
  36. data/test/app/config/initializers/secret_token.rb +7 -0
  37. data/test/app/config/initializers/session_store.rb +8 -0
  38. data/test/app/config/initializers/wrap_parameters.rb +14 -0
  39. data/test/app/config/locales/en.yml +10 -0
  40. data/test/app/config/routes.rb +58 -0
  41. data/test/app/db/migrate/20111008184259_create_posts.rb +11 -0
  42. data/test/app/db/schema.rb +24 -0
  43. data/test/app/db/seeds.rb +13 -0
  44. data/test/app/doc/README_FOR_APP +2 -0
  45. data/test/app/lib/assets/.gitkeep +0 -0
  46. data/test/app/lib/tasks/.gitkeep +0 -0
  47. data/test/app/log/.gitkeep +0 -0
  48. data/test/app/public/404.html +26 -0
  49. data/test/app/public/422.html +26 -0
  50. data/test/app/public/500.html +26 -0
  51. data/test/app/public/favicon.ico +0 -0
  52. data/test/app/public/robots.txt +5 -0
  53. data/test/app/script/rails +6 -0
  54. data/test/app/test/fixtures/.gitkeep +0 -0
  55. data/test/app/test/fixtures/posts.yml +11 -0
  56. data/test/app/test/functional/.gitkeep +0 -0
  57. data/test/app/test/integration/.gitkeep +0 -0
  58. data/test/app/test/performance/browsing_test.rb +12 -0
  59. data/test/app/test/test_helper.rb +13 -0
  60. data/test/app/test/unit/.gitkeep +0 -0
  61. data/test/app/test/unit/post_test.rb +7 -0
  62. data/test/app/vendor/assets/stylesheets/.gitkeep +0 -0
  63. data/test/app/vendor/plugins/.gitkeep +0 -0
  64. metadata +109 -0
File without changes
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
File without changes
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ title: MyString
5
+ author: MyString
6
+ time: 2011-10-08 14:42:59
7
+
8
+ two:
9
+ title: MyString
10
+ author: MyString
11
+ time: 2011-10-08 14:42:59
File without changes
File without changes
@@ -0,0 +1,12 @@
1
+ require 'test_helper'
2
+ require 'rails/performance_test_help'
3
+
4
+ class BrowsingTest < ActionDispatch::PerformanceTest
5
+ # Refer to the documentation for all available options
6
+ # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
7
+ # :output => 'tmp/performance', :formats => [:flat] }
8
+
9
+ def test_homepage
10
+ get '/'
11
+ end
12
+ end
@@ -0,0 +1,13 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
7
+ #
8
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
9
+ # -- they do not yet inherit this setting
10
+ fixtures :all
11
+
12
+ # Add more helper methods to be used by all tests here...
13
+ end
File without changes
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PostTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
File without changes
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tableize
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Christian Blais
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-10-10 00:00:00.000000000Z
13
+ dependencies: []
14
+ description: Simple table helper
15
+ email:
16
+ - christ.blais@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - README.md
22
+ - lib/tableize.rb
23
+ - lib/tableize/column_builder.rb
24
+ - lib/tableize/helper.rb
25
+ - lib/tableize/table_builder.rb
26
+ - lib/tableize/utils.rb
27
+ - lib/version.rb
28
+ - tableize.gemspec
29
+ - test/app/.gitignore
30
+ - test/app/Gemfile
31
+ - test/app/Gemfile.lock
32
+ - test/app/README
33
+ - test/app/Rakefile
34
+ - test/app/app/assets/images/rails.png
35
+ - test/app/app/assets/javascripts/application.js
36
+ - test/app/app/assets/stylesheets/application.css
37
+ - test/app/app/controllers/application_controller.rb
38
+ - test/app/app/controllers/posts_controller.rb
39
+ - test/app/app/helpers/application_helper.rb
40
+ - test/app/app/mailers/.gitkeep
41
+ - test/app/app/models/.gitkeep
42
+ - test/app/app/models/post.rb
43
+ - test/app/app/views/layouts/application.html.erb
44
+ - test/app/app/views/posts/index.html.haml
45
+ - test/app/config.ru
46
+ - test/app/config/application.rb
47
+ - test/app/config/boot.rb
48
+ - test/app/config/database.yml
49
+ - test/app/config/environment.rb
50
+ - test/app/config/environments/development.rb
51
+ - test/app/config/environments/production.rb
52
+ - test/app/config/environments/test.rb
53
+ - test/app/config/initializers/backtrace_silencers.rb
54
+ - test/app/config/initializers/inflections.rb
55
+ - test/app/config/initializers/mime_types.rb
56
+ - test/app/config/initializers/secret_token.rb
57
+ - test/app/config/initializers/session_store.rb
58
+ - test/app/config/initializers/wrap_parameters.rb
59
+ - test/app/config/locales/en.yml
60
+ - test/app/config/routes.rb
61
+ - test/app/db/migrate/20111008184259_create_posts.rb
62
+ - test/app/db/schema.rb
63
+ - test/app/db/seeds.rb
64
+ - test/app/doc/README_FOR_APP
65
+ - test/app/lib/assets/.gitkeep
66
+ - test/app/lib/tasks/.gitkeep
67
+ - test/app/log/.gitkeep
68
+ - test/app/public/404.html
69
+ - test/app/public/422.html
70
+ - test/app/public/500.html
71
+ - test/app/public/favicon.ico
72
+ - test/app/public/robots.txt
73
+ - test/app/script/rails
74
+ - test/app/test/fixtures/.gitkeep
75
+ - test/app/test/fixtures/posts.yml
76
+ - test/app/test/functional/.gitkeep
77
+ - test/app/test/integration/.gitkeep
78
+ - test/app/test/performance/browsing_test.rb
79
+ - test/app/test/test_helper.rb
80
+ - test/app/test/unit/.gitkeep
81
+ - test/app/test/unit/post_test.rb
82
+ - test/app/vendor/assets/stylesheets/.gitkeep
83
+ - test/app/vendor/plugins/.gitkeep
84
+ homepage: http://github.com/christianblais/tableize
85
+ licenses: []
86
+ post_install_message:
87
+ rdoc_options: []
88
+ require_paths:
89
+ - lib
90
+ - test
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubyforge_project:
105
+ rubygems_version: 1.8.10
106
+ signing_key:
107
+ specification_version: 3
108
+ summary: Simple table helper
109
+ test_files: []