clipster 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,3 +2,21 @@
2
2
  Place all the styles related to the matching controller here.
3
3
  They will automatically be included in application.css.
4
4
  */
5
+
6
+ .bordered {
7
+ border: 1px solid #dddddd;
8
+ border-collapse: separate;
9
+ *border-collapse: collapse;
10
+ /*border-left: 0;*/
11
+ -webkit-border-radius: 4px;
12
+ -moz-border-radius: 4px;
13
+ border-radius: 4px;
14
+ }
15
+
16
+ .bordered div {
17
+ margin: 5px;
18
+ }
19
+
20
+ .title {
21
+ border-bottom: 1px solid #ddd;
22
+ }
@@ -11,6 +11,13 @@ module Clipster
11
11
  # get all clips, with the newest clip first
12
12
  # TODO: look into pagination and any other info
13
13
  @clips = Clip.where(:private => false).order('created_at DESC')
14
+
15
+ # you have to love the activerelation queries don't you
16
+ # should probably move to one query for performance if that becomes an issue
17
+ # or we have a large
18
+ @clips = @clips.where(:language => params[:lang]) unless params[:lang].nil?
19
+
20
+ @languages = Clip.select("language, count(*) as count").group(:language)
14
21
  end
15
22
 
16
23
  def create
@@ -24,9 +31,7 @@ module Clipster
24
31
  end
25
32
 
26
33
  # Get all languages we have syntax for and remove debugging languages.
27
- @languages = CodeRay::Scanners.all_plugins
28
- @languages.delete(CodeRay::Scanners::Raydebug)
29
- @languages.delete(CodeRay::Scanners::Debug)
34
+ @languages = get_languages
30
35
  end
31
36
 
32
37
  def show
@@ -37,5 +42,26 @@ module Clipster
37
42
  @clip_div = cr_scanner.div
38
43
  @clip_div = cr_scanner.div(:line_numbers => :table) unless cr_scanner.loc <= 1
39
44
  end
45
+
46
+ def search
47
+ @clips = Clip.search(params[:search_term])
48
+
49
+ p '\n\n\n\n'
50
+ p @clips
51
+
52
+ @languages = Clip.select("language, count(*) as count").group(:language)
53
+
54
+ render 'list' unless @clips.nil?
55
+ end
56
+
57
+ private
58
+
59
+ def get_languages
60
+ languages = CodeRay::Scanners.all_plugins
61
+ languages.delete(CodeRay::Scanners::Raydebug)
62
+ languages.delete(CodeRay::Scanners::Debug)
63
+
64
+ languages
65
+ end
40
66
  end
41
67
  end
@@ -3,6 +3,14 @@ module Clipster
3
3
  before_create :init_id
4
4
  self.primary_key = :url_hash
5
5
  attr_accessible :clip, :language, :title, :private
6
+
7
+ # scope utilized by search functionality.
8
+ # TODO: build more powerful search term creation
9
+ scope :search, lambda {|term|
10
+ where("title LIKE :term or language LIKE :term or clip LIKE :term",{
11
+ :term => term
12
+ })
13
+ }
6
14
 
7
15
  validates :clip, :length => {:minimum => 3}
8
16
  validates :title, :length => {:minimum => 1}
@@ -1,6 +1,5 @@
1
- <legend>Recent Clips</legend>
2
- <div class="span7 offset2">
3
-
1
+ <legend>Recent Clips <%= "- #{params[:lang]}" unless params[:lang].nil? %></legend>
2
+ <div class="span7">
4
3
  <table class="table table-striped table-bordered table-hover span6">
5
4
  <thead>
6
5
  <tr>
@@ -30,4 +29,10 @@
30
29
  <% end %>
31
30
  </tbody>
32
31
  </table>
33
- </div>
32
+ </div>
33
+ <aside class="languages bordered span3 offset1">
34
+ <div class="title">Languages</div>
35
+ <% @languages.each do |lang| %>
36
+ <div><%= link_to lang.language, list_clips_path(:lang => lang.language) %> (<%= lang.count %>)</div>
37
+ <% end %>
38
+ </aside>
@@ -16,8 +16,13 @@
16
16
  <%= link_to "Clipster", root_path, :class => "brand" %>
