listable_collections 0.0.1 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8963f1810aa2b139c4c449502a8b0df20465c6b
4
- data.tar.gz: 39ee8746a56e6f2ddb5957f89d9ed146290d9250
3
+ metadata.gz: 98beba0b66e56801103e6edf0062ebfa1fc068c7
4
+ data.tar.gz: b91c6d3017823ed91e899b60a6b81b599d64748a
5
5
  SHA512:
6
- metadata.gz: 719b901eebf02b4bc8c8f68ab72fc865d06809ecb49a0d17653914ef6c67a0229ba0adbcc32c8cb0de7fd33676d1de8d16b7757b67ba9c17b9671b967296a17f
7
- data.tar.gz: d89167bcd305e6c0196cca408454d621bf4bcf26bf211b3c6dddf98efb2baf6f369ef4a4a34ed27d68a55b5f8eeda7b097025db354b60315eb25570dc95a34b0
6
+ metadata.gz: 95e85d86a9abf1fb8434210bf844974e9f713b855d497f93666b7b07491fb085ba85677bb81fd7bc5c318e7e304ffb43a32b95317ba28bca956303f711083b88
7
+ data.tar.gz: 365f41addc1726642e7dcbd938067a3093f20eb7e0abfc21638c1329f65b3657e2604fab5fd5460f84a40b6ad51940d24421b9ab9fa59f66b05b4c279942770e
data/README.md CHANGED
@@ -21,9 +21,9 @@ $ bundle
21
21
 
22
22
  ## Usage
23
23
 
24
- Use "list" method in your models to define what collections will be listed:
24
+ ### Associations
25
25
 
26
- If you want to list an association:
26
+ If you want to list a has_many association:
27
27
  ```ruby
28
28
  class Shop < ActiveRecord::Base
29
29
 
@@ -34,7 +34,7 @@ class Shop < ActiveRecord::Base
34
34
  end
35
35
  ```
36
36
 
37
- Associated records won't be touched but changes will be tracked using "removed_from_list" and "added_to_list" helpers:
37
+ Associated records won't be touched but changes will be tracked using the following helpers:
38
38
  ```ruby
39
39
  shop.products.map(&:name) => ['iPhone']
40
40
  shop.product_list => 'iPhone'
@@ -46,6 +46,10 @@ shop.added_products_to_list => ['iMac']
46
46
  shop.removed_products_from_list => ['iPod']
47
47
  ```
48
48
 
49
+ NOTE: Because detecting wich record has been removed by an attribute will fire multiple queries, is recommended do this check before save all at once and not dynamically.
50
+
51
+ ### Attributes
52
+
49
53
  If you want to list an array attribute:
50
54
  ```ruby
51
55
  class Product < ActiveRecord::Base
@@ -57,7 +61,7 @@ class Product < ActiveRecord::Base
57
61
  end
58
62
  ```
59
63
 
60
- The attribute will be synced and chances will be tracked using "removed_from_list" and "added_to_list" helpers:
64
+ The attribute will be synced and chances will be tracked using the following helpers:
61
65
  ```ruby
62
66
  product.sizes => ['64GB']
63
67
  product.size_list => '64GB'
@@ -69,7 +73,7 @@ product.added_sizes_to_list => ['128GB']
69
73
  product.removed_sizes_from_list => ['64GB']
70
74
  ```
71
75
 
