sequenced 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ 1.0.0 (March 7, 2012)
2
+ ---------------------
3
+
4
+ * Restrict dependencies on ActiveSupport and ActiveRecord to `~> 3.0`
5
+ * Make error messages more descriptive
6
+ * Update gem description
7
+
8
+
9
+ 0.1.0 (February 19, 2012)
10
+ -------------------------
11
+
12
+ * Initial release
data/TODO.md ADDED
@@ -0,0 +1,7 @@
1
+ TODO
2
+ ====
3
+
4
+ * Add extensions for other ORM/ODMs
5
+ * Mongoid
6
+ * Mongomapper
7
+ * Datamapper
@@ -61,14 +61,14 @@ module Sequenced
61
61
 
62
62
  if scope.present?
63
63
  if !self.respond_to?(scope)
64
- raise Sequenced::InvalidAttributeError.new("Method ##{scope.to_s} is undefined")
64
+ raise Sequenced::InvalidAttributeError.new(":scope method ##{scope.to_s} is undefined")
65
65
  elsif self.send(scope).nil?
66
- raise Sequenced::InvalidAttributeError.new("Method ##{scope.to_s} returned nil unexpectedly")
66
+ raise Sequenced::InvalidAttributeError.new(":scope method ##{scope.to_s} returned nil unexpectedly")
67
67
  end
68
68
  end
69
69
 
70
70
  unless self.respond_to?(column)
71
- raise Sequenced::InvalidAttributeError.new("Method ##{column.to_s} is undefined")
71
+ raise Sequenced::InvalidAttributeError.new(":column method ##{column.to_s} is undefined")
72
72
  end
73
73
 
74
74
  # Fetch the next ID unless it is already defined
@@ -92,7 +92,7 @@ module Sequenced
92
92
  last_id = last_record.send(column)
93
93
 
94
94
  unless last_id.is_a?(Integer)
95
- raise Sequenced::InvalidAttributeError("Last sequential ID is not an Integer")
95
+ raise Sequenced::InvalidAttributeError("The sequential ID column must contain Integer values")
96
96
  end
97
97
 
98
98
  last_id + 1 > start_at ? last_id + 1 : start_at
@@ -1,3 +1,3 @@
1
1
  module Sequenced
2
- VERSION = "0.1.0"
2
+ VERSION = "1.0.0"
3
3
  end
data/sequenced.gemspec CHANGED
@@ -8,13 +8,13 @@ Gem::Specification.new do |s|
8
8
  s.email = ["derrickreimer@gmail.com"]
9
9
  s.homepage = "https://github.com/djreimer/sequenced"
10
10
  s.summary = "Generate scoped sequential IDs for ActiveRecord models"
11
- s.description = "Sequenced is a simple Rails 3 engine that generates scoped sequential IDs for ActiveRecord models"
11
+ s.description = "Sequenced is a simple Rails 3 plugin that generates scoped sequential IDs for ActiveRecord models"
12
12
 
13
13
  s.files = `git ls-files`.split("\n")
14
14
  s.test_files = Dir["test/**/*"]
15
15
 
16
- s.add_dependency "activesupport", ">= 3.0.0"
17
- s.add_dependency "activerecord", ">= 3.0.0"
18
- s.add_development_dependency "rails", ">= 3.1.0"
16
+ s.add_dependency "activesupport", "~> 3.0"
17
+ s.add_dependency "activerecord", "~> 3.0"
18
+ s.add_development_dependency "rails", "~> 3.1"
19
19
  s.add_development_dependency "sqlite3"
20
20
  end
@@ -1624,3 +1624,157 @@ Migrating to CreateComments (20120220000804)
1624
1624
   (0.0ms) SAVEPOINT active_record_1
