siringa 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68a1ddbf31d98af8c1e605699a92db678ca7fdf2
4
- data.tar.gz: 7e181bb6f29c3a50da42dbc953443dae9ccee78f
3
+ metadata.gz: 11cf237b2bd1e3a7a176841483c73283b2a8ba1a
4
+ data.tar.gz: 1b1d23655815f04acf332a8903e467990547bf8a
5
5
  SHA512:
6
- metadata.gz: 63e1d2f63d8ec314000de580fd6ff154f8bc22d53d442cdae7e6eb3071d5459958f680f10e33a78834cd60aac8c938d18f9accc8769d04fe975e334238dfaf33
7
- data.tar.gz: 923c02e11c80cd349b7c7b9554a69c39b3a8134c5030e41c9da46dec90e2956d71d4ed0ca601bc12cde52169029ec726c3dd6a7f65691dfeb29a5ba1c58c3af5
6
+ metadata.gz: 33592bd1f814a4b9c165fecb654b6da94cc191631caea3fc1d6c8931745a9158edb4b525f17f14223d5c00eb2c465e7759086dda050df3e854d2115777d25830
7
+ data.tar.gz: 2f7134f3caff7c11a8920705ffbf8145c89335d2c8ee59af4c0dd07cb10d9809ea4eaf36bfbc5f399bef9fb0e03795dc431fe61c7e18d03afdd731d9a8cf1df1
data/README.md CHANGED
@@ -36,7 +36,7 @@ Run the generator:
36
36
  ```console
37
37
  rails generate siringa:install
38
38
  ```
39
- This will add the Siringa initializer in `config/initializers/siringa.rb` and create an empty directory in `tmp/dumps`.
39
+ This will create an empty directory in `tmp/dumps`.
40
40
 
41
41
  Add the following to your `config/routes.rb`:
