tableficate 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/.gitignore +5 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.markdown +120 -0
  5. data/Rakefile +1 -0
  6. data/app/views/tableficate/_column_header.html.erb +8 -0
  7. data/app/views/tableficate/_data.html.erb +1 -0
  8. data/app/views/tableficate/_input_filter.html.erb +4 -0
  9. data/app/views/tableficate/_input_range_filter.html.erb +6 -0
  10. data/app/views/tableficate/_row.html.erb +5 -0
  11. data/app/views/tableficate/_select_filter.html.erb +4 -0
  12. data/app/views/tableficate/_table.html.erb +36 -0
  13. data/changelog.markdown +2 -0
  14. data/lib/generators/tableficate/table/table_generator.rb +17 -0
  15. data/lib/generators/tableficate/table/templates/table.rb +5 -0
  16. data/lib/generators/tableficate/theme/theme_generator.rb +15 -0
  17. data/lib/tableficate/action_column.rb +15 -0
  18. data/lib/tableficate/active_record_extension.rb +20 -0
  19. data/lib/tableficate/base.rb +37 -0
  20. data/lib/tableficate/column.rb +33 -0
  21. data/lib/tableficate/engine.rb +4 -0
  22. data/lib/tableficate/exceptions.rb +3 -0
  23. data/lib/tableficate/filters/filter.rb +19 -0
  24. data/lib/tableficate/filters/input_filters.rb +64 -0
  25. data/lib/tableficate/filters/select_filter.rb +11 -0
  26. data/lib/tableficate/finder.rb +79 -0
  27. data/lib/tableficate/helper.rb +37 -0
  28. data/lib/tableficate/table.rb +57 -0
  29. data/lib/tableficate/utils.rb +7 -0
  30. data/lib/tableficate/version.rb +3 -0
  31. data/lib/tableficate.rb +17 -0
  32. data/spec/action_column_spec.rb +21 -0
  33. data/spec/active_record_extension_spec.rb +9 -0
  34. data/spec/base_spec.rb +103 -0
  35. data/spec/column_spec.rb +54 -0
  36. data/spec/filter_spec.rb +30 -0
  37. data/spec/finder_spec.rb +35 -0
  38. data/spec/input_filter_spec.rb +90 -0
  39. data/spec/select_filter_spec.rb +10 -0
  40. data/spec/spec_helper.rb +3 -0
  41. data/spec/table_spec.rb +94 -0
  42. data/spec/test_app/.gitignore +4 -0
  43. data/spec/test_app/Gemfile +21 -0
  44. data/spec/test_app/README +261 -0
  45. data/spec/test_app/Rakefile +7 -0
  46. data/spec/test_app/app/assets/images/rails.png +0 -0
  47. data/spec/test_app/app/assets/javascripts/application.js +9 -0
  48. data/spec/test_app/app/assets/stylesheets/application.css +7 -0
  49. data/spec/test_app/app/controllers/application_controller.rb +3 -0
  50. data/spec/test_app/app/helpers/application_helper.rb +2 -0
  51. data/spec/test_app/app/mailers/.gitkeep +0 -0
  52. data/spec/test_app/app/models/.gitkeep +0 -0
  53. data/spec/test_app/app/models/nobel_prize.rb +3 -0
  54. data/spec/test_app/app/models/nobel_prize_winner.rb +3 -0
  55. data/spec/test_app/app/views/layouts/application.html.erb +14 -0
  56. data/spec/test_app/config/application.rb +48 -0
  57. data/spec/test_app/config/boot.rb +6 -0
  58. data/spec/test_app/config/database.yml +25 -0
  59. data/spec/test_app/config/environment.rb +5 -0
  60. data/spec/test_app/config/environments/development.rb +30 -0
  61. data/spec/test_app/config/environments/production.rb +60 -0
  62. data/spec/test_app/config/environments/test.rb +42 -0
  63. data/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  64. data/spec/test_app/config/initializers/inflections.rb +10 -0
  65. data/spec/test_app/config/initializers/mime_types.rb +5 -0
  66. data/spec/test_app/config/initializers/secret_token.rb +7 -0
  67. data/spec/test_app/config/initializers/session_store.rb +8 -0
  68. data/spec/test_app/config/initializers/wrap_parameters.rb +14 -0
  69. data/spec/test_app/config/locales/en.yml +5 -0
  70. data/spec/test_app/config/routes.rb +58 -0
  71. data/spec/test_app/config.ru +4 -0
  72. data/spec/test_app/db/migrate/20111007154222_create_nobel_prize_winners.rb +30 -0
  73. data/spec/test_app/db/migrate/20111010191626_create_nobel_prizes.rb +34 -0
  74. data/spec/test_app/db/schema.rb +27 -0
  75. data/spec/test_app/db/seeds.rb +7 -0
  76. data/spec/test_app/db/test.sqlite3 +0 -0
  77. data/spec/test_app/doc/README_FOR_APP +2 -0
  78. data/spec/test_app/lib/assets/.gitkeep +0 -0
  79. data/spec/test_app/lib/tasks/.gitkeep +0 -0
  80. data/spec/test_app/log/.gitkeep +0 -0
  81. data/spec/test_app/public/404.html +26 -0
  82. data/spec/test_app/public/422.html +26 -0
  83. data/spec/test_app/public/500.html +26 -0
  84. data/spec/test_app/public/favicon.ico +0 -0
  85. data/spec/test_app/public/index.html +241 -0
  86. data/spec/test_app/public/robots.txt +5 -0
  87. data/spec/test_app/script/rails +6 -0
  88. data/spec/test_app/vendor/assets/stylesheets/.gitkeep +0 -0
  89. data/spec/test_app/vendor/plugins/.gitkeep +0 -0
  90. data/spec/utils_spec.rb +11 -0
  91. data/tableficate.gemspec +26 -0
  92. metadata +245 -0
