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: 1ace86405712071ea93d4aebe07ba60e276cf053
4
- data.tar.gz: 307a11dee65fe5cfe8d7f3febc6993bc1c106c2d
3
+ metadata.gz: a6fd2c0b5cb2588754145ecc6cf458ba59477fe9
4
+ data.tar.gz: a7d45adef0056fa63d851ab48bb5e3781b3332cf
5
5
  SHA512:
6
- metadata.gz: 4103cb682b654f8d6c00b3990ac9d85acdde53e702974120a7c77358d7586eb696142425bfaf91ecb3ddfe2fd126bf34d21c4ba395235029522e1fc74b3c8f23
7
- data.tar.gz: da4af9fc030c10d82e048d7834963b8c4f2bdf41ad9aac09d5e3d985df1a2339ca5b7d6fb2efcebe1c88b68f694586e407bad27ba4bc276a043c4af3364e4b37
6
+ metadata.gz: 3e5456a3cc3f102230f473720b971ac9de98a3bfae33e1bd3d949b91322e9eca638ce72d8d03bc60e281a2107fa5033857811b9e8901e5797ed672afe71037f9
7
+ data.tar.gz: d1702486deb5cb52e7bb9db558b62482eba7298f56021c55b4d472a091b69094af84ec3932835881910cef201c5d825a2a53feae28300d11f266b12f484d923b
@@ -1,3 +1,3 @@
1
1
  module AttrObject
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -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
 
Binary file
@@ -15102,3 +15102,44 @@ AttrObjectGeneratorTest: test_generator_with_invalid_class
15102
15102
  SQL (0.1ms) INSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?) [["position", 99], ["created_at", "2016-01-12 11:52:56.027393"], ["updated_at", "2016-01-12 11:52:56.027393"]]
15103
15103
   (11.7ms) commit transaction
15104
15104
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 520]]
15105
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15106
+  (0.1ms) begin transaction
15107
+ ----------------------------------------------------------
15108
+ AttrObjectGeneratorTest: test_generator_with_invalid_class
15109
+ ----------------------------------------------------------
15110
+  (0.1ms) rollback transaction
15111
+  (0.0ms) begin transaction
15112
+ --------------------------------------------------
15113
+ AttrObjectGeneratorTest: test_generator_with_class
15114
+ --------------------------------------------------
15115
+  (0.1ms) rollback transaction
15116
+  (0.0ms) begin transaction
15117
+ -----------------------------------------------------------
15118
+ AttrObjectGeneratorTest: test_generator_runs_without_errors
15119
+ -----------------------------------------------------------
15120
+  (0.1ms) rollback transaction
15121
+  (0.1ms) begin transaction
15122
+ SQL (0.4ms) INSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?) [["position", 1], ["created_at", "2016-01-12 12:40:20.107337"], ["updated_at", "2016-01-12 12:40:20.107337"]]
15123
+  (20.0ms) commit transaction
15124
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 521]]
15125
+  (0.1ms) begin transaction
15126
+ SQL (0.2ms) INSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?) [["position", 99], ["created_at", "2016-01-12 12:40:20.149377"], ["updated_at", "2016-01-12 12:40:20.149377"]]
15127
+  (13.1ms) commit transaction
15128
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 522]]
15129
+  (0.1ms) begin transaction
15130
+ SQL (0.2ms) INSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?) [["position", 0], ["created_at", "2016-01-12 12:40:20.165671"], ["updated_at", "2016-01-12 12:40:20.165671"]]
15131
+  (11.9ms) commit transaction
15132
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 523]]
15133
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15134
+  (0.1ms) begin transaction
15135
+ SQL (0.4ms) INSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?) [["position", 99], ["created_at", "2016-01-12 12:41:26.473496"], ["updated_at", "2016-01-12 12:41:26.473496"]]
15136
+  (19.6ms) commit transaction
15137
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 524]]
15138
+  (0.1ms) begin transaction
15139
+ SQL (0.2ms) INSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?) [["position", 0], ["created_at", "2016-01-12 12:41:26.505980"], ["updated_at", "2016-01-12 12:41:26.505980"]]
15140
+  (12.9ms) commit transaction
15141
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 525]]
15142
+  (0.1ms) begin transaction
15143
+ SQL (0.2ms) INSERT INTO "users" ("position", "created_at", "updated_at") VALUES (?, ?, ?) [["position", 1], ["created_at", "2016-01-12 12:41:26.522487"], ["updated_at", "2016-01-12 12:41:26.522487"]]
15144
+  (11.9ms) commit transaction
15145
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 526]]
@@ -1,2 +1,2 @@
1
- class PhoneAttr < DelegateClass(InvalidRubyClass)
1
+ class PhoneAttr
2
2
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attr_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - dsimard