1625
1625
   (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1626
1626
   (8.1ms) rollback transaction
1627
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1628
+ Migrating to CreateQuestions (20120219165346)
1629
+ Migrating to CreateAnswers (20120219165548)
1630
+ Migrating to CreateAccounts (20120219171957)
1631
+ Migrating to CreateInvoices (20120219172039)
1632
+ Migrating to CreateOrders (20120219172922)
1633
+ Migrating to CreateSubscriptions (20120219174931)
1634
+ Migrating to CreateUsers (20120219175744)
1635
+ Migrating to CreateAddresses (20120219232323)
1636
+ Migrating to CreateComments (20120220000804)
1637
+  (0.0ms) begin transaction
1638
+  (0.0ms) SAVEPOINT active_record_1
1639
+ SQL (19.5ms) INSERT INTO "accounts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["name", nil], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1640
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1641
+  (0.0ms) SAVEPOINT active_record_1
1642
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."account_id" = 1 AND (custom_sequential_id IS NOT NULL) ORDER BY custom_sequential_id DESC LIMIT 1
1643
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."custom_sequential_id" = 1 AND "users"."account_id" = 1
1644
+ SQL (0.3ms) INSERT INTO "users" ("account_id", "created_at", "custom_sequential_id", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["account_id", 1], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["custom_sequential_id", 1], ["name", nil], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1645
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1646
+  (0.7ms) rollback transaction
1647
+  (0.0ms) begin transaction
1648
+  (0.0ms) SAVEPOINT active_record_1
1649
+ SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["name", nil], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1651
+  (0.0ms) SAVEPOINT active_record_1
1652
+ Invoice Load (1.0ms) SELECT "invoices".* FROM "invoices" WHERE "invoices"."account_id" = 1 AND (sequential_id IS NOT NULL) ORDER BY sequential_id DESC LIMIT 1
1653
+  (0.1ms) SELECT COUNT(*) FROM "invoices" WHERE "invoices"."sequential_id" = 1000 AND "invoices"."account_id" = 1
1654
+ SQL (0.2ms) INSERT INTO "invoices" ("account_id", "amount", "created_at", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["account_id", 1], ["amount", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["sequential_id", 1000], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1655
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1656
+  (0.0ms) SAVEPOINT active_record_1
1657
+ Invoice Load (0.1ms) SELECT "invoices".* FROM "invoices" WHERE "invoices"."account_id" = 1 AND (sequential_id IS NOT NULL) ORDER BY sequential_id DESC LIMIT 1
1658
+  (0.1ms) SELECT COUNT(*) FROM "invoices" WHERE "invoices"."sequential_id" = 1001 AND "invoices"."account_id" = 1
1659
+ SQL (0.2ms) INSERT INTO "invoices" ("account_id", "amount", "created_at", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["account_id", 1], ["amount", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["sequential_id", 1001], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1661
+  (7.7ms) rollback transaction
1662
+  (0.0ms) begin transaction
1663
+  (0.0ms) SAVEPOINT active_record_1
1664
+ SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["name", nil], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1665
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1666
+  (0.0ms) SAVEPOINT active_record_1
1667
+  (0.1ms) SELECT COUNT(*) FROM "invoices" WHERE "invoices"."sequential_id" = 1 AND "invoices"."account_id" = 1
1668
+ SQL (0.2ms) INSERT INTO "invoices" ("account_id", "amount", "created_at", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["account_id", 1], ["amount", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["sequential_id", 1], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1670
+  (0.0ms) SAVEPOINT active_record_1
1671
+ Invoice Load (0.1ms) SELECT "invoices".* FROM "invoices" WHERE "invoices"."account_id" = 1 AND (sequential_id IS NOT NULL) ORDER BY sequential_id DESC LIMIT 1
1672
+  (0.1ms) SELECT COUNT(*) FROM "invoices" WHERE "invoices"."sequential_id" = 1000 AND "invoices"."account_id" = 1
1673
+ SQL (0.1ms) INSERT INTO "invoices" ("account_id", "amount", "created_at", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["account_id", 1], ["amount", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["sequential_id", 1000], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1675
+  (3.5ms) rollback transaction
1676
+  (0.0ms) begin transaction
1677
+  (0.0ms) SAVEPOINT active_record_1
1678
+  (0.1ms) SELECT COUNT(*) FROM "subscriptions" WHERE "subscriptions"."sequential_id" = 1
1679
+ SQL (0.4ms) INSERT INTO "subscriptions" ("created_at", "plan", "sequential_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["plan", nil], ["sequential_id", 1], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1681
+  (0.0ms) SAVEPOINT active_record_1
1682
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE (sequential_id IS NOT NULL) ORDER BY sequential_id DESC LIMIT 1
1683
+  (0.1ms) SELECT COUNT(*) FROM "subscriptions" WHERE "subscriptions"."sequential_id" = 2
1684
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "plan", "sequential_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["plan", nil], ["sequential_id", 2], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1686
+  (0.8ms) rollback transaction
1687
+  (0.0ms) begin transaction
1688
+  (0.0ms) SAVEPOINT active_record_1
1689
+ SQL (0.6ms) INSERT INTO "questions" ("body", "created_at", "summary", "updated_at") VALUES (?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["summary", nil], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1690
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1691
+  (0.0ms) SAVEPOINT active_record_1
1692
+ Answer Load (0.3ms) SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 AND (sequential_id IS NOT NULL) ORDER BY sequential_id DESC LIMIT 1
1693
+  (0.1ms) SELECT COUNT(*) FROM "answers" WHERE "answers"."sequential_id" = 1 AND "answers"."question_id" = 1
1694
+ SQL (0.3ms) INSERT INTO "answers" ("body", "created_at", "question_id", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["question_id", 1], ["sequential_id", 1], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1695
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1696
+  (0.6ms) rollback transaction
1697
+  (0.0ms) begin transaction
1698
+  (0.0ms) SAVEPOINT active_record_1
1699
+ SQL (0.3ms) INSERT INTO "questions" ("body", "created_at", "summary", "updated_at") VALUES (?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["summary", nil], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1700
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1701
+  (0.0ms) SAVEPOINT active_record_1
1702
+  (0.1ms) SELECT COUNT(*) FROM "answers" WHERE "answers"."sequential_id" = 10 AND "answers"."question_id" = 1
1703
+ SQL (0.2ms) INSERT INTO "answers" ("body", "created_at", "question_id", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["question_id", 1], ["sequential_id", 10], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1705
+  (0.0ms) SAVEPOINT active_record_1
1706
+  (0.1ms) SELECT COUNT(*) FROM "answers" WHERE "answers"."sequential_id" = 10 AND "answers"."question_id" = 1
1707
+ Answer Load (0.1ms) SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 AND (sequential_id IS NOT NULL) ORDER BY sequential_id DESC LIMIT 1
1708
+  (0.1ms) SELECT COUNT(*) FROM "answers" WHERE "answers"."sequential_id" = 11 AND "answers"."question_id" = 1
1709
+ SQL (0.3ms) INSERT INTO "answers" ("body", "created_at", "question_id", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["question_id", 1], ["sequential_id", 11], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1711
+  (0.7ms) rollback transaction
1712
+  (0.0ms) begin transaction
1713
+  (0.0ms) SAVEPOINT active_record_1
1714
+ SQL (0.3ms) INSERT INTO "questions" ("body", "created_at", "summary", "updated_at") VALUES (?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["summary", nil], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1716
+  (0.0ms) SAVEPOINT active_record_1
1717
+  (0.3ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."sequential_id" = 1 AND "comments"."question_id" = 1
1718
+ SQL (0.3ms) INSERT INTO "comments" ("body", "created_at", "question_id", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["question_id", 1], ["sequential_id", 1], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1720
+  (0.0ms) SAVEPOINT active_record_1
1721
+  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."sequential_id" = 2 AND "comments"."question_id" = 1
1722
+ SQL (0.2ms) INSERT INTO "comments" ("body", "created_at", "question_id", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["question_id", 1], ["sequential_id", 2], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1724
+  (0.0ms) SAVEPOINT active_record_1
1725
+  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."sequential_id" = 3 AND "comments"."question_id" = 1
1726
+ SQL (0.1ms) INSERT INTO "comments" ("body", "created_at", "question_id", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["question_id", 1], ["sequential_id", 3], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1728
+  (0.0ms) SAVEPOINT active_record_1
1729
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."question_id" = 1 AND (sequential_id IS NOT NULL) ORDER BY sequential_id DESC LIMIT 1
1730
+  (0.1ms) SELECT COUNT(*) FROM "comments" WHERE "comments"."sequential_id" = 4 AND "comments"."question_id" = 1
1731
+ SQL (0.2ms) INSERT INTO "comments" ("body", "created_at", "question_id", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["question_id", 1], ["sequential_id", 4], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1733
+  (0.7ms) rollback transaction
1734
+  (0.0ms) begin transaction
1735
+  (0.0ms) SAVEPOINT active_record_1
1736
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1737
+  (0.0ms) rollback transaction
1738
+  (0.0ms) begin transaction
1739
+  (0.0ms) SAVEPOINT active_record_1
1740
+ SQL (0.3ms) INSERT INTO "questions" ("body", "created_at", "summary", "updated_at") VALUES (?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["summary", nil], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1742
+  (0.0ms) SAVEPOINT active_record_1
1743
+  (0.1ms) SELECT COUNT(*) FROM "answers" WHERE "answers"."sequential_id" = 10 AND "answers"."question_id" = 1
1744
+ SQL (0.2ms) INSERT INTO "answers" ("body", "created_at", "question_id", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["question_id", 1], ["sequential_id", 10], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1745
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1746
+  (0.0ms) SAVEPOINT active_record_1
1747
+ Answer Load (0.1ms) SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 AND (sequential_id IS NOT NULL) ORDER BY sequential_id DESC LIMIT 1
1748
+  (0.0ms) SELECT COUNT(*) FROM "answers" WHERE "answers"."sequential_id" = 11 AND "answers"."question_id" = 1
1749
+ SQL (0.2ms) INSERT INTO "answers" ("body", "created_at", "question_id", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["question_id", 1], ["sequential_id", 11], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1751
+  (2.7ms) rollback transaction
1752
+  (0.0ms) begin transaction
1753
+  (0.0ms) SAVEPOINT active_record_1
1754
+ SQL (0.3ms) INSERT INTO "questions" ("body", "created_at", "summary", "updated_at") VALUES (?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["summary", nil], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1755
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1756
+  (0.0ms) SAVEPOINT active_record_1
1757
+ Answer Load (0.1ms) SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 AND (sequential_id IS NOT NULL) ORDER BY sequential_id DESC LIMIT 1
1758
+  (0.0ms) SELECT COUNT(*) FROM "answers" WHERE "answers"."sequential_id" = 1 AND "answers"."question_id" = 1
1759
+ SQL (0.2ms) INSERT INTO "answers" ("body", "created_at", "question_id", "sequential_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", nil], ["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["question_id", 1], ["sequential_id", 1], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1761
+ Answer Load (0.1ms) SELECT "answers".* FROM "answers" WHERE "answers"."id" = ? LIMIT 1 [["id", 1]]
1762
+  (0.0ms) SAVEPOINT active_record_1
1763
+  (0.1ms) SELECT COUNT(*) FROM "answers" WHERE "answers"."sequential_id" = 1 AND "answers"."question_id" = 1 AND (NOT id = 1)
1764
+  (0.1ms) UPDATE "answers" SET "body" = 'Updated body', "updated_at" = '2012-03-07 06:55:26.827040' WHERE "answers"."id" = 1
1765
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1766
+  (2.7ms) rollback transaction
1767
+  (0.0ms) begin transaction
1768
+  (0.0ms) SAVEPOINT active_record_1
1769
+ SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["name", nil], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1771
+  (0.0ms) SAVEPOINT active_record_1
1772
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1773
+  (0.7ms) rollback transaction
1774
+  (0.0ms) begin transaction
1775
+  (0.0ms) SAVEPOINT active_record_1
1776
+ SQL (0.3ms) INSERT INTO "accounts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00], ["name", nil], ["updated_at", Wed, 07 Mar 2012 06:55:26 UTC +00:00]]
1777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1778
+  (0.0ms) SAVEPOINT active_record_1
1779
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1780
+  (0.8ms) rollback transaction
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sequenced
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 1.0.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Derrick Reimer
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-02-19 00:00:00 -08:00
13
+ date: 2012-03-07 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -18,9 +18,9 @@ dependencies:
18
18
  requirement: &id001 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
- - - ">="
21
+ - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 3.0.0
23
+ version: "3.0"
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: *id001
@@ -29,9 +29,9 @@ dependencies:
29
29
  requirement: &id002 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
- - - ">="
32
+ - - ~>
33
33
  - !ruby/object:Gem::Version
34
- version: 3.0.0
34
+ version: "3.0"
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: *id002
@@ -40,9 +40,9 @@ dependencies:
40
40
  requirement: &id003 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ">="
43
+ - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 3.1.0
45
+ version: "3.1"
46
46
  type: :development
47
47
  prerelease: false
48
48
  version_requirements: *id003
@@ -57,7 +57,7 @@ dependencies:
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: *id004
60
- description: Sequenced is a simple Rails 3 engine that generates scoped sequential IDs for ActiveRecord models
60
+ description: Sequenced is a simple Rails 3 plugin that generates scoped sequential IDs for ActiveRecord models
61
61
  email:
62
62
  - derrickreimer@gmail.com
63
63
  executables: []
@@ -68,10 +68,12 @@ extra_rdoc_files: []
68
68
 
69
69
  files:
70
70
  - .gitignore
71
+ - CHANGELOG.md
71
72
  - Gemfile
72
73
  - MIT-LICENSE
73
74
  - README.md
74
75
  - Rakefile
76
+ - TODO.md
75
77
  - lib/sequenced.rb
76
78
  - lib/sequenced/acts_as_sequenced.rb
77
79
  - lib/sequenced/exceptions.rb
@@ -148,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
150
  requirements:
149
151
  - - ">="
150
152
  - !ruby/object:Gem::Version
151
- hash: 2780405698639159244
153
+ hash: 2873144507435092407
152
154
  segments:
153
155
  - 0
154
156
  version: "0"
@@ -157,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
159
  requirements:
158
160
  - - ">="
159
161
  - !ruby/object:Gem::Version
160
- hash: 2780405698639159244
162
+ hash: 2873144507435092407
161
163
  segments:
162
164
  - 0
163
165
  version: "0"