17
17
  <ul class="nav">
18
18
  <li><%= link_to "New Clip", root_path %></li>
19
- <li><%= link_to "Recent Clips", list_path %></li>
19
+ <li><%= link_to "Recent Clips", list_clips_path %></li>
20
20
  </ul>
21
+ <!-- <form class="navbar-search pull-right"> -->
22
+ <%= form_tag(search_clips_path, :method => 'get', :class => 'navbar-search pull-right') do %>
23
+ <input type="text" class="search-query" name="search_term"placeholder="Search">
24
+ <% end %>
25
+
21
26
  </div>
22
27
  </div>
23
28
  </div>
data/config/routes.rb CHANGED
@@ -1,8 +1,13 @@
1
1
  Clipster::Engine.routes.draw do
2
2
  #/clipster route
3
3
 
4
- get "list", :to => "clips#list"
5
- resources :clips, :path => "/"
4
+ resources :clips, :path => "/" do
5
+ collection do
6
+ get 'list', :action => :list
7
+ get 'list(/:lang)(.:format)', :action => :list
8
+ get 'search', :action => :search
9
+ end
10
+ end
6
11
 
7
12
  root :to => :clips
8
13
  end
@@ -1,3 +1,3 @@
1
1
  module Clipster
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
Binary file
@@ -0,0 +1,28 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20121007223631) do
15
+
16
+ create_table "clipster_clips", :force => true do |t|
17
+ t.string "url_hash", :default => "", :null => false
18
+ t.text "clip", :default => "", :null => false
19
+ t.string "language", :null => false
20
+ t.string "title", :default => "Untitled", :null => false
21
+ t.boolean "private", :default => false, :null => false
22
+ t.datetime "created_at", :null => false
23
+ t.datetime "updated_at", :null => false
24
+ end
25
+
26
+ add_index "clipster_clips", ["url_hash"], :name => "index_clipster_clips_on_hash", :unique => true
27
+
28
+ end
File without changes
@@ -1 +1,480 @@
1
1
  Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+ Connecting to database specified by database.yml
