fastaccess 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2013 YOURNAME
1
+ Copyright 2013 Tim Reddehase
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -12,7 +12,7 @@ html.
12
12
 
13
13
  And this is why fastaccess exists.
14
14
  It modifies any given method, which generates content,
15
- and stores it in a [redis][1] database.
15
+ and stores it in a [redis][redis] database.
16
16
  If this content solely depends on a model attribute,
17
17
  for example like the *body* in a blog post, it will
18
18
  be auto updated, if the underlying model attribute
@@ -98,6 +98,57 @@ can also call
98
98
  Fastaccess::Fastaccess.update_content @post, :on => :tag_list, :arguments => []
99
99
  ```
100
100
 
101
+ ## Configuring Fastaccess
102
+
103
+ ### Initializers
104
+
105
+ Fastaccess comes with a generator for an initializer file. You can
106
+ run it by calling:
107
+
108
+ ```
109
+ rails generate fastaccess:initialize
110
+ ```
111
+
112
+ This will create `config/initializers/fastaccess.rb`, which allows you to
113
+ set the redis-connector instance, which will be used to communicate
114
+ with redis. If you've just installed redis and are running
115
+ it with default settings, the defaults from the initializer file
116
+ should work nicely.
117
+
118
+ ### Configure acts_with...
119
+
120
+ #### deactivating auto_update
121
+
122
+ If you need to call `update_content` manually (either via the mixin
123
+ version or the global one), you probably don't want the unnecessary
124
+ updates, which are being triggered by every update on the pertaining
125
+ record (and the subsequent method-call). You can deactivate it
126
+ for specific method, by passing it via the options hash.
127
+
128
+ ```ruby
129
+ acts_with_fastaccess_on :markdown, :auto_update => false
130
+ ```
131
+
132
+ #### using multiple generated versions
133
+
134
+ Since the methods you will use fastaccess on, will usually generate
135
+ content, it might be possible, that you want to use multiple
136
+ versions of this content frequently without resorting
137
+ to another method. You can achieve this by setting argument-groups,
138
+ which is an array in which each element (an argument group) refers to
139
+ the arguments passed to the method in this version:
140
+
141
+ ```ruby
142
+ acts_with_fastaccess_on :markdown_with_opts, :versions => [
143
+ {prevent_html:true},
144
+ {prevent_html:false}
145
+ ]
146
+ ```
147
+
148
+ This will allow fastaccess to store both versions in the redis
149
+ database.
150
+
151
+
101
152
  ## Features
102
153
 
103
154
  ### planned features
@@ -105,6 +156,14 @@ Fastaccess::Fastaccess.update_content @post, :on => :tag_list, :arguments => []
105
156
  - ~~disable auto-update via option setting (planned for *0.0.2*)~~ *implemented*
106
157
  - more update flexibility
107
158
  - e.g. custom update-constraints instead of calling `update_content` manually
159
+ - ~~**version**~~
160
+ ~~sometimes parameters passed to the watched method aren't arbitrary,
161
+ but contain some sort of state. So some output-*versions* of the
162
+ generated content are used, with evenly distributed odds.
163
+ Fastaccess should allow for these versions to exist in memory.
164
+ This means, that certain *sets of arguments* are bundling
165
+ a so called version, which should be accessible via redis for
166
+ more flexibility.~~ *implemented*
108
167
 
109
168
  ## License
110
169
 
@@ -134,4 +193,5 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
134
193
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
135
194
 
136
195
  [mit]: http://opensource.org/licenses/MIT
196
+ [redis]: http://redis.io/
137
197
  [1]: http://rightsrestricted.com
@@ -17,7 +17,6 @@ module Fastaccess
17
17
  # currently has no effect on execution.
18
18
  def acts_with_fastaccess_on(method_name, options = {})
19
19
  Fastaccess.register_on self, method_name, options
20
- # options = Fastaccess.merge_defaults(options)
21
20
  define_singleton_method :method_added do |on_method|
22
21
  if Fastaccess.registered? self, on_method
23
22
  method = on_method
@@ -25,8 +24,7 @@ module Fastaccess
25
24
  if !method_defined?(alias_name)
26
25
  alias_method alias_name, method
27
26
  define_method method do |*args|
28
- fastaccess_id = Fastaccess.id_for(self)
29
- redis_id = "#{method}_#{fastaccess_id}"
27
+ redis_id = Fastaccess.redis_id_for(self, method, args)
30
28
  opts = Fastaccess.options_for(self, method)
31
29
  content_current = opts[:auto_update] ? Fastaccess.update_check(self) : true
32
30
  if Fastaccess.redis.exists(redis_id) && content_current
@@ -1,4 +1,5 @@
1
1
  require 'set'
2
+ require 'digest/sha2'
2
3
 
3
4
  module Fastaccess
4
5
  # This class contains the most
@@ -10,7 +11,8 @@ module Fastaccess
10
11
  # the default options for the
11
12
  # acts_with_fastaccess_on method.
12
13
  ACTS_OPTIONS_DEFAULTS = {
13
- :auto_update => true
14
+ :auto_update => true,
15
+ :versions => [],
14
16
  }
15
17
 
16
18
  @@fastaccess_on = Hash.new Set.new
@@ -199,6 +201,33 @@ module Fastaccess
199
201
  ACTS_OPTIONS_DEFAULTS.merge(options)
200
202
  end
201
203
 
204
+ # returns the id used by fastaccess for
205
+ # the storage of content in the redis database
206
+ # @param [Object] class_instance instance of a registered class
207
+ # @param [Symbol] method is a symbol denoting the called method
208
+ # @param [Array] args arguments supplied to the method on the call
209
+ def self.redis_id_for(class_instance, method, args=[])
210
+ opts = self.options_for(class_instance.class, method)
211
+ fastaccess_id = self.id_for(class_instance)
212
+ base_id = "#{method}_#{fastaccess_id}"
213
+ return base_id if opts[:versions].empty?
214
+ opts[:versions].each do |version|
215
+ if self.match_version(version, args)
216
+ sha = Digest::SHA2.new << version.inspect
217
+ return "#{base_id}:#{sha}"
218
+ end
219
+ end
220
+ base_id
221
+ end
222
+
223
+ private
224
+ # tries to match a version
225
+ # against given arguments
226
+ def self.match_version(version, args)
227
+ arr_version = version.is_a?(Array) ? version : [version]
228
+ arr_version == args
229
+ end
230
+
202
231
  end
203
232
 
204
233
  end
@@ -1,4 +1,4 @@
1
1
  module Fastaccess
2
2
  # The current gem version.
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
@@ -7,6 +7,8 @@ class SimpleString < ActiveRecord::Base
7
7
  acts_with_fastaccess_on :modifiable_string
8
8
  acts_with_fastaccess_on :changeable_string
9
9
  acts_with_fastaccess_on :non_autoupdateable_string, :auto_update => false
10
+ acts_with_fastaccess_on :versioned_string, :auto_update => false, :versions => [:and, :or]
11
+ acts_with_fastaccess_on :complex_vers_string, :auto_update => false, :versions => [[:and, 1, "foo"], [:or, 5, "bar"]]
10
12
  include Fastaccess::Mixins
11
13
 
12
14
  attr_accessible :some_string
@@ -39,4 +41,17 @@ class SimpleString < ActiveRecord::Base
39
41
  return "text is something"
40
42
  end
41
43
 
44
+ def versioned_string(symbol)
45
+ case symbol
46
+ when :and
47
+ "simple is easy AND easy is fun"
48
+ when :or
49
+ "complicated isn't nice or isnt good"
50
+ end
51
+ end
52
+
53
+ def complex_vers_string(*args)
54
+ string = "if you use #{args[0]}(#{args[1]},0), you'll get: #{args[2]}"
55
+ end
56
+
42
57
  end
@@ -56,3 +56,4 @@ Connecting to database specified by database.yml
56
56
  Connecting to database specified by database.yml
57
57
  Connecting to database specified by database.yml
58
58
  Connecting to database specified by database.yml
59
+ Connecting to database specified by database.yml
@@ -1573,3 +1573,784 @@ Connecting to database specified by database.yml
1573
1573
   (0.3ms) rollback transaction
1574
1574
   (0.1ms) begin transaction
1575
1575
   (0.0ms) rollback transaction
1576
+ Connecting to database specified by database.yml
1577
+  (6.6ms) begin transaction
1578
+  (0.1ms) SAVEPOINT active_record_1
1579
+ SQL (11.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00], ["some_string", nil], ["updated_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00]]
1580
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1581
+  (0.1ms) SAVEPOINT active_record_1
1582
+  (0.5ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-05 21:13:35.395399' WHERE "simple_strings"."id" = 1
1583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1584
+  (0.3ms) rollback transaction
1585
+  (0.1ms) begin transaction
1586
+  (0.0ms) SAVEPOINT active_record_1
1587
+ SQL (0.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00], ["some_string", nil], ["updated_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00]]
1588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1589
+  (0.1ms) SAVEPOINT active_record_1
1590
+  (0.4ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-05 21:13:35.410816' WHERE "simple_strings"."id" = 1
1591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1592
+  (0.5ms) rollback transaction
1593
+  (0.0ms) begin transaction
1594
+  (0.0ms) SAVEPOINT active_record_1
1595
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00], ["some_string", nil], ["updated_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00]]
1596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1597
+  (0.3ms) rollback transaction
1598
+  (0.0ms) begin transaction
1599
+  (0.0ms) SAVEPOINT active_record_1
1600
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00], ["some_string", nil], ["updated_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00]]
1601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1602
+  (0.3ms) rollback transaction
1603
+  (0.0ms) begin transaction
1604
+  (0.0ms) SAVEPOINT active_record_1
1605
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00], ["some_string", nil], ["updated_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00]]
1606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1607
+  (0.2ms) rollback transaction
1608
+  (0.0ms) begin transaction
1609
+  (0.0ms) SAVEPOINT active_record_1
1610
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00], ["some_string", nil], ["updated_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00]]
1611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1612
+  (0.3ms) rollback transaction
1613
+  (0.0ms) begin transaction
1614
+  (0.0ms) SAVEPOINT active_record_1
1615
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00], ["some_string", nil], ["updated_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00]]
1616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1617
+  (0.3ms) rollback transaction
1618
+  (0.0ms) begin transaction
1619
+  (0.0ms) SAVEPOINT active_record_1
1620
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00], ["some_string", nil], ["updated_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00]]
1621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1622
+  (0.4ms) rollback transaction
1623
+  (0.0ms) begin transaction
1624
+  (0.0ms) SAVEPOINT active_record_1
1625
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00], ["some_string", nil], ["updated_at", Tue, 05 Feb 2013 21:13:35 UTC +00:00]]
1626
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1627
+  (0.3ms) rollback transaction
1628
+  (0.0ms) begin transaction
1629
+  (0.0ms) rollback transaction
1630
+ Connecting to database specified by database.yml
1631
+  (13.2ms) begin transaction
1632
+  (0.0ms) SAVEPOINT active_record_1
1633
+ SQL (11.2ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00], ["some_string", nil], ["updated_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00]]
1634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1635
+  (0.1ms) SAVEPOINT active_record_1
1636
+  (0.3ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-06 22:50:45.395452' WHERE "simple_strings"."id" = 1
1637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1638
+  (0.6ms) rollback transaction
1639
+  (0.0ms) begin transaction
1640
+  (0.0ms) SAVEPOINT active_record_1
1641
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00], ["some_string", nil], ["updated_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00]]
1642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1643
+  (0.4ms) rollback transaction
1644
+  (0.0ms) begin transaction
1645
+  (0.0ms) SAVEPOINT active_record_1
1646
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00], ["some_string", nil], ["updated_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00]]
1647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1648
+  (0.0ms) SAVEPOINT active_record_1
1649
+  (0.3ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-06 22:50:45.427064' WHERE "simple_strings"."id" = 1
1650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1651
+  (0.4ms) rollback transaction
1652
+  (0.0ms) begin transaction
1653
+  (0.0ms) SAVEPOINT active_record_1
1654
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00], ["some_string", nil], ["updated_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00]]
1655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1656
+  (0.3ms) rollback transaction
1657
+  (0.0ms) begin transaction
1658
+  (0.0ms) SAVEPOINT active_record_1
1659
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00], ["some_string", nil], ["updated_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00]]
1660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1661
+  (0.3ms) rollback transaction
1662
+  (0.0ms) begin transaction
1663
+  (0.0ms) SAVEPOINT active_record_1
1664
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00], ["some_string", nil], ["updated_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00]]
1665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1666
+  (0.2ms) rollback transaction
1667
+  (0.0ms) begin transaction
1668
+  (0.0ms) SAVEPOINT active_record_1
1669
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00], ["some_string", nil], ["updated_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00]]
1670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1671
+  (0.3ms) rollback transaction
1672
+  (0.0ms) begin transaction
1673
+  (0.0ms) SAVEPOINT active_record_1
1674
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00], ["some_string", nil], ["updated_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00]]
1675
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1676
+  (0.3ms) rollback transaction
1677
+  (0.0ms) begin transaction
1678
+  (0.0ms) SAVEPOINT active_record_1
1679
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00], ["some_string", nil], ["updated_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00]]
1680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1681
+  (0.3ms) rollback transaction
1682
+  (0.1ms) begin transaction
1683
+  (0.0ms) SAVEPOINT active_record_1
1684
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00], ["some_string", nil], ["updated_at", Wed, 06 Feb 2013 22:50:45 UTC +00:00]]
1685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1686
+  (0.3ms) rollback transaction
1687
+  (0.0ms) begin transaction
1688
+  (0.0ms) rollback transaction
1689
+ Connecting to database specified by database.yml
1690
+  (0.5ms) begin transaction
1691
+  (0.0ms) SAVEPOINT active_record_1
1692
+ SQL (11.9ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00]]
1693
+  (0.9ms) RELEASE SAVEPOINT active_record_1
1694
+  (0.3ms) rollback transaction
1695
+  (0.1ms) begin transaction
1696
+  (0.0ms) SAVEPOINT active_record_1
1697
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00]]
1698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1699
+  (0.4ms) rollback transaction
1700
+  (0.1ms) begin transaction
1701
+  (0.0ms) SAVEPOINT active_record_1
1702
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00]]
1703
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1704
+  (0.3ms) rollback transaction
1705
+  (0.1ms) begin transaction
1706
+  (0.0ms) SAVEPOINT active_record_1
1707
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00]]
1708
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1709
+  (0.4ms) rollback transaction
1710
+  (0.0ms) begin transaction
1711
+  (0.0ms) SAVEPOINT active_record_1
1712
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00]]
1713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1714
+  (0.4ms) rollback transaction
1715
+  (0.0ms) begin transaction
1716
+  (0.0ms) SAVEPOINT active_record_1
1717
+ SQL (0.2ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00]]
1718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1719
+  (0.3ms) rollback transaction
1720
+  (0.0ms) begin transaction
1721
+  (0.0ms) SAVEPOINT active_record_1
1722
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00]]
1723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1724
+  (0.2ms) rollback transaction
1725
+  (0.1ms) begin transaction
1726
+  (0.0ms) SAVEPOINT active_record_1
1727
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00]]
1728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1729
+  (0.4ms) rollback transaction
1730
+  (0.0ms) begin transaction
1731
+  (0.0ms) SAVEPOINT active_record_1
1732
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00]]
1733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1734
+  (0.4ms) rollback transaction
1735
+  (0.0ms) begin transaction
1736
+  (0.0ms) SAVEPOINT active_record_1
1737
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:47:47 UTC +00:00]]
1738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1739
+  (0.4ms) rollback transaction
1740
+  (0.0ms) begin transaction
1741
+  (0.0ms) rollback transaction
1742
+ Connecting to database specified by database.yml
1743
+  (0.5ms) begin transaction
1744
+  (0.1ms) SAVEPOINT active_record_1
1745
+ SQL (4.9ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00]]
1746
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1747
+  (0.1ms) SAVEPOINT active_record_1
1748
+  (0.4ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-07 19:50:47.368031' WHERE "simple_strings"."id" = 1
1749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1750
+  (1.7ms) rollback transaction
1751
+  (0.1ms) begin transaction
1752
+  (0.0ms) SAVEPOINT active_record_1
1753
+ SQL (0.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00]]
1754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1755
+  (0.4ms) rollback transaction
1756
+  (0.0ms) begin transaction
1757
+  (0.0ms) SAVEPOINT active_record_1
1758
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00]]
1759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1760
+  (0.0ms) SAVEPOINT active_record_1
1761
+  (0.3ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-07 19:50:47.380968' WHERE "simple_strings"."id" = 1
1762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1763
+  (0.4ms) rollback transaction
1764
+  (0.0ms) begin transaction
1765
+  (0.0ms) SAVEPOINT active_record_1
1766
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00]]
1767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1768
+  (0.2ms) rollback transaction
1769
+  (0.0ms) begin transaction
1770
+  (0.0ms) SAVEPOINT active_record_1
1771
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00]]
1772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1773
+  (0.3ms) rollback transaction
1774
+  (0.1ms) begin transaction
1775
+  (0.0ms) SAVEPOINT active_record_1
1776
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00]]
1777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1778
+  (0.3ms) rollback transaction
1779
+  (0.0ms) begin transaction
1780
+  (0.0ms) SAVEPOINT active_record_1
1781
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00]]
1782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1783
+  (0.2ms) rollback transaction
1784
+  (0.1ms) begin transaction
1785
+  (0.0ms) SAVEPOINT active_record_1
1786
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00]]
1787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1788
+  (0.3ms) rollback transaction
1789
+  (0.0ms) begin transaction
1790
+  (0.0ms) SAVEPOINT active_record_1
1791
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00]]
1792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1793
+  (0.3ms) rollback transaction
1794
+  (0.0ms) begin transaction
1795
+  (0.0ms) SAVEPOINT active_record_1
1796
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:50:47 UTC +00:00]]
1797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1798
+  (0.2ms) rollback transaction
1799
+  (0.0ms) begin transaction
1800
+  (0.0ms) rollback transaction
1801
+ Connecting to database specified by database.yml
1802
+  (0.5ms) begin transaction
1803
+  (0.0ms) SAVEPOINT active_record_1
1804
+ SQL (5.2ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00]]
1805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1806
+  (0.1ms) SAVEPOINT active_record_1
1807
+  (0.4ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-07 19:52:31.920135' WHERE "simple_strings"."id" = 1
1808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1809
+  (1.6ms) rollback transaction
1810
+  (0.1ms) begin transaction
1811
+  (0.0ms) SAVEPOINT active_record_1
1812
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00]]
1813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1814
+  (0.4ms) rollback transaction
1815
+  (0.0ms) begin transaction
1816
+  (0.0ms) SAVEPOINT active_record_1
1817
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00]]
1818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1819
+  (0.0ms) SAVEPOINT active_record_1
1820
+  (0.3ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-07 19:52:31.931746' WHERE "simple_strings"."id" = 1
1821
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1822
+  (0.3ms) rollback transaction
1823
+  (0.1ms) begin transaction
1824
+  (0.1ms) SAVEPOINT active_record_1
1825
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00]]
1826
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1827
+  (0.3ms) rollback transaction
1828
+  (0.1ms) begin transaction
1829
+  (0.0ms) SAVEPOINT active_record_1
1830
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00]]
1831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1832
+  (0.3ms) rollback transaction
1833
+  (0.0ms) begin transaction
1834
+  (0.0ms) SAVEPOINT active_record_1
1835
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00]]
1836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1837
+  (0.3ms) rollback transaction
1838
+  (0.1ms) begin transaction
1839
+  (0.0ms) SAVEPOINT active_record_1
1840
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00]]
1841
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1842
+  (0.3ms) rollback transaction
1843
+  (0.1ms) begin transaction
1844
+  (0.0ms) SAVEPOINT active_record_1
1845
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00]]
1846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1847
+  (0.3ms) rollback transaction
1848
+  (0.0ms) begin transaction
1849
+  (0.0ms) SAVEPOINT active_record_1
1850
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00]]
1851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1852
+  (0.3ms) rollback transaction
1853
+  (0.1ms) begin transaction
1854
+  (0.0ms) SAVEPOINT active_record_1
1855
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:52:31 UTC +00:00]]
1856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1857
+  (0.3ms) rollback transaction
1858
+  (0.0ms) begin transaction
1859
+  (0.0ms) rollback transaction
1860
+ Connecting to database specified by database.yml
1861
+  (0.5ms) begin transaction
1862
+  (0.1ms) SAVEPOINT active_record_1
1863
+ SQL (4.9ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:12 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:12 UTC +00:00]]
1864
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1865
+  (0.1ms) SAVEPOINT active_record_1
1866
+  (0.4ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-07 19:53:12.991900' WHERE "simple_strings"."id" = 1
1867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1868
+  (1.6ms) rollback transaction
1869
+  (0.1ms) begin transaction
1870
+  (0.1ms) SAVEPOINT active_record_1
1871
+ SQL (0.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:12 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:12 UTC +00:00]]
1872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1873
+  (0.3ms) rollback transaction
1874
+  (0.1ms) begin transaction
1875
+  (0.0ms) SAVEPOINT active_record_1
1876
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00]]
1877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1878
+  (0.0ms) SAVEPOINT active_record_1
1879
+  (0.3ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-07 19:53:13.005082' WHERE "simple_strings"."id" = 1
1880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1881
+  (0.4ms) rollback transaction
1882
+  (0.0ms) begin transaction
1883
+  (0.0ms) SAVEPOINT active_record_1
1884
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00]]
1885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1886
+  (0.2ms) rollback transaction
1887
+  (0.0ms) begin transaction
1888
+  (0.0ms) SAVEPOINT active_record_1
1889
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00]]
1890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1891
+  (0.3ms) rollback transaction
1892
+  (0.0ms) begin transaction
1893
+  (0.0ms) SAVEPOINT active_record_1
1894
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00]]
1895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1896
+  (0.3ms) rollback transaction
1897
+  (0.0ms) begin transaction
1898
+  (0.0ms) SAVEPOINT active_record_1
1899
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00]]
1900
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1901
+  (0.3ms) rollback transaction
1902
+  (0.0ms) begin transaction
1903
+  (0.0ms) SAVEPOINT active_record_1
1904
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00]]
1905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1906
+  (0.3ms) rollback transaction
1907
+  (0.0ms) begin transaction
1908
+  (0.0ms) SAVEPOINT active_record_1
1909
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00]]
1910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1911
+  (0.3ms) rollback transaction
1912
+  (0.0ms) begin transaction
1913
+  (0.0ms) SAVEPOINT active_record_1
1914
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:13 UTC +00:00]]
1915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1916
+  (0.3ms) rollback transaction
1917
+  (0.0ms) begin transaction
1918
+  (0.0ms) rollback transaction
1919
+ Connecting to database specified by database.yml
1920
+  (0.5ms) begin transaction
1921
+  (0.0ms) SAVEPOINT active_record_1
1922
+ SQL (5.1ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00]]
1923
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1924
+  (0.1ms) SAVEPOINT active_record_1
1925
+  (0.5ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-07 19:53:27.310888' WHERE "simple_strings"."id" = 1
1926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1927
+  (1.8ms) rollback transaction
1928
+  (0.1ms) begin transaction
1929
+  (0.0ms) SAVEPOINT active_record_1
1930
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00]]
1931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1932
+  (0.3ms) rollback transaction
1933
+  (0.0ms) begin transaction
1934
+  (0.0ms) SAVEPOINT active_record_1
1935
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00]]
1936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1937
+  (0.1ms) SAVEPOINT active_record_1
1938
+  (0.4ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-07 19:53:27.323754' WHERE "simple_strings"."id" = 1
1939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1940
+  (0.4ms) rollback transaction
1941
+  (0.0ms) begin transaction
1942
+  (0.0ms) SAVEPOINT active_record_1
1943
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00]]
1944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1945
+  (0.4ms) rollback transaction
1946
+  (0.1ms) begin transaction
1947
+  (0.0ms) SAVEPOINT active_record_1
1948
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00]]
1949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1950
+  (0.3ms) rollback transaction
1951
+  (0.0ms) begin transaction
1952
+  (0.0ms) SAVEPOINT active_record_1
1953
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00]]
1954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1955
+  (0.3ms) rollback transaction
1956
+  (0.1ms) begin transaction
1957
+  (0.0ms) SAVEPOINT active_record_1
1958
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00]]
1959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1960
+  (0.3ms) rollback transaction
1961
+  (0.1ms) begin transaction
1962
+  (0.0ms) SAVEPOINT active_record_1
1963
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00]]
1964
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1965
+  (0.3ms) rollback transaction
1966
+  (0.0ms) begin transaction
1967
+  (0.0ms) SAVEPOINT active_record_1
1968
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00]]
1969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1970
+  (0.3ms) rollback transaction
1971
+  (0.1ms) begin transaction
1972
+  (0.0ms) SAVEPOINT active_record_1
1973
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00], ["some_string", nil], ["updated_at", Thu, 07 Feb 2013 19:53:27 UTC +00:00]]
1974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1975
+  (0.3ms) rollback transaction
1976
+  (0.0ms) begin transaction
1977
+  (0.0ms) rollback transaction
1978
+ Connecting to database specified by database.yml
1979
+  (0.5ms) begin transaction
1980
+  (0.0ms) SAVEPOINT active_record_1
1981
+ SQL (6.8ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00]]
1982
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1983
+  (0.1ms) SAVEPOINT active_record_1
1984
+  (0.5ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-16 15:03:37.715292' WHERE "simple_strings"."id" = 1
1985
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1986
+  (0.4ms) rollback transaction
1987
+  (0.1ms) begin transaction
1988
+  (0.0ms) SAVEPOINT active_record_1
1989
+ SQL (0.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00]]
1990
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1991
+  (0.4ms) rollback transaction
1992
+  (0.1ms) begin transaction
1993
+  (0.0ms) SAVEPOINT active_record_1
1994
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00]]
1995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1996
+  (0.0ms) SAVEPOINT active_record_1
1997
+  (0.3ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-16 15:03:37.727601' WHERE "simple_strings"."id" = 1
1998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1999
+  (0.4ms) rollback transaction
2000
+  (0.0ms) begin transaction
2001
+  (0.0ms) SAVEPOINT active_record_1
2002
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00]]
2003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2004
+  (0.3ms) rollback transaction
2005
+  (0.1ms) begin transaction
2006
+  (0.1ms) SAVEPOINT active_record_1
2007
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00]]
2008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2009
+  (0.3ms) rollback transaction
2010
+  (0.1ms) begin transaction
2011
+  (0.0ms) SAVEPOINT active_record_1
2012
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00]]
2013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2014
+  (0.3ms) rollback transaction
2015
+  (0.0ms) begin transaction
2016
+  (0.0ms) SAVEPOINT active_record_1
2017
+ SQL (25.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00]]
2018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2019
+  (0.5ms) rollback transaction
2020
+  (0.0ms) begin transaction
2021
+  (0.0ms) SAVEPOINT active_record_1
2022
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00]]
2023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2024
+  (0.3ms) rollback transaction
2025
+  (0.0ms) begin transaction
2026
+  (0.0ms) SAVEPOINT active_record_1
2027
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00]]
2028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2029
+  (0.4ms) rollback transaction
2030
+  (0.0ms) begin transaction
2031
+  (0.0ms) SAVEPOINT active_record_1
2032
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:03:37 UTC +00:00]]
2033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2034
+  (0.3ms) rollback transaction
2035
+  (0.0ms) begin transaction
2036
+  (0.0ms) rollback transaction
2037
+ Connecting to database specified by database.yml
2038
+  (0.5ms) begin transaction
2039
+  (0.1ms) SAVEPOINT active_record_1
2040
+ SQL (4.8ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00]]
2041
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2042
+  (0.1ms) SAVEPOINT active_record_1
2043
+  (0.6ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-16 15:17:35.707711' WHERE "simple_strings"."id" = 1
2044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2045
+  (1.7ms) rollback transaction
2046
+  (0.1ms) begin transaction
2047
+  (0.1ms) SAVEPOINT active_record_1
2048
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00]]
2049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2050
+  (0.3ms) rollback transaction
2051
+  (0.1ms) begin transaction
2052
+  (0.1ms) SAVEPOINT active_record_1
2053
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00]]
2054
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2055
+  (0.4ms) rollback transaction
2056
+  (0.0ms) begin transaction
2057
+  (0.0ms) SAVEPOINT active_record_1
2058
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00]]
2059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2060
+  (0.0ms) SAVEPOINT active_record_1
2061
+  (0.3ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-16 15:17:35.723957' WHERE "simple_strings"."id" = 1
2062
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2063
+  (0.3ms) rollback transaction
2064
+  (0.0ms) begin transaction
2065
+  (0.0ms) SAVEPOINT active_record_1
2066
+ SQL (0.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00]]
2067
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2068
+  (0.4ms) rollback transaction
2069
+  (0.0ms) begin transaction
2070
+  (0.0ms) SAVEPOINT active_record_1
2071
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00]]
2072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2073
+  (0.3ms) rollback transaction
2074
+  (0.0ms) begin transaction
2075
+  (0.0ms) SAVEPOINT active_record_1
2076
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00]]
2077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2078
+  (0.5ms) rollback transaction
2079
+  (0.1ms) begin transaction
2080
+  (0.0ms) SAVEPOINT active_record_1
2081
+ SQL (0.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00]]
2082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2083
+  (0.3ms) rollback transaction
2084
+  (0.0ms) begin transaction
2085
+  (0.0ms) SAVEPOINT active_record_1
2086
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00]]
2087
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2088
+  (0.3ms) rollback transaction
2089
+  (0.1ms) begin transaction
2090
+  (0.1ms) SAVEPOINT active_record_1
2091
+ SQL (0.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00]]
2092
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2093
+  (0.3ms) rollback transaction
2094
+  (0.0ms) begin transaction
2095
+  (0.0ms) SAVEPOINT active_record_1
2096
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:17:35 UTC +00:00]]
2097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2098
+  (0.3ms) rollback transaction
2099
+  (0.0ms) begin transaction
2100
+  (0.0ms) rollback transaction
2101
+ Connecting to database specified by database.yml
2102
+  (0.5ms) begin transaction
2103
+  (0.0ms) SAVEPOINT active_record_1
2104
+ SQL (4.8ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00]]
2105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2106
+  (0.1ms) SAVEPOINT active_record_1
2107
+  (0.4ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-16 15:18:14.446143' WHERE "simple_strings"."id" = 1
2108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2109
+  (1.7ms) rollback transaction
2110
+  (0.1ms) begin transaction
2111
+  (0.0ms) SAVEPOINT active_record_1
2112
+ SQL (0.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00]]
2113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2114
+  (0.3ms) rollback transaction
2115
+  (0.0ms) begin transaction
2116
+  (0.0ms) SAVEPOINT active_record_1
2117
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00]]
2118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2119
+  (0.3ms) rollback transaction
2120
+  (0.0ms) begin transaction
2121
+  (0.0ms) SAVEPOINT active_record_1
2122
+ SQL (0.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00]]
2123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2124
+  (0.0ms) SAVEPOINT active_record_1
2125
+  (0.3ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-16 15:18:14.461447' WHERE "simple_strings"."id" = 1
2126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2127
+  (0.3ms) rollback transaction
2128
+  (0.0ms) begin transaction
2129
+  (0.0ms) SAVEPOINT active_record_1
2130
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00]]
2131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2132
+  (0.3ms) rollback transaction
2133
+  (0.0ms) begin transaction
2134
+  (0.0ms) SAVEPOINT active_record_1
2135
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00]]
2136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2137
+  (0.3ms) rollback transaction
2138
+  (0.0ms) begin transaction
2139
+  (0.0ms) SAVEPOINT active_record_1
2140
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00]]
2141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2142
+  (0.4ms) rollback transaction
2143
+  (0.1ms) begin transaction
2144
+  (0.0ms) SAVEPOINT active_record_1
2145
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00]]
2146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2147
+  (0.3ms) rollback transaction
2148
+  (0.0ms) begin transaction
2149
+  (0.0ms) SAVEPOINT active_record_1
2150
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00]]
2151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2152
+  (0.3ms) rollback transaction
2153
+  (0.0ms) begin transaction
2154
+  (0.0ms) SAVEPOINT active_record_1
2155
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00]]
2156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2157
+  (0.3ms) rollback transaction
2158
+  (0.0ms) begin transaction
2159
+  (0.0ms) SAVEPOINT active_record_1
2160
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:14 UTC +00:00]]
2161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2162
+  (0.3ms) rollback transaction
2163
+  (0.0ms) begin transaction
2164
+  (0.0ms) rollback transaction
2165
+ Connecting to database specified by database.yml
2166
+  (0.5ms) begin transaction
2167
+  (0.0ms) SAVEPOINT active_record_1
2168
+ SQL (4.8ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00]]
2169
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2170
+  (0.1ms) SAVEPOINT active_record_1
2171
+  (0.4ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-16 15:18:53.142009' WHERE "simple_strings"."id" = 1
2172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2173
+  (1.6ms) rollback transaction
2174
+  (0.1ms) begin transaction
2175
+  (0.0ms) SAVEPOINT active_record_1
2176
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00]]
2177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2178
+  (0.3ms) rollback transaction
2179
+  (0.0ms) begin transaction
2180
+  (0.0ms) SAVEPOINT active_record_1
2181
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00]]
2182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2183
+  (0.3ms) rollback transaction
2184
+  (0.0ms) begin transaction
2185
+  (0.0ms) SAVEPOINT active_record_1
2186
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00]]
2187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2188
+  (0.0ms) SAVEPOINT active_record_1
2189
+  (0.3ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-16 15:18:53.156499' WHERE "simple_strings"."id" = 1
2190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2191
+  (0.4ms) rollback transaction
2192
+  (0.1ms) begin transaction
2193
+  (0.0ms) SAVEPOINT active_record_1
2194
+ SQL (0.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00]]
2195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2196
+  (0.3ms) rollback transaction
2197
+  (0.0ms) begin transaction
2198
+  (0.0ms) SAVEPOINT active_record_1
2199
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00]]
2200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2201
+  (0.3ms) rollback transaction
2202
+  (0.0ms) begin transaction
2203
+  (0.0ms) SAVEPOINT active_record_1
2204
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00]]
2205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2206
+  (0.5ms) rollback transaction
2207
+  (0.1ms) begin transaction
2208
+  (0.0ms) SAVEPOINT active_record_1
2209
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00]]
2210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2211
+  (0.3ms) rollback transaction
2212
+  (0.0ms) begin transaction
2213
+  (0.0ms) SAVEPOINT active_record_1
2214
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00]]
2215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2216
+  (0.3ms) rollback transaction
2217
+  (0.0ms) begin transaction
2218
+  (0.0ms) SAVEPOINT active_record_1
2219
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00]]
2220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2221
+  (0.4ms) rollback transaction
2222
+  (0.1ms) begin transaction
2223
+  (0.0ms) SAVEPOINT active_record_1
2224
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:18:53 UTC +00:00]]
2225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2226
+  (0.3ms) rollback transaction
2227
+  (0.0ms) begin transaction
2228
+  (0.0ms) rollback transaction
2229
+ Connecting to database specified by database.yml
2230
+  (0.5ms) begin transaction
2231
+  (0.0ms) SAVEPOINT active_record_1
2232
+ SQL (4.8ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00]]
2233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2234
+  (0.1ms) SAVEPOINT active_record_1
2235
+  (0.5ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-16 15:25:02.656793' WHERE "simple_strings"."id" = 1
2236
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2237
+  (1.7ms) rollback transaction
2238
+  (0.1ms) begin transaction
2239
+  (0.0ms) SAVEPOINT active_record_1
2240
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00]]
2241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2242
+  (0.3ms) rollback transaction
2243
+  (0.0ms) begin transaction
2244
+  (0.0ms) SAVEPOINT active_record_1
2245
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00]]
2246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2247
+  (0.3ms) rollback transaction
2248
+  (0.0ms) begin transaction
2249
+  (0.0ms) SAVEPOINT active_record_1
2250
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00]]
2251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2252
+  (0.0ms) SAVEPOINT active_record_1
2253
+  (0.3ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-16 15:25:02.673797' WHERE "simple_strings"."id" = 1
2254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2255
+  (0.4ms) rollback transaction
2256
+  (0.0ms) begin transaction
2257
+  (0.0ms) SAVEPOINT active_record_1
2258
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00]]
2259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2260
+  (0.3ms) rollback transaction
2261
+  (0.1ms) begin transaction
2262
+  (0.0ms) SAVEPOINT active_record_1
2263
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00]]
2264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2265
+  (0.3ms) rollback transaction
2266
+  (0.0ms) begin transaction
2267
+  (0.0ms) SAVEPOINT active_record_1
2268
+ SQL (0.4ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00]]
2269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2270
+  (0.3ms) rollback transaction
2271
+  (0.0ms) begin transaction
2272
+  (0.0ms) SAVEPOINT active_record_1
2273
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00]]
2274
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2275
+  (0.4ms) rollback transaction
2276
+  (0.0ms) begin transaction
2277
+  (0.1ms) SAVEPOINT active_record_1
2278
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00]]
2279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2280
+  (0.3ms) rollback transaction
2281
+  (0.0ms) begin transaction
2282
+  (0.0ms) SAVEPOINT active_record_1
2283
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00]]
2284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2285
+  (0.3ms) rollback transaction
2286
+  (0.0ms) begin transaction
2287
+  (0.0ms) SAVEPOINT active_record_1
2288
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 15:25:02 UTC +00:00]]
2289
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2290
+  (0.3ms) rollback transaction
2291
+  (0.0ms) begin transaction
2292
+  (0.0ms) rollback transaction
2293
+ Connecting to database specified by database.yml
2294
+  (0.5ms) begin transaction
2295
+  (0.0ms) SAVEPOINT active_record_1
2296
+ SQL (8.8ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00]]
2297
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2298
+  (0.1ms) SAVEPOINT active_record_1
2299
+  (0.5ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-16 19:31:14.770520' WHERE "simple_strings"."id" = 1
2300
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2301
+  (0.5ms) rollback transaction
2302
+  (0.1ms) begin transaction
2303
+  (0.0ms) SAVEPOINT active_record_1
2304
+ SQL (0.5ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00]]
2305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2306
+  (0.3ms) rollback transaction
2307
+  (0.0ms) begin transaction
2308
+  (0.0ms) SAVEPOINT active_record_1
2309
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00]]
2310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2311
+  (0.3ms) rollback transaction
2312
+  (0.1ms) begin transaction
2313
+  (0.0ms) SAVEPOINT active_record_1
2314
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00]]
2315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2316
+  (0.1ms) SAVEPOINT active_record_1
2317
+  (0.3ms) UPDATE "simple_strings" SET "some_string" = 'foobar', "updated_at" = '2013-02-16 19:31:14.787539' WHERE "simple_strings"."id" = 1
2318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2319
+  (0.4ms) rollback transaction
2320
+  (0.0ms) begin transaction
2321
+  (0.0ms) SAVEPOINT active_record_1
2322
+ SQL (0.6ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00]]
2323
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2324
+  (0.3ms) rollback transaction
2325
+  (0.0ms) begin transaction
2326
+  (0.0ms) SAVEPOINT active_record_1
2327
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00]]
2328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2329
+  (0.3ms) rollback transaction
2330
+  (0.0ms) begin transaction
2331
+  (0.0ms) SAVEPOINT active_record_1
2332
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00]]
2333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2334
+  (0.3ms) rollback transaction
2335
+  (0.0ms) begin transaction
2336
+  (0.0ms) SAVEPOINT active_record_1
2337
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00]]
2338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2339
+  (0.3ms) rollback transaction
2340
+  (0.0ms) begin transaction
2341
+  (0.0ms) SAVEPOINT active_record_1
2342
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00]]
2343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2344
+  (0.3ms) rollback transaction
2345
+  (0.0ms) begin transaction
2346
+  (0.0ms) SAVEPOINT active_record_1
2347
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00]]
2348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2349
+  (0.3ms) rollback transaction
2350
+  (0.0ms) begin transaction
2351
+  (0.0ms) SAVEPOINT active_record_1
2352
+ SQL (0.3ms) INSERT INTO "simple_strings" ("created_at", "some_string", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00], ["some_string", nil], ["updated_at", Sat, 16 Feb 2013 19:31:14 UTC +00:00]]
2353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2354
+  (0.3ms) rollback transaction
2355
+  (0.0ms) begin transaction
2356
+  (0.0ms) rollback transaction
@@ -69,8 +69,26 @@ class FastaccessTest < ActiveSupport::TestCase
69
69
  string.save
70
70
  assert_equal default, string.non_autoupdateable_string
71
71
  assert( ! string.non_autoupdateable_string.include?(test_string) )
72
- puts
73
- puts Fastaccess::Fastaccess.registered_options.inspect
72
+ end
73
+
74
+ def test_basic_versioning_functionality
75
+ string = SimpleString.create
76
+ version_one = :and
77
+ version_two = :or
78
+ assert_not_equal string.versioned_string(:and), string.versioned_string(:or)
79
+ end
80
+
81
+ def test_complex_versioning_functionality
82
+ string = SimpleString.create
83
+ version_one = [:and, 1, "foo"]
84
+ version_two = [:or, 5, "bar"]
85
+ generated_one = string.complex_vers_string(*version_one)
86
+ generated_two = string.complex_vers_string(*version_two)
87
+ assert_equal generated_one, string.complex_vers_string(*version_one)
88
+ assert_equal generated_two, string.complex_vers_string(*version_two)
89
+ assert_not_equal generated_one, generated_two
90
+ assert generated_one.end_with?(version_one.last)
91
+ assert generated_two.end_with?(version_two.last)
74
92
  end
75
93
 
76
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastaccess
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,33 +9,33 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-01 00:00:00.000000000 Z
12
+ date: 2013-02-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70143427385460 !ruby/object:Gem::Requirement
16
+ requirement: &70219308571800 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.2.11
21
+ version: '3.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70143427385460
24
+ version_requirements: *70219308571800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: redis
27
- requirement: &70143427384760 !ruby/object:Gem::Requirement
27
+ requirement: &70219308571300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 3.0.2
32
+ version: '3.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70143427384760
35
+ version_requirements: *70219308571300
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sqlite3
38
- requirement: &70143427383980 !ruby/object:Gem::Requirement
38
+ requirement: &70219308570920 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70143427383980
46
+ version_requirements: *70219308570920
47
47
  description: rails model-helper to store generated content in redis, for fastaccess
48
48
  email:
49
49
  - robustus@rightsrestricted.com