where_is_nil 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/where_is_nil/version.rb +1 -1
- data/test/dummy/log/test.log +133 -0
- data/test/test_helper.rb +3 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2353409c1665160afe6f8ee99a050c8f894eeb75
|
4
|
+
data.tar.gz: 8b67ea59cd63ae9f4c46d600865415cef3034e38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67a2fc242ff1b6acbf828052a5f21b8bc1f79be55d70f1a8abbae17babbed5806dd63446c06372b35f0136ccc325a0cb9d75702f617a3f557cac60b96ea446c8
|
7
|
+
data.tar.gz: 4af7567bc04ab6f1bcfb8184d49055d09da7acd2b6062d33be2e351020f4b32c475c2835a05b992dd929173090b12a3cecf2c663e49982440d8b33f8b706df7a
|
data/lib/where_is_nil/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -15949,3 +15949,136 @@ WhereIsNilTest: test_Version
|
|
15949
15949
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 3], ["created_at", "2015-02-12 13:50:27.431800"], ["updated_at", "2015-02-12 13:50:27.431800"]]
|
15950
15950
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15951
15951
|
[1m[35m (0.9ms)[0m rollback transaction
|
15952
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15953
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15954
|
+
---------------------------------------
|
15955
|
+
WhereIsNilTest: test_config.warning_log
|
15956
|
+
---------------------------------------
|
15957
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
15958
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-02-12 22:56:18.066092"], ["updated_at", "2015-02-12 22:56:18.066092"]]
|
15959
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15960
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15961
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 2], ["created_at", "2015-02-12 22:56:18.090878"], ["updated_at", "2015-02-12 22:56:18.090878"]]
|
15962
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15963
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
15964
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 3], ["created_at", "2015-02-12 22:56:18.093299"], ["updated_at", "2015-02-12 22:56:18.093299"]]
|
15965
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15966
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
15967
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
15968
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
15969
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15970
|
+
-------------------------------------
|
15971
|
+
WhereIsNilTest: test_config.not_found
|
15972
|
+
-------------------------------------
|
15973
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15974
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 1], ["created_at", "2015-02-12 22:56:18.099974"], ["updated_at", "2015-02-12 22:56:18.099974"]]
|
15975
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15976
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15977
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 2], ["created_at", "2015-02-12 22:56:18.102285"], ["updated_at", "2015-02-12 22:56:18.102285"]]
|
15978
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15979
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15980
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 3], ["created_at", "2015-02-12 22:56:18.103770"], ["updated_at", "2015-02-12 22:56:18.103770"]]
|
15981
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15982
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
15983
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
15984
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
15985
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
15986
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
15987
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
15988
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
15989
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
15990
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" BETWEEN 1 AND 3) LIMIT 1
|
15991
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
15992
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
15993
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" BETWEEN 1 AND 3) LIMIT 1
|
15994
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
15995
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
15996
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
15997
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
15998
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
15999
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16000
|
+
---------------------------
|
16001
|
+
WhereIsNilTest: test_Sanity
|
16002
|
+
---------------------------
|
16003
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16004
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-02-12 22:56:18.146011"], ["updated_at", "2015-02-12 22:56:18.146011"]]
|
16005
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16006
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16007
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 2], ["created_at", "2015-02-12 22:56:18.147757"], ["updated_at", "2015-02-12 22:56:18.147757"]]
|
16008
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
16009
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16010
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 3], ["created_at", "2015-02-12 22:56:18.149280"], ["updated_at", "2015-02-12 22:56:18.149280"]]
|
16011
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16012
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
16013
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16014
|
+
-------------------------------------
|
16015
|
+
WhereIsNilTest: test_Default_settings
|
16016
|
+
-------------------------------------
|
16017
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16018
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 1], ["created_at", "2015-02-12 22:56:18.151933"], ["updated_at", "2015-02-12 22:56:18.151933"]]
|
16019
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
16020
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16021
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 2], ["created_at", "2015-02-12 22:56:18.153449"], ["updated_at", "2015-02-12 22:56:18.153449"]]
|
16022
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16023
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16024
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 3], ["created_at", "2015-02-12 22:56:18.154901"], ["updated_at", "2015-02-12 22:56:18.154901"]]
|
16025
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16026
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
16027
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16028
|
+
----------------------------
|
16029
|
+
WhereIsNilTest: test_Version
|
16030
|
+
----------------------------
|
16031
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16032
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-02-12 22:56:18.158091"], ["updated_at", "2015-02-12 22:56:18.158091"]]
|
16033
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16034
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16035
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 2], ["created_at", "2015-02-12 22:56:18.159868"], ["updated_at", "2015-02-12 22:56:18.159868"]]
|
16036
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
16037
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16038
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 3], ["created_at", "2015-02-12 22:56:18.161323"], ["updated_at", "2015-02-12 22:56:18.161323"]]
|
16039
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16040
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
16041
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
16042
|
+
---------------------------------------
|
16043
|
+
WhereIsNilTest: test_config.raise_error
|
16044
|
+
---------------------------------------
|
16045
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16046
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 1], ["created_at", "2015-02-12 22:56:18.163842"], ["updated_at", "2015-02-12 22:56:18.163842"]]
|
16047
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16048
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16049
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 2], ["created_at", "2015-02-12 22:56:18.165279"], ["updated_at", "2015-02-12 22:56:18.165279"]]
|
16050
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16051
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16052
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 3], ["created_at", "2015-02-12 22:56:18.166651"], ["updated_at", "2015-02-12 22:56:18.166651"]]
|
16053
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
16054
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
16055
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
16056
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
16057
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
16058
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
16059
|
+
[1m[35m (0.1ms)[0m begin transaction
|
16060
|
+
-----------------------------------
|
16061
|
+
WhereIsNilTest: test_config.enabled
|
16062
|
+
-----------------------------------
|
16063
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16064
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-02-12 22:56:18.171857"], ["updated_at", "2015-02-12 22:56:18.171857"]]
|
16065
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16066
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16067
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 2], ["created_at", "2015-02-12 22:56:18.174623"], ["updated_at", "2015-02-12 22:56:18.174623"]]
|
16068
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16069
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16070
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 3], ["created_at", "2015-02-12 22:56:18.177009"], ["updated_at", "2015-02-12 22:56:18.177009"]]
|
16071
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16072
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
16073
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
16074
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
16075
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
16076
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
16077
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" BETWEEN 1 AND 3) LIMIT 1[0m
|
16078
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
16079
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" BETWEEN 1 AND 3) LIMIT 1[0m
|
16080
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
16081
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
16082
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
16083
|
+
Why do you find by nil? Did you mean `find_by(id: nil)`?
|
16084
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: where_is_nil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tnantoka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description: Raise error, print
|
55
|
+
description: Raise error, print warning log, return nil when call find by nil or Fixnum.
|
56
56
|
email:
|
57
57
|
- tnantoka@bornneet.com
|
58
58
|
executables: []
|