g5_updatable 0.3.4 → 0.3.5

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: 61c6dd80e6a5144741debe9dba69c73e0d004d52
4
- data.tar.gz: 9ce50fe0889062777a9b864709f2b75ec949234b
3
+ metadata.gz: 8726307812a3c895e3482260eb09506fefbe5ea9
4
+ data.tar.gz: 3df55b6849a8d7e48f9cdb2757a85a89b5d4c91d
5
5
  SHA512:
6
- metadata.gz: 7b420f4d2bb54e2853af06afd30932104ccb7a5f8de9d8676f08f599dbbc8bb3340e7696d3dfae0e01ee2d4b22b2315157e0b26ecbb92b1277e14735e1dc15d5
7
- data.tar.gz: a7375ee8377c118754473314bf85f777dd045b473850d2d6d0eb19b7f79e8f21116348c8d57a6ec6e1e59b69d360b576f8cf536778e088189335566783e61d10
6
+ metadata.gz: fec495cffd7f1268be9cb23077d6309e32e6d92ae4bd17a5802fed4aede81f3c1115a7ed16ad725ae5beb7dcc383fe6a19a5b8060ec4eec7a9a305361578e6d8
7
+ data.tar.gz: fc262ff653dd36ea6111d0a243f16daaaf3e0b095402dcc258a5d462a1a23b5c5e94a968369b03d66b793f55bf4187cc5d4d93bfe24e96e455ebeb8d6835e74e
@@ -0,0 +1,10 @@
1
+ class UpdateNames < ActiveRecord::Migration
2
+ def change
3
+ G5Updatable::Client.all.each do |client|
4
+ client.update_attributes(name: client.properties['name'])
5
+ end
6
+ G5Updatable::Location.all.each do |location|
7
+ location.update_attributes(name: location.properties['name'])
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module G5Updatable
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20141211211945) do
14
+ ActiveRecord::Schema.define(version: 20141211711945) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
@@ -15,3 +15,11 @@ Migrating to AddNameToClientsAndLocations (20141211211945)
15
15
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
16
16
  ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
17
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
18
+ ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
19
+ Migrating to UpdateNames (20141211711945)
20
+  (0.2ms) BEGIN
21
+ G5Updatable::Client Load (2.9ms) SELECT "g5_updatable_clients".* FROM "g5_updatable_clients"
22
+ G5Updatable::Location Load (2.2ms) SELECT "g5_updatable_locations".* FROM "g5_updatable_locations"
23
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141211711945"]]
24
+  (0.6ms) COMMIT
25
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g5_updatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-11 00:00:00.000000000 Z
11
+ date: 2014-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -163,6 +163,7 @@ files:
163
163
  - db/migrate/20141030211945_create_integration_setting.rb
164
164
  - db/migrate/20141122211945_remove_integration_setting.rb
165
165
  - db/migrate/20141211211945_add_name_to_clients_and_locations.rb
166
+ - db/migrate/20141211711945_update_names.rb
166
167
  - lib/g5_updatable.rb
167
168
  - lib/g5_updatable/client_feed_processor.rb
168
169
  - lib/g5_updatable/client_updater.rb