@@ -0,0 +1,58 @@
1
+ TestApp::Application.routes.draw do
2
+ # The priority is based upon order of creation:
3
+ # first created -> highest priority.
4
+
5
+ # Sample of regular route:
6
+ # match 'products/:id' => 'catalog#view'
7
+ # Keep in mind you can assign values other than :controller and :action
8
+
9
+ # Sample of named route:
10
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
+ # This route can be invoked with purchase_url(:id => product.id)
12
+
13
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
14
+ # resources :products
15
+
16
+ # Sample resource route with options:
17
+ # resources :products do
18
+ # member do
19
+ # get 'short'
20
+ # post 'toggle'
21
+ # end
22
+ #
23
+ # collection do
24
+ # get 'sold'
25
+ # end
26
+ # end
27
+
28
+ # Sample resource route with sub-resources:
29
+ # resources :products do
30
+ # resources :comments, :sales
31
+ # resource :seller
32
+ # end
33
+
34
+ # Sample resource route with more complex sub-resources
35
+ # resources :products do
36
+ # resources :comments
37
+ # resources :sales do
38
+ # get 'recent', :on => :collection
39
+ # end
40
+ # end
41
+
42
+ # Sample resource route within a namespace:
43
+ # namespace :admin do
44
+ # # Directs /admin/products/* to Admin::ProductsController
45
+ # # (app/controllers/admin/products_controller.rb)
46
+ # resources :products
47
+ # end
48
+
49
+ # You can have the root of your site routed with "root"
50
+ # just remember to delete public/index.html.
51
+ # root :to => 'welcome#index'
52
+
53
+ # See how all your routes lay out with "rake routes"
54
+
55
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
56
+ # Note: This route will make all actions in every controller accessible via GET requests.
57
+ # match ':controller(/:action(/:id(.:format)))'
58
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run TestApp::Application
@@ -0,0 +1,30 @@
1
+ class CreateNobelPrizeWinners < ActiveRecord::Migration
2
+ def change
3
+ create_table :nobel_prize_winners do |t|
4
+ t.string :first_name
5
+ t.string :last_name
6
+ t.string :category
7
+ t.integer :year
8
+ end
9
+
10
+ [
11
+ {first_name: 'Norman', last_name: 'Borlaug', category: 'Peace', year: 1970},
12
+ {first_name: 'Paul', last_name: 'Flory', category: 'Chemistry', year: 1974},
13
+ {first_name: 'Albert', last_name: 'Eintein', category: 'Physics', year: 1921},
14
+ {first_name: 'Samuel', last_name: 'Beckett', category: 'Literature', year: 1969},
15
+ {first_name: 'Niels', last_name: 'Bohr', category: 'Physics', year: 1922},
16
+ {first_name: 'Erwin', last_name: 'Schrodinger', category: 'Physics', year: 1933},
17
+ {first_name: 'Paul', last_name: 'Dirac', category: 'Physics', year: 1933},
18
+ {first_name: 'Enrico', last_name: 'Fermi', category: 'Physics', year: 1938},
19
+ {first_name: 'Richard', last_name: 'Feynman', category: 'Physics', year: 1965},
20
+ {first_name: 'Marie', last_name: 'Curie', category: 'Chemistry', year: 1911},
21
+ {first_name: 'James', last_name: 'Watson', category: 'Physiology or Medicine', year: 1962},
22
+ {first_name: 'Bertrand', last_name: 'Russell', category: 'Literature', year: 1950},
23
+ {first_name: 'John', last_name: 'Steinbeck', category: 'Literature', year: 1962},
24
+ {first_name: 'Nelson', last_name: 'Mandela', category: 'Peace', year: 1993},
25
+ {first_name: 'Jacques', last_name: 'Monod', category: 'Physiology or Medicine', year: 1965}
26
+ ].each do |winner|
27
+ NobelPrizeWinner.create(winner)
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,34 @@
1
+ class CreateNobelPrizes < ActiveRecord::Migration
2
+ def up
3
+ create_table :nobel_prizes do |t|
4
+ t.integer :nobel_prize_winner_id
5
+ t.string :category
6
+ t.integer :year
7
+ end
8
+
9
+ execute(
10
+ 'INSERT INTO nobel_prizes("nobel_prize_winner_id", "category", "year") ' +
11
+ 'SELECT id, category, year ' +
12
+ 'FROM nobel_prize_winners'
13
+ )
14
+
15
+ NobelPrizeWinner.find_by_first_name_and_last_name('Marie', 'Curie').nobel_prizes.create(category: 'Physics', year: 1903)
16
+
17
+ remove_column :nobel_prize_winners, :category, :year
18
+ end
19
+
20
+ def down
21
+ add_column :nobel_prize_winners, :category, :string
22
+ add_column :nobel_prize_winners, :year, :integer
23
+
24
+ NobelPrizeWinner.find_by_first_name_and_last_name('Marie', 'Curie').nobel_prizes.order(:year).first.delete
25
+
26
+ execute(
27
+ 'UPDATE nobel_prize_winners ' +
28
+ 'SET category = (SELECT nobel_prizes.category FROM nobel_prizes WHERE nobel_prize_winners.id = nobel_prizes.nobel_prize_winner_id), ' +
29
+ 'year = (SELECT nobel_prizes.year FROM nobel_prizes WHERE nobel_prize_winners.id = nobel_prizes.nobel_prize_winner_id)'
30
+ )
31
+
32
+ drop_table :nobel_prizes
33
+ end
34
+ end
@@ -0,0 +1,27 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20111010191626) do
15
+
16
+ create_table "nobel_prize_winners", :force => true do |t|
17
+ t.string "first_name"
18
+ t.string "last_name"
19
+ end
20
+
21
+ create_table "nobel_prizes", :force => true do |t|
22
+ t.integer "nobel_prize_winner_id"
23
+ t.string "category"
24
+ t.integer "year"
25
+ end
26
+
27
+ end
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
+ # Mayor.create(name: 'Emanuel', city: cities.first)
Binary file
@@ -0,0 +1,2 @@
1
+ Use this README file to introduce your application and point to useful places in the API for learning more.
2
+ Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
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,241 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Ruby on Rails: Welcome aboard</title>
5
+ <style type="text/css" media="screen">
6
+ body {
7
+ margin: 0;
8
+ margin-bottom: 25px;
9
+ padding: 0;
10
+ background-color: #f0f0f0;
11
+ font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
12
+ font-size: 13px;
13
+ color: #333;
14
+ }
15
+
16
+ h1 {
17
+ font-size: 28px;
18
+ color: #000;
19
+ }
20
+
21
+ a {color: #03c}
22
+ a:hover {
23
+ background-color: #03c;
24
+ color: white;
25
+ text-decoration: none;
26
+ }
27
+
28
+
29
+ #page {
30
+ background-color: #f0f0f0;
31
+ width: 750px;
32
+ margin: 0;
33
+ margin-left: auto;
34
+ margin-right: auto;
35
+ }
36
+
37
+ #content {
38
+ float: left;
39
+ background-color: white;
40
+ border: 3px solid #aaa;
41
+ border-top: none;
42
+ padding: 25px;
43
+ width: 500px;
44
+ }
45
+
46
+ #sidebar {
47
+ float: right;
48
+ width: 175px;
49
+ }
50
+
51
+ #footer {
52
+ clear: both;
53
+ }
54
+
55
+ #header, #about, #getting-started {
56
+ padding-left: 75px;
57
+ padding-right: 30px;
58
+ }
59
+
60
+
61
+ #header {
62
+ background-image: url("/assets/rails.png");
63
+ background-repeat: no-repeat;
64
+ background-position: top left;
65
+ height: 64px;
66
+ }
67
+ #header h1, #header h2 {margin: 0}
68
+ #header h2 {
69
+ color: #888;
70
+ font-weight: normal;
71
+ font-size: 16px;
72
+ }
73
+
74
+
75
+ #about h3 {
76
+ margin: 0;
77
+ margin-bottom: 10px;
78
+ font-size: 14px;
79
+ }
80
+
81
+ #about-content {
82
+ background-color: #ffd;
83
+ border: 1px solid #fc0;
84
+ margin-left: -55px;
85
+ margin-right: -10px;
86
+ }
87
+ #about-content table {
88
+ margin-top: 10px;
89
+ margin-bottom: 10px;
90
+ font-size: 11px;
91
+ border-collapse: collapse;
92
+ }
93
+ #about-content td {
94
+ padding: 10px;
95
+ padding-top: 3px;
96
+ padding-bottom: 3px;
97
+ }
98
+ #about-content td.name {color: #555}
99
+ #about-content td.value {color: #000}
100
+
101
+ #about-content ul {
102
+ padding: 0;
103
+ list-style-type: none;
104
+ }
105
+
106
+ #about-content.failure {
107
+ background-color: #fcc;
108
+ border: 1px solid #f00;
109
+ }
110
+ #about-content.failure p {
111
+ margin: 0;
112
+ padding: 10px;
113
+ }
114
+
115
+
116
+ #getting-started {
117
+ border-top: 1px solid #ccc;
118
+ margin-top: 25px;
119
+ padding-top: 15px;
120
+ }
121
+ #getting-started h1 {
122
+ margin: 0;
123
+ font-size: 20px;
124
+ }
125
+ #getting-started h2 {
126
+ margin: 0;
127
+ font-size: 14px;
128
+ font-weight: normal;
129
+ color: #333;
130
+ margin-bottom: 25px;
131
+ }
132
+ #getting-started ol {
133
+ margin-left: 0;
134
+ padding-left: 0;
135
+ }
136
+ #getting-started li {
137
+ font-size: 18px;
138
+ color: #888;
139
+ margin-bottom: 25px;
140
+ }
141
+ #getting-started li h2 {
142
+ margin: 0;
143
+ font-weight: normal;
144
+ font-size: 18px;
145
+ color: #333;
146
+ }
147
+ #getting-started li p {
148
+ color: #555;
149
+ font-size: 13px;
150
+ }
151
+
152
+
153
+ #sidebar ul {
154
+ margin-left: 0;
155
+ padding-left: 0;
156
+ }
157
+ #sidebar ul h3 {
158
+ margin-top: 25px;
159
+ font-size: 16px;
160
+ padding-bottom: 10px;
161
+ border-bottom: 1px solid #ccc;
162
+ }
163
+ #sidebar li {
164
+ list-style-type: none;
165
+ }
166
+ #sidebar ul.links li {
167
+ margin-bottom: 5px;
168
+ }
169
+
170
+ .filename {
171
+ font-style: italic;
172
+ }
173
+ </style>
174
+ <script type="text/javascript">
175
+ function about() {
176
+ info = document.getElementById('about-content');
177
+ if (window.XMLHttpRequest)
178
+ { xhr = new XMLHttpRequest(); }
179
+ else
180
+ { xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
181
+ xhr.open("GET","rails/info/properties",false);
182
+ xhr.send("");
183
+ info.innerHTML = xhr.responseText;
184
+ info.style.display = 'block'
185
+ }
186
+ </script>
187
+ </head>
188
+ <body>
189
+ <div id="page">
190
+ <div id="sidebar">
191
+ <ul id="sidebar-items">
192
+ <li>
193
+ <h3>Browse the documentation</h3>
194
+ <ul class="links">
195
+ <li><a href="http://guides.rubyonrails.org/">Rails Guides</a></li>
196
+ <li><a href="http://api.rubyonrails.org/">Rails API</a></li>
197
+ <li><a href="http://www.ruby-doc.org/core/">Ruby core</a></li>
198
+ <li><a href="http://www.ruby-doc.org/stdlib/">Ruby standard library</a></li>
199
+ </ul>
200
+ </li>
201
+ </ul>
202
+ </div>
203
+
204
+ <div id="content">
205
+ <div id="header">
206
+ <h1>Welcome aboard</h1>
207
+ <h2>You&rsquo;re riding Ruby on Rails!</h2>
208
+ </div>
209
+
210
+ <div id="about">
211
+ <h3><a href="rails/info/properties" onclick="about(); return false">About your application&rsquo;s environment</a></h3>
212
+ <div id="about-content" style="display: none"></div>
213
+ </div>
214
+
215
+ <div id="getting-started">
216
+ <h1>Getting started</h1>
217
+ <h2>Here&rsquo;s how to get rolling:</h2>
218
+
219
+ <ol>
220
+ <li>
221
+ <h2>Use <code>rails generate</code> to create your models and controllers</h2>
222
+ <p>To see all available options, run it without parameters.</p>
223
+ </li>
224
+
225
+ <li>
226
+ <h2>Set up a default route and remove <span class="filename">public/index.html</span></h2>
227
+ <p>Routes are set up in <span class="filename">config/routes.rb</span>.</p>
228
+ </li>
229
+
230
+ <li>
231
+ <h2>Create your database</h2>
232
+ <p>Run <code>rake db:create</code> to create your database. If you're not using SQLite (the default), edit <span class="filename">config/database.yml</span> with your username and password.</p>
233
+ </li>
234
+ </ol>
235
+ </div>
236
+ </div>
237
+
238
+ <div id="footer">&nbsp;</div>
239
+ </div>
240
+ </body>
241
+ </html>
@@ -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
File without changes
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe Tableficate::Utils do
4
+ it 'should construct a path with no theme' do
5
+ Tableficate::Utils::template_path('template.rb').should == 'tableficate/template.rb'
6
+ end
7
+
8
+ it 'should construct a path with a theme' do
9
+ Tableficate::Utils::template_path('template.rb', 'futuristic').should == 'tableficate/futuristic/template.rb'
10
+ end
11
+ end
@@ -0,0 +1,26 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "tableficate/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "tableficate"
7
+ s.version = Tableficate::VERSION
8
+ s.authors = ["Aaron Lasseigne"]
9
+ s.email = ["alasseigne@sei-mi.com"]
10
+ s.homepage = "https://github.com/sei-mi/tableficate"
11
+ s.summary = %q{Simple tables for Rails.}
12
+ s.description = %q{Simple tables for Rails.}
13
+
14
+ s.rubyforge_project = "tableficate"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ s.add_dependency 'rails', '>= 3.1'
22
+
23
+ s.add_development_dependency 'rake'
24
+ s.add_development_dependency 'rspec'
25
+ s.add_development_dependency 'sqlite3'
26
+ end