hopskip 0.0.6 → 0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Hopskip
2
2
 
3
3
  [![Code Climate](https://codeclimate.com/github/boxuk/hopskip.png)](https://codeclimate.com/github/boxuk/hopskip)
4
+ [![Build Status](https://travis-ci.org/boxuk/hopskip.png?branch=master)](https://travis-ci.org/boxuk/hopskip)
4
5
 
5
6
  Write [hopscotch](https://github.com/linkedin/hopscotch) introductions simply by adding YAML files to your Rails application.
6
7
 
@@ -8,14 +8,17 @@ module Hopskip
8
8
 
9
9
  def initialize(controller)
10
10
  @controller = controller
11
- filename = "#{ Rails.root }/app/tours/#{ @controller.controller_name }_tour.yml"
11
+ filename = Rails.root.join('app', 'tours', "#{ @controller.controller_name }_tour.yml")
12
+ puts filename
12
13
  if File.exists?(filename)
13
14
  @yaml_source = YAML::load(File.open("#{ Rails.root }/app/tours/#{ @controller.controller_name }_tour.yml"))
15
+ else
16
+ puts 'cannot find file!'
14
17
  end
15
18
  end
16
19
 
17
20
  def show
18
- if @yaml_source.present?
21
+ if @yaml_source.present? && @yaml_source[@controller.action_name].present?
19
22
  locals = { id: "#{ @controller.controller_name }_#{ @controller.action_name }_tour", steps: @yaml_source[@controller.action_name]['steps'].to_json }
20
23
  Erubis::Eruby.new("<script>var tour = {id: \"<%= id %>\",steps: <%= steps %>};hopscotch.startTour(tour);</script>").result(locals).html_safe
21
24
  end
@@ -1,3 +1,3 @@
1
1
  module Hopskip
2
- VERSION = "0.0.6"
2
+ VERSION = "0.1"
3
3
  end
@@ -1,2 +1,14 @@
1
1
  class PeopleController < ApplicationController
2
+
3
+ # def index
4
+ # @people = People.all
5
+ # respond_to do |format|
6
+ # format.html
7
+ # end
8
+ # end
9
+
10
+ # def show
11
+ # @person = People.find(params[:id])
12
+ # end
13
+
2
14
  end
@@ -0,0 +1,7 @@
1
+ ---
2
+ index:
3
+ steps:
4
+ - title: Create A Person
5
+ content: "Click here to add your first person."
6
+ target: new_person_link
7
+ placement: left
@@ -9,6 +9,6 @@
9
9
  <body>
10
10
 
11
11
  <%= yield %>
12
-
12
+ <%= Hopskip::HopscotchParser.new(controller).show %>
13
13
  </body>
14
14
  </html>
@@ -0,0 +1 @@
1
+ hello
File without changes
@@ -1,25 +1,9 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
10
- timeout: 5000
1
+ # test:
2
+ # adapter: mysql2
3
+ # database: myapp_test
4
+ # username: travis
5
+ # encoding: utf8
11
6
 
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
7
  test:
16
8
  adapter: sqlite3
17
- database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
20
-
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
9
+ database: myapp_test
@@ -64,3 +64,500 @@ Connecting to database specified by database.yml
64
64
   (0.0ms) rollback transaction
65
65
   (0.0ms) begin transaction
66
66
   (0.0ms) rollback transaction
67
+ Connecting to database specified by database.yml
68
+ Connecting to database specified by database.yml
69
+  (0.5ms) begin transaction
70
+  (0.1ms) rollback transaction
71
+  (0.0ms) begin transaction
72
+  (0.0ms) rollback transaction
73
+  (0.1ms) begin transaction
74
+  (0.0ms) rollback transaction
75
+ Connecting to database specified by database.yml
76
+ Connecting to database specified by database.yml
77
+  (0.3ms) begin transaction
78
+  (0.0ms) rollback transaction
79
+  (0.0ms) begin transaction
80
+  (0.0ms) rollback transaction
81
+  (0.0ms) begin transaction
82
+  (0.0ms) rollback transaction
83
+ Connecting to database specified by database.yml
84
+  (0.3ms) begin transaction
85
+  (0.0ms) rollback transaction
86
+  (0.0ms) begin transaction
87
+  (0.0ms) rollback transaction
88
+  (0.0ms) begin transaction
89
+  (0.0ms) rollback transaction
90
+ Connecting to database specified by database.yml
91
+  (0.3ms) begin transaction
92
+  (0.0ms) rollback transaction
93
+  (0.0ms) begin transaction
94
+  (0.0ms) rollback transaction
95
+  (0.0ms) begin transaction
96
+  (0.0ms) rollback transaction
97
+ Connecting to database specified by database.yml
98
+  (0.3ms) begin transaction
99
+  (0.0ms) rollback transaction
100
+  (0.0ms) begin transaction
101
+  (0.0ms) rollback transaction
102
+  (0.0ms) begin transaction
103
+  (0.0ms) rollback transaction
104
+  (0.0ms) begin transaction
105
+  (0.0ms) rollback transaction
106
+ Connecting to database specified by database.yml
107
+  (0.3ms) begin transaction
108
+  (0.0ms) rollback transaction
109
+  (0.0ms) begin transaction
110
+  (0.0ms) rollback transaction
111
+  (0.1ms) begin transaction
112
+  (0.0ms) rollback transaction
113
+  (0.0ms) begin transaction
114
+ Processing by PeopleController#index as HTML
115
+ Rendered people/index.html.erb within layouts/application (2.4ms)
116
+ Completed 200 OK in 14.5ms (Views: 14.1ms | ActiveRecord: 0.0ms)
117
+  (0.1ms) rollback transaction
118
+ Connecting to database specified by database.yml
119
+  (0.3ms) begin transaction
120
+  (0.0ms) rollback transaction
121
+  (0.0ms) begin transaction
122
+  (0.0ms) rollback transaction
123
+  (0.0ms) begin transaction
124
+  (0.0ms) rollback transaction
125
+  (0.0ms) begin transaction
126
+ Processing by PeopleController#index as HTML
127
+ Rendered people/index.html.erb within layouts/application (1.6ms)
128
+ Completed 200 OK in 10.1ms (Views: 9.8ms | ActiveRecord: 0.0ms)
129
+  (0.1ms) rollback transaction
130
+  (0.0ms) begin transaction
131
+  (0.1ms) rollback transaction
132
+ Connecting to database specified by database.yml
133
+  (0.3ms) begin transaction
134
+  (0.0ms) rollback transaction
135
+  (0.0ms) begin transaction
136
+  (0.0ms) rollback transaction
137
+  (0.0ms) begin transaction
138
+  (0.0ms) rollback transaction
139
+  (0.1ms) begin transaction
140
+ Processing by PeopleController#index as HTML
141
+ Completed 500 Internal Server Error in 1.0ms
142
+  (0.1ms) rollback transaction
143
+  (0.0ms) begin transaction
144
+ Processing by PeopleController#show as HTML
145
+ Parameters: {"id"=>"1"}
146
+ Completed 500 Internal Server Error in 0.8ms
147
+  (0.1ms) rollback transaction
148
+ Connecting to database specified by database.yml
149
+  (0.3ms) begin transaction
150
+  (0.0ms) rollback transaction
151
+  (0.0ms) begin transaction
152
+  (0.0ms) rollback transaction
153
+  (0.0ms) begin transaction
154
+  (0.0ms) rollback transaction
155
+  (0.0ms) begin transaction
156
+ Processing by PeopleController#index as HTML
157
+ Completed 500 Internal Server Error in 0.8ms
158
+  (0.1ms) rollback transaction
159
+  (0.0ms) begin transaction
160
+ Processing by PeopleController#show as HTML
161
+ Parameters: {"id"=>"1"}
162
+ Completed 500 Internal Server Error in 0.7ms
163
+  (0.0ms) rollback transaction
164
+ Connecting to database specified by database.yml
165
+  (0.3ms) begin transaction
166
+  (0.0ms) rollback transaction
167
+  (0.0ms) begin transaction
168
+  (0.0ms) rollback transaction
169
+  (0.0ms) begin transaction
170
+  (0.0ms) rollback transaction
171
+  (0.0ms) begin transaction
172
+ Processing by PeopleController#index as HTML
173
+ Completed 500 Internal Server Error in 0.8ms
174
+  (0.1ms) rollback transaction
175
+  (0.0ms) begin transaction
176
+ Processing by PeopleController#show as HTML
177
+ Parameters: {"id"=>"1"}
178
+ Completed 500 Internal Server Error in 1.2ms
179
+  (0.1ms) rollback transaction
180
+ Connecting to database specified by database.yml
181
+  (0.3ms) begin transaction
182
+  (0.0ms) rollback transaction
183
+  (0.0ms) begin transaction
184
+  (0.0ms) rollback transaction
185
+  (0.0ms) begin transaction
186
+  (0.0ms) rollback transaction
187
+  (0.0ms) begin transaction
188
+ Processing by PeopleController#index as HTML
189
+ Rendered people/index.html.erb within layouts/application (1.9ms)
190
+ Completed 200 OK in 10.6ms (Views: 10.3ms | ActiveRecord: 0.0ms)
191
+  (0.1ms) rollback transaction
192
+  (0.0ms) begin transaction
193
+ Processing by PeopleController#show as HTML
194
+ Parameters: {"id"=>"1"}
195
+ Completed 500 Internal Server Error in 0.9ms
196
+  (0.1ms) rollback transaction
197
+ Connecting to database specified by database.yml
198
+  (0.3ms) begin transaction
199
+  (0.0ms) rollback transaction
200
+  (0.0ms) begin transaction
201
+  (0.0ms) rollback transaction
202
+  (0.0ms) begin transaction
203
+  (0.0ms) rollback transaction
204
+ Connecting to database specified by database.yml
205
+  (0.3ms) begin transaction
206
+  (0.0ms) rollback transaction
207
+  (0.0ms) begin transaction
208
+  (0.0ms) rollback transaction
209
+  (0.0ms) begin transaction
210
+  (0.0ms) rollback transaction
211
+ Connecting to database specified by database.yml
212
+  (0.3ms) begin transaction
213
+  (0.0ms) rollback transaction
214
+  (0.1ms) begin transaction
215
+  (0.0ms) rollback transaction
216
+  (0.1ms) begin transaction
217
+  (0.0ms) rollback transaction
218
+  (0.1ms) begin transaction
219
+ Started GET "/" for 127.0.0.1 at 2013-12-10 11:17:48 +0000
220
+  (0.1ms) rollback transaction
221
+ Connecting to database specified by database.yml
222
+  (0.3ms) begin transaction
223
+  (0.0ms) rollback transaction
224
+  (0.0ms) begin transaction
225
+  (0.1ms) rollback transaction
226
+  (0.1ms) begin transaction
227
+  (0.1ms) rollback transaction
228
+  (0.1ms) begin transaction
229
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:17:56 +0000
230
+ Processing by PeopleController#index as HTML
231
+ Completed 500 Internal Server Error in 1.3ms
232
+  (0.1ms) rollback transaction
233
+ Connecting to database specified by database.yml
234
+  (0.3ms) begin transaction
235
+  (0.0ms) rollback transaction
236
+  (0.0ms) begin transaction
237
+  (0.0ms) rollback transaction
238
+  (0.0ms) begin transaction
239
+  (0.0ms) rollback transaction
240
+  (0.0ms) begin transaction
241
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:18:16 +0000
242
+ Processing by PeopleController#index as HTML
243
+ Rendered people/index.html.erb within layouts/application (1.7ms)
244
+ Completed 200 OK in 10.3ms (Views: 10.0ms | ActiveRecord: 0.0ms)
245
+  (0.1ms) rollback transaction
246
+ Connecting to database specified by database.yml
247
+  (0.3ms) begin transaction
248
+  (0.0ms) rollback transaction
249
+  (0.0ms) begin transaction
250
+  (0.0ms) rollback transaction
251
+  (0.0ms) begin transaction
252
+  (0.0ms) rollback transaction
253
+  (0.0ms) begin transaction
254
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:18:33 +0000
255
+ Processing by PeopleController#index as HTML
256
+ Rendered people/index.html.erb within layouts/application (1.7ms)
257
+ Completed 200 OK in 10.3ms (Views: 10.0ms | ActiveRecord: 0.0ms)
258
+  (0.1ms) rollback transaction
259
+ Connecting to database specified by database.yml
260
+  (0.3ms) begin transaction
261
+  (0.0ms) rollback transaction
262
+  (0.0ms) begin transaction
263
+  (0.0ms) rollback transaction
264
+  (0.0ms) begin transaction
265
+  (0.0ms) rollback transaction
266
+  (0.0ms) begin transaction
267
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:19:02 +0000
268
+ Processing by PeopleController#index as HTML
269
+ Rendered people/index.html.erb within layouts/application (1.8ms)
270
+ Completed 200 OK in 12.4ms (Views: 12.1ms | ActiveRecord: 0.0ms)
271
+  (0.1ms) rollback transaction
272
+ Connecting to database specified by database.yml
273
+  (0.3ms) begin transaction
274
+  (0.0ms) rollback transaction
275
+  (0.0ms) begin transaction
276
+  (0.0ms) rollback transaction
277
+  (0.0ms) begin transaction
278
+  (0.0ms) rollback transaction
279
+  (0.0ms) begin transaction
280
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:19:39 +0000
281
+ Processing by PeopleController#index as HTML
282
+ Rendered people/index.html.erb within layouts/application (1.7ms)
283
+ Completed 200 OK in 10.4ms (Views: 10.0ms | ActiveRecord: 0.0ms)
284
+  (0.1ms) rollback transaction
285
+ Connecting to database specified by database.yml
286
+  (0.3ms) begin transaction
287
+  (0.0ms) rollback transaction
288
+  (0.0ms) begin transaction
289
+  (0.0ms) rollback transaction
290
+  (0.0ms) begin transaction
291
+  (0.0ms) rollback transaction
292
+  (0.0ms) begin transaction
293
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:20:07 +0000
294
+ Processing by PeopleController#index as HTML
295
+ Rendered people/index.html.erb within layouts/application (1.8ms)
296
+ Completed 200 OK in 11.6ms (Views: 11.3ms | ActiveRecord: 0.0ms)
297
+  (0.1ms) rollback transaction
298
+ Connecting to database specified by database.yml
299
+  (0.3ms) begin transaction
300
+  (0.0ms) rollback transaction
301
+  (0.0ms) begin transaction
302
+  (0.0ms) rollback transaction
303
+  (0.0ms) begin transaction
304
+  (0.0ms) rollback transaction
305
+  (0.0ms) begin transaction
306
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:20:48 +0000
307
+ Processing by PeopleController#index as HTML
308
+ Rendered people/index.html.erb within layouts/application (1.8ms)
309
+ Completed 200 OK in 11.5ms (Views: 11.1ms | ActiveRecord: 0.0ms)
310
+  (0.1ms) rollback transaction
311
+ Connecting to database specified by database.yml
312
+  (0.3ms) begin transaction
313
+  (0.0ms) rollback transaction
314
+  (0.0ms) begin transaction
315
+  (0.0ms) rollback transaction
316
+  (0.0ms) begin transaction
317
+  (0.0ms) rollback transaction
318
+  (0.0ms) begin transaction
319
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:21:12 +0000
320
+ Processing by PeopleController#index as HTML
321
+ Rendered people/index.html.erb within layouts/application (1.8ms)
322
+ Completed 200 OK in 10.7ms (Views: 10.4ms | ActiveRecord: 0.0ms)
323
+  (0.1ms) rollback transaction
324
+ Connecting to database specified by database.yml
325
+  (0.3ms) begin transaction
326
+  (0.0ms) rollback transaction
327
+  (0.1ms) begin transaction
328
+  (0.1ms) rollback transaction
329
+  (0.0ms) begin transaction
330
+  (0.0ms) rollback transaction
331
+  (0.0ms) begin transaction
332
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:21:26 +0000
333
+ Processing by PeopleController#index as HTML
334
+ Rendered people/index.html.erb within layouts/application (1.8ms)
335
+ Completed 200 OK in 14.9ms (Views: 14.4ms | ActiveRecord: 0.0ms)
336
+  (0.1ms) rollback transaction
337
+ Connecting to database specified by database.yml
338
+  (0.3ms) begin transaction
339
+  (0.0ms) rollback transaction
340
+  (0.0ms) begin transaction
341
+  (0.0ms) rollback transaction
342
+  (0.0ms) begin transaction
343
+  (0.0ms) rollback transaction
344
+  (0.0ms) begin transaction
345
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:21:39 +0000
346
+ Processing by PeopleController#index as HTML
347
+ Rendered people/index.html.erb within layouts/application (1.7ms)
348
+ Completed 200 OK in 11.4ms (Views: 10.9ms | ActiveRecord: 0.0ms)
349
+  (0.1ms) rollback transaction
350
+ Connecting to database specified by database.yml
351
+  (0.3ms) begin transaction
352
+  (0.0ms) rollback transaction
353
+  (0.0ms) begin transaction
354
+  (0.0ms) rollback transaction
355
+  (0.0ms) begin transaction
356
+  (0.0ms) rollback transaction
357
+  (0.1ms) begin transaction
358
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:22:10 +0000
359
+ Processing by PeopleController#index as HTML
360
+ Rendered people/index.html.erb within layouts/application (1.7ms)
361
+ Completed 200 OK in 11.0ms (Views: 10.6ms | ActiveRecord: 0.0ms)
362
+  (0.1ms) rollback transaction
363
+ Connecting to database specified by database.yml
364
+  (0.3ms) begin transaction
365
+  (0.0ms) rollback transaction
366
+  (0.0ms) begin transaction
367
+  (0.0ms) rollback transaction
368
+  (0.0ms) begin transaction
369
+  (0.0ms) rollback transaction
370
+  (0.0ms) begin transaction
371
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:22:21 +0000
372
+ Processing by PeopleController#index as HTML
373
+ Rendered people/index.html.erb within layouts/application (1.7ms)
374
+ Completed 200 OK in 12.2ms (Views: 11.8ms | ActiveRecord: 0.0ms)
375
+  (0.1ms) rollback transaction
376
+ Connecting to database specified by database.yml
377
+  (0.3ms) begin transaction
378
+  (0.0ms) rollback transaction
379
+  (0.0ms) begin transaction
380
+  (0.0ms) rollback transaction
381
+  (0.0ms) begin transaction
382
+  (0.0ms) rollback transaction
383
+  (0.0ms) begin transaction
384
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:22:34 +0000
385
+ Processing by PeopleController#index as HTML
386
+ Rendered people/index.html.erb within layouts/application (1.7ms)
387
+ Completed 200 OK in 10.5ms (Views: 10.1ms | ActiveRecord: 0.0ms)
388
+  (0.1ms) rollback transaction
389
+ Connecting to database specified by database.yml
390
+  (0.3ms) begin transaction
391
+  (0.0ms) rollback transaction
392
+  (0.1ms) begin transaction
393
+  (0.0ms) rollback transaction
394
+  (0.0ms) begin transaction
395
+  (0.0ms) rollback transaction
396
+  (0.0ms) begin transaction
397
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:22:55 +0000
398
+ Processing by PeopleController#index as HTML
399
+ Rendered people/index.html.erb within layouts/application (2.3ms)
400
+ Completed 200 OK in 15.6ms (Views: 15.2ms | ActiveRecord: 0.0ms)
401
+  (0.1ms) rollback transaction
402
+ Connecting to database specified by database.yml
403
+  (0.3ms) begin transaction
404
+  (0.0ms) rollback transaction
405
+  (0.0ms) begin transaction
406
+  (0.0ms) rollback transaction
407
+  (0.0ms) begin transaction
408
+  (0.0ms) rollback transaction
409
+  (0.0ms) begin transaction
410
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:23:20 +0000
411
+ Processing by PeopleController#index as HTML
412
+ Rendered people/index.html.erb within layouts/application (1.8ms)
413
+ Completed 200 OK in 11.5ms (Views: 11.1ms | ActiveRecord: 0.0ms)
414
+  (0.1ms) rollback transaction
415
+ Connecting to database specified by database.yml
416
+  (0.3ms) begin transaction
417
+  (0.0ms) rollback transaction
418
+  (0.0ms) begin transaction
419
+  (0.0ms) rollback transaction
420
+  (0.0ms) begin transaction
421
+  (0.0ms) rollback transaction
422
+  (0.0ms) begin transaction
423
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:23:39 +0000
424
+ Processing by PeopleController#index as HTML
425
+ Rendered people/index.html.erb within layouts/application (1.6ms)
426
+ Completed 200 OK in 10.2ms (Views: 9.8ms | ActiveRecord: 0.0ms)
427
+  (0.1ms) rollback transaction
428
+ Connecting to database specified by database.yml
429
+  (0.3ms) begin transaction
430
+  (0.0ms) rollback transaction
431
+  (0.0ms) begin transaction
432
+  (0.0ms) rollback transaction
433
+  (0.0ms) begin transaction
434
+  (0.0ms) rollback transaction
435
+  (0.0ms) begin transaction
436
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:23:54 +0000
437
+ Processing by PeopleController#index as HTML
438
+ Rendered people/index.html.erb within layouts/application (1.8ms)
439
+ Completed 200 OK in 11.7ms (Views: 11.3ms | ActiveRecord: 0.0ms)
440
+  (0.1ms) rollback transaction
441
+ Connecting to database specified by database.yml
442
+  (0.3ms) begin transaction
443
+  (0.0ms) rollback transaction
444
+  (0.0ms) begin transaction
445
+  (0.0ms) rollback transaction
446
+  (0.0ms) begin transaction
447
+  (0.0ms) rollback transaction
448
+  (0.0ms) begin transaction
449
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:24:46 +0000
450
+ Processing by PeopleController#index as HTML
451
+ Rendered people/index.html.erb within layouts/application (1.7ms)
452
+ Completed 200 OK in 10.6ms (Views: 10.2ms | ActiveRecord: 0.0ms)
453
+  (0.1ms) rollback transaction
454
+ Connecting to database specified by database.yml
455
+  (0.3ms) begin transaction
456
+  (0.0ms) rollback transaction
457
+  (0.0ms) begin transaction
458
+  (0.0ms) rollback transaction
459
+  (0.0ms) begin transaction
460
+  (0.0ms) rollback transaction
461
+  (0.0ms) begin transaction
462
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:25:03 +0000
463
+ Processing by PeopleController#index as HTML
464
+ Rendered people/index.html.erb within layouts/application (1.7ms)
465
+ Completed 200 OK in 10.3ms (Views: 10.0ms | ActiveRecord: 0.0ms)
466
+  (0.1ms) rollback transaction
467
+ Connecting to database specified by database.yml
468
+  (0.3ms) begin transaction
469
+  (0.0ms) rollback transaction
470
+  (0.0ms) begin transaction
471
+  (0.0ms) rollback transaction
472
+  (0.0ms) begin transaction
473
+  (0.0ms) rollback transaction
474
+  (0.0ms) begin transaction
475
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:25:47 +0000
476
+ Processing by PeopleController#index as HTML
477
+ Rendered people/index.html.erb within layouts/application (2.3ms)
478
+ Completed 200 OK in 13.0ms (Views: 12.6ms | ActiveRecord: 0.0ms)
479
+  (0.1ms) rollback transaction
480
+ Connecting to database specified by database.yml
481
+  (0.3ms) begin transaction
482
+  (0.0ms) rollback transaction
483
+  (0.0ms) begin transaction
484
+  (0.0ms) rollback transaction
485
+  (0.0ms) begin transaction
486
+  (0.0ms) rollback transaction
487
+  (0.0ms) begin transaction
488
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:26:11 +0000
489
+ Processing by PeopleController#index as HTML
490
+ Rendered people/index.html.erb within layouts/application (2.1ms)
491
+ Completed 200 OK in 11.7ms (Views: 11.4ms | ActiveRecord: 0.0ms)
492
+  (0.1ms) rollback transaction
493
+ Connecting to database specified by database.yml
494
+  (0.3ms) begin transaction
495
+  (0.0ms) rollback transaction
496
+  (0.0ms) begin transaction
497
+  (0.0ms) rollback transaction
498
+  (0.0ms) begin transaction
499
+  (0.0ms) rollback transaction
500
+  (0.0ms) begin transaction
501
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:27:14 +0000
502
+ Processing by PeopleController#index as HTML
503
+ Rendered people/index.html.erb within layouts/application (1.6ms)
504
+ Completed 200 OK in 11.3ms (Views: 11.0ms | ActiveRecord: 0.0ms)
505
+  (0.1ms) rollback transaction
506
+ Connecting to database specified by database.yml
507
+  (0.3ms) begin transaction
508
+  (0.1ms) rollback transaction
509
+  (0.0ms) begin transaction
510
+  (0.0ms) rollback transaction
511
+  (0.0ms) begin transaction
512
+  (0.0ms) rollback transaction
513
+  (0.0ms) begin transaction
514
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:27:39 +0000
515
+ Processing by PeopleController#index as HTML
516
+ Rendered people/index.html.erb within layouts/application (2.5ms)
517
+ Completed 200 OK in 13.2ms (Views: 12.8ms | ActiveRecord: 0.0ms)
518
+  (0.1ms) rollback transaction
519
+ Connecting to database specified by database.yml
520
+  (0.3ms) begin transaction
521
+  (0.0ms) rollback transaction
522
+  (0.0ms) begin transaction
523
+  (0.0ms) rollback transaction
524
+  (0.0ms) begin transaction
525
+  (0.0ms) rollback transaction
526
+  (0.0ms) begin transaction
527
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:29:31 +0000
528
+ Processing by PeopleController#index as HTML
529
+ Rendered people/index.html.erb within layouts/application (1.6ms)
530
+ Completed 200 OK in 12.3ms (Views: 11.8ms | ActiveRecord: 0.0ms)
531
+  (0.1ms) rollback transaction
532
+ Connecting to database specified by database.yml
533
+  (0.3ms) begin transaction
534
+  (0.0ms) rollback transaction
535
+  (0.0ms) begin transaction
536
+  (0.0ms) rollback transaction
537
+  (0.0ms) begin transaction
538
+  (0.0ms) rollback transaction
539
+  (0.0ms) begin transaction
540
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:29:41 +0000
541
+ Processing by PeopleController#index as HTML
542
+ Rendered people/index.html.erb within layouts/application (1.7ms)
543
+ Completed 200 OK in 12.5ms (Views: 12.0ms | ActiveRecord: 0.0ms)
544
+  (0.1ms) rollback transaction
545
+ Connecting to database specified by database.yml
546
+  (0.3ms) begin transaction
547
+  (0.0ms) rollback transaction
548
+  (0.0ms) begin transaction
549
+  (0.0ms) rollback transaction
550
+  (0.0ms) begin transaction
551
+  (0.0ms) rollback transaction
552
+  (0.0ms) begin transaction
553
+ Started GET "/people" for 127.0.0.1 at 2013-12-10 11:30:09 +0000
554
+ Processing by PeopleController#index as HTML
555
+ Rendered people/index.html.erb within layouts/application (2.0ms)
556
+ Completed 200 OK in 14.5ms (Views: 14.1ms | ActiveRecord: 0.0ms)
557
+  (0.1ms) rollback transaction
558
+  (0.0ms) begin transaction
559
+ Started GET "/people/1" for 127.0.0.1 at 2013-12-10 11:30:09 +0000
560
+ Processing by PeopleController#show as HTML
561
+ Parameters: {"id"=>"1"}
562
+ Completed 200 OK in 2.9ms (Views: 2.6ms | ActiveRecord: 0.0ms)
563
+  (0.1ms) rollback transaction
File without changes
@@ -1,7 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class PeopleControllerTest < ActionController::TestCase
4
- # test "the truth" do
5
- # assert true
6
- # end
4
+
5
+
7
6
  end
@@ -0,0 +1,14 @@
1
+ require 'test_helper'
2
+
3
+ class UserFlowsTest < ActionDispatch::IntegrationTest
4
+ test '#index shows the hopscotch' do
5
+ get '/people'
6
+ assert_tag tag: 'script', parent: { :tag => 'body' }
7
+ assert_response :success
8
+ end
9
+
10
+ test '#show loads even though there is no hopscotch' do
11
+ get '/people/1'
12
+ assert_response :success
13
+ end
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hopskip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: '0.1'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-06 00:00:00.000000000 Z
12
+ date: 2013-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: mysql2
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
46
62
  description: Write your hopscotch introductions using YAML.
47
63
  email:
48
64
  - max.woolf@boxuk.com
@@ -67,8 +83,11 @@ files:
67
83
  - test/dummy/app/controllers/people_controller.rb
68
84
  - test/dummy/app/helpers/application_helper.rb
69
85
  - test/dummy/app/helpers/people_helper.rb
70
- - test/dummy/app/tours/people_tours.yml
86
+ - test/dummy/app/tours/application_tour.yml
87
+ - test/dummy/app/tours/people_tour.yml
71
88
  - test/dummy/app/views/layouts/application.html.erb
89
+ - test/dummy/app/views/people/index.html.erb
90
+ - test/dummy/app/views/people/show.html.erb
72
91
  - test/dummy/config/application.rb
73
92
  - test/dummy/config/boot.rb
74
93
  - test/dummy/config/database.yml
@@ -88,6 +107,7 @@ files:
88
107
  - test/dummy/db/test.sqlite3
89
108
  - test/dummy/log/development.log
90
109
  - test/dummy/log/test.log
110
+ - test/dummy/myapp_test
91
111
  - test/dummy/public/404.html
92
112
  - test/dummy/public/422.html
93
113
  - test/dummy/public/500.html
@@ -96,6 +116,7 @@ files:
96
116
  - test/dummy/README.rdoc
97
117
  - test/dummy/script/rails
98
118
  - test/dummy/test/functional/people_controller_test.rb
119
+ - test/dummy/test/integration/user_flows_test.rb
99
120
  - test/dummy/test/unit/helpers/people_helper_test.rb
100
121
  - test/hopskip_test.rb
101
122
  - test/lib/hopskip/hopscotch_parser_test.rb
@@ -114,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
135
  version: '0'
115
136
  segments:
116
137
  - 0
117
- hash: -1091797009955515407
138
+ hash: 2991260192223805320
118
139
  required_rubygems_version: !ruby/object:Gem::Requirement
119
140
  none: false
120
141
  requirements:
@@ -123,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
144
  version: '0'
124
145
  segments:
125
146
  - 0
126
- hash: -1091797009955515407
147
+ hash: 2991260192223805320
127
148
  requirements: []
128
149
  rubyforge_project:
129
150
  rubygems_version: 1.8.25
@@ -139,8 +160,11 @@ test_files:
139
160
  - test/dummy/app/controllers/people_controller.rb
140
161
  - test/dummy/app/helpers/application_helper.rb
141
162
  - test/dummy/app/helpers/people_helper.rb
142
- - test/dummy/app/tours/people_tours.yml
163
+ - test/dummy/app/tours/application_tour.yml
164
+ - test/dummy/app/tours/people_tour.yml
143
165
  - test/dummy/app/views/layouts/application.html.erb
166
+ - test/dummy/app/views/people/index.html.erb
167
+ - test/dummy/app/views/people/show.html.erb
144
168
  - test/dummy/config/application.rb
145
169
  - test/dummy/config/boot.rb
146
170
  - test/dummy/config/database.yml
@@ -160,6 +184,7 @@ test_files:
160
184
  - test/dummy/db/test.sqlite3
161
185
  - test/dummy/log/development.log
162
186
  - test/dummy/log/test.log
187
+ - test/dummy/myapp_test
163
188
  - test/dummy/public/404.html
164
189
  - test/dummy/public/422.html
165
190
  - test/dummy/public/500.html
@@ -168,6 +193,7 @@ test_files:
168
193
  - test/dummy/README.rdoc
169
194
  - test/dummy/script/rails
170
195
  - test/dummy/test/functional/people_controller_test.rb
196
+ - test/dummy/test/integration/user_flows_test.rb
171
197
  - test/dummy/test/unit/helpers/people_helper_test.rb
172
198
  - test/hopskip_test.rb
173
199
  - test/lib/hopskip/hopscotch_parser_test.rb