72
- In some cases you may need to run some logic after changes, you can use "after_add" and "after_remove" callbacks for it:
76
+ In some cases you may need to run some logic after changes, you can use callbacks for it:
73
77
  ```ruby
74
78
  class Shop < ActiveRecord::Base
75
79
 
@@ -1,10 +1,11 @@
1
1
  module ListableCollections
2
2
  class Builder
3
3
 
4
- attr_reader :model
4
+ attr_reader :model, :concern
5
5
 
6
6
  def initialize(model)
7
7
  @model = model
8
+ @concern = Module.new
8
9
  end
9
10
 
10
11
  def define(attribute, options)
@@ -13,20 +14,18 @@ module ListableCollections
13
14
  name = "#{singular}_list"
14
15
  variable = "@#{name}"
15
16
  was = "#{name}_was"
16
- if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR < 2
17
- model.skip_time_zone_conversion_for_attributes << name.to_sym
18
- end
19
17
  model.define_attribute_method name
20
18
  define_list_writer name, variable, attribute, options
21
19
  define_list_reader name, variable, attribute, options
22
- define_added_to_list_reader plural, name, was
23
- define_removed_from_list_reader plural, name, was
20
+ define_added_to_list plural, name, was
21
+ define_removed_from_list plural, name, was
22
+ model.include concern
24
23
  end
25
24
 
26
25
  private
27
26
 
28
27
  def define_list_writer(name, variable, attribute, options)
29
- model.class_eval do
28
+ concern.class_eval do
30
29
  define_method "#{name}=" do |value|
31
30
  current_values = send(name).split(',')
32
31
  new_values = value.split(',').reject(&:blank?).map(&:strip)
@@ -55,7 +54,7 @@ module ListableCollections
55
54
  end
56
55
 
57
56
  def define_list_reader(name, variable, attribute, options)
58
- model.class_eval do
57
+ concern.class_eval do
59
58
  define_method name do
60
59
  if list = instance_variable_get(variable)
61
60
  list
@@ -71,16 +70,16 @@ module ListableCollections
71
70
  end
72
71
  end
73
72
 
74
- def define_added_to_list_reader(plural, name, was)
75
- model.class_eval do
73
+ def define_added_to_list(plural, name, was)
74
+ concern.class_eval do
76
75
  define_method "added_#{plural}_to_list" do
77
76
  send(name).split(',') - send(was).split(',')
78
77
  end
79
78
  end
80
79
  end
81
80
 
82
- def define_removed_from_list_reader(plural, name, was)
83
- model.class_eval do
81
+ def define_removed_from_list(plural, name, was)
82
+ concern.class_eval do
84
83
  define_method "removed_#{plural}_from_list" do
85
84
  send(was).split(',') - send(name).split(',')
86
85
  end
@@ -1,3 +1,3 @@
1
1
  module ListableCollections
2
- VERSION = '0.0.1'
2
+ VERSION = '0.1.0'
3
3
  end
@@ -2,24 +2,27 @@ require 'test_helper'
2
2
 
3
3
  class AssociationTest < ActiveSupport::TestCase
4
4
 
5
- test 'accessor' do
6
- apple = shops(:apple)
7
- assert_equal 'iPhone,iPad', apple.product_list
5
+ test 'methods' do
6
+ shop = Shop.create
7
+ %w(iPhone iPad).each do |name|
8
+ shop.products.create name: name
9
+ end
10
+ assert_equal 'iPhone,iPad', shop.product_list
8
11
 
9
12
  imac = Product.new(name: 'iMac')
10
- apple.expects(:product_added).never
11
- apple.expects(:product_removed).never
12
- apple.products << imac
13
- assert_equal 'iPhone,iPad,iMac', apple.product_list
14
- assert_equal [], apple.added_products_to_list
15
- assert_equal [], apple.removed_products_from_list
13
+ shop.expects(:product_added).never
14
+ shop.expects(:product_removed).never
15
+ shop.products << imac
16
+ assert_equal 'iPhone,iPad,iMac', shop.product_list
17
+ assert_equal [], shop.added_products_to_list
18
+ assert_equal [], shop.removed_products_from_list
16
19
 
17
- apple.expects(:product_added).once.with('MacBook')
18
- apple.expects(:product_removed).once.with('iPad')
19
- apple.product_list = 'iMac,iPhone,MacBook'
20
- assert_equal 'iPhone,iMac,MacBook', apple.product_list
21
- assert_equal ['MacBook'], apple.added_products_to_list
22
- assert_equal ['iPad'], apple.removed_products_from_list
20
+ shop.expects(:product_added).once.with('MacBook')
21
+ shop.expects(:product_removed).once.with('iPad')
22
+ shop.product_list = 'iMac,iPhone,MacBook'
23
+ assert_equal 'iPhone,iMac,MacBook', shop.product_list
24
+ assert_equal ['MacBook'], shop.added_products_to_list
25
+ assert_equal ['iPad'], shop.removed_products_from_list
23
26
  end
24
27
 
25
28
  end
@@ -2,23 +2,23 @@ require 'test_helper'
2
2
 
3
3
  class AttributeTest < ActiveSupport::TestCase
4
4
 
5
- test 'accessor' do
6
- iphone = products(:iphone)
7
- assert_equal '', iphone.size_list
5
+ test 'methods' do
6
+ product = Product.new
7
+ assert_equal '', product.size_list
8
8
 
9
- iphone.expects(:size_added).never
10
- iphone.expects(:size_removed).never
11
- iphone.sizes << '64GB'
12
- assert_equal '64GB', iphone.size_list
13
- assert_equal [], iphone.added_sizes_to_list
14
- assert_equal [], iphone.removed_sizes_from_list
9
+ product.expects(:size_added).never
10
+ product.expects(:size_removed).never
11
+ product.sizes << '64GB'
12
+ assert_equal '64GB', product.size_list
13
+ assert_equal [], product.added_sizes_to_list
14
+ assert_equal [], product.removed_sizes_from_list
15
15
 
16
- iphone.expects(:size_added).once.with('32GB')
17
- iphone.expects(:size_removed).once.with('64GB')
18
- iphone.size_list = '32GB'
19
- assert_equal '32GB', iphone.size_list
20
- assert_equal ['32GB'], iphone.added_sizes_to_list
21
- assert_equal ['64GB'], iphone.removed_sizes_from_list
16
+ product.expects(:size_added).once.with('32GB')
17
+ product.expects(:size_removed).once.with('64GB')
18
+ product.size_list = '32GB'
19
+ assert_equal '32GB', product.size_list
20
+ assert_equal ['32GB'], product.added_sizes_to_list
21
+ assert_equal ['64GB'], product.removed_sizes_from_list
22
22
  end
23
23
 
24
24
  end
data/test/dummy/Rakefile CHANGED
@@ -2,5 +2,4 @@
2
2
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
3
 
4
4
  require File.expand_path('../config/application', __FILE__)
5
-
6
5
  Rails.application.load_tasks
@@ -1,14 +1,12 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+ <%= yield %>
11
+ </body>
14
12
  </html>
@@ -19,9 +19,7 @@ module Dummy
19
19
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
20
  # config.i18n.default_locale = :de
21
21
 
22
- if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
23
- # Do not swallow errors in after_commit/after_rollback callbacks.
24
- config.active_record.raise_in_transactional_callbacks = true
25
- end
22
+ # Do not swallow errors in after_commit/after_rollback callbacks.
23
+ config.active_record.raise_in_transactional_callbacks = true
26
24
  end
27
25
  end
@@ -1,10 +1,7 @@
1
- default: &default
2
- adapter: postgresql
3
-
4
1
  development:
5
- <<: *default
2
+ adapter: postgresql
6
3
  database: listable_collections_development
7
4
 
8
5
  test:
9
- <<: *default
6
+ adapter: postgresql
10
7
  database: listable_collections_test
@@ -7,13 +7,6 @@ postgres: &postgres
7
7
  sqlite: &sqlite
8
8
  adapter: <%= 'jdbc' if RUBY_ENGINE == 'jruby' %>sqlite3
9
9
 
10
- default: &default
11
- <<: *<%= ENV['DB'] %>
12
-
13
- development:
14
- <<: *default
15
- database: travis
16
-
17
10
  test:
18
- <<: *default
19
- database: travis
11
+ <<: *<%= ENV['DB'] %>
12
+ database: <%= ENV['DB'] == 'sqlite' ? 'db/travis.sqlite3' : 'travis' %>
@@ -558,3 +558,377 @@ AttributeTest: test_accessor
558
558
  ----------------------------
559
559
  Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT 1 [["id", 1]]
560
560
   (0.2ms) ROLLBACK
561
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
562
+  (0.2ms) BEGIN
563
+ ---------------------------
564
+ AttributeTest: test_methods
565
+ ---------------------------
566
+  (0.2ms) ROLLBACK
567
+  (0.1ms) BEGIN
568
+ -----------------------------
569
+ AssociationTest: test_methods
570
+ -----------------------------
571
+  (0.2ms) SAVEPOINT active_record_1
572
+ SQL (0.5ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-09-19 11:25:29.902568"], ["updated_at", "2016-09-19 11:25:29.902568"]]
573
+  (0.1ms) RELEASE SAVEPOINT active_record_1
574
+  (0.2ms) SAVEPOINT active_record_1
575
+ SQL (0.4ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 690933843], ["created_at", "2016-09-19 11:25:29.921238"], ["updated_at", "2016-09-19 11:25:29.921238"]]
576
+  (0.1ms) RELEASE SAVEPOINT active_record_1
577
+  (0.1ms) SAVEPOINT active_record_1
578
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 690933843], ["created_at", "2016-09-19 11:25:29.923445"], ["updated_at", "2016-09-19 11:25:29.923445"]]
579
+  (0.2ms) RELEASE SAVEPOINT active_record_1
580
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 690933843]]
581
+  (0.1ms) SAVEPOINT active_record_1
582
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 690933843], ["created_at", "2016-09-19 11:25:29.929045"], ["updated_at", "2016-09-19 11:25:29.929045"]]
583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
584
+  (0.2ms) ROLLBACK
585
+ ActiveRecord::SchemaMigration Load (6.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
586
+  (0.2ms) BEGIN
587
+ ---------------------------
588
+ AttributeTest: test_methods
589
+ ---------------------------
590
+  (0.2ms) ROLLBACK
591
+  (0.2ms) BEGIN
592
+ -----------------------------
593
+ AssociationTest: test_methods
594
+ -----------------------------
595
+  (0.1ms) SAVEPOINT active_record_1
596
+ SQL (0.8ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-09-19 23:10:10.897836"], ["updated_at", "2016-09-19 23:10:10.897836"]]
597
+  (0.2ms) RELEASE SAVEPOINT active_record_1
598
+  (0.2ms) SAVEPOINT active_record_1
599
+ SQL (0.4ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 690933844], ["created_at", "2016-09-19 23:10:10.920238"], ["updated_at", "2016-09-19 23:10:10.920238"]]
600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
601
+  (0.1ms) SAVEPOINT active_record_1
602
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 690933844], ["created_at", "2016-09-19 23:10:10.922352"], ["updated_at", "2016-09-19 23:10:10.922352"]]
603
+  (0.2ms) RELEASE SAVEPOINT active_record_1
604
+ Product Load (0.4ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 690933844]]
605
+  (0.1ms) SAVEPOINT active_record_1
606
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 690933844], ["created_at", "2016-09-19 23:10:10.927548"], ["updated_at", "2016-09-19 23:10:10.927548"]]
607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
608
+  (0.2ms) ROLLBACK
609
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
610
+  (0.2ms) BEGIN
611
+ -----------------------------
612
+ AssociationTest: test_methods
613
+ -----------------------------
614
+  (0.2ms) SAVEPOINT active_record_1
615
+ SQL (6.4ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-09-19 23:10:25.274876"], ["updated_at", "2016-09-19 23:10:25.274876"]]
616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
617
+  (0.1ms) SAVEPOINT active_record_1
618
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 690933845], ["created_at", "2016-09-19 23:10:25.307629"], ["updated_at", "2016-09-19 23:10:25.307629"]]
619
+  (0.1ms) RELEASE SAVEPOINT active_record_1
620
+  (0.1ms) SAVEPOINT active_record_1
621
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 690933845], ["created_at", "2016-09-19 23:10:25.309788"], ["updated_at", "2016-09-19 23:10:25.309788"]]
622
+  (0.1ms) RELEASE SAVEPOINT active_record_1
623
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 690933845]]
624
+  (0.1ms) SAVEPOINT active_record_1
625
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 690933845], ["created_at", "2016-09-19 23:10:25.316243"], ["updated_at", "2016-09-19 23:10:25.316243"]]
626
+  (0.1ms) RELEASE SAVEPOINT active_record_1
627
+  (0.2ms) ROLLBACK
628
+  (0.1ms) BEGIN
629
+ ---------------------------
630
+ AttributeTest: test_methods
631
+ ---------------------------
632
+  (0.2ms) ROLLBACK
633
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
634
+  (0.2ms) BEGIN
635
+ -----------------------------
636
+ AssociationTest: test_methods
637
+ -----------------------------
638
+  (0.2ms) SAVEPOINT active_record_1
639
+ SQL (0.4ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-09-19 23:25:20.902395"], ["updated_at", "2016-09-19 23:25:20.902395"]]
640
+  (0.1ms) RELEASE SAVEPOINT active_record_1
641
+  (0.1ms) SAVEPOINT active_record_1
642
+ SQL (0.4ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 690933846], ["created_at", "2016-09-19 23:25:20.925838"], ["updated_at", "2016-09-19 23:25:20.925838"]]
643
+  (0.3ms) RELEASE SAVEPOINT active_record_1
644
+  (0.1ms) SAVEPOINT active_record_1
645
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 690933846], ["created_at", "2016-09-19 23:25:20.934875"], ["updated_at", "2016-09-19 23:25:20.934875"]]
646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
647
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 690933846]]
648
+  (0.1ms) SAVEPOINT active_record_1
649
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 690933846], ["created_at", "2016-09-19 23:25:20.940359"], ["updated_at", "2016-09-19 23:25:20.940359"]]
650
+  (0.2ms) RELEASE SAVEPOINT active_record_1
651
+  (0.2ms) ROLLBACK
652
+  (0.1ms) BEGIN
653
+ ---------------------------
654
+ AttributeTest: test_methods
655
+ ---------------------------
656
+  (0.1ms) ROLLBACK
657
+ ActiveRecord::SchemaMigration Load (2.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
658
+  (0.2ms) BEGIN
659
+ ---------------------------
660
+ AttributeTest: test_methods
661
+ ---------------------------
662
+  (0.2ms) ROLLBACK
663
+  (0.1ms) BEGIN
664
+ -----------------------------
665
+ AssociationTest: test_methods
666
+ -----------------------------
667
+  (0.2ms) SAVEPOINT active_record_1
668
+ SQL (19.1ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-10-17 03:05:04.358355"], ["updated_at", "2016-10-17 03:05:04.358355"]]
669
+  (0.1ms) RELEASE SAVEPOINT active_record_1
670
+  (0.2ms) SAVEPOINT active_record_1
671
+ SQL (18.4ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 2], ["created_at", "2016-10-17 03:05:04.390656"], ["updated_at", "2016-10-17 03:05:04.390656"]]
672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
673
+  (0.1ms) SAVEPOINT active_record_1
674
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 2], ["created_at", "2016-10-17 03:05:04.410985"], ["updated_at", "2016-10-17 03:05:04.410985"]]
675
+  (0.2ms) RELEASE SAVEPOINT active_record_1
676
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 2]]
677
+  (0.1ms) SAVEPOINT active_record_1
678
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 2], ["created_at", "2016-10-17 03:05:04.415576"], ["updated_at", "2016-10-17 03:05:04.415576"]]
679
+  (0.2ms) RELEASE SAVEPOINT active_record_1
680
+  (0.2ms) ROLLBACK
681
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
682
+  (0.2ms) BEGIN
683
+ -----------------------------
684
+ AssociationTest: test_methods
685
+ -----------------------------
686
+  (0.2ms) ROLLBACK
687
+  (0.1ms) BEGIN
688
+ ---------------------------
689
+ AttributeTest: test_methods
690
+ ---------------------------
691
+  (0.1ms) ROLLBACK
692
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
693
+  (0.2ms) BEGIN
694
+ -----------------------------
695
+ AssociationTest: test_methods
696
+ -----------------------------
697
+  (0.1ms) SAVEPOINT active_record_1
698
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-10-17 04:06:22.007954"], ["updated_at", "2016-10-17 04:06:22.007954"]]
699
+  (0.1ms) RELEASE SAVEPOINT active_record_1
700
+  (0.1ms) SAVEPOINT active_record_1
701
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 3], ["created_at", "2016-10-17 04:06:22.026893"], ["updated_at", "2016-10-17 04:06:22.026893"]]
702
+  (0.2ms) RELEASE SAVEPOINT active_record_1
703
+  (0.1ms) SAVEPOINT active_record_1
704
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 3], ["created_at", "2016-10-17 04:06:22.028786"], ["updated_at", "2016-10-17 04:06:22.028786"]]
705
+  (0.1ms) RELEASE SAVEPOINT active_record_1
706
+  (0.2ms) ROLLBACK
707
+  (0.1ms) BEGIN
708
+ ---------------------------
709
+ AttributeTest: test_methods
710
+ ---------------------------
711
+  (0.1ms) ROLLBACK
712
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
713
+  (0.2ms) BEGIN
714
+ -----------------------------
715
+ AssociationTest: test_methods
716
+ -----------------------------
717
+  (0.1ms) ROLLBACK
718
+  (0.2ms) BEGIN
719
+ ---------------------------
720
+ AttributeTest: test_methods
721
+ ---------------------------
722
+  (0.1ms) ROLLBACK
723
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
724
+  (0.2ms) BEGIN
725
+ ---------------------------
726
+ AttributeTest: test_methods
727
+ ---------------------------
728
+  (0.1ms) ROLLBACK
729
+  (0.1ms) BEGIN
730
+ -----------------------------
731
+ AssociationTest: test_methods
732
+ -----------------------------
733
+  (0.1ms) SAVEPOINT active_record_1
734
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-10-17 04:07:53.835060"], ["updated_at", "2016-10-17 04:07:53.835060"]]
735
+  (0.1ms) RELEASE SAVEPOINT active_record_1
736
+  (0.2ms) SAVEPOINT active_record_1
737
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 4], ["created_at", "2016-10-17 04:07:53.846004"], ["updated_at", "2016-10-17 04:07:53.846004"]]
738
+  (0.1ms) RELEASE SAVEPOINT active_record_1
739
+  (0.1ms) SAVEPOINT active_record_1
740
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 4], ["created_at", "2016-10-17 04:07:53.847920"], ["updated_at", "2016-10-17 04:07:53.847920"]]
741
+  (0.2ms) RELEASE SAVEPOINT active_record_1
742
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 4]]
743
+  (0.1ms) SAVEPOINT active_record_1
744
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 4], ["created_at", "2016-10-17 04:07:53.856861"], ["updated_at", "2016-10-17 04:07:53.856861"]]
745
+  (0.1ms) RELEASE SAVEPOINT active_record_1
746
+  (0.2ms) ROLLBACK
747
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
748
+  (0.2ms) BEGIN
749
+ -----------------------------
750
+ AssociationTest: test_methods
751
+ -----------------------------
752
+  (0.2ms) SAVEPOINT active_record_1
753
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-10-17 04:08:07.346275"], ["updated_at", "2016-10-17 04:08:07.346275"]]
754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
755
+  (0.1ms) SAVEPOINT active_record_1
756
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 5], ["created_at", "2016-10-17 04:08:07.363170"], ["updated_at", "2016-10-17 04:08:07.363170"]]
757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
758
+  (0.1ms) SAVEPOINT active_record_1
759
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 5], ["created_at", "2016-10-17 04:08:07.365017"], ["updated_at", "2016-10-17 04:08:07.365017"]]
760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
761
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 5]]
762
+  (0.1ms) SAVEPOINT active_record_1
763
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 5], ["created_at", "2016-10-17 04:08:07.368860"], ["updated_at", "2016-10-17 04:08:07.368860"]]
764
+  (0.2ms) RELEASE SAVEPOINT active_record_1
765
+  (0.2ms) ROLLBACK
766
+  (0.1ms) BEGIN
767
+ ---------------------------
768
+ AttributeTest: test_methods
769
+ ---------------------------
770
+  (0.2ms) ROLLBACK
771
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
772
+  (0.2ms) BEGIN
773
+ -----------------------------
774
+ AssociationTest: test_methods
775
+ -----------------------------
776
+  (0.1ms) SAVEPOINT active_record_1
777
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-10-17 04:09:35.257488"], ["updated_at", "2016-10-17 04:09:35.257488"]]
778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
779
+  (0.1ms) SAVEPOINT active_record_1
780
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 6], ["created_at", "2016-10-17 04:09:35.274223"], ["updated_at", "2016-10-17 04:09:35.274223"]]
781
+  (0.1ms) RELEASE SAVEPOINT active_record_1
782
+  (0.2ms) SAVEPOINT active_record_1
783
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 6], ["created_at", "2016-10-17 04:09:35.276174"], ["updated_at", "2016-10-17 04:09:35.276174"]]
784
+  (0.2ms) RELEASE SAVEPOINT active_record_1
785
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 6]]
786
+  (0.1ms) SAVEPOINT active_record_1
787
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 6], ["created_at", "2016-10-17 04:09:35.279958"], ["updated_at", "2016-10-17 04:09:35.279958"]]
788
+  (0.1ms) RELEASE SAVEPOINT active_record_1
789
+  (0.2ms) ROLLBACK
790
+  (0.3ms) BEGIN
791
+ ---------------------------
792
+ AttributeTest: test_methods
793
+ ---------------------------
794
+  (0.2ms) ROLLBACK
795
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
796
+  (0.2ms) BEGIN
797
+ -----------------------------
798
+ AssociationTest: test_methods
799
+ -----------------------------
800
+  (0.2ms) SAVEPOINT active_record_1
801
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-10-17 04:10:10.800180"], ["updated_at", "2016-10-17 04:10:10.800180"]]
802
+  (0.2ms) RELEASE SAVEPOINT active_record_1
803
+  (0.1ms) SAVEPOINT active_record_1
804
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 7], ["created_at", "2016-10-17 04:10:10.816982"], ["updated_at", "2016-10-17 04:10:10.816982"]]
805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
806
+  (0.1ms) SAVEPOINT active_record_1
807
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 7], ["created_at", "2016-10-17 04:10:10.818802"], ["updated_at", "2016-10-17 04:10:10.818802"]]
808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
809
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 7]]
810
+  (0.1ms) SAVEPOINT active_record_1
811
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 7], ["created_at", "2016-10-17 04:10:10.822461"], ["updated_at", "2016-10-17 04:10:10.822461"]]
812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
813
+  (0.2ms) ROLLBACK
814
+  (0.1ms) BEGIN
815
+ ---------------------------
816
+ AttributeTest: test_methods
817
+ ---------------------------
818
+  (0.3ms) ROLLBACK
819
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
820
+  (0.2ms) BEGIN
821
+ ---------------------------
822
+ AttributeTest: test_methods
823
+ ---------------------------
824
+  (0.1ms) ROLLBACK
825
+  (0.1ms) BEGIN
826
+ -----------------------------
827
+ AssociationTest: test_methods
828
+ -----------------------------
829
+  (0.1ms) ROLLBACK
830
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
831
+  (0.2ms) BEGIN
832
+ -----------------------------
833
+ AssociationTest: test_methods
834
+ -----------------------------
835
+  (0.2ms) ROLLBACK
836
+  (0.1ms) BEGIN
837
+ ---------------------------
838
+ AttributeTest: test_methods
839
+ ---------------------------
840
+  (0.1ms) ROLLBACK
841
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
842
+  (0.2ms) BEGIN
843
+ -----------------------------
844
+ AssociationTest: test_methods
845
+ -----------------------------
846
+  (0.1ms) SAVEPOINT active_record_1
847
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-10-17 04:12:46.752043"], ["updated_at", "2016-10-17 04:12:46.752043"]]
848
+  (0.1ms) RELEASE SAVEPOINT active_record_1
849
+  (0.1ms) SAVEPOINT active_record_1
850
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 8], ["created_at", "2016-10-17 04:12:46.768606"], ["updated_at", "2016-10-17 04:12:46.768606"]]
851
+  (0.1ms) RELEASE SAVEPOINT active_record_1
852
+  (0.1ms) SAVEPOINT active_record_1
853
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 8], ["created_at", "2016-10-17 04:12:46.770462"], ["updated_at", "2016-10-17 04:12:46.770462"]]
854
+  (0.2ms) RELEASE SAVEPOINT active_record_1
855
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 8]]
856
+  (0.3ms) ROLLBACK
857
+  (0.2ms) BEGIN
858
+ ---------------------------
859
+ AttributeTest: test_methods
860
+ ---------------------------
861
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
862
+  (0.2ms) BEGIN
863
+ -----------------------------
864
+ AssociationTest: test_methods
865
+ -----------------------------
866
+  (0.1ms) SAVEPOINT active_record_1
867
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-10-17 04:13:57.769520"], ["updated_at", "2016-10-17 04:13:57.769520"]]
868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
869
+  (0.1ms) SAVEPOINT active_record_1
870
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 9], ["created_at", "2016-10-17 04:13:57.786723"], ["updated_at", "2016-10-17 04:13:57.786723"]]
871
+  (0.1ms) RELEASE SAVEPOINT active_record_1
872
+  (0.1ms) SAVEPOINT active_record_1
873
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 9], ["created_at", "2016-10-17 04:13:57.788643"], ["updated_at", "2016-10-17 04:13:57.788643"]]
874
+  (0.2ms) RELEASE SAVEPOINT active_record_1
875
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 9]]
876
+  (0.1ms) SAVEPOINT active_record_1
877
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 9], ["created_at", "2016-10-17 04:13:57.792501"], ["updated_at", "2016-10-17 04:13:57.792501"]]
878
+  (0.1ms) RELEASE SAVEPOINT active_record_1
879
+  (0.2ms) ROLLBACK
880
+  (0.2ms) BEGIN
881
+ ---------------------------
882
+ AttributeTest: test_methods
883
+ ---------------------------
884
+  (0.3ms) ROLLBACK
885
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
886
+  (0.2ms) BEGIN
887
+ ---------------------------
888
+ AttributeTest: test_methods
889
+ ---------------------------
890
+  (0.3ms) ROLLBACK
891
+  (0.1ms) BEGIN
892
+ -----------------------------
893
+ AssociationTest: test_methods
894
+ -----------------------------
895
+  (0.1ms) SAVEPOINT active_record_1
896
+ SQL (0.5ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-10-17 04:18:18.750434"], ["updated_at", "2016-10-17 04:18:18.750434"]]
897
+  (0.2ms) RELEASE SAVEPOINT active_record_1
898
+  (0.2ms) SAVEPOINT active_record_1
899
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 10], ["created_at", "2016-10-17 04:18:18.767311"], ["updated_at", "2016-10-17 04:18:18.767311"]]
900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
901
+  (0.2ms) SAVEPOINT active_record_1
902
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 10], ["created_at", "2016-10-17 04:18:18.769784"], ["updated_at", "2016-10-17 04:18:18.769784"]]
903
+  (0.2ms) RELEASE SAVEPOINT active_record_1
904
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 10]]
905
+  (0.3ms) ROLLBACK
906
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
907
+  (0.2ms) BEGIN
908
+ ---------------------------
909
+ AttributeTest: test_methods
910
+ ---------------------------
911
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
912
+  (0.2ms) BEGIN
913
+ ---------------------------
914
+ AttributeTest: test_methods
915
+ ---------------------------
916
+  (0.1ms) ROLLBACK
917
+  (0.1ms) BEGIN
918
+ -----------------------------
919
+ AssociationTest: test_methods
920
+ -----------------------------
921
+  (0.1ms) SAVEPOINT active_record_1
922
+ SQL (0.3ms) INSERT INTO "shops" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-10-17 04:26:03.537981"], ["updated_at", "2016-10-17 04:26:03.537981"]]
923
+  (0.1ms) RELEASE SAVEPOINT active_record_1
924
+  (0.2ms) SAVEPOINT active_record_1
925
+ SQL (0.3ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPhone"], ["shop_id", 11], ["created_at", "2016-10-17 04:26:03.548547"], ["updated_at", "2016-10-17 04:26:03.548547"]]
926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
927
+  (0.1ms) SAVEPOINT active_record_1
928
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iPad"], ["shop_id", 11], ["created_at", "2016-10-17 04:26:03.550397"], ["updated_at", "2016-10-17 04:26:03.550397"]]
929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
930
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."shop_id" = $1 [["shop_id", 11]]
931
+  (0.2ms) SAVEPOINT active_record_1
932
+ SQL (0.2ms) INSERT INTO "products" ("name", "shop_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "iMac"], ["shop_id", 11], ["created_at", "2016-10-17 04:26:03.554091"], ["updated_at", "2016-10-17 04:26:03.554091"]]
933
+  (0.2ms) RELEASE SAVEPOINT active_record_1
934
+  (0.2ms) ROLLBACK
data/test/test_helper.rb CHANGED
@@ -12,10 +12,3 @@ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
12
12
 
13
13
  # Load support files
14
14
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
15
-
16
- # Load fixtures from the engine
17
- if ActiveSupport::TestCase.respond_to?(:fixture_path=)
18
- ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
19
- ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
20
- ActiveSupport::TestCase.fixtures :all
21
- end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: listable_collections
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmontossi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-18 00:00:00.000000000 Z
11
+ date: 2016-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 4.2.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 4.3.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 4.0.0
29
+ version: 4.2.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 4.3.0
@@ -75,7 +75,6 @@ files:
75
75
  - lib/listable_collections/version.rb
76
76
  - test/association_test.rb
77
77
  - test/attribute_test.rb
78
- - test/dummy/README.rdoc
79
78
  - test/dummy/Rakefile
80
79
  - test/dummy/app/assets/javascripts/application.js
81
80
  - test/dummy/app/assets/stylesheets/application.css
@@ -117,8 +116,6 @@ files:
117
116
  - test/dummy/public/422.html
118
117
  - test/dummy/public/500.html
119
118
  - test/dummy/public/favicon.ico
120
- - test/fixtures/products.yml
121
- - test/fixtures/shops.yml
122
119
  - test/test_helper.rb
123
120
  homepage: https://github.com/mmontossi/listable_collections
124
121
  licenses:
@@ -188,7 +185,4 @@ test_files:
188
185
  - test/dummy/public/500.html
189
186
  - test/dummy/public/favicon.ico
190
187
  - test/dummy/Rakefile
191
- - test/dummy/README.rdoc
192
- - test/fixtures/products.yml
193
- - test/fixtures/shops.yml
194
188
  - test/test_helper.rb
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,8 +0,0 @@
1
- iphone:
2
- id: 1
3
- shop_id: 1
4
- name: iPhone
5
- ipad:
6
- id: 2
7
- shop_id: 1
8
- name: iPad
@@ -1,3 +0,0 @@
1
- apple:
2
- id: 1
3
- name: Apple