simple_table_for 0.3.1 → 0.4.0

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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -11
  3. data/lib/simple_table_for/helpers.rb +5 -2
  4. data/lib/simple_table_for/version.rb +1 -1
  5. data/test/dummy/app/views/posts/alias.html.erb +5 -0
  6. data/test/dummy/db/test.sqlite3 +0 -0
  7. data/test/dummy/log/test.log +329 -0
  8. data/test/dummy/test/controllers/posts_controller_test.rb +24 -0
  9. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/0tuBtge0JKK8KOY8UJICxPHzUYkegohkllB9T_n5NY4.cache +1 -0
  10. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/3ZIpno1tMUY1Ygc9du0dlNY0TY0YlhzZ-rhk7A_iVkY.cache +2 -0
  11. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/9Lsqxg70enXnScs7PpS0gaTIxRZJGHHYzdROdxw0pBg.cache +2 -0
  12. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/AyxHtfH5ljSyeKa7UbSzV_blfO5M2hMrW99P_y2kb_w.cache +0 -0
  13. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/CivvZ_RAdAZ2hNXHixzAOMPzGmkgKj4czbMRUh1YEYw.cache +0 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/GXr7f0N3jnH1ar2BHUqOgHsoRow9UIpc-AZvnZ9XrBE.cache +1 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/LFTZHjoIlATLvlsb2JX_atx6mJNsalG2HR8BSdzhZHY.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UESEkBBLiABOdrDldNuJPI5l2jC2tZNRfOEYi5C1nZk.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/UR366PU5LEcyfdNncbiXPTjk5Sk6rQySg3DQ1l_nXEg.cache +1 -0
  18. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/VT3ssUnfS_qalTPCYseHiK7BywMvLa6S5DS4E3rq98s.cache +2 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Y6o5YuJRlYBWqWptNYZNjS5QZPWNGe088MQgjd1xat4.cache +1 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Z7FrKzgOwGWu6hUzGIdvrROhbGhMl5RhU2iiWlxUIhM.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ec91z_4gpWlfiyQDh5FweH-EcfN9VrqYkdmnCyjRhg0.cache +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/f1CGajOZaqmhQHqlQSOd7yFM0uAiR86zFepHz0GF5GI.cache +2 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/flz44vCIRh3tUcj6nCCvbbHq3vj3yjH9fojcksw4fo0.cache +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/o8LR0wN4o9BDbm9qcVnzJKhoTPVtQl9XKdpeoBF45Qc.cache +1 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/qxhopn-UEiVxCcj2Fj0cVdnrYKkQBOtLTsQaKFKwXKY.cache +2 -0
  26. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/rG2VckzQuBfG99WIApu1qplPFrP1tLCzgi1H7M4-B5s.cache +2 -0
  27. metadata +41 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fcdb0e3ac24958dd25d79d37b7b5a22aca006b8
4
- data.tar.gz: cf190159727bdb4971562df336d4591462cdaa74
3
+ metadata.gz: f80f16f0c081228d75b5e6aae55ee3703b970594
4
+ data.tar.gz: 8b50520022e8fec0f6738a64b03d73cd12266f5d
5
5
  SHA512:
6
- metadata.gz: 9b55a20eed6cf731897615e24ba25074655f9836d773c437a993c1c5f6e39f47ad56688a66734b594b2958e1bb264c2b45a503ff8b448cd49bb031480b497fda
7
- data.tar.gz: 9df967e870a6f2ec38ca76836c0c812032081f53c1bcc12214cc3c1e17f1b28d7cb79a2752435229568f775facfb182085f4429840f6338be44d3263d008638b
6
+ metadata.gz: ce8043067a88b6c98431a1d8da519eb5defec30a0d0800b577f17d9b666b63d399bf8d8c7b3ef4148cd46aecc2875a0f9772ded60ffa900109a3116091feca92
7
+ data.tar.gz: e177f17e2d5abdbf89378c67b82c3b2ddf04dedc0214a700b2a478729087d3da93765c6f08172b728c96327a48f92cafc4aaa169e0278b2e82d075ba1f0f1bb0
data/README.md CHANGED
@@ -17,36 +17,48 @@ gem 'simple_table_for'
17
17
  ## Usage
18
18
 
19
19
  ```erb
20
- <%= table_for @users, [:name, :email, 'Registration date', 'Comments count', '-'], model: User do |user| %>
20
+ <%= table_for @users, [:name, :email, 'Registration date', 'Comments count', '-', '-'] do |user| %>
21
21
  <%= field user.name %>
22
22
  <%= field user.email %>
23
- <%= field user.created_at %>
23
+ <%= field l(user.created_at, format: '%d/%m/%Y') %>
24
24
  <%= field user.comments.count %>
25
25
  <%= field link_to('View', user) %>
26
+ <%= field link_to('View', edit_users_path(user)) %>
26
27
  <% end %>
27
28
  ```
28
29
 
29
30
  The above will generate a table like:
30
31
 
31
- | First name | Email | Registration date | Comments count | - |
32
- | ---------- | ------------- | ----------------- | --------------- | --------- |
33
- | John | john@john.com | 01/01/2015 | 15 | [View](#) |
34
- | Mark | mark@mark.com | 02/02/2015 | 34 | [View](#) |
32
+ | First name | E-mail | Registration date | Comments count | - | - |
33
+ | ---------- | ------------- | ----------------- | --------------- | --------- | --------- |
34
+ | John | john@john.com | 01/01/2015 | 15 | [View](#) | [Edit](#) |
35
+ | Mark | mark@mark.com | 02/02/2015 | 34 | [View](#) | [Edit](#) |
35
36
 
36
37
  The second parameter is a array of headers. For a Symbol header, the helper
37
- will get the localizated name in `config/locales` folder. The `model` option
38
- should be informed in this case. For a String header, the helper will just
39
- print it as is.
38
+ will get the localizated name in `config/locales` folder.
39
+ Example: for a `@users` collection and `:name` header it will search for
40
+ '<locale>/activerecord/attributes/user/name'.
41
+ For a String header, the helper will just print it as is.
40
42
 
41
- You can optionally add an id or classes to tables and fields:
43
+ You can optionally give adicional options, like id or classes to tables and fields:
42
44
 
43
45
  ```erb
44
- <%= table_for @users, [:name, '-'], model: User, id: 'users-table', class: 'table' do |user| %>
46
+ <%= table_for @users, [:name, '-'], id: 'users-table', class: 'table' do |user| %>
45
47
  <%= field user.name, class: 'user-name' %>
46
48
  <%= field link_to('View', user), class: 'user-link' %>
47
49
  <% end %>
48
50
  ```
49
51
 
52
+ `table_for` is aliased as `simple_table_for`, and `field` is aliased as `column`:
53
+
54
+ ```erb
55
+ <%= simple_table_for @products, [:product_name, :price, 'Number of orders'] do |product| %>
56
+ <%= column product.product_name %>
57
+ <%= column product.price %>
58
+ <%= column product.orders.count %>
59
+ <% end %>
60
+ ```
61
+
50
62
  ## Setting default options
51
63
 
52
64
  You can also set a default class for tables:
@@ -8,7 +8,7 @@ module SimpleTableFor
8
8
 
9
9
  # Generates a table.
10
10
  # Usage:
11
- # <%= table_for @users, [:name, :email, 'Registration Date', 'Comments count', '-'], model: User, id: 'table-id', class: 'table-class' do |user| %>
11
+ # <%= table_for @users, [:name, :email, 'Registration Date', 'Comments count', '-'], id: 'table-id', class: 'table-class' do |user| %>
12
12
  # <%= field user.name %>
13
13
  # <%= field user.email %>
14
14
  # <%= field user.created_at %>
@@ -26,7 +26,7 @@ module SimpleTableFor
26
26
  when String
27
27
  concat(content_tag :th, header)
28
28
  when Symbol
29
- concat(content_tag :th, options[:model].human_attribute_name(header))
29
+ concat(content_tag :th, collection.model.human_attribute_name(header))
30
30
  end
31
31
  end
32
32
  end
@@ -41,5 +41,8 @@ module SimpleTableFor
41
41
  end)
42
42
  end
43
43
  end
44
+
45
+ alias simple_table_for table_for
46
+ alias column field
44
47
  end
45
48
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleTableFor
2
- VERSION = '0.3.1'
2
+ VERSION = '0.4.0'
3
3
  end
@@ -0,0 +1,5 @@
1
+ <%= simple_table_for @posts, [:title, :text, 'View Link'], model: Post, id: 'the-id', class: 'the-class' do |p| %>
2
+ <%= column p.title, class: 'title' %>
3
+ <%= column p.text, class: 'text' %>
4
+ <%= column link_to('View', p), class: 'link' %>
5
+ <% end %>
Binary file
@@ -1495,3 +1495,332 @@ Processing by PostsController#index as HTML
1495
1495
  Rendered posts/empty.html.erb within layouts/application (6.5ms)
1496
1496
  Completed 200 OK in 29ms (Views: 25.8ms | ActiveRecord: 2.6ms)
1497
1497
   (0.3ms) rollback transaction
1498
+ ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1499
+  (4.2ms) begin transaction
1500
+ Fixture Delete (10.6ms) DELETE FROM "posts"
1501
+ Fixture Insert (1.2ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 16:28:39', '2015-07-15 16:28:39', 980190962)
1502
+ Fixture Insert (0.2ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 16:28:39', '2015-07-15 16:28:39', 298486374)
1503
+  (49.6ms) commit transaction
1504
+  (0.1ms) begin transaction
1505
+ ---------------------------------------------------
1506
+ PostsControllerTest: test_should_render_empty_table
1507
+ ---------------------------------------------------
1508
+ Processing by PostsController#index as HTML
1509
+ Parameters: {"template"=>"empty"}
1510
+ Post Load (2.6ms) SELECT "posts".* FROM "posts" WHERE (0 = 1)
1511
+ Rendered posts/empty.html.erb within layouts/application (36.6ms)
1512
+ Completed 200 OK in 1623ms (Views: 1619.9ms | ActiveRecord: 2.6ms)
1513
+  (0.2ms) rollback transaction
1514
+  (0.1ms) begin transaction
1515
+ ---------------------------------------------
1516
+ PostsControllerTest: test_should_render_table
1517
+ ---------------------------------------------
1518
+ Processing by PostsController#index as HTML
1519
+ Parameters: {"template"=>"render"}
1520
+ Post Load (2.4ms) SELECT "posts".* FROM "posts"
1521
+ Rendered posts/render.html.erb within layouts/application (9.4ms)
1522
+ Completed 200 OK in 48ms (Views: 44.8ms | ActiveRecord: 2.4ms)
1523
+  (0.1ms) rollback transaction
1524
+  (0.1ms) begin transaction
1525
+ -----------------------------------------------------------------------------------
1526
+ PostsControllerTest: test_should_render_table_with_defaults_(set_in_application.rb)
1527
+ -----------------------------------------------------------------------------------
1528
+ Processing by PostsController#index as HTML
1529
+ Parameters: {"template"=>"defaults"}
1530
+ Post Load (2.4ms) SELECT "posts".* FROM "posts"
1531
+ Rendered posts/defaults.html.erb within layouts/application (4.6ms)
1532
+ Completed 200 OK in 39ms (Views: 35.7ms | ActiveRecord: 2.4ms)
1533
+  (0.2ms) rollback transaction
1534
+ ActiveRecord::SchemaMigration Load (2.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
1535
+  (0.2ms) begin transaction
1536
+ Fixture Delete (5.1ms) DELETE FROM "posts"
1537
+ Fixture Insert (0.9ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 16:29:11', '2015-07-15 16:29:11', 980190962)
1538
+ Fixture Insert (0.2ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 16:29:11', '2015-07-15 16:29:11', 298486374)
1539
+  (13.5ms) commit transaction
1540
+  (0.1ms) begin transaction
1541
+ ---------------------------------------------------
1542
+ PostsControllerTest: test_should_render_empty_table
1543
+ ---------------------------------------------------
1544
+ Processing by PostsController#index as HTML
1545
+ Parameters: {"template"=>"empty"}
1546
+ Post Load (2.2ms) SELECT "posts".* FROM "posts" WHERE (0 = 1)
1547
+ Post Load (0.3ms) SELECT "posts".* FROM "posts"
1548
+ Rendered posts/empty.html.erb within layouts/application (64.1ms)
1549
+ Completed 500 Internal Server Error in 173ms (ActiveRecord: 2.5ms)
1550
+  (0.1ms) rollback transaction
1551
+  (0.3ms) begin transaction
1552
+ ---------------------------------------------
1553
+ PostsControllerTest: test_should_render_table
1554
+ ---------------------------------------------
1555
+ Processing by PostsController#index as HTML
1556
+ Parameters: {"template"=>"render"}
1557
+ Post Load (2.1ms) SELECT "posts".* FROM "posts"
1558
+ Rendered posts/render.html.erb within layouts/application (38.8ms)
1559
+ Completed 500 Internal Server Error in 59ms (ActiveRecord: 2.1ms)
1560
+  (0.1ms) rollback transaction
1561
+  (0.1ms) begin transaction
1562
+ -----------------------------------------------------------------------------------
1563
+ PostsControllerTest: test_should_render_table_with_defaults_(set_in_application.rb)
1564
+ -----------------------------------------------------------------------------------
1565
+ Processing by PostsController#index as HTML
1566
+ Parameters: {"template"=>"defaults"}
1567
+ Post Load (2.6ms) SELECT "posts".* FROM "posts"
1568
+ Rendered posts/defaults.html.erb within layouts/application (41.4ms)
1569
+ Completed 500 Internal Server Error in 61ms (ActiveRecord: 2.6ms)
1570
+  (0.1ms) rollback transaction
1571
+ ActiveRecord::SchemaMigration Load (2.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1572
+  (0.2ms) begin transaction
1573
+ Fixture Delete (3.8ms) DELETE FROM "posts"
1574
+ Fixture Insert (1.4ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 16:29:35', '2015-07-15 16:29:35', 980190962)
1575
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 16:29:35', '2015-07-15 16:29:35', 298486374)
1576
+  (8.7ms) commit transaction
1577
+  (0.1ms) begin transaction
1578
+ -----------------------------------------------------------------------------------
1579
+ PostsControllerTest: test_should_render_table_with_defaults_(set_in_application.rb)
1580
+ -----------------------------------------------------------------------------------
1581
+ Processing by PostsController#index as HTML
1582
+ Parameters: {"template"=>"defaults"}
1583
+ Post Load (1.8ms) SELECT "posts".* FROM "posts"
1584
+ Rendered posts/defaults.html.erb within layouts/application (25.9ms)
1585
+ Completed 200 OK in 518ms (Views: 515.5ms | ActiveRecord: 1.8ms)
1586
+  (0.2ms) rollback transaction
1587
+  (0.1ms) begin transaction
1588
+ ---------------------------------------------------
1589
+ PostsControllerTest: test_should_render_empty_table
1590
+ ---------------------------------------------------
1591
+ Processing by PostsController#index as HTML
1592
+ Parameters: {"template"=>"empty"}
1593
+ Post Load (6.6ms) SELECT "posts".* FROM "posts" WHERE (0 = 1)
1594
+ Rendered posts/empty.html.erb within layouts/application (37.8ms)
1595
+ Completed 500 Internal Server Error in 89ms (ActiveRecord: 6.6ms)
1596
+  (0.2ms) rollback transaction
1597
+  (0.1ms) begin transaction
1598
+ ---------------------------------------------
1599
+ PostsControllerTest: test_should_render_table
1600
+ ---------------------------------------------
1601
+ Processing by PostsController#index as HTML
1602
+ Parameters: {"template"=>"render"}
1603
+ Post Load (2.1ms) SELECT "posts".* FROM "posts"
1604
+ Rendered posts/render.html.erb within layouts/application (4.6ms)
1605
+ Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 2.1ms)
1606
+  (0.1ms) rollback transaction
1607
+ ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1608
+  (0.2ms) begin transaction
1609
+ Fixture Delete (4.0ms) DELETE FROM "posts"
1610
+ Fixture Insert (1.1ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 16:30:18', '2015-07-15 16:30:18', 980190962)
1611
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 16:30:18', '2015-07-15 16:30:18', 298486374)
1612
+  (26.6ms) commit transaction
1613
+  (0.1ms) begin transaction
1614
+ -----------------------------------------------------------------------------------
1615
+ PostsControllerTest: test_should_render_table_with_defaults_(set_in_application.rb)
1616
+ -----------------------------------------------------------------------------------
1617
+ Processing by PostsController#index as HTML
1618
+ Parameters: {"template"=>"defaults"}
1619
+ Post Load (2.4ms) SELECT "posts".* FROM "posts"
1620
+ Rendered posts/defaults.html.erb within layouts/application (24.3ms)
1621
+ Completed 200 OK in 521ms (Views: 518.4ms | ActiveRecord: 2.4ms)
1622
+  (0.2ms) rollback transaction
1623
+  (0.1ms) begin transaction
1624
+ ---------------------------------------------------
1625
+ PostsControllerTest: test_should_render_empty_table
1626
+ ---------------------------------------------------
1627
+ Processing by PostsController#index as HTML
1628
+ Parameters: {"template"=>"empty"}
1629
+ Post Load (1.9ms) SELECT "posts".* FROM "posts" WHERE (0 = 1)
1630
+ Rendered posts/empty.html.erb within layouts/application (3.5ms)
1631
+ Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 1.9ms)
1632
+  (0.1ms) rollback transaction
1633
+  (0.1ms) begin transaction
1634
+ ---------------------------------------------
1635
+ PostsControllerTest: test_should_render_table
1636
+ ---------------------------------------------
1637
+ Processing by PostsController#index as HTML
1638
+ Parameters: {"template"=>"render"}
1639
+ Post Load (2.0ms) SELECT "posts".* FROM "posts"
1640
+ Rendered posts/render.html.erb within layouts/application (4.4ms)
1641
+ Completed 200 OK in 25ms (Views: 22.2ms | ActiveRecord: 2.0ms)
1642
+  (8.6ms) rollback transaction
1643
+ ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1644
+  (0.1ms) begin transaction
1645
+ Fixture Delete (5.1ms) DELETE FROM "posts"
1646
+ Fixture Insert (1.4ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 16:55:43', '2015-07-15 16:55:43', 980190962)
1647
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 16:55:43', '2015-07-15 16:55:43', 298486374)
1648
+  (38.8ms) commit transaction
1649
+  (0.1ms) begin transaction
1650
+ ---------------------------------------------------
1651
+ PostsControllerTest: test_should_render_empty_table
1652
+ ---------------------------------------------------
1653
+ Processing by PostsController#index as HTML
1654
+ Parameters: {"template"=>"empty"}
1655
+ Post Load (3.0ms) SELECT "posts".* FROM "posts" WHERE (0 = 1)
1656
+ Rendered posts/empty.html.erb within layouts/application (21.5ms)
1657
+ Completed 200 OK in 518ms (Views: 514.4ms | ActiveRecord: 3.0ms)
1658
+  (0.2ms) rollback transaction
1659
+  (0.1ms) begin transaction
1660
+ ---------------------------------------------
1661
+ PostsControllerTest: test_should_render_table
1662
+ ---------------------------------------------
1663
+ Processing by PostsController#index as HTML
1664
+ Parameters: {"template"=>"render"}
1665
+ Post Load (1.9ms) SELECT "posts".* FROM "posts"
1666
+ Rendered posts/render.html.erb within layouts/application (9.8ms)
1667
+ Completed 200 OK in 29ms (Views: 27.0ms | ActiveRecord: 1.9ms)
1668
+  (0.1ms) rollback transaction
1669
+  (0.1ms) begin transaction
1670
+ ------------------------------------------------------------------------------------------------
1671
+ PostsControllerTest: test_should_render_table_with_aliased_methods_(simple_table_for_and_column)
1672
+ ------------------------------------------------------------------------------------------------
1673
+ Processing by PostsController#index as HTML
1674
+ Parameters: {"template"=>"alias"}
1675
+ Post Load (3.2ms) SELECT "posts".* FROM "posts"
1676
+ Rendered posts/alias.html.erb within layouts/application (82.8ms)
1677
+ Completed 500 Internal Server Error in 102ms (ActiveRecord: 3.2ms)
1678
+  (0.1ms) rollback transaction
1679
+  (0.1ms) begin transaction
1680
+ -----------------------------------------------------------------------------------
1681
+ PostsControllerTest: test_should_render_table_with_defaults_(set_in_application.rb)
1682
+ -----------------------------------------------------------------------------------
1683
+ Processing by PostsController#index as HTML
1684
+ Parameters: {"template"=>"defaults"}
1685
+ Post Load (1.9ms) SELECT "posts".* FROM "posts"
1686
+ Rendered posts/defaults.html.erb within layouts/application (5.0ms)
1687
+ Completed 200 OK in 28ms (Views: 25.6ms | ActiveRecord: 1.9ms)
1688
+  (0.1ms) rollback transaction
1689
+ ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1690
+  (0.1ms) begin transaction
1691
+ Fixture Delete (4.2ms) DELETE FROM "posts"
1692
+ Fixture Insert (0.9ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 16:56:16', '2015-07-15 16:56:16', 980190962)
1693
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 16:56:16', '2015-07-15 16:56:16', 298486374)
1694
+  (37.0ms) commit transaction
1695
+  (0.1ms) begin transaction
1696
+ ------------------------------------------------------------------------------------------------
1697
+ PostsControllerTest: test_should_render_table_with_aliased_methods_(simple_table_for_and_column)
1698
+ ------------------------------------------------------------------------------------------------
1699
+ Processing by PostsController#index as HTML
1700
+ Parameters: {"template"=>"alias"}
1701
+ Post Load (1.8ms) SELECT "posts".* FROM "posts"
1702
+ Rendered posts/alias.html.erb within layouts/application (24.4ms)
1703
+ Completed 200 OK in 554ms (Views: 552.1ms | ActiveRecord: 1.8ms)
1704
+  (0.1ms) rollback transaction
1705
+  (0.1ms) begin transaction
1706
+ -----------------------------------------------------------------------------------
1707
+ PostsControllerTest: test_should_render_table_with_defaults_(set_in_application.rb)
1708
+ -----------------------------------------------------------------------------------
1709
+ Processing by PostsController#index as HTML
1710
+ Parameters: {"template"=>"defaults"}
1711
+ Post Load (2.1ms) SELECT "posts".* FROM "posts"
1712
+ Rendered posts/defaults.html.erb within layouts/application (4.4ms)
1713
+ Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 2.1ms)
1714
+  (0.2ms) rollback transaction
1715
+  (0.1ms) begin transaction
1716
+ ---------------------------------------------------
1717
+ PostsControllerTest: test_should_render_empty_table
1718
+ ---------------------------------------------------
1719
+ Processing by PostsController#index as HTML
1720
+ Parameters: {"template"=>"empty"}
1721
+ Post Load (2.7ms) SELECT "posts".* FROM "posts" WHERE (0 = 1)
1722
+ Rendered posts/empty.html.erb within layouts/application (4.5ms)
1723
+ Completed 200 OK in 27ms (Views: 24.0ms | ActiveRecord: 2.7ms)
1724
+  (0.1ms) rollback transaction
1725
+  (0.1ms) begin transaction
1726
+ ---------------------------------------------
1727
+ PostsControllerTest: test_should_render_table
1728
+ ---------------------------------------------
1729
+ Processing by PostsController#index as HTML
1730
+ Parameters: {"template"=>"render"}
1731
+ Post Load (2.0ms) SELECT "posts".* FROM "posts"
1732
+ Rendered posts/render.html.erb within layouts/application (4.6ms)
1733
+ Completed 200 OK in 27ms (Views: 24.6ms | ActiveRecord: 2.0ms)
1734
+  (0.2ms) rollback transaction
1735
+ ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1736
+  (0.2ms) begin transaction
1737
+ Fixture Delete (4.9ms) DELETE FROM "posts"
1738
+ Fixture Insert (0.9ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 17:04:25', '2015-07-15 17:04:25', 980190962)
1739
+ Fixture Insert (0.2ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 17:04:25', '2015-07-15 17:04:25', 298486374)
1740
+  (29.7ms) commit transaction
1741
+  (0.1ms) begin transaction
1742
+ ------------------------------------------------------------------------------------------------
1743
+ PostsControllerTest: test_should_render_table_with_aliased_methods_(simple_table_for_and_column)
1744
+ ------------------------------------------------------------------------------------------------
1745
+ Processing by PostsController#index as HTML
1746
+ Parameters: {"template"=>"alias"}
1747
+ Post Load (2.3ms) SELECT "posts".* FROM "posts"
1748
+ Rendered posts/alias.html.erb within layouts/application (56.4ms)
1749
+ Completed 500 Internal Server Error in 164ms (ActiveRecord: 2.3ms)
1750
+  (0.1ms) rollback transaction
1751
+  (0.1ms) begin transaction
1752
+ ---------------------------------------------
1753
+ PostsControllerTest: test_should_render_table
1754
+ ---------------------------------------------
1755
+ Processing by PostsController#index as HTML
1756
+ Parameters: {"template"=>"render"}
1757
+ Post Load (2.5ms) SELECT "posts".* FROM "posts"
1758
+ Rendered posts/render.html.erb within layouts/application (13.7ms)
1759
+ Completed 200 OK in 440ms (Views: 437.2ms | ActiveRecord: 2.5ms)
1760
+  (0.2ms) rollback transaction
1761
+  (0.1ms) begin transaction
1762
+ -----------------------------------------------------------------------------------
1763
+ PostsControllerTest: test_should_render_table_with_defaults_(set_in_application.rb)
1764
+ -----------------------------------------------------------------------------------
1765
+ Processing by PostsController#index as HTML
1766
+ Parameters: {"template"=>"defaults"}
1767
+ Post Load (2.1ms) SELECT "posts".* FROM "posts"
1768
+ Rendered posts/defaults.html.erb within layouts/application (4.3ms)
1769
+ Completed 200 OK in 24ms (Views: 21.4ms | ActiveRecord: 2.1ms)
1770
+  (0.1ms) rollback transaction
1771
+  (0.3ms) begin transaction
1772
+ ---------------------------------------------------
1773
+ PostsControllerTest: test_should_render_empty_table
1774
+ ---------------------------------------------------
1775
+ Processing by PostsController#index as HTML
1776
+ Parameters: {"template"=>"empty"}
1777
+ Post Load (2.0ms) SELECT "posts".* FROM "posts" WHERE (0 = 1)
1778
+ Rendered posts/empty.html.erb within layouts/application (4.2ms)
1779
+ Completed 200 OK in 29ms (Views: 26.7ms | ActiveRecord: 2.0ms)
1780
+  (0.2ms) rollback transaction
1781
+ ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1782
+  (0.2ms) begin transaction
1783
+ Fixture Delete (4.0ms) DELETE FROM "posts"
1784
+ Fixture Insert (1.1ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 17:05:25', '2015-07-15 17:05:25', 980190962)
1785
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("title", "text", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2015-07-15 17:05:25', '2015-07-15 17:05:25', 298486374)
1786
+  (6.2ms) commit transaction
1787
+  (0.1ms) begin transaction
1788
+ ---------------------------------------------
1789
+ PostsControllerTest: test_should_render_table
1790
+ ---------------------------------------------
1791
+ Processing by PostsController#index as HTML
1792
+ Parameters: {"template"=>"render"}
1793
+ Post Load (3.6ms) SELECT "posts".* FROM "posts"
1794
+ Rendered posts/render.html.erb within layouts/application (24.9ms)
1795
+ Completed 200 OK in 505ms (Views: 501.3ms | ActiveRecord: 3.6ms)
1796
+  (0.1ms) rollback transaction
1797
+  (0.1ms) begin transaction
1798
+ ---------------------------------------------------
1799
+ PostsControllerTest: test_should_render_empty_table
1800
+ ---------------------------------------------------
1801
+ Processing by PostsController#index as HTML
1802
+ Parameters: {"template"=>"empty"}
1803
+ Post Load (1.8ms) SELECT "posts".* FROM "posts" WHERE (0 = 1)
1804
+ Rendered posts/empty.html.erb within layouts/application (3.9ms)
1805
+ Completed 200 OK in 24ms (Views: 21.5ms | ActiveRecord: 1.8ms)
1806
+  (0.2ms) rollback transaction
1807
+  (0.1ms) begin transaction
1808
+ ------------------------------------------------------------------------------------------------
1809
+ PostsControllerTest: test_should_render_table_with_aliased_methods_(simple_table_for_and_column)
1810
+ ------------------------------------------------------------------------------------------------
1811
+ Processing by PostsController#index as HTML
1812
+ Parameters: {"template"=>"alias"}
1813
+ Post Load (2.1ms) SELECT "posts".* FROM "posts"
1814
+ Rendered posts/alias.html.erb within layouts/application (4.7ms)
1815
+ Completed 200 OK in 26ms (Views: 23.5ms | ActiveRecord: 2.1ms)
1816
+  (0.1ms) rollback transaction
1817
+  (0.1ms) begin transaction
1818
+ -----------------------------------------------------------------------------------
1819
+ PostsControllerTest: test_should_render_table_with_defaults_(set_in_application.rb)
1820
+ -----------------------------------------------------------------------------------
1821
+ Processing by PostsController#index as HTML
1822
+ Parameters: {"template"=>"defaults"}
1823
+ Post Load (1.8ms) SELECT "posts".* FROM "posts"
1824
+ Rendered posts/defaults.html.erb within layouts/application (4.9ms)
1825
+ Completed 200 OK in 26ms (Views: 24.0ms | ActiveRecord: 1.8ms)
1826
+  (0.1ms) rollback transaction
@@ -25,6 +25,30 @@ class PostsControllerTest < ActionController::TestCase
25
25
  assert_match(/View\ Link/, @response.body)
26
26
  end
27
27
 
28
+ test 'should render table with aliased methods (simple_table_for and column)' do
29
+ get :index, template: :alias
30
+
31
+ assert_select 'table#the-id.the-class' do
32
+ assert_select 'thead' do
33
+ assert_select 'tr' do
34
+ assert_select 'th'
35
+ end
36
+ end
37
+
38
+ assert_select 'tbody' do
39
+ assert_select 'tr' do
40
+ assert_select 'td.title'
41
+ assert_select 'td.text'
42
+ assert_select 'td.link'
43
+ end
44
+ end
45
+ end
46
+
47
+ assert_match(/Post\ Text/, @response.body)
48
+ assert_match(/Post\ Title/, @response.body)
49
+ assert_match(/View\ Link/, @response.body)
50
+ end
51
+
28
52
  test 'should render table with defaults (set in application.rb)' do
29
53
  get :index, template: :defaults
30
54
 
@@ -0,0 +1 @@
1
+ I"�file:///media/sf_shared/simple_table_for/test/dummy/app/assets/stylesheets/posts.css?type=text/css&pipeline=self&id=0ba75b986a7ea0b7343276dac0c68aa83eb92709f0e854891757acdf42689b2b:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"`file-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/stylesheets/posts.css;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"efile-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/javascripts/application.js;TTI"Vfile-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/javascripts;TTI"_file-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/javascripts/posts.js;TT
@@ -0,0 +1 @@
1
+ I"�file:///media/sf_shared/simple_table_for/test/dummy/app/assets/javascripts/posts.js?type=application/javascript&pipeline=self&id=08cd5c56659ca41f868fec0a458145f8777f4ec4b3368e77c1f9fd2c9d413aad:ET
@@ -0,0 +1 @@
1
+ I"�file:///media/sf_shared/simple_table_for/test/dummy/app/assets/javascripts/application.js?type=application/javascript&id=2d89376abb2d793755e3a0b1520f8f8a499ce364c36a4432ca042eb7f38b448a:ET
@@ -0,0 +1 @@
1
+ I"�file:///media/sf_shared/simple_table_for/test/dummy/app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=47aa3669e3a41de8b55ddaea142f133bb5c322421f39aa69b83d55db84550dba:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"efile-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"_file-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/javascripts/posts.js;TTI"Vfile-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/javascripts;TT
@@ -0,0 +1 @@
1
+ I"�file:///media/sf_shared/simple_table_for/test/dummy/app/assets/stylesheets/application.css?type=text/css&id=3dd4c85b1df3b34feb032862fc9472ad0a1cb742382846b46fc212e19d1b3529:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"_file-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/javascripts/posts.js;TT
@@ -0,0 +1 @@
1
+ I"�file:///media/sf_shared/simple_table_for/test/dummy/app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=26ad8609f723c93fbe2dd2098b939914f55b17cf8eb2b1b2d0d96cd97b1fca84:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"ffile-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"`file-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/stylesheets/posts.css;TTI"Vfile-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/stylesheets;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"ffile-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/stylesheets/application.css;TTI"Vfile-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/stylesheets;TTI"`file-digest:///media/sf_shared/simple_table_for/test/dummy/app/assets/stylesheets/posts.css;TT
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_table_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Nering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-14 00:00:00.000000000 Z
11
+ date: 2015-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -67,6 +67,7 @@ files:
67
67
  - test/dummy/app/helpers/posts_helper.rb
68
68
  - test/dummy/app/models/post.rb
69
69
  - test/dummy/app/views/layouts/application.html.erb
70
+ - test/dummy/app/views/posts/alias.html.erb
70
71
  - test/dummy/app/views/posts/defaults.html.erb
71
72
  - test/dummy/app/views/posts/empty.html.erb
72
73
  - test/dummy/app/views/posts/render.html.erb
@@ -129,27 +130,45 @@ files:
129
130
  - test/dummy/tmp/cache/assets/test/sprockets/d066c004d1fd26ae76a61303a7a18145
130
131
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
131
132
  - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
133
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/0tuBtge0JKK8KOY8UJICxPHzUYkegohkllB9T_n5NY4.cache
132
134
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/1oisFHHwfZfWBJmEnTLb37nziJruI9wNupNmBH1qcYg.cache
133
135
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/2QOL0-cKH63ISf27ze-vmHvi0ceTilhHNb_4IEkTveQ.cache
134
136
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/3MR8eDJwQB3Wc1CSBSZj17jgm1K2e138Wotecrm59Fs.cache
137
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/3ZIpno1tMUY1Ygc9du0dlNY0TY0YlhzZ-rhk7A_iVkY.cache
135
138
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/3aOKfJaCUw-MVgMWyjEoTrzah2SVHl0SI8JfWHdf0nQ.cache
136
139
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/6WsDCYIAVtnLS7PmU5VxiDsHdNQC3HYcirjW8kVBHTU.cache
137
140
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/7Mcvuh_fdHbktCgot1-NZ5YN9JyNq3WqcdNNSguo2UQ.cache
141
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/9Lsqxg70enXnScs7PpS0gaTIxRZJGHHYzdROdxw0pBg.cache
138
142
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/9Qbw4WsgPppcv4frQdiVbqlaZORB693B2iNX-YtgPo4.cache
139
143
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/AJPUXXxPhsCFBwc7JfC_qkipY2oZqq7ZGr21d88_z_8.cache
144
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/AyxHtfH5ljSyeKa7UbSzV_blfO5M2hMrW99P_y2kb_w.cache
145
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/CivvZ_RAdAZ2hNXHixzAOMPzGmkgKj4czbMRUh1YEYw.cache
140
146
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/FQvDDtaiFwNZGr6qeJtDrS66IHFEP-xDPZXRLnRRd7U.cache
141
147
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/Fi-dWOWd11rMVFwvet1GiJmAKZeyeIOXXxTzo8VgHVY.cache
148
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/GXr7f0N3jnH1ar2BHUqOgHsoRow9UIpc-AZvnZ9XrBE.cache
142
149
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/IVoVTT524mMnPTvmSW-1xz0MnJEyQk8Y4vK1S8aqZ2E.cache
150
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/LFTZHjoIlATLvlsb2JX_atx6mJNsalG2HR8BSdzhZHY.cache
143
151
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/LT4Ssnd9TE4TUIgJ9rbSm11ASFZryFmJ4rt0Ke47fjk.cache
144
152
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/LrD4KVqd22SeEFmO7e647i6QHo6m6IJdrG-ljA3VYN8.cache
145
153
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/MvxZLfy4VuwBLkra0vZDcnxnUaOr52rETk9uoPxtfV8.cache
146
154
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/N4aQD7fmB4hT2GgP4Zitxhi_LcIi-tT1tY5Foa3JoqM.cache
147
155
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/PpL2EdGJpOTQ5eXMrzCxMPzgHZ0PJ7k3-TvcQyhvvTs.cache
148
156
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/SJO9550HuFNgdx9JYkT9Cf7D92rsEb-Y0WxGXdYcNjU.cache
157
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/UESEkBBLiABOdrDldNuJPI5l2jC2tZNRfOEYi5C1nZk.cache
158
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/UR366PU5LEcyfdNncbiXPTjk5Sk6rQySg3DQ1l_nXEg.cache
159
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/VT3ssUnfS_qalTPCYseHiK7BywMvLa6S5DS4E3rq98s.cache
149
160
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/WEgsuwXLLCLq8L0DpFIW00_f2XLRqjsgDsuaCtsjYmo.cache
150
161
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/XCNGoebYVWURmYSOXOEByFS19R5XDHxrctavXrdA-Gc.cache
162
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/Y6o5YuJRlYBWqWptNYZNjS5QZPWNGe088MQgjd1xat4.cache
163
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/Z7FrKzgOwGWu6hUzGIdvrROhbGhMl5RhU2iiWlxUIhM.cache
151
164
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/daD9qEqvnVb24r86bliwefrhSRYmke11ao5YNgApK-s.cache
165
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/ec91z_4gpWlfiyQDh5FweH-EcfN9VrqYkdmnCyjRhg0.cache
166
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/f1CGajOZaqmhQHqlQSOd7yFM0uAiR86zFepHz0GF5GI.cache
167
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/flz44vCIRh3tUcj6nCCvbbHq3vj3yjH9fojcksw4fo0.cache
152
168
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/n4tlVwikS542xO_hNRj7B4veaTrqgUUP1vd7o_u5N-g.cache
169
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/o8LR0wN4o9BDbm9qcVnzJKhoTPVtQl9XKdpeoBF45Qc.cache
170
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/qxhopn-UEiVxCcj2Fj0cVdnrYKkQBOtLTsQaKFKwXKY.cache
171
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/rG2VckzQuBfG99WIApu1qplPFrP1tLCzgi1H7M4-B5s.cache
153
172
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/vYeuYXIrqu4A2tige_eApy5rUdYrR22XZZ_hxp5AcGg.cache
154
173
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/yGDqK8fcYozp44xKwJDNWtUFjdZGWzut75Z3tqdbSKw.cache
155
174
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/ynYap-7bFWAoOVLpKZ-CzUpLjaikKh44CwK82dt9R3w.cache
@@ -181,7 +200,7 @@ rubyforge_project:
181
200
  rubygems_version: 2.4.5
182
201
  signing_key:
183
202
  specification_version: 4
184
- summary: Simple helper for creating HTML tables in Rails
203
+ summary: Simple Table For helper for creating HTML tables in Rails
185
204
  test_files:
186
205
  - test/dummy/app/assets/javascripts/application.js
187
206
  - test/dummy/app/assets/javascripts/posts.js
@@ -193,6 +212,7 @@ test_files:
193
212
  - test/dummy/app/helpers/posts_helper.rb
194
213
  - test/dummy/app/models/post.rb
195
214
  - test/dummy/app/views/layouts/application.html.erb
215
+ - test/dummy/app/views/posts/alias.html.erb
196
216
  - test/dummy/app/views/posts/defaults.html.erb
197
217
  - test/dummy/app/views/posts/empty.html.erb
198
218
  - test/dummy/app/views/posts/render.html.erb
@@ -257,30 +277,48 @@ test_files:
257
277
  - test/dummy/tmp/cache/assets/test/sprockets/d066c004d1fd26ae76a61303a7a18145
258
278
  - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
259
279
  - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
280
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/0tuBtge0JKK8KOY8UJICxPHzUYkegohkllB9T_n5NY4.cache
260
281
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/1oisFHHwfZfWBJmEnTLb37nziJruI9wNupNmBH1qcYg.cache
261
282
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/2QOL0-cKH63ISf27ze-vmHvi0ceTilhHNb_4IEkTveQ.cache
262
283
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/3aOKfJaCUw-MVgMWyjEoTrzah2SVHl0SI8JfWHdf0nQ.cache
263
284
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/3MR8eDJwQB3Wc1CSBSZj17jgm1K2e138Wotecrm59Fs.cache
285
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/3ZIpno1tMUY1Ygc9du0dlNY0TY0YlhzZ-rhk7A_iVkY.cache
264
286
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/6WsDCYIAVtnLS7PmU5VxiDsHdNQC3HYcirjW8kVBHTU.cache
265
287
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/7Mcvuh_fdHbktCgot1-NZ5YN9JyNq3WqcdNNSguo2UQ.cache
288
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/9Lsqxg70enXnScs7PpS0gaTIxRZJGHHYzdROdxw0pBg.cache
266
289
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/9Qbw4WsgPppcv4frQdiVbqlaZORB693B2iNX-YtgPo4.cache
267
290
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/AJPUXXxPhsCFBwc7JfC_qkipY2oZqq7ZGr21d88_z_8.cache
291
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/AyxHtfH5ljSyeKa7UbSzV_blfO5M2hMrW99P_y2kb_w.cache
292
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/CivvZ_RAdAZ2hNXHixzAOMPzGmkgKj4czbMRUh1YEYw.cache
268
293
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/daD9qEqvnVb24r86bliwefrhSRYmke11ao5YNgApK-s.cache
294
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/ec91z_4gpWlfiyQDh5FweH-EcfN9VrqYkdmnCyjRhg0.cache
295
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/f1CGajOZaqmhQHqlQSOd7yFM0uAiR86zFepHz0GF5GI.cache
269
296
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/Fi-dWOWd11rMVFwvet1GiJmAKZeyeIOXXxTzo8VgHVY.cache
297
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/flz44vCIRh3tUcj6nCCvbbHq3vj3yjH9fojcksw4fo0.cache
270
298
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/FQvDDtaiFwNZGr6qeJtDrS66IHFEP-xDPZXRLnRRd7U.cache
299
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/GXr7f0N3jnH1ar2BHUqOgHsoRow9UIpc-AZvnZ9XrBE.cache
271
300
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/IVoVTT524mMnPTvmSW-1xz0MnJEyQk8Y4vK1S8aqZ2E.cache
301
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/LFTZHjoIlATLvlsb2JX_atx6mJNsalG2HR8BSdzhZHY.cache
272
302
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/LrD4KVqd22SeEFmO7e647i6QHo6m6IJdrG-ljA3VYN8.cache
273
303
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/LT4Ssnd9TE4TUIgJ9rbSm11ASFZryFmJ4rt0Ke47fjk.cache
274
304
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/MvxZLfy4VuwBLkra0vZDcnxnUaOr52rETk9uoPxtfV8.cache
275
305
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/N4aQD7fmB4hT2GgP4Zitxhi_LcIi-tT1tY5Foa3JoqM.cache
276
306
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/n4tlVwikS542xO_hNRj7B4veaTrqgUUP1vd7o_u5N-g.cache
307
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/o8LR0wN4o9BDbm9qcVnzJKhoTPVtQl9XKdpeoBF45Qc.cache
277
308
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/PpL2EdGJpOTQ5eXMrzCxMPzgHZ0PJ7k3-TvcQyhvvTs.cache
309
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/qxhopn-UEiVxCcj2Fj0cVdnrYKkQBOtLTsQaKFKwXKY.cache
310
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/rG2VckzQuBfG99WIApu1qplPFrP1tLCzgi1H7M4-B5s.cache
278
311
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/SJO9550HuFNgdx9JYkT9Cf7D92rsEb-Y0WxGXdYcNjU.cache
312
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/UESEkBBLiABOdrDldNuJPI5l2jC2tZNRfOEYi5C1nZk.cache
313
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/UR366PU5LEcyfdNncbiXPTjk5Sk6rQySg3DQ1l_nXEg.cache
314
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/VT3ssUnfS_qalTPCYseHiK7BywMvLa6S5DS4E3rq98s.cache
279
315
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/vYeuYXIrqu4A2tige_eApy5rUdYrR22XZZ_hxp5AcGg.cache
280
316
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/WEgsuwXLLCLq8L0DpFIW00_f2XLRqjsgDsuaCtsjYmo.cache
281
317
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/XCNGoebYVWURmYSOXOEByFS19R5XDHxrctavXrdA-Gc.cache
318
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/Y6o5YuJRlYBWqWptNYZNjS5QZPWNGe088MQgjd1xat4.cache
282
319
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/yGDqK8fcYozp44xKwJDNWtUFjdZGWzut75Z3tqdbSKw.cache
283
320
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/ynYap-7bFWAoOVLpKZ-CzUpLjaikKh44CwK82dt9R3w.cache
321
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/Z7FrKzgOwGWu6hUzGIdvrROhbGhMl5RhU2iiWlxUIhM.cache
284
322
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/zE-JvqXgwIchhpQVPOh6roH6QWo9hikyXq7fuaBcclU.cache
285
323
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/zLsUw7abfDWh4S2IJwCWSUoY8YDJEf3DYcf-yaFZYfQ.cache
286
324
  - test/fixtures/posts.yml