attr_object 0.0.4 → 0.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6fd2c0b5cb2588754145ecc6cf458ba59477fe9
|
4
|
+
data.tar.gz: a7d45adef0056fa63d851ab48bb5e3781b3332cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e5456a3cc3f102230f473720b971ac9de98a3bfae33e1bd3d949b91322e9eca638ce72d8d03bc60e281a2107fa5033857811b9e8901e5797ed672afe71037f9
|
7
|
+
data.tar.gz: d1702486deb5cb52e7bb9db558b62482eba7298f56021c55b4d472a091b69094af84ec3932835881910cef201c5d825a2a53feae28300d11f266b12f484d923b
|
data/lib/attr_object/version.rb
CHANGED
@@ -2,7 +2,6 @@ class AttrObjectGenerator < Rails::Generators::NamedBase
|
|
2
2
|
source_root File.expand_path('../templates', __FILE__)
|
3
3
|
|
4
4
|
def create_attr_object_file
|
5
|
-
#template "attr_object.rb", File.join('app/attr_objects/phone_attr.rb')
|
6
5
|
template "attr_object.rb", "app/attr_objects/#{lower_class_name}_attr.rb"
|
7
6
|
end
|
8
7
|
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -15102,3 +15102,44 @@ AttrObjectGeneratorTest: test_generator_with_invalid_class
|
|
15102
15102
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["position", 99], ["created_at", "2016-01-12 11:52:56.027393"], ["updated_at", "2016-01-12 11:52:56.027393"]]
|
15103
15103
|
[1m[35m (11.7ms)[0m commit transaction
|
15104
15104
|
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 520]]
|
15105
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15106
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15107
|
+
----------------------------------------------------------
|
15108
|
+
AttrObjectGeneratorTest: test_generator_with_invalid_class
|
15109
|
+
----------------------------------------------------------
|
15110
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
15111
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15112
|
+
--------------------------------------------------
|
15113
|
+
AttrObjectGeneratorTest: test_generator_with_class
|
15114
|
+
--------------------------------------------------
|
15115
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
15116
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15117
|
+
-----------------------------------------------------------
|
15118
|
+
AttrObjectGeneratorTest: test_generator_runs_without_errors
|
15119
|
+
-----------------------------------------------------------
|
15120
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
15121
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15122
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["position", 1], ["created_at", "2016-01-12 12:40:20.107337"], ["updated_at", "2016-01-12 12:40:20.107337"]]
|
15123
|
+
[1m[35m (20.0ms)[0m commit transaction
|
15124
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 521]]
|
15125
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15126
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["position", 99], ["created_at", "2016-01-12 12:40:20.149377"], ["updated_at", "2016-01-12 12:40:20.149377"]]
|
15127
|
+
[1m[35m (13.1ms)[0m commit transaction
|
15128
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 522]]
|
15129
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15130
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["position", 0], ["created_at", "2016-01-12 12:40:20.165671"], ["updated_at", "2016-01-12 12:40:20.165671"]]
|
15131
|
+
[1m[35m (11.9ms)[0m commit transaction
|
15132
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 523]]
|
15133
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15134
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15135
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["position", 99], ["created_at", "2016-01-12 12:41:26.473496"], ["updated_at", "2016-01-12 12:41:26.473496"]]
|
15136
|
+
[1m[35m (19.6ms)[0m commit transaction
|
15137
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 524]]
|
15138
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15139
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["position", 0], ["created_at", "2016-01-12 12:41:26.505980"], ["updated_at", "2016-01-12 12:41:26.505980"]]
|
15140
|
+
[1m[35m (12.9ms)[0m commit transaction
|
15141
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 525]]
|
15142
|
+
[1m[35m (0.1ms)[0m begin transaction
|
15143
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["position", 1], ["created_at", "2016-01-12 12:41:26.522487"], ["updated_at", "2016-01-12 12:41:26.522487"]]
|
15144
|
+
[1m[35m (11.9ms)[0m commit transaction
|
15145
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 526]]
|
@@ -1,2 +1,2 @@
|
|
1
|
-
class PhoneAttr
|
1
|
+
class PhoneAttr
|
2
2
|
end
|