42
42
  ```ruby
@@ -1,14 +1,7 @@
1
1
  module Siringa
2
2
  module Generators
3
3
  class InstallGenerator < Rails::Generators::Base
4
- source_root File.expand_path("../../templates", __FILE__)
5
- desc "Creates Siringa initializer for your application"
6
-
7
- def copy_initializer
8
- template "siringa_initializer.rb", "config/initializers/siringa.rb"
9
-
10
- puts "Install complete!"
11
- end
4
+ desc "Creates tmp/dumps folder to store Siringa dumps"
12
5
 
13
6
  def create_dumps_folder
14
7
  empty_directory "tmp/dumps"
@@ -18,7 +18,7 @@ module Siringa
18
18
  attr_accessor :definitions_path, :dumps_path
19
19
 
20
20
  def initialize
21
- @definitions_path = "spec/siringa"
21
+ @definitions_path = "test/siringa"
22
22
  @dumps_path = 'tmp/dumps'
23
23
  end
24
24
  end
@@ -124,6 +124,7 @@ module Siringa
124
124
  def self.sqlite_restore_command(database, dump_path)
125
125
  "/usr/bin/env sqlite3 #{database} '.restore #{dump_path}'"
126
126
  end
127
+
127
128
  # Return ActiveRecord adapter config
128
129
  #
129
130
  # @return [Hash]
@@ -1,5 +1,9 @@
1
1
  module Siringa
2
2
  class Engine < Rails::Engine
3
3
  isolate_namespace Siringa
4
+
5
+ config.after_initialize do
6
+ Siringa.load_definitions
7
+ end
4
8
  end
5
9
  end
@@ -1,3 +1,3 @@
1
1
  module Siringa
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -37,8 +37,3 @@ Dummy::Application.configure do
37
37
  # Print deprecation notices to the stderr
38
38
  config.active_support.deprecation = :stderr
39
39
  end
40
-
41
- Siringa.configure do |config|
42
- config.definitions_path = 'test/siringa'
43
- end
44
-
@@ -246,6 +246,502 @@ Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
246
246
  ----------------------------------------------------------------
247
247
  SiringaControllerTest: test_load_action_passing_existing_factory
248
248
  ----------------------------------------------------------------
249
+ Processing by Siringa::SiringaController#load as HTML
250
+ Parameters: {"definition"=>"initial"}
251
+  (0.1ms) SAVEPOINT active_record_1
252
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
253
+  (0.1ms) RELEASE SAVEPOINT active_record_1
254
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
255
+  (0.1ms) rollback transaction
256
+  (0.3ms) begin transaction
257
+ ----------------------------------------------------------------------------
258
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
259
+ ----------------------------------------------------------------------------
260
+ Processing by Siringa::SiringaController#load as HTML
261
+ Parameters: {"definition"=>"papapa"}
262
+ Rendered text template (0.0ms)
263
+ Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
264
+  (0.1ms) rollback transaction
265
+  (0.1ms) begin transaction
266
+ ----------------------------------------------------------------
267
+ SiringaControllerTest: test_load_action_passing_existing_factory
268
+ ----------------------------------------------------------------
269
+ Processing by Siringa::SiringaController#load as HTML
270
+ Parameters: {"definition"=>"initial"}
271
+  (0.1ms) SAVEPOINT active_record_1
272
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
274
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
275
+  (0.1ms) rollback transaction
276
+  (0.3ms) begin transaction
277
+ ----------------------------------------------------------------------------
278
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
279
+ ----------------------------------------------------------------------------
280
+ Processing by Siringa::SiringaController#load as HTML
281
+ Parameters: {"definition"=>"papapa"}
282
+ Rendered text template (0.0ms)
283
+ Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
284
+  (0.1ms) rollback transaction
285
+  (0.1ms) begin transaction
286
+ ----------------------------------------------------------------
287
+ SiringaControllerTest: test_load_action_passing_existing_factory
288
+ ----------------------------------------------------------------
289
+ Processing by Siringa::SiringaController#load as HTML
290
+ Parameters: {"definition"=>"initial"}
291
+ Completed 405 Method Not Allowed in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
292
+  (0.1ms) rollback transaction
293
+  (0.3ms) begin transaction
294
+ ----------------------------------------------------------------------------
295
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
296
+ ----------------------------------------------------------------------------
297
+ Processing by Siringa::SiringaController#load as HTML
298
+ Parameters: {"definition"=>"papapa"}
299
+ Rendered text template (0.0ms)
300
+ Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
301
+  (0.1ms) rollback transaction
302
+  (0.1ms) begin transaction
303
+ ----------------------------------------------------------------
304
+ SiringaControllerTest: test_load_action_passing_existing_factory
305
+ ----------------------------------------------------------------
306
+ Processing by Siringa::SiringaController#load as HTML
307
+ Parameters: {"definition"=>"initial"}
308
+  (0.1ms) SAVEPOINT active_record_1
309
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
311
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
312
+  (0.1ms) rollback transaction
313
+  (0.3ms) begin transaction
314
+ ----------------------------------------------------------------------------
315
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
316
+ ----------------------------------------------------------------------------
317
+ Processing by Siringa::SiringaController#load as HTML
318
+ Parameters: {"definition"=>"papapa"}
319
+ Rendered text template (0.0ms)
320
+ Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
321
+  (0.1ms) rollback transaction
322
+  (0.1ms) begin transaction
323
+ ----------------------------------------------------------------
324
+ SiringaControllerTest: test_load_action_passing_existing_factory
325
+ ----------------------------------------------------------------
326
+ Processing by Siringa::SiringaController#load as HTML
327
+ Parameters: {"definition"=>"initial"}
328
+  (0.1ms) SAVEPOINT active_record_1
329
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
331
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
332
+  (0.1ms) rollback transaction
333
+  (0.3ms) begin transaction
334
+ ----------------------------------------------------------------------------
335
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
336
+ ----------------------------------------------------------------------------
337
+ Processing by Siringa::SiringaController#load as HTML
338
+ Parameters: {"definition"=>"papapa"}
339
+ Rendered text template (0.0ms)
340
+ Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
341
+  (0.1ms) rollback transaction
342
+  (0.1ms) begin transaction
343
+ ----------------------------------------------------------------
344
+ SiringaControllerTest: test_load_action_passing_existing_factory
345
+ ----------------------------------------------------------------
346
+ Processing by Siringa::SiringaController#load as HTML
347
+ Parameters: {"definition"=>"initial"}
348
+  (0.1ms) SAVEPOINT active_record_1
349
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
350
+  (0.1ms) RELEASE SAVEPOINT active_record_1
351
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.6ms)
352
+  (0.1ms) rollback transaction
353
+  (0.3ms) begin transaction
354
+ ----------------------------------------------------------------------------
355
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
356
+ ----------------------------------------------------------------------------
357
+ Processing by Siringa::SiringaController#load as HTML
358
+ Parameters: {"definition"=>"papapa"}
359
+ Rendered text template (0.0ms)
360
+ Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
361
+  (0.1ms) rollback transaction
362
+  (0.1ms) begin transaction
363
+ ----------------------------------------------------------------
364
+ SiringaControllerTest: test_load_action_passing_existing_factory
365
+ ----------------------------------------------------------------
366
+ Processing by Siringa::SiringaController#load as HTML
367
+ Parameters: {"definition"=>"initial"}
368
+  (0.1ms) SAVEPOINT active_record_1
369
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
371
+ Completed 201 Created in 9ms (Views: 0.4ms | ActiveRecord: 0.8ms)
372
+  (0.1ms) rollback transaction
373
+  (0.3ms) begin transaction
374
+ ----------------------------------------------------------------------------
375
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
376
+ ----------------------------------------------------------------------------
377
+ Processing by Siringa::SiringaController#load as HTML
378
+ Parameters: {"definition"=>"papapa"}
379
+ Rendered text template (0.0ms)
380
+ Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
381
+  (0.1ms) rollback transaction
382
+  (0.1ms) begin transaction
383
+ ----------------------------------------------------------------
384
+ SiringaControllerTest: test_load_action_passing_existing_factory
385
+ ----------------------------------------------------------------
386
+ Processing by Siringa::SiringaController#load as HTML
387
+ Parameters: {"definition"=>"initial"}
388
+  (0.1ms) SAVEPOINT active_record_1
389
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
390
+  (0.1ms) RELEASE SAVEPOINT active_record_1
391
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
392
+  (0.1ms) rollback transaction
393
+  (0.3ms) begin transaction
394
+ ----------------------------------------------------------------------------
395
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
396
+ ----------------------------------------------------------------------------
397
+ Processing by Siringa::SiringaController#load as HTML
398
+ Parameters: {"definition"=>"papapa"}
399
+ Rendered text template (0.0ms)
400
+ Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
401
+  (0.1ms) rollback transaction
402
+  (0.1ms) begin transaction
403
+ ----------------------------------------------------------------
404
+ SiringaControllerTest: test_load_action_passing_existing_factory
405
+ ----------------------------------------------------------------
406
+ Processing by Siringa::SiringaController#load as HTML
407
+ Parameters: {"definition"=>"initial"}
408
+  (0.1ms) SAVEPOINT active_record_1
409
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
411
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
412
+  (0.1ms) rollback transaction
413
+  (0.3ms) begin transaction
414
+ ----------------------------------------------------------------------------
415
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
416
+ ----------------------------------------------------------------------------
417
+ Processing by Siringa::SiringaController#load as HTML
418
+ Parameters: {"definition"=>"papapa"}
419
+ Rendered text template (0.0ms)
420
+ Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
421
+  (0.1ms) rollback transaction
422
+  (0.1ms) begin transaction
423
+ ----------------------------------------------------------------
424
+ SiringaControllerTest: test_load_action_passing_existing_factory
425
+ ----------------------------------------------------------------
426
+ Processing by Siringa::SiringaController#load as HTML
427
+ Parameters: {"definition"=>"initial"}
428
+ Completed 405 Method Not Allowed in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
429
+  (0.1ms) rollback transaction
430
+  (0.3ms) begin transaction
431
+ ----------------------------------------------------------------------------
432
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
433
+ ----------------------------------------------------------------------------
434
+ Processing by Siringa::SiringaController#load as HTML
435
+ Parameters: {"definition"=>"papapa"}
436
+ Rendered text template (0.0ms)
437
+ Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
438
+  (0.1ms) rollback transaction
439
+  (0.1ms) begin transaction
440
+ ----------------------------------------------------------------
441
+ SiringaControllerTest: test_load_action_passing_existing_factory
442
+ ----------------------------------------------------------------
443
+ Processing by Siringa::SiringaController#load as HTML
444
+ Parameters: {"definition"=>"initial"}
445
+  (0.1ms) SAVEPOINT active_record_1
446
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
448
+ Completed 201 Created in 7ms (Views: 0.3ms | ActiveRecord: 0.5ms)
449
+  (0.1ms) rollback transaction
450
+  (0.3ms) begin transaction
451
+ ----------------------------------------------------------------------------
452
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
453
+ ----------------------------------------------------------------------------
454
+ Processing by Siringa::SiringaController#load as HTML
455
+ Parameters: {"definition"=>"papapa"}
456
+ Rendered text template (0.0ms)
457
+ Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
458
+  (0.1ms) rollback transaction
459
+  (0.1ms) begin transaction
460
+ ----------------------------------------------------------------
461
+ SiringaControllerTest: test_load_action_passing_existing_factory
462
+ ----------------------------------------------------------------
463
+ Processing by Siringa::SiringaController#load as HTML
464
+ Parameters: {"definition"=>"initial"}
465
+  (0.1ms) SAVEPOINT active_record_1
466
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
468
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.6ms)
469
+  (0.1ms) rollback transaction
470
+  (0.3ms) begin transaction
471
+ ----------------------------------------------------------------------------
472
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
473
+ ----------------------------------------------------------------------------
474
+ Processing by Siringa::SiringaController#load as HTML
475
+ Parameters: {"definition"=>"papapa"}
476
+ Rendered text template (0.0ms)
477
+ Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
478
+  (0.1ms) rollback transaction
479
+  (0.1ms) begin transaction
480
+ ----------------------------------------------------------------
481
+ SiringaControllerTest: test_load_action_passing_existing_factory
482
+ ----------------------------------------------------------------
483
+ Processing by Siringa::SiringaController#load as HTML
484
+ Parameters: {"definition"=>"initial"}
485
+  (0.1ms) SAVEPOINT active_record_1
486
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
488
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
489
+  (0.1ms) rollback transaction
490
+  (0.3ms) begin transaction
491
+ ----------------------------------------------------------------------------
492
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
493
+ ----------------------------------------------------------------------------
494
+ Processing by Siringa::SiringaController#load as HTML
495
+ Parameters: {"definition"=>"papapa"}
496
+ Rendered text template (0.0ms)
497
+ Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
498
+  (0.1ms) rollback transaction
499
+  (0.1ms) begin transaction
500
+ ----------------------------------------------------------------
501
+ SiringaControllerTest: test_load_action_passing_existing_factory
502
+ ----------------------------------------------------------------
503
+ Processing by Siringa::SiringaController#load as HTML
504
+ Parameters: {"definition"=>"initial"}
505
+  (0.1ms) SAVEPOINT active_record_1
506
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
507
+  (0.1ms) RELEASE SAVEPOINT active_record_1
508
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.8ms)
509
+  (0.1ms) rollback transaction
510
+  (0.3ms) begin transaction
511
+ ----------------------------------------------------------------------------
512
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
513
+ ----------------------------------------------------------------------------
514
+ Processing by Siringa::SiringaController#load as HTML
515
+ Parameters: {"definition"=>"papapa"}
516
+ Rendered text template (0.0ms)
517
+ Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
518
+  (0.1ms) rollback transaction
519
+  (0.1ms) begin transaction
520
+ ----------------------------------------------------------------
521
+ SiringaControllerTest: test_load_action_passing_existing_factory
522
+ ----------------------------------------------------------------
523
+ Processing by Siringa::SiringaController#load as HTML
524
+ Parameters: {"definition"=>"initial"}
525
+  (0.1ms) SAVEPOINT active_record_1
526
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
528
+ Completed 201 Created in 7ms (Views: 0.3ms | ActiveRecord: 0.6ms)
529
+  (0.1ms) rollback transaction
530
+  (0.3ms) begin transaction
531
+ ----------------------------------------------------------------------------
532
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
533
+ ----------------------------------------------------------------------------
534
+ Processing by Siringa::SiringaController#load as HTML
535
+ Parameters: {"definition"=>"papapa"}
536
+ Rendered text template (0.0ms)
537
+ Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
538
+  (0.1ms) rollback transaction
539
+  (0.1ms) begin transaction
540
+ ----------------------------------------------------------------
541
+ SiringaControllerTest: test_load_action_passing_existing_factory
542
+ ----------------------------------------------------------------
543
+ Processing by Siringa::SiringaController#load as HTML
544
+ Parameters: {"definition"=>"initial"}
545
+ Completed 405 Method Not Allowed in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
546
+  (0.1ms) rollback transaction
547
+  (0.3ms) begin transaction
548
+ ----------------------------------------------------------------------------
549
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
550
+ ----------------------------------------------------------------------------
551
+ Processing by Siringa::SiringaController#load as HTML
552
+ Parameters: {"definition"=>"papapa"}
553
+ Rendered text template (0.0ms)
554
+ Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
555
+  (0.3ms) rollback transaction
556
+  (0.2ms) begin transaction
557
+ ----------------------------------------------------------------
558
+ SiringaControllerTest: test_load_action_passing_existing_factory
559
+ ----------------------------------------------------------------
560
+ Processing by Siringa::SiringaController#load as HTML
561
+ Parameters: {"definition"=>"initial"}
562
+ Completed 405 Method Not Allowed in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
563
+  (0.1ms) rollback transaction
564
+  (0.3ms) begin transaction
565
+ ----------------------------------------------------------------------------
566
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
567
+ ----------------------------------------------------------------------------
568
+ Processing by Siringa::SiringaController#load as HTML
569
+ Parameters: {"definition"=>"papapa"}
570
+ Rendered text template (0.0ms)
571
+ Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
572
+  (0.1ms) rollback transaction
573
+  (0.1ms) begin transaction
574
+ ----------------------------------------------------------------
575
+ SiringaControllerTest: test_load_action_passing_existing_factory
576
+ ----------------------------------------------------------------
577
+ Processing by Siringa::SiringaController#load as HTML
578
+ Parameters: {"definition"=>"initial"}
579
+ Completed 405 Method Not Allowed in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
580
+  (0.1ms) rollback transaction
581
+  (0.3ms) begin transaction
582
+ ----------------------------------------------------------------------------
583
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
584
+ ----------------------------------------------------------------------------
585
+ Processing by Siringa::SiringaController#load as HTML
586
+ Parameters: {"definition"=>"papapa"}
587
+ Rendered text template (0.0ms)
588
+ Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
589
+  (0.1ms) rollback transaction
590
+  (0.1ms) begin transaction
591
+ ----------------------------------------------------------------
592
+ SiringaControllerTest: test_load_action_passing_existing_factory
593
+ ----------------------------------------------------------------
594
+ Processing by Siringa::SiringaController#load as HTML
595
+ Parameters: {"definition"=>"initial"}
596
+ Completed 405 Method Not Allowed in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
597
+  (0.1ms) rollback transaction
598
+  (0.3ms) begin transaction
599
+ ----------------------------------------------------------------------------
600
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
601
+ ----------------------------------------------------------------------------
602
+ Processing by Siringa::SiringaController#load as HTML
603
+ Parameters: {"definition"=>"papapa"}
604
+ Rendered text template (0.0ms)
605
+ Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
606
+  (0.1ms) rollback transaction
607
+  (0.1ms) begin transaction
608
+ ----------------------------------------------------------------
609
+ SiringaControllerTest: test_load_action_passing_existing_factory
610
+ ----------------------------------------------------------------
611
+ Processing by Siringa::SiringaController#load as HTML
612
+ Parameters: {"definition"=>"initial"}
613
+ Completed 405 Method Not Allowed in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
614
+  (0.1ms) rollback transaction
615
+  (0.3ms) begin transaction
616
+ ----------------------------------------------------------------------------
617
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
618
+ ----------------------------------------------------------------------------
619
+ Processing by Siringa::SiringaController#load as HTML
620
+ Parameters: {"definition"=>"papapa"}
621
+ Rendered text template (0.0ms)
622
+ Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
623
+  (0.1ms) rollback transaction
624
+  (0.1ms) begin transaction
625
+ ----------------------------------------------------------------
626
+ SiringaControllerTest: test_load_action_passing_existing_factory
627
+ ----------------------------------------------------------------
628
+ Processing by Siringa::SiringaController#load as HTML
629
+ Parameters: {"definition"=>"initial"}
630
+  (0.1ms) SAVEPOINT active_record_1
631
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
633
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.6ms)
634
+  (0.1ms) rollback transaction
635
+  (0.3ms) begin transaction
636
+ ----------------------------------------------------------------------------
637
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
638
+ ----------------------------------------------------------------------------
639
+ Processing by Siringa::SiringaController#load as HTML
640
+ Parameters: {"definition"=>"papapa"}
641
+ Rendered text template (0.0ms)
642
+ Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
643
+  (0.1ms) rollback transaction
644
+  (0.1ms) begin transaction
645
+ ----------------------------------------------------------------
646
+ SiringaControllerTest: test_load_action_passing_existing_factory
647
+ ----------------------------------------------------------------
648
+ Processing by Siringa::SiringaController#load as HTML
649
+ Parameters: {"definition"=>"initial"}
650
+ Completed 405 Method Not Allowed in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
651
+  (0.1ms) rollback transaction
652
+  (0.3ms) begin transaction
653
+ ----------------------------------------------------------------------------
654
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
655
+ ----------------------------------------------------------------------------
656
+ Processing by Siringa::SiringaController#load as HTML
657
+ Parameters: {"definition"=>"papapa"}
658
+ Rendered text template (0.0ms)
659
+ Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
660
+  (0.1ms) rollback transaction
661
+  (0.1ms) begin transaction
662
+ ----------------------------------------------------------------
663
+ SiringaControllerTest: test_load_action_passing_existing_factory
664
+ ----------------------------------------------------------------
665
+ Processing by Siringa::SiringaController#load as HTML
666
+ Parameters: {"definition"=>"initial"}
667
+  (0.1ms) SAVEPOINT active_record_1
668
+ SQL (29919.8ms) INSERT INTO "users" DEFAULT VALUES
669
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
670
+ Completed 500 Internal Server Error in 29931ms
671
+  (0.2ms) rollback transaction
672
+  (0.3ms) begin transaction
673
+ ----------------------------------------------------------------------------
674
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
675
+ ----------------------------------------------------------------------------
676
+ Processing by Siringa::SiringaController#load as HTML
677
+ Parameters: {"definition"=>"papapa"}
678
+ Rendered text template (0.0ms)
679
+ Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
680
+  (0.1ms) rollback transaction
681
+  (0.1ms) begin transaction
682
+ ----------------------------------------------------------------
683
+ SiringaControllerTest: test_load_action_passing_existing_factory
684
+ ----------------------------------------------------------------
685
+ Processing by Siringa::SiringaController#load as HTML
686
+ Parameters: {"definition"=>"initial"}
687
+  (0.1ms) SAVEPOINT active_record_1
688
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
689
+  (0.1ms) RELEASE SAVEPOINT active_record_1
690
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
691
+  (0.1ms) rollback transaction
692
+  (0.3ms) begin transaction
693
+ ----------------------------------------------------------------------------
694
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
695
+ ----------------------------------------------------------------------------
696
+ Processing by Siringa::SiringaController#load as HTML
697
+ Parameters: {"definition"=>"papapa"}
698
+ Rendered text template (0.0ms)
699
+ Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
700
+  (0.1ms) rollback transaction
701
+  (0.1ms) begin transaction
702
+ ----------------------------------------------------------------
703
+ SiringaControllerTest: test_load_action_passing_existing_factory
704
+ ----------------------------------------------------------------
705
+ Processing by Siringa::SiringaController#load as HTML
706
+ Parameters: {"definition"=>"initial"}
707
+  (0.1ms) SAVEPOINT active_record_1
708
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
709
+  (0.1ms) RELEASE SAVEPOINT active_record_1
710
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.6ms)
711
+  (0.1ms) rollback transaction
712
+  (0.3ms) begin transaction
713
+ ----------------------------------------------------------------------------
714
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
715
+ ----------------------------------------------------------------------------
716
+ Processing by Siringa::SiringaController#load as HTML
717
+ Parameters: {"definition"=>"papapa"}
718
+ Rendered text template (0.0ms)
719
+ Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
720
+  (0.1ms) rollback transaction
721
+  (0.1ms) begin transaction
722
+ ----------------------------------------------------------------
723
+ SiringaControllerTest: test_load_action_passing_existing_factory
724
+ ----------------------------------------------------------------
725
+ Processing by Siringa::SiringaController#load as HTML
726
+ Parameters: {"definition"=>"initial"}
727
+  (0.1ms) SAVEPOINT active_record_1
728
+ SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
730
+ Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
731
+  (0.1ms) rollback transaction
732
+  (0.3ms) begin transaction
733
+ ----------------------------------------------------------------------------
734
+ SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
735
+ ----------------------------------------------------------------------------
736
+ Processing by Siringa::SiringaController#load as HTML
737
+ Parameters: {"definition"=>"papapa"}
738
+ Rendered text template (0.0ms)
739
+ Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
740
+  (0.1ms) rollback transaction
741
+  (0.1ms) begin transaction
742
+ ----------------------------------------------------------------
743
+ SiringaControllerTest: test_load_action_passing_existing_factory
744
+ ----------------------------------------------------------------
249
745
  Processing by Siringa::SiringaController#load as HTML
250
746
  Parameters: {"definition"=>"initial"}
251
747
   (0.1ms) SAVEPOINT active_record_1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siringa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrico Stano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-28 00:00:00.000000000 Z
11
+ date: 2013-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -43,7 +43,6 @@ files:
43
43
  - lib/tasks/siringa_tasks.rake
44
44
  - lib/siringa.rb
45
45
  - lib/generators/siringa/install_generator.rb
46
- - lib/generators/templates/siringa_initializer.rb
47
46
  - MIT-LICENSE
48
47
  - Rakefile
49
48
  - README.md
@@ -60,7 +59,6 @@ files:
60
59
  - test/dummy/config/initializers/backtrace_silencers.rb
61
60
  - test/dummy/config/initializers/mime_types.rb
62
61
  - test/dummy/config/initializers/inflections.rb
63
- - test/dummy/config/initializers/siringa.rb
64
62
  - test/dummy/config/initializers/session_store.rb
65
63
  - test/dummy/config/initializers/secret_token.rb
66
64
  - test/dummy/config/initializers/wrap_parameters.rb
@@ -108,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
106
  version: '0'
109
107
  requirements: []
110
108
  rubyforge_project:
111
- rubygems_version: 2.0.3
109
+ rubygems_version: 2.1.11
112
110
  signing_key:
113
111
  specification_version: 4
114
112
  summary: Remotely populate DB for Rails applications for pure client acceptance testing
@@ -126,7 +124,6 @@ test_files:
126
124
  - test/dummy/config/initializers/backtrace_silencers.rb
127
125
  - test/dummy/config/initializers/mime_types.rb
128
126
  - test/dummy/config/initializers/inflections.rb
129
- - test/dummy/config/initializers/siringa.rb
130
127
  - test/dummy/config/initializers/session_store.rb
131
128
  - test/dummy/config/initializers/secret_token.rb
132
129
  - test/dummy/config/initializers/wrap_parameters.rb
@@ -1,2 +0,0 @@
1
- # config/initializers/siringa.rb
2
- Siringa.load_definitions if defined? Siringa
@@ -1 +0,0 @@
1
- Siringa.load_definitions if defined? Siringa