active_record_date_formatted 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f776eb64d262844143f9ba7ee7b132604e592ec
|
4
|
+
data.tar.gz: 71700d89eaebc4e58d6b1cc1ce1a88e1702eeec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6daa4b115c4e002c35eda27b760df4efdcc7d16185d385d50e7362670f4795388d6ae686f14b0fbce7bb7bae6ba2d354adc45a1015ee7019ff616699ff606d4c
|
7
|
+
data.tar.gz: a8e5bacd6f3d10819b294af4d351516679c975417679357e40aa058408cacc28931de264f98d30dd12f35109710afaf05e6ca41633f22a6d0e1ea522aa2bc1d5
|
@@ -5,7 +5,7 @@ module ActiveRecordDateFormatted
|
|
5
5
|
|
6
6
|
def inherited(subclass)
|
7
7
|
super
|
8
|
-
subclass.add_date_formatted_methods unless subclass == ActiveRecord::SchemaMigration
|
8
|
+
subclass.add_date_formatted_methods unless subclass == ActiveRecord::SchemaMigration || subclass.to_s.ends_with?('Temp') # todo nasty bugfix for temporary migration classes with custom table names
|
9
9
|
end
|
10
10
|
|
11
11
|
def add_date_formatted_methods
|
data/test/dummy/log/test.log
CHANGED
@@ -90,3 +90,46 @@ ActiveRecordDateFormattedTest: test_module_defined
|
|
90
90
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("birth_date", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["birth_date", "1971-02-18"], ["created_at", "2015-09-12 14:45:27.098284"], ["updated_at", "2015-09-12 14:45:27.098284"]]
|
91
91
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
92
92
|
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
93
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
94
|
+
[1m[35m (0.1ms)[0m begin transaction
|
95
|
+
---------------------------------------------------------
|
96
|
+
ActiveRecordDateFormattedTest: test_date_formatted_getter
|
97
|
+
---------------------------------------------------------
|
98
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
99
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "people" ("birth_date", "created_at", "updated_at") VALUES (?, ?, ?) [["birth_date", "1971-02-18"], ["created_at", "2015-10-06 06:41:45.057129"], ["updated_at", "2015-10-06 06:41:45.057129"]]
|
100
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
101
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
102
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
103
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
104
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
105
|
+
----------------------------------------------------------------
|
106
|
+
ActiveRecordDateFormattedTest: test_date_formatted_getter_german
|
107
|
+
----------------------------------------------------------------
|
108
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
109
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("birth_date", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["birth_date", "1971-02-18"], ["created_at", "2015-10-06 06:41:45.065618"], ["updated_at", "2015-10-06 06:41:45.065618"]]
|
110
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
111
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
112
|
+
[1m[35mPerson Load (0.0ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
113
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
114
|
+
[1m[35m (0.1ms)[0m begin transaction
|
115
|
+
----------------------------------------------------------------
|
116
|
+
ActiveRecordDateFormattedTest: test_date_formatted_setter_german
|
117
|
+
----------------------------------------------------------------
|
118
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
119
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("birth_date", "created_at", "updated_at") VALUES (?, ?, ?) [["birth_date", "1971-02-18"], ["created_at", "2015-10-06 06:41:45.067509"], ["updated_at", "2015-10-06 06:41:45.067509"]]
|
120
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
121
|
+
[1m[35mPerson Load (0.0ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
122
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
123
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "people" SET "birth_date" = ?, "updated_at" = ? WHERE "people"."id" = ? [["birth_date", "1971-02-24"], ["updated_at", "2015-10-06 06:41:45.070317"], ["id", 1]]
|
124
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
125
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
126
|
+
[1m[36mPerson Load (0.0ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
127
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
128
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
129
|
+
--------------------------------------------------
|
130
|
+
ActiveRecordDateFormattedTest: test_module_defined
|
131
|
+
--------------------------------------------------
|
132
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
133
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("birth_date", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["birth_date", "1971-02-18"], ["created_at", "2015-10-06 06:41:45.076957"], ["updated_at", "2015-10-06 06:41:45.076957"]]
|
134
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
135
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_date_formatted
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Jancev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|