active_record_date_formatted 0.0.6 → 0.0.7

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: 74779fb56c06dab2e86a349c0513c45db934633e
4
- data.tar.gz: b043ec3b7d133201ed01ef8719331a51efeb691a
3
+ metadata.gz: 2f776eb64d262844143f9ba7ee7b132604e592ec
4
+ data.tar.gz: 71700d89eaebc4e58d6b1cc1ce1a88e1702eeec0
5
5
  SHA512:
6
- metadata.gz: 3d6e5dde9de15420ad38cbb60d242a16800a9e83bd84363e0143eb8512502e111b069f4568a6a0e36378e1c64e5b46554a6da941a8c787144f6cda3a17663c97
7
- data.tar.gz: 6b3ede959bd381de1bd33e181c14e4a33f32dceae874e3774e0f3478d8b48ab4b673aa05abd47a1226d98819ba8c0c8d7dc8c42b3d1eb4ad5595c8d15efea78a
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
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordDateFormatted
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -90,3 +90,46 @@ ActiveRecordDateFormattedTest: test_module_defined
90
90
  SQL (0.1ms) INSERT INTO "people" ("birth_date", "created_at", "updated_at") VALUES (?, ?, ?) [["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
   (0.0ms) RELEASE SAVEPOINT active_record_1
92
92
   (0.2ms) rollback transaction
93
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
94
+  (0.1ms) begin transaction
95
+ ---------------------------------------------------------
96
+ ActiveRecordDateFormattedTest: test_date_formatted_getter
97
+ ---------------------------------------------------------
98
+  (0.1ms) SAVEPOINT active_record_1
99
+ SQL (0.9ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
101
+ Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
102
+ Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
103
+  (0.7ms) rollback transaction
104
+  (0.1ms) begin transaction
105
+ ----------------------------------------------------------------
106
+ ActiveRecordDateFormattedTest: test_date_formatted_getter_german
107
+ ----------------------------------------------------------------
108
+  (0.0ms) SAVEPOINT active_record_1
109
+ SQL (0.1ms) INSERT INTO "people" ("birth_date", "created_at", "updated_at") VALUES (?, ?, ?) [["birth_date", "1971-02-18"], ["created_at", "2015-10-06 06:41:45.065618"], ["updated_at", "2015-10-06 06:41:45.065618"]]
110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
111
+ Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
112
+ Person Load (0.0ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
113
+  (0.3ms) rollback transaction
114
+  (0.1ms) begin transaction
115
+ ----------------------------------------------------------------
116
+ ActiveRecordDateFormattedTest: test_date_formatted_setter_german
117
+ ----------------------------------------------------------------
118
+  (0.0ms) SAVEPOINT active_record_1
119
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
121
+ Person Load (0.0ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
122
+  (0.1ms) SAVEPOINT active_record_1
123
+ SQL (0.9ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
125
+ Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
126
+ Person Load (0.0ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
127
+  (0.5ms) rollback transaction
128
+  (0.0ms) begin transaction
129
+ --------------------------------------------------
130
+ ActiveRecordDateFormattedTest: test_module_defined
131
+ --------------------------------------------------
132
+  (0.0ms) SAVEPOINT active_record_1
133
+ SQL (0.1ms) INSERT INTO "people" ("birth_date", "created_at", "updated_at") VALUES (?, ?, ?) [["birth_date", "1971-02-18"], ["created_at", "2015-10-06 06:41:45.076957"], ["updated_at", "2015-10-06 06:41:45.076957"]]
134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
135
+  (0.3ms) rollback transaction
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.6
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-09-12 00:00:00.000000000 Z
11
+ date: 2015-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails