built_in_data 1.0.0 → 1.0.1

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: 4dc77652db6efcf0d917f8b071a85058225ecdb0
4
- data.tar.gz: cd0f1b94d7f03df2c78bbbfcf87bb67530843efd
3
+ metadata.gz: c4e4e20ddfd99284928ca78469531ddfe129ea93
4
+ data.tar.gz: 9007db83c5225dce2fc96805c3b4de78b55eedfd
5
5
  SHA512:
6
- metadata.gz: eb7b1ad1e5e6f94a53ef38af30a6e2e8136186ed3ad3da29c66bdef047c0cf19349655d886d5942d810c161933671d543ac845384296744d3a698fff2fc0b714
7
- data.tar.gz: ec5ed212089d7f920e4289670ef49b1a8d81efe3a7d643e3c8041db6b37b41ad8a3cdd699cab9bf1c53bd7a9d7599943046797e8b956c71cb094e23e54cf71ad
6
+ metadata.gz: dc2ef8e33c46fb75cddd5b07b8b01c698f71b6ca73b3de0c80378d10881691198ffb29ba98d84c3d2d6ea1d8950ebc70bc26f89f206d144afabb20a1dd92fffa
7
+ data.tar.gz: a52d9af452e3f706c39eb0ff18853b9e3f7ec4dc4d5f752e85ca54761d58a80d1fc0aba0345665db37f5d83a2a07723346f9075d0cd28a45f6b988e9c50eeb1f
@@ -1,3 +1,3 @@
1
1
  module BuiltInData
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -3442,3 +3442,148 @@ BuiltInDataTest: test_should_update_existing_built_in_data
3442
3442
  NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3443
3443
  NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3444
3444
   (0.5ms) rollback transaction
