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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06606ec82a19d5d49de0d9ca294fa3329c5932a9
4
- data.tar.gz: e5a0789b43ca8d9ad55691674221828752e002ad
3
+ metadata.gz: 2353409c1665160afe6f8ee99a050c8f894eeb75
4
+ data.tar.gz: 8b67ea59cd63ae9f4c46d600865415cef3034e38
5
5
  SHA512:
6
- metadata.gz: d8690b2a5c8eed941133d236b3d165d126cb10780813a317cb6e9574bbcaca54c19b28108b6df7d516e7838f84a99858fab9c21589d566c71683b3bedfcf0a7f
7
- data.tar.gz: 4ddf033c00c550107da0128874b733849fab244d72d9be98bf3a747a4cec1a988aea845cf6c114f47901bdfd16626c3634adcdd941311760ded1ecbe5e08d254
6
+ metadata.gz: 67a2fc242ff1b6acbf828052a5f21b8bc1f79be55d70f1a8abbae17babbed5806dd63446c06372b35f0136ccc325a0cb9d75702f617a3f557cac60b96ea446c8
7
+ data.tar.gz: 4af7567bc04ab6f1bcfb8184d49055d09da7acd2b6062d33be2e351020f4b32c475c2835a05b992dd929173090b12a3cecf2c663e49982440d8b33f8b706df7a
@@ -1,3 +1,3 @@
1
1
  module WhereIsNil
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -15949,3 +15949,136 @@ WhereIsNilTest: test_Version
15949
15949
  SQL (0.1ms) 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
   (0.0ms) RELEASE SAVEPOINT active_record_1
15951
15951
   (0.9ms) rollback transaction
