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 +4 -4
- data/db/migrate/20141211711945_update_names.rb +10 -0
- data/lib/g5_updatable/version.rb +1 -1
- data/spec/dummy/db/schema.rb +1 -1
- data/spec/dummy/log/development.log +8 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8726307812a3c895e3482260eb09506fefbe5ea9
|
4
|
+
data.tar.gz: 3df55b6849a8d7e48f9cdb2757a85a89b5d4c91d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/g5_updatable/version.rb
CHANGED
data/spec/dummy/db/schema.rb
CHANGED
@@ -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:
|
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
|
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16
16
|
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
17
17
|
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
18
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19
|
+
Migrating to UpdateNames (20141211711945)
|
20
|
+
[1m[35m (0.2ms)[0m BEGIN
|
21
|
+
[1m[36mG5Updatable::Client Load (2.9ms)[0m [1mSELECT "g5_updatable_clients".* FROM "g5_updatable_clients"[0m
|
22
|
+
[1m[35mG5Updatable::Location Load (2.2ms)[0m SELECT "g5_updatable_locations".* FROM "g5_updatable_locations"
|
23
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141211711945"]]
|
24
|
+
[1m[35m (0.6ms)[0m COMMIT
|
25
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
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
|
+
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
|
+
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
|