3445
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3446
+  (0.1ms) begin transaction
3447
+ -----------------------------------------------
3448
+ BuiltInDataTest: test_should_load_built_in_data
3449
+ -----------------------------------------------
3450
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
3451
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3452
+  (0.0ms) SAVEPOINT active_record_1
3453
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3454
+ SQL (0.4ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-12 00:45:15.123249"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-12 00:45:15.123249"], ["url", "http://www.nps.gov/yell/index.htm"]]
3455
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3456
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3457
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3458
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3459
+  (0.4ms) rollback transaction
3460
+  (0.0ms) begin transaction
3461
+ --------------------------------------------------------------
3462
+ BuiltInDataTest: test_should_load_built_in_data_from_yaml_file
3463
+ --------------------------------------------------------------
3464
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
3465
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3466
+  (0.0ms) SAVEPOINT active_record_1
3467
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3468
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-12 00:45:15.132959"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-12 00:45:15.132959"], ["url", "http://www.nps.gov/yell/index.htm"]]
3469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3470
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3471
+  (0.0ms) SAVEPOINT active_record_1
3472
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3473
+ SQL (0.7ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-12 00:45:15.134633"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-12 00:45:15.134633"], ["url", "http://www.nps.gov/glac/index.htm"]]
3474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3475
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3476
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3477
+  (2.3ms) rollback transaction
3478
+  (0.1ms) begin transaction
3479
+ --------------------------------------------------------------
3480
+ BuiltInDataTest: test_should_load_elements_from_file_only_once
3481
+ --------------------------------------------------------------
3482
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3483
+  (0.0ms) SAVEPOINT active_record_1
3484
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3485
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-12 00:45:15.141465"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-12 00:45:15.141465"], ["url", "http://www.nps.gov/yell/index.htm"]]
3486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3487
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3488
+  (0.0ms) SAVEPOINT active_record_1
3489
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3490
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-12 00:45:15.143073"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-12 00:45:15.143073"], ["url", "http://www.nps.gov/glac/index.htm"]]
3491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3492
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3493
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3494
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3495
+  (0.0ms) SAVEPOINT active_record_1
3496
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'yellowstone' AND "national_parks"."id" != 1) LIMIT 1
3497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3498
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3499
+  (0.0ms) SAVEPOINT active_record_1
3500
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'glacier' AND "national_parks"."id" != 2) LIMIT 1
3501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3502
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3503
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3504
+  (0.5ms) rollback transaction
3505
+  (0.0ms) begin transaction
3506
+ -----------------------------------------------------------------------
3507
+ BuiltInDataTest: test_should_not_remove_a_record_without_a_built_in_key
3508
+ -----------------------------------------------------------------------
3509
+  (0.0ms) SAVEPOINT active_record_1
3510
+ SQL (0.2ms) INSERT INTO "national_parks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 00:45:15.149587"], ["name", "Testing"], ["updated_at", "2014-11-12 00:45:15.149587"]]
3511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3512
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3513
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3514
+  (0.0ms) SAVEPOINT active_record_1
3515
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3516
+ SQL (0.3ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-12 00:45:15.151484"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-12 00:45:15.151484"], ["url", "http://www.nps.gov/yell/index.htm"]]
3517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3518
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3519
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3520
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."id" = ? LIMIT 1 [["id", 1]]
3521
+  (0.4ms) rollback transaction
3522
+  (0.1ms) begin transaction
3523
+ -----------------------------------------------------
3524
+ BuiltInDataTest: test_should_process_erb_in_yaml_file
3525
+ -----------------------------------------------------
3526
+  (0.0ms) rollback transaction
3527
+  (0.0ms) begin transaction
3528
+ -------------------------------------------------
3529
+ BuiltInDataTest: test_should_remove_built_in_data
3530
+ -------------------------------------------------
3531
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3532
+  (0.0ms) SAVEPOINT active_record_1
3533
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3534
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-12 00:45:15.155806"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-12 00:45:15.155806"], ["url", "http://www.nps.gov/yell/index.htm"]]
3535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3536
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3537
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3538
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3539
+  (0.0ms) SAVEPOINT active_record_1
3540
+ SQL (0.2ms) DELETE FROM "national_parks" WHERE "national_parks"."id" = ? [["id", 1]]
3541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3542
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3543
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3544
+  (0.4ms) rollback transaction
3545
+  (0.0ms) begin transaction
3546
+ -------------------------------------------------------------------
3547
+ BuiltInDataTest: test_should_return_active_record_objects_from_load
3548
+ -------------------------------------------------------------------
3549
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3550
+  (0.0ms) SAVEPOINT active_record_1
3551
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3552
+ SQL (0.7ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-12 00:45:15.160688"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-12 00:45:15.160688"], ["url", "http://www.nps.gov/yell/index.htm"]]
3553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3554
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3555
+  (0.0ms) SAVEPOINT active_record_1
3556
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3557
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-12 00:45:15.162715"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-12 00:45:15.162715"], ["url", "http://www.nps.gov/glac/index.htm"]]
3558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3559
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3560
+  (0.4ms) rollback transaction
3561
+  (0.0ms) begin transaction
3562
+ -------------------------------------------------------
3563
+ BuiltInDataTest: test_should_return_false_for_built_in?
3564
+ -------------------------------------------------------
3565
+  (0.0ms) rollback transaction
3566
+  (0.0ms) begin transaction
3567
+ ------------------------------------------------------
3568
+ BuiltInDataTest: test_should_return_true_for_built_in?
3569
+ ------------------------------------------------------
3570
+  (0.0ms) rollback transaction
3571
+  (0.0ms) begin transaction
3572
+ ----------------------------------------------------------
3573
+ BuiltInDataTest: test_should_update_existing_built_in_data
3574
+ ----------------------------------------------------------
3575
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3576
+  (0.0ms) SAVEPOINT active_record_1
3577
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3578
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-12 00:45:15.166161"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-12 00:45:15.166161"], ["url", "http://www.nps.gov/yell/index.htm"]]
3579
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3580
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3581
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3582
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3583
+  (0.0ms) SAVEPOINT active_record_1
3584
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'test' AND "national_parks"."id" != 1) LIMIT 1
3585
+ SQL (0.3ms) UPDATE "national_parks" SET "updated_at" = ?, "url" = ? WHERE "national_parks"."id" = 1 [["updated_at", "2014-11-12 00:45:15.168156"], ["url", "http://en.wikipedia.org/wiki/Yellowstone_National_Park"]]
3586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3587
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3588
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3589
+  (0.6ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: built_in_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Baldwin
@@ -16,9 +16,6 @@ dependencies:
16
16
  name: rails
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '='
20
- - !ruby/object:Gem::Version
21
- version: 4.1.7
22
19
  - - '>='
23
20
  - !ruby/object:Gem::Version
24
21
  version: 4.0.0
@@ -26,9 +23,6 @@ dependencies:
26
23
  prerelease: false
27
24
  version_requirements: !ruby/object:Gem::Requirement
28
25
  requirements:
29
- - - '='
30
- - !ruby/object:Gem::Version
31
- version: 4.1.7
32
26
  - - '>='
33
27
  - !ruby/object:Gem::Version
34
28
  version: 4.0.0