sketchily 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/Rakefile +5 -4
- data/app/assets/javascripts/sketchily_embed.js +1 -1
- data/app/assets/javascripts/sketchily_embed.js~ +0 -3
- data/app/views/sketchily/_embed.html.erb +27 -4
- data/app/views/sketchily/_embed.html.erb~ +27 -5
- data/app/views/sketchily/_embed.js.erb +6 -3
- data/app/views/sketchily/_embed.js.erb~ +4 -4
- data/lib/sketchily.rb +1 -10
- data/lib/sketchily.rb~ +2 -11
- data/lib/sketchily/sketchily.rb +18 -6
- data/lib/sketchily/sketchily.rb~ +19 -6
- data/lib/sketchily/sketchily_tag.rb +9 -3
- data/lib/sketchily/sketchily_tag.rb~ +10 -3
- data/lib/sketchily/version.rb +1 -1
- data/lib/sketchily/version.rb~ +1 -1
- data/spec/dummy/app/controllers/sketchily_controller.rb +9 -0
- data/spec/dummy/app/models/drawing.rb +2 -0
- data/spec/dummy/app/models/drawing.rb~ +3 -0
- data/spec/dummy/app/views/sketchily/sketchily.html.erb +3 -0
- data/spec/dummy/app/views/sketchily/sketchily_tag.html.erb +3 -0
- data/spec/dummy/config/routes.rb +3 -56
- data/spec/dummy/config/routes.rb~ +5 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20130211122120_create_drawings.rb +7 -0
- data/spec/dummy/db/schema.rb +20 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +192 -0
- data/spec/dummy/log/test.log +75 -0
- data/spec/features/sketchily.rb~ +9 -0
- data/spec/features/sketchily_spec.rb +10 -0
- data/spec/features/sketchily_spec.rb~ +9 -0
- data/spec/features/sketchily_tag.rb~ +9 -0
- data/spec/features/sketchily_tag_spec.rb +10 -0
- data/spec/features/sketchily_tag_spec.rb~ +9 -0
- data/spec/features/user_views_sketchily_spec.rb~ +15 -0
- data/spec/{spec_helper.rb → minitest_helper.rb} +2 -1
- data/spec/spec_helper.rb~ +19 -0
- data/vendor/assets/javascripts/base64.js +95 -0
- data/vendor/assets/javascripts/base64.js~ +95 -0
- metadata +76 -4
Binary file
|
@@ -0,0 +1,20 @@
|
|
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 => 20130211122120) do
|
15
|
+
|
16
|
+
create_table "drawings", :force => true do |t|
|
17
|
+
t.text "svg"
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
Binary file
|
@@ -7,3 +7,195 @@ Connecting to database specified by database.yml
|
|
7
7
|
Connecting to database specified by database.yml
|
8
8
|
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (17.6ms)
|
9
9
|
Connecting to database specified by database.yml
|
10
|
+
Connecting to database specified by database.yml
|
11
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
12
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
13
|
+
[1m[36m (13.6ms)[0m [1mCREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text) [0m
|
14
|
+
[1m[35m (6.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
15
|
+
[1m[36m (5.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
16
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
17
|
+
[1m[36m (5.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130211122120')[0m
|
18
|
+
Connecting to database specified by database.yml
|
19
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
20
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
21
|
+
[1m[36m (13.8ms)[0m [1mDROP TABLE "drawings"[0m
|
22
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
23
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
24
|
+
Connecting to database specified by database.yml
|
25
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
26
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
27
|
+
[1m[36m (13.3ms)[0m [1mDROP TABLE "drawings"[0m
|
28
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
29
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
30
|
+
Connecting to database specified by database.yml
|
31
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
32
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
33
|
+
[1m[36m (20.4ms)[0m [1mDROP TABLE "drawings"[0m
|
34
|
+
[1m[35m (4.3ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
35
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
36
|
+
Connecting to database specified by database.yml
|
37
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
38
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
39
|
+
[1m[36m (14.4ms)[0m [1mDROP TABLE "drawings"[0m
|
40
|
+
[1m[35m (5.1ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
41
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
42
|
+
Connecting to database specified by database.yml
|
43
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
44
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
45
|
+
[1m[36m (27.8ms)[0m [1mDROP TABLE "drawings"[0m
|
46
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
47
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
48
|
+
Connecting to database specified by database.yml
|
49
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
50
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
51
|
+
[1m[36m (14.2ms)[0m [1mDROP TABLE "drawings"[0m
|
52
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
53
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
54
|
+
Connecting to database specified by database.yml
|
55
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
56
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
57
|
+
[1m[36m (8.1ms)[0m [1mDROP TABLE "drawings"[0m
|
58
|
+
[1m[35m (5.0ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
59
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
60
|
+
Connecting to database specified by database.yml
|
61
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
62
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
63
|
+
[1m[36m (14.0ms)[0m [1mDROP TABLE "drawings"[0m
|
64
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
65
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
66
|
+
Connecting to database specified by database.yml
|
67
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
68
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
69
|
+
[1m[36m (14.1ms)[0m [1mDROP TABLE "drawings"[0m
|
70
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
71
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
72
|
+
Connecting to database specified by database.yml
|
73
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
74
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
75
|
+
[1m[36m (16.4ms)[0m [1mDROP TABLE "drawings"[0m
|
76
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
77
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
78
|
+
Connecting to database specified by database.yml
|
79
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
80
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
81
|
+
[1m[36m (48.9ms)[0m [1mDROP TABLE "drawings"[0m
|
82
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
83
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
84
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
85
|
+
Migrating to CreateDrawings (20130211122120)
|
86
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
87
|
+
Connecting to database specified by database.yml
|
88
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
89
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
90
|
+
[1m[36m (12.5ms)[0m [1mDROP TABLE "drawings"[0m
|
91
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
92
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
93
|
+
Connecting to database specified by database.yml
|
94
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
95
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
96
|
+
[1m[36m (12.0ms)[0m [1mDROP TABLE "drawings"[0m
|
97
|
+
[1m[35m (3.9ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
98
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
99
|
+
Connecting to database specified by database.yml
|
100
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
101
|
+
Migrating to CreateDrawings (20130211122120)
|
102
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
103
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
104
|
+
Connecting to database specified by database.yml
|
105
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
106
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
107
|
+
[1m[36m (12.9ms)[0m [1mCREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text) [0m
|
108
|
+
[1m[35m (5.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
109
|
+
[1m[36m (5.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
110
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
111
|
+
[1m[36m (4.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130211122120')[0m
|
112
|
+
Connecting to database specified by database.yml
|
113
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
114
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
115
|
+
[1m[36m (11.5ms)[0m [1mDROP TABLE "drawings"[0m
|
116
|
+
[1m[35m (4.3ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
117
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
118
|
+
Connecting to database specified by database.yml
|
119
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
120
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
121
|
+
[1m[36m (14.0ms)[0m [1mDROP TABLE "drawings"[0m
|
122
|
+
[1m[35m (4.0ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
123
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
124
|
+
Connecting to database specified by database.yml
|
125
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
126
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
127
|
+
[1m[36m (50.7ms)[0m [1mDROP TABLE "drawings"[0m
|
128
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
129
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
130
|
+
Connecting to database specified by database.yml
|
131
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
132
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
133
|
+
[1m[36m (13.5ms)[0m [1mDROP TABLE "drawings"[0m
|
134
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
135
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
136
|
+
Connecting to database specified by database.yml
|
137
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
138
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
139
|
+
[1m[36m (13.5ms)[0m [1mDROP TABLE "drawings"[0m
|
140
|
+
[1m[35m (5.0ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
141
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
142
|
+
Connecting to database specified by database.yml
|
143
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
144
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
145
|
+
[1m[36m (8.6ms)[0m [1mDROP TABLE "drawings"[0m
|
146
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
147
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
148
|
+
Connecting to database specified by database.yml
|
149
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
150
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
151
|
+
[1m[36m (13.8ms)[0m [1mDROP TABLE "drawings"[0m
|
152
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
153
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
154
|
+
Connecting to database specified by database.yml
|
155
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
156
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
157
|
+
[1m[36m (34.6ms)[0m [1mDROP TABLE "drawings"[0m
|
158
|
+
[1m[35m (4.0ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
159
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
160
|
+
Connecting to database specified by database.yml
|
161
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
162
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
163
|
+
[1m[36m (13.2ms)[0m [1mDROP TABLE "drawings"[0m
|
164
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
165
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
166
|
+
Connecting to database specified by database.yml
|
167
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
168
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
169
|
+
[1m[36m (13.1ms)[0m [1mDROP TABLE "drawings"[0m
|
170
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
171
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
172
|
+
Connecting to database specified by database.yml
|
173
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
174
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
175
|
+
[1m[36m (11.9ms)[0m [1mDROP TABLE "drawings"[0m
|
176
|
+
[1m[35m (4.0ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
177
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
178
|
+
Connecting to database specified by database.yml
|
179
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
180
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
181
|
+
[1m[36m (30.3ms)[0m [1mDROP TABLE "drawings"[0m
|
182
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
183
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
184
|
+
Connecting to database specified by database.yml
|
185
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
186
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
187
|
+
[1m[36m (15.9ms)[0m [1mDROP TABLE "drawings"[0m
|
188
|
+
[1m[35m (4.0ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
189
|
+
[1m[36m (0.0ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
190
|
+
Connecting to database specified by database.yml
|
191
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
192
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
193
|
+
[1m[36m (14.6ms)[0m [1mDROP TABLE "drawings"[0m
|
194
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
195
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
196
|
+
Connecting to database specified by database.yml
|
197
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
198
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
199
|
+
[1m[36m (13.6ms)[0m [1mDROP TABLE "drawings"[0m
|
200
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "drawings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "svg" text)
|
201
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
@@ -0,0 +1,75 @@
|
|
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
|
+
Connecting to database specified by database.yml
|
5
|
+
Connecting to database specified by database.yml
|
6
|
+
Connecting to database specified by database.yml
|
7
|
+
Connecting to database specified by database.yml
|
8
|
+
Connecting to database specified by database.yml
|
9
|
+
Connecting to database specified by database.yml
|
10
|
+
Connecting to database specified by database.yml
|
11
|
+
Connecting to database specified by database.yml
|
12
|
+
Connecting to database specified by database.yml
|
13
|
+
Connecting to database specified by database.yml
|
14
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
15
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18
|
+
Connecting to database specified by database.yml
|
19
|
+
Connecting to database specified by database.yml
|
20
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
21
|
+
Started GET "/sketchily" for 127.0.0.1 at 2013-03-04 18:41:30 -0600
|
22
|
+
Processing by SketchilyController#sketchily as HTML
|
23
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.js.erb (1.0ms)
|
24
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (3.4ms)
|
25
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (4.4ms)
|
26
|
+
Rendered sketchily/sketchily.html.erb within layouts/application (9.6ms)
|
27
|
+
Completed 200 OK in 65ms (Views: 33.0ms | ActiveRecord: 1.0ms)
|
28
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
29
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
30
|
+
Started GET "/sketchily_tag" for 127.0.0.1 at 2013-03-04 18:41:30 -0600
|
31
|
+
Processing by SketchilyController#sketchily_tag as HTML
|
32
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.js.erb (0.1ms)
|
33
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (1.4ms)
|
34
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily_tag.html.erb (2.0ms)
|
35
|
+
Rendered sketchily/sketchily_tag.html.erb within layouts/application (3.2ms)
|
36
|
+
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
37
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
38
|
+
Connecting to database specified by database.yml
|
39
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
40
|
+
Started GET "/sketchily" for 127.0.0.1 at 2013-03-04 18:42:40 -0600
|
41
|
+
Processing by SketchilyController#sketchily as HTML
|
42
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.js.erb (1.0ms)
|
43
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (3.2ms)
|
44
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (4.3ms)
|
45
|
+
Rendered sketchily/sketchily.html.erb within layouts/application (9.4ms)
|
46
|
+
Completed 200 OK in 65ms (Views: 32.7ms | ActiveRecord: 1.0ms)
|
47
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
48
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
49
|
+
Started GET "/sketchily_tag" for 127.0.0.1 at 2013-03-04 18:42:40 -0600
|
50
|
+
Processing by SketchilyController#sketchily_tag as HTML
|
51
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.js.erb (0.1ms)
|
52
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (1.4ms)
|
53
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily_tag.html.erb (2.0ms)
|
54
|
+
Rendered sketchily/sketchily_tag.html.erb within layouts/application (3.3ms)
|
55
|
+
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
56
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
57
|
+
Connecting to database specified by database.yml
|
58
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
59
|
+
Started GET "/sketchily" for 127.0.0.1 at 2013-03-04 18:43:02 -0600
|
60
|
+
Processing by SketchilyController#sketchily as HTML
|
61
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.js.erb (1.0ms)
|
62
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (3.2ms)
|
63
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily.html.erb (4.3ms)
|
64
|
+
Rendered sketchily/sketchily.html.erb within layouts/application (9.3ms)
|
65
|
+
Completed 200 OK in 64ms (Views: 32.1ms | ActiveRecord: 1.0ms)
|
66
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
67
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
68
|
+
Started GET "/sketchily_tag" for 127.0.0.1 at 2013-03-04 18:43:02 -0600
|
69
|
+
Processing by SketchilyController#sketchily_tag as HTML
|
70
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.js.erb (0.1ms)
|
71
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_embed.html.erb (1.4ms)
|
72
|
+
Rendered /home/dantemss/Desktop/sketchily/app/views/sketchily/_sketchily_tag.html.erb (2.0ms)
|
73
|
+
Rendered sketchily/sketchily_tag.html.erb within layouts/application (3.2ms)
|
74
|
+
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
75
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require "minitest_helper"
|
2
|
+
|
3
|
+
# To be handled correctly by Capybara this spec must end with "Feature Test"
|
4
|
+
feature "Sketchily Feature Test" do
|
5
|
+
scenario "should render the sketchily html" do
|
6
|
+
visit sketchily_path
|
7
|
+
page.must_have_selector("#svgedit_drawing_svg")
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require "minitest_helper"
|
2
|
+
|
3
|
+
# To be handled correctly by Capybara this spec must end with "Feature Test"
|
4
|
+
feature "Sketchily Tag Feature Test" do
|
5
|
+
scenario "should render the sketchily_tag html" do
|
6
|
+
visit sketchily_tag_path
|
7
|
+
page.must_have_selector("#svgedit_drawing")
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Viewing sketchily' do
|
4
|
+
|
5
|
+
it 'should render the sketchily html through the form sketchily helper' do
|
6
|
+
visit sketchily_path
|
7
|
+
page.must_have_selector('#svgedit_drawing_svg')
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'should render the sketchily html through the sketchily_tag helper' do
|
11
|
+
visit sketchily_tag_path
|
12
|
+
page.should have_selector('#svgedit_drawing')
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
@@ -2,10 +2,11 @@
|
|
2
2
|
ENV["RAILS_ENV"] = "test"
|
3
3
|
|
4
4
|
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
-
require "rails/test_help"
|
6
5
|
|
7
6
|
require "minitest/autorun"
|
8
7
|
require "minitest/rails"
|
9
8
|
|
9
|
+
require "minitest/rails/capybara"
|
10
|
+
|
10
11
|
Rails.backtrace_cleaner.remove_silencers!
|
11
12
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
|
6
|
+
require "minitest/autorun"
|
7
|
+
require "minitest/rails"
|
8
|
+
|
9
|
+
require "minitest/rails/capybara"
|
10
|
+
|
11
|
+
Rails.backtrace_cleaner.remove_silencers!
|
12
|
+
|
13
|
+
class ActiveSupport::TestCase
|
14
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
15
|
+
fixtures :all
|
16
|
+
|
17
|
+
# Add more helper methods to be used by all tests here...
|
18
|
+
end
|
19
|
+
|
@@ -0,0 +1,95 @@
|
|
1
|
+
// This code was written by Tyler Akins and has been placed in the
|
2
|
+
// public domain. It would be nice if you left this header intact.
|
3
|
+
// Base64 code from Tyler Akins -- http://rumkin.com
|
4
|
+
|
5
|
+
// schiller: Removed string concatenation in favour of Array.join() optimization,
|
6
|
+
// also precalculate the size of the array needed.
|
7
|
+
|
8
|
+
// Function: sketchily_encode64
|
9
|
+
// Converts a string to base64
|
10
|
+
var sketchily_encode64 = function(input) {
|
11
|
+
// base64 strings are 4/3 larger than the original string
|
12
|
+
input = sketchily_convertToXMLReferences(input);
|
13
|
+
if(window.btoa) return window.btoa(input); // Use native if available
|
14
|
+
var output = new Array( Math.floor( (input.length + 2) / 3 ) * 4 );
|
15
|
+
var chr1, chr2, chr3;
|
16
|
+
var enc1, enc2, enc3, enc4;
|
17
|
+
var i = 0, p = 0;
|
18
|
+
|
19
|
+
do {
|
20
|
+
chr1 = input.charCodeAt(i++);
|
21
|
+
chr2 = input.charCodeAt(i++);
|
22
|
+
chr3 = input.charCodeAt(i++);
|
23
|
+
|
24
|
+
enc1 = chr1 >> 2;
|
25
|
+
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
|
26
|
+
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
|
27
|
+
enc4 = chr3 & 63;
|
28
|
+
|
29
|
+
if (isNaN(chr2)) {
|
30
|
+
enc3 = enc4 = 64;
|
31
|
+
} else if (isNaN(chr3)) {
|
32
|
+
enc4 = 64;
|
33
|
+
}
|
34
|
+
|
35
|
+
output[p++] = KEYSTR.charAt(enc1);
|
36
|
+
output[p++] = KEYSTR.charAt(enc2);
|
37
|
+
output[p++] = KEYSTR.charAt(enc3);
|
38
|
+
output[p++] = KEYSTR.charAt(enc4);
|
39
|
+
} while (i < input.length);
|
40
|
+
|
41
|
+
return output.join('');
|
42
|
+
};
|
43
|
+
|
44
|
+
// Function: sketchily_decode64
|
45
|
+
// Converts a string from base64
|
46
|
+
var sketchily_decode64 = function(input) {
|
47
|
+
if(window.atob) return window.atob(input);
|
48
|
+
var output = "";
|
49
|
+
var chr1, chr2, chr3 = "";
|
50
|
+
var enc1, enc2, enc3, enc4 = "";
|
51
|
+
var i = 0;
|
52
|
+
|
53
|
+
// remove all characters that are not A-Z, a-z, 0-9, +, /, or =
|
54
|
+
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
|
55
|
+
|
56
|
+
do {
|
57
|
+
enc1 = KEYSTR.indexOf(input.charAt(i++));
|
58
|
+
enc2 = KEYSTR.indexOf(input.charAt(i++));
|
59
|
+
enc3 = KEYSTR.indexOf(input.charAt(i++));
|
60
|
+
enc4 = KEYSTR.indexOf(input.charAt(i++));
|
61
|
+
|
62
|
+
chr1 = (enc1 << 2) | (enc2 >> 4);
|
63
|
+
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
|
64
|
+
chr3 = ((enc3 & 3) << 6) | enc4;
|
65
|
+
|
66
|
+
output = output + String.fromCharCode(chr1);
|
67
|
+
|
68
|
+
if (enc3 != 64) {
|
69
|
+
output = output + String.fromCharCode(chr2);
|
70
|
+
}
|
71
|
+
if (enc4 != 64) {
|
72
|
+
output = output + String.fromCharCode(chr3);
|
73
|
+
}
|
74
|
+
|
75
|
+
chr1 = chr2 = chr3 = "";
|
76
|
+
enc1 = enc2 = enc3 = enc4 = "";
|
77
|
+
|
78
|
+
} while (i < input.length);
|
79
|
+
return unescape(output);
|
80
|
+
};
|
81
|
+
|
82
|
+
// Function: sketchily_convertToXMLReferences
|
83
|
+
// Converts a string to use XML references
|
84
|
+
var sketchily_convertToXMLReferences = function(input) {
|
85
|
+
var output = '';
|
86
|
+
for (var n = 0; n < input.length; n++){
|
87
|
+
var c = input.charCodeAt(n);
|
88
|
+
if (c < 128) {
|
89
|
+
output += input[n];
|
90
|
+
} else if(c > 127) {
|
91
|
+
output += ("&#" + c + ";");
|
92
|
+
}
|
93
|
+
}
|
94
|
+
return output;
|
95
|
+
};
|