15952
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15953
+  (0.1ms) begin transaction
15954
+ ---------------------------------------
15955
+ WhereIsNilTest: test_config.warning_log
15956
+ ---------------------------------------
15957
+  (0.1ms) SAVEPOINT active_record_1
15958
+ SQL (0.6ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15960
+  (0.1ms) SAVEPOINT active_record_1
15961
+ SQL (0.6ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 2], ["created_at", "2015-02-12 22:56:18.090878"], ["updated_at", "2015-02-12 22:56:18.090878"]]
15962
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15963
+  (0.1ms) SAVEPOINT active_record_1
15964
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15966
+ User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 1
15967
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
15968
+  (0.8ms) rollback transaction
15969
+  (0.1ms) begin transaction
15970
+ -------------------------------------
15971
+ WhereIsNilTest: test_config.not_found
15972
+ -------------------------------------
15973
+  (0.0ms) SAVEPOINT active_record_1
15974
+ SQL (0.3ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-02-12 22:56:18.099974"], ["updated_at", "2015-02-12 22:56:18.099974"]]
15975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15976
+  (0.0ms) SAVEPOINT active_record_1
15977
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15979
+  (0.0ms) SAVEPOINT active_record_1
15980
+ SQL (0.1ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 3], ["created_at", "2015-02-12 22:56:18.103770"], ["updated_at", "2015-02-12 22:56:18.103770"]]
15981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15982
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
15983
+ Why do you find by nil? Did you mean `find_by(id: nil)`?
15984
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
15985
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
15986
+ Why do you find by nil? Did you mean `find_by(id: nil)`?
15987
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
15988
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
15989
+ Why do you find by nil? Did you mean `find_by(id: nil)`?
15990
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE ("users"."id" BETWEEN 1 AND 3) LIMIT 1
15991
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
15992
+ Why do you find by nil? Did you mean `find_by(id: nil)`?
15993
+ User Load (0.1ms) 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
+  (0.8ms) rollback transaction
15999
+  (0.1ms) begin transaction
16000
+ ---------------------------
16001
+ WhereIsNilTest: test_Sanity
16002
+ ---------------------------
16003
+  (0.1ms) SAVEPOINT active_record_1
16004
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16006
+  (0.0ms) SAVEPOINT active_record_1
16007
+ SQL (0.3ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 2], ["created_at", "2015-02-12 22:56:18.147757"], ["updated_at", "2015-02-12 22:56:18.147757"]]
16008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16009
+  (0.0ms) SAVEPOINT active_record_1
16010
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16012
+  (0.8ms) rollback transaction
16013
+  (0.1ms) begin transaction
16014
+ -------------------------------------
16015
+ WhereIsNilTest: test_Default_settings
16016
+ -------------------------------------
16017
+  (0.0ms) SAVEPOINT active_record_1
16018
+ SQL (0.3ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-02-12 22:56:18.151933"], ["updated_at", "2015-02-12 22:56:18.151933"]]
16019
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16020
+  (0.0ms) SAVEPOINT active_record_1
16021
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16023
+  (0.0ms) SAVEPOINT active_record_1
16024
+ SQL (0.1ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 3], ["created_at", "2015-02-12 22:56:18.154901"], ["updated_at", "2015-02-12 22:56:18.154901"]]
16025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16026
+  (0.7ms) rollback transaction
16027
+  (0.1ms) begin transaction
16028
+ ----------------------------
16029
+ WhereIsNilTest: test_Version
16030
+ ----------------------------
16031
+  (0.0ms) SAVEPOINT active_record_1
16032
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16034
+  (0.0ms) SAVEPOINT active_record_1
16035
+ SQL (0.3ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 2], ["created_at", "2015-02-12 22:56:18.159868"], ["updated_at", "2015-02-12 22:56:18.159868"]]
16036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16037
+  (0.0ms) SAVEPOINT active_record_1
16038
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16040
+  (0.8ms) rollback transaction
16041
+  (0.1ms) begin transaction
16042
+ ---------------------------------------
16043
+ WhereIsNilTest: test_config.raise_error
16044
+ ---------------------------------------
16045
+  (0.0ms) SAVEPOINT active_record_1
16046
+ SQL (0.3ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-02-12 22:56:18.163842"], ["updated_at", "2015-02-12 22:56:18.163842"]]
16047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16048
+  (0.0ms) SAVEPOINT active_record_1
16049
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16051
+  (0.0ms) SAVEPOINT active_record_1
16052
+ SQL (0.1ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 3], ["created_at", "2015-02-12 22:56:18.166651"], ["updated_at", "2015-02-12 22:56:18.166651"]]
16053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16054
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
16055
+ Why do you find by nil? Did you mean `find_by(id: nil)`?
16056
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
16057
+ Why do you find by nil? Did you mean `find_by(id: nil)`?
16058
+  (1.2ms) rollback transaction
16059
+  (0.1ms) begin transaction
16060
+ -----------------------------------
16061
+ WhereIsNilTest: test_config.enabled
16062
+ -----------------------------------
16063
+  (0.1ms) SAVEPOINT active_record_1
16064
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16066
+  (0.1ms) SAVEPOINT active_record_1
16067
+ SQL (0.5ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 2], ["created_at", "2015-02-12 22:56:18.174623"], ["updated_at", "2015-02-12 22:56:18.174623"]]
16068
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16069
+  (0.0ms) SAVEPOINT active_record_1
16070
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
16072
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
16073
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
16074
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
16075
+ User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
16076
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
16077
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE ("users"."id" BETWEEN 1 AND 3) LIMIT 1
16078
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
16079
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" BETWEEN 1 AND 3) LIMIT 1
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
+  (0.7ms) rollback transaction
@@ -3,6 +3,9 @@ SimpleCov.start do
3
3
  add_filter '/test/'
4
4
  end
5
5
 
6
+ require "codeclimate-test-reporter"
7
+ CodeClimate::TestReporter.start
8
+
6
9
  # Configure Rails Environment
7
10
  ENV["RAILS_ENV"] = "test"
8
11
 
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.0
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-12 00:00:00.000000000 Z
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 wraning log, return nil when call find by nil or Fixnum.
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: []