4
+  (0.2ms) select sqlite_version(*)
5
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6
+  (0.1ms) PRAGMA index_list("schema_migrations")
7
+  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9
+ Connecting to database specified by database.yml
10
+  (0.3ms) select sqlite_version(*)
11
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
12
+
13
+
14
+ Started GET "/" for 127.0.0.1 at 2012-10-10 22:17:20 -0400
15
+ Connecting to database specified by database.yml
16
+
17
+ ActionController::RoutingError (No route matches [GET] "/"):
18
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
19
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
20
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
21
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
22
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
23
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
24
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
25
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
26
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
27
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
28
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
29
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
30
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
31
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
32
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
33
+ /Users/kylebock/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
34
+ /Users/kylebock/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
35
+ /Users/kylebock/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
36
+
37
+
38
+ Rendered /Users/kylebock/.rvm/gems/ruby-1.9.3-p194@dynamic_errors/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (2.5ms)
39
+
40
+
41
+ Started GET "/clipster" for 127.0.0.1 at 2012-10-10 22:17:23 -0400
42
+ Processing by Clipster::ClipsController#index as HTML
43
+ Completed 500 Internal Server Error in 44ms
44
+
45
+ ActiveRecord::StatementInvalid (Could not find table 'clipster_clips'):
46
+ activerecord (3.2.8) lib/active_record/connection_adapters/sqlite_adapter.rb:472:in `table_structure'
47
+ activerecord (3.2.8) lib/active_record/connection_adapters/sqlite_adapter.rb:346:in `columns'
48
+ activerecord (3.2.8) lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize'
49
+ activerecord (3.2.8) lib/active_record/model_schema.rb:228:in `yield'
50
+ activerecord (3.2.8) lib/active_record/model_schema.rb:228:in `default'
51
+ activerecord (3.2.8) lib/active_record/model_schema.rb:228:in `columns'
52
+ activerecord (3.2.8) lib/active_record/model_schema.rb:243:in `column_defaults'
53
+ activerecord (3.2.8) lib/active_record/base.rb:482:in `initialize'
54
+ /Users/kylebock/Documents/dev/github/clipster_migration_app/lib/clipster/app/controllers/clipster/clips_controller.rb:24:in `new'
55
+ /Users/kylebock/Documents/dev/github/clipster_migration_app/lib/clipster/app/controllers/clipster/clips_controller.rb:24:in `create'
56
+ /Users/kylebock/Documents/dev/github/clipster_migration_app/lib/clipster/app/controllers/clipster/clips_controller.rb:6:in `index'
57
+ actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
58
+ actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action'
59
+ actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action'
60
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
61
+ activesupport (3.2.8) lib/active_support/callbacks.rb:403:in `_run__2567399741105445575__process_action__3172938027606579029__callbacks'
62
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
63
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
64
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
65
+ actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action'
66
+ actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action'
67
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
68
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `block in instrument'
69
+ activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
70
+ activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument'
71
+ actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
72
+ actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
73
+ activerecord (3.2.8) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
74
+ actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process'
75
+ actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process'
76
+ actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch'
77
+ actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
78
+ actionpack (3.2.8) lib/action_controller/metal.rb:246:in `block in action'
79
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call'
80
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
81
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call'
82
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
83
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
84
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
85
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
86
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
87
+ railties (3.2.8) lib/rails/railtie/configurable.rb:30:in `method_missing'
88
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
89
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
90
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
91
+ actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call'
92
+ actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
93
+ rack (1.4.1) lib/rack/etag.rb:23:in `call'
94
+ rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
95
+ actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call'
96
+ actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
97
+ actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call'
98
+ rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
99
+ rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
100
+ actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call'
101
+ activerecord (3.2.8) lib/active_record/query_cache.rb:64:in `call'
102
+ activerecord (3.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call'
103
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
104
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__606415735569931869__call__1340605003951080016__callbacks'
105
+ activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback'
106
+ activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
107
+ activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks'
108
+ actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
109
+ actionpack (3.2.8) lib/action_dispatch/middleware/reloader.rb:65:in `call'
110
+ actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
111
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
112
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
113
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
114
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
115
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
116
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
117
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
118
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
119
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
120
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
121
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
122
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
123
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
124
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
125
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
126
+ /Users/kylebock/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
127
+ /Users/kylebock/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
128
+ /Users/kylebock/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
129
+
130
+
131
+ Rendered /Users/kylebock/.rvm/gems/ruby-1.9.3-p194@dynamic_errors/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.8ms)
132
+ Rendered /Users/kylebock/.rvm/gems/ruby-1.9.3-p194@dynamic_errors/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.6ms)
133
+ Rendered /Users/kylebock/.rvm/gems/ruby-1.9.3-p194@dynamic_errors/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (13.6ms)
134
+ Connecting to database specified by database.yml
135
+  (0.3ms) select sqlite_version(*)
136
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
137
+ Connecting to database specified by database.yml
138
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
139
+ Migrating to CreateClipsterClips (20121011021849)
140
+  (0.0ms) select sqlite_version(*)
141
+  (0.0ms) begin transaction
142
+  (0.7ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) NOT NULL, "clip" text NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
143
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121011021849')
144
+  (1.3ms) commit transaction
145
+ Migrating to AddHashIndexToClips (20121011021850)
146
+  (0.0ms) begin transaction
147
+  (0.1ms) PRAGMA index_list("clipster_clips")
148
+  (0.4ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("hash")
149
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121011021850')
150
+  (1.3ms) commit transaction
151
+ Migrating to PopulateClipDefaults (20121011021851)
152
+  (0.1ms) begin transaction
153
+  (0.6ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) NOT NULL, "clip" text NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
154
+  (0.0ms) PRAGMA index_list("clipster_clips")
155
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
156
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
157
+  (0.5ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("hash")
158
+  (0.2ms) SELECT * FROM "clipster_clips"
159
+  (0.4ms) DROP TABLE "clipster_clips"
160
+  (0.2ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
161
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
162
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
163
+  (0.0ms) PRAGMA index_list("clipster_clips")
164
+  (0.5ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("hash")
165
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
166
+  (0.2ms) DROP TABLE "altered_clipster_clips"
167
+  (0.2ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
168
+  (0.0ms) PRAGMA index_list("clipster_clips")
169
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
170
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
171
+  (0.1ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("hash")
172
+  (0.1ms) SELECT * FROM "clipster_clips"
173
+  (0.2ms) DROP TABLE "clipster_clips"
174
+  (0.2ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
175
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
176
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
177
+  (0.0ms) PRAGMA index_list("clipster_clips")
178
+  (0.2ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("hash")
179
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
180
+  (0.1ms) DROP TABLE "altered_clipster_clips"
181
+  (0.2ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
182
+  (0.0ms) PRAGMA index_list("clipster_clips")
183
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
184
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
185
+  (0.2ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("hash")
186
+  (0.1ms) SELECT * FROM "clipster_clips"
187
+  (0.2ms) DROP TABLE "clipster_clips"
188
+  (0.3ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
189
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
190
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
191
+  (0.0ms) PRAGMA index_list("clipster_clips")
192
+  (0.2ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("hash")
193
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
194
+  (0.2ms) DROP TABLE "altered_clipster_clips"
195
+  (0.2ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
196
+  (0.0ms) PRAGMA index_list("clipster_clips")
197
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
198
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
199
+  (0.3ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("hash")
200
+  (0.1ms) SELECT * FROM "clipster_clips"
201
+  (0.2ms) DROP TABLE "clipster_clips"
202
+  (0.2ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) DEFAULT '' NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
203
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
204
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
205
+  (0.0ms) PRAGMA index_list("clipster_clips")
206
+  (0.1ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("hash")
207
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
208
+  (0.1ms) DROP TABLE "altered_clipster_clips"
209
+  (0.2ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) DEFAULT '' NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
210
+  (0.0ms) PRAGMA index_list("clipster_clips")
211
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
212
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
213
+  (0.1ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("hash")
214
+  (0.1ms) SELECT * FROM "clipster_clips"
215
+  (0.1ms) DROP TABLE "clipster_clips"
216
+  (0.3ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) DEFAULT '' NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
217
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
218
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
219
+  (0.0ms) PRAGMA index_list("clipster_clips")
220
+  (0.2ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("hash")
221
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
222
+  (0.2ms) DROP TABLE "altered_clipster_clips"
223
+  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121011021851')
224
+  (2.0ms) commit transaction
225
+ Migrating to RenameHashToUrlHash (20121011021852)
226
+  (0.1ms) begin transaction
227
+  (0.3ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) DEFAULT '' NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
228
+  (0.0ms) PRAGMA index_list("clipster_clips")
229
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
230
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
231
+  (0.2ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("url_hash")
232
+  (0.1ms) SELECT * FROM "clipster_clips"
233
+  (0.3ms) DROP TABLE "clipster_clips"
234
+  (0.2ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) DEFAULT '' NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
235
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
236
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
237
+  (0.0ms) PRAGMA index_list("clipster_clips")
238
+  (0.4ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("url_hash")
239
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
240
+  (0.2ms) DROP TABLE "altered_clipster_clips"
241
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121011021852')
242
+  (1.9ms) commit transaction
243
+ Migrating to RemoveDefaultFromLanguage (20121011021853)
244
+  (0.1ms) begin transaction
245
+  (0.3ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) DEFAULT '' NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
246
+  (0.0ms) PRAGMA index_list("clipster_clips")
247
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
248
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
249
+  (0.2ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("url_hash")
250
+  (0.1ms) SELECT * FROM "clipster_clips"
251
+  (0.3ms) DROP TABLE "clipster_clips"
252
+  (0.2ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
253
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
254
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
255
+  (0.0ms) PRAGMA index_list("clipster_clips")
256
+  (0.4ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("url_hash")
257
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
258
+  (0.2ms) DROP TABLE "altered_clipster_clips"
259
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121011021853')
260
+  (1.4ms) commit transaction
261
+ Migrating to SetDefaultTitleToUntitled (20121011021854)
262
+  (0.1ms) begin transaction
263
+  (0.2ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
264
+  (0.0ms) PRAGMA index_list("clipster_clips")
265
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
266
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
267
+  (0.2ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("url_hash")
268
+  (0.1ms) SELECT * FROM "clipster_clips"
269
+  (0.3ms) DROP TABLE "clipster_clips"
270
+  (0.2ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT 'Untitled' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
271
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
272
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
273
+  (0.0ms) PRAGMA index_list("clipster_clips")
274
+  (0.5ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("url_hash")
275
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
276
+  (0.2ms) DROP TABLE "altered_clipster_clips"
277
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121011021854')
278
+  (2.1ms) commit transaction
279
+  (0.6ms) select sqlite_version(*)
280
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
281
+  (0.1ms) PRAGMA index_list("clipster_clips")
282
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
283
+ Connecting to database specified by database.yml
284
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
285
+  (3.2ms) select sqlite_version(*)
286
+  (1.9ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT 'Untitled' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
287
+  (0.1ms) PRAGMA index_list("clipster_clips")
288
+  (1.3ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("url_hash")
289
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
290
+  (0.0ms) PRAGMA index_list("schema_migrations")
291
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
292
+  (0.1ms) SELECT version FROM "schema_migrations"
293
+  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021854')
294
+  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021849')
295
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021850')
296
+  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021851')
297
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021852')
298
+  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021853')
299
+ Connecting to database specified by database.yml
300
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
301
+  (0.4ms) select sqlite_version(*)
302
+  (2.1ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT 'Untitled' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
303
+  (0.1ms) PRAGMA index_list("clipster_clips")
304
+  (1.4ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("url_hash")
305
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
306
+  (0.0ms) PRAGMA index_list("schema_migrations")
307
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
308
+  (0.1ms) SELECT version FROM "schema_migrations"
309
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021854')
310
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021849')
311
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021850')
312
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021851')
313
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021852')
314
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021853')
315
+ Connecting to database specified by database.yml
316
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
317
+  (0.3ms) select sqlite_version(*)
318
+  (2.2ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT 'Untitled' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
319
+  (0.1ms) PRAGMA index_list("clipster_clips")
320
+  (2.1ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("url_hash")
321
+  (7.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
322
+  (0.1ms) PRAGMA index_list("schema_migrations")
323
+  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
324
+  (0.1ms) SELECT version FROM "schema_migrations"
325
+  (8.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021854')
326
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021849')
327
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021850')
328
+  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021851')
329
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021852')
330
+  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20121011021853')
331
+ Connecting to database specified by database.yml
332
+ Connecting to database specified by database.yml
333
+  (0.2ms) select sqlite_version(*)
334
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
335
+  (0.0ms) PRAGMA index_list("schema_migrations")
336
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
337
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
338
+ Migrating to CreateClipsterClips (20121004010757)
339
+  (0.0ms) begin transaction
340
+  (0.6ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) NOT NULL, "clip" text NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
341
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121004010757')
342
+  (3.1ms) commit transaction
343
+ Migrating to AddHashIndexToClips (20121007154400)
344
+  (0.1ms) begin transaction
345
+  (0.1ms) PRAGMA index_list("clipster_clips")
346
+  (0.4ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("hash")
347
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121007154400')
348
+  (1.4ms) commit transaction
349
+ Migrating to PopulateClipDefaults (20121007155125)
350
+  (0.0ms) begin transaction
351
+  (0.7ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) NOT NULL, "clip" text NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
352
+  (0.0ms) PRAGMA index_list("clipster_clips")
353
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
354
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
355
+  (0.4ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("hash")
356
+  (0.1ms) SELECT * FROM "clipster_clips"
357
+  (0.4ms) DROP TABLE "clipster_clips"
358
+  (0.2ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
359
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
360
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
361
+  (0.0ms) PRAGMA index_list("clipster_clips")
362
+  (0.4ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("hash")
363
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
364
+  (0.2ms) DROP TABLE "altered_clipster_clips"
365
+  (0.2ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
366
+  (0.0ms) PRAGMA index_list("clipster_clips")
367
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
368
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
369
+  (0.2ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("hash")
370
+  (0.1ms) SELECT * FROM "clipster_clips"
371
+  (0.2ms) DROP TABLE "clipster_clips"
372
+  (0.2ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
373
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
374
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
375
+  (0.0ms) PRAGMA index_list("clipster_clips")
376
+  (0.2ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("hash")
377
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
378
+  (0.1ms) DROP TABLE "altered_clipster_clips"
379
+  (0.2ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
380
+  (0.0ms) PRAGMA index_list("clipster_clips")
381
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
382
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
383
+  (0.2ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("hash")
384
+  (0.1ms) SELECT * FROM "clipster_clips"
385
+  (0.1ms) DROP TABLE "clipster_clips"
386
+  (0.2ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
387
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
388
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
389
+  (0.0ms) PRAGMA index_list("clipster_clips")
390
+  (0.3ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("hash")
391
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
392
+  (0.2ms) DROP TABLE "altered_clipster_clips"
393
+  (0.2ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
394
+  (0.0ms) PRAGMA index_list("clipster_clips")
395
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
396
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
397
+  (0.2ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("hash")
398
+  (0.1ms) SELECT * FROM "clipster_clips"
399
+  (0.2ms) DROP TABLE "clipster_clips"
400
+  (0.3ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) DEFAULT '' NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
401
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
402
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
403
+  (0.0ms) PRAGMA index_list("clipster_clips")
404
+  (0.2ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("hash")
405
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
406
+  (0.2ms) DROP TABLE "altered_clipster_clips"
407
+  (0.5ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) DEFAULT '' NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
408
+  (0.0ms) PRAGMA index_list("clipster_clips")
409
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
410
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
411
+  (0.2ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("hash")
412
+  (0.1ms) SELECT * FROM "clipster_clips"
413
+  (0.2ms) DROP TABLE "clipster_clips"
414
+  (0.4ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) DEFAULT '' NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
415
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
416
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
417
+  (0.0ms) PRAGMA index_list("clipster_clips")
418
+  (0.2ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("hash")
419
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
420
+  (0.2ms) DROP TABLE "altered_clipster_clips"
421
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121007155125')
422
+  (1.9ms) commit transaction
423
+ Migrating to RenameHashToUrlHash (20121007162741)
424
+  (0.1ms) begin transaction
425
+  (0.3ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) DEFAULT '' NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
426
+  (0.0ms) PRAGMA index_list("clipster_clips")
427
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
428
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
429
+  (0.2ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("url_hash")
430
+  (0.2ms) SELECT * FROM "clipster_clips"
431
+  (0.4ms) DROP TABLE "clipster_clips"
432
+  (0.6ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) DEFAULT '' NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
433
+  (0.1ms) PRAGMA index_list("altered_clipster_clips")
434
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
435
+  (0.1ms) PRAGMA index_list("clipster_clips")
436
+  (0.6ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("url_hash")
437
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
438
+  (2.4ms) DROP TABLE "altered_clipster_clips"
439
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121007162741')
440
+  (2.1ms) commit transaction
441
+ Migrating to RemoveDefaultFromLanguage (20121007223358)
442
+  (0.1ms) begin transaction
443
+  (0.3ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) DEFAULT '' NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
444
+  (0.0ms) PRAGMA index_list("clipster_clips")
445
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
446
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
447
+  (0.3ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("url_hash")
448
+  (0.2ms) SELECT * FROM "clipster_clips"
449
+  (0.4ms) DROP TABLE "clipster_clips"
450
+  (0.2ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
451
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
452
+  (0.0ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
453
+  (0.0ms) PRAGMA index_list("clipster_clips")
454
+  (3.2ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("url_hash")
455
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
456
+  (0.2ms) DROP TABLE "altered_clipster_clips"
457
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121007223358')
458
+  (2.4ms) commit transaction
459
+ Migrating to SetDefaultTitleToUntitled (20121007223631)
460
+  (0.1ms) begin transaction
461
+  (0.4ms) CREATE TEMPORARY TABLE "altered_clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
462
+  (0.0ms) PRAGMA index_list("clipster_clips")
463
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
464
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
465
+  (0.2ms) CREATE UNIQUE INDEX "temp_index_altered_clipster_clips_on_hash" ON "altered_clipster_clips" ("url_hash")
466
+  (0.2ms) SELECT * FROM "clipster_clips"
467
+  (0.3ms) DROP TABLE "clipster_clips"
468
+  (0.2ms) CREATE TABLE "clipster_clips" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_hash" varchar(255) DEFAULT '' NOT NULL, "clip" text DEFAULT '' NOT NULL, "language" varchar(255) NOT NULL, "title" varchar(255) DEFAULT 'Untitled' NOT NULL, "private" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
469
+  (0.0ms) PRAGMA index_list("altered_clipster_clips")
470
+  (0.1ms) PRAGMA index_info('temp_index_altered_clipster_clips_on_hash')
471
+  (0.0ms) PRAGMA index_list("clipster_clips")
472
+  (0.6ms) CREATE UNIQUE INDEX "index_clipster_clips_on_hash" ON "clipster_clips" ("url_hash")
473
+  (0.1ms) SELECT * FROM "altered_clipster_clips"
474
+  (1.3ms) DROP TABLE "altered_clipster_clips"
475
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121007223631')
476
+  (2.1ms) commit transaction
477
+  (0.4ms) select sqlite_version(*)
478
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
479
+  (0.0ms) PRAGMA index_list("clipster_clips")
480
+  (0.0ms) PRAGMA index_info('index_clipster_clips_on_hash')
@@ -1,3 +1,19 @@
1
1
  Connecting to database specified by database.yml
2
2
  Connecting to database specified by database.yml
3
3
  Connecting to database specified by database.yml
4
+ Connecting to database specified by database.yml
5
+  (0.5ms) begin transaction
6
+  (0.0ms) rollback transaction
7
+  (0.1ms) begin transaction
8
+  (0.0ms) rollback transaction
9
+ Connecting to database specified by database.yml
10
+  (0.5ms) begin transaction
11
+  (0.0ms) rollback transaction
12
+  (0.1ms) begin transaction
13
+  (0.0ms) rollback transaction
14
+ Connecting to database specified by database.yml
15
+ Connecting to database specified by database.yml
16
+  (0.4ms) begin transaction
17
+  (0.0ms) rollback transaction
18
+  (0.1ms) begin transaction
19
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clipster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-09 00:00:00.000000000 Z
13
+ date: 2012-10-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -153,6 +153,9 @@ files:
153
153
  - test/dummy/config/locales/en.yml
154
154
  - test/dummy/config/routes.rb
155
155
  - test/dummy/config.ru
156
+ - test/dummy/db/development.sqlite3
157
+ - test/dummy/db/schema.rb
158
+ - test/dummy/db/test.sqlite3
156
159
  - test/dummy/log/development.log
157
160
  - test/dummy/log/test.log
158
161
  - test/dummy/public/404.html
@@ -216,6 +219,9 @@ test_files:
216
219
  - test/dummy/config/locales/en.yml
217
220
  - test/dummy/config/routes.rb
218
221
  - test/dummy/config.ru
222
+ - test/dummy/db/development.sqlite3
223
+ - test/dummy/db/schema.rb
224
+ - test/dummy/db/test.sqlite3
219
225
  - test/dummy/log/development.log
220
226
  - test/dummy/log/test.log
221
227
  - test/dummy/public/404.html