building_sync_bindings 0.1.2 → 0.1.3
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/Rakefile +1 -1
- data/lib/BuildingSync.rb +660 -46
- data/lib/BuildingSync_mapping_registry.rb +258 -35
- data/lib/building_sync_rails/version.rb +1 -1
- data/lib/building_sync_tk/memoization.rb +2 -0
- data/lib/building_sync_tk/model.rb +1 -0
- data/lib/tasks/building_sync_rails_tasks.rake +18 -3
- data/public/BuildingSync.xsd +280 -2
- data/test/dummy/config/application.rb +4 -1
- metadata +35 -49
- data/test/dummy/log/development.log +0 -24
- data/test/dummy/log/test.log +0 -48
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
require File.expand_path('../boot', __FILE__)
|
|
2
2
|
|
|
3
|
+
require 'logger'
|
|
3
4
|
require 'rails/all'
|
|
4
5
|
|
|
5
6
|
Bundler.require(*Rails.groups)
|
|
@@ -20,6 +21,8 @@ module Dummy
|
|
|
20
21
|
# config.i18n.default_locale = :de
|
|
21
22
|
|
|
22
23
|
# Do not swallow errors in after_commit/after_rollback callbacks.
|
|
23
|
-
|
|
24
|
+
if ::ActiveRecord::Base.respond_to?(:raise_in_transactional_callbacks=)
|
|
25
|
+
config.active_record.raise_in_transactional_callbacks = true
|
|
26
|
+
end
|
|
24
27
|
end
|
|
25
28
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: building_sync_bindings
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark Borkum
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: isomorphic
|
|
@@ -45,9 +44,6 @@ dependencies:
|
|
|
45
44
|
- - ">="
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
46
|
version: 4.2.0
|
|
48
|
-
- - "<"
|
|
49
|
-
- !ruby/object:Gem::Version
|
|
50
|
-
version: '7.0'
|
|
51
47
|
type: :runtime
|
|
52
48
|
prerelease: false
|
|
53
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -55,9 +51,6 @@ dependencies:
|
|
|
55
51
|
- - ">="
|
|
56
52
|
- !ruby/object:Gem::Version
|
|
57
53
|
version: 4.2.0
|
|
58
|
-
- - "<"
|
|
59
|
-
- !ruby/object:Gem::Version
|
|
60
|
-
version: '7.0'
|
|
61
54
|
- !ruby/object:Gem::Dependency
|
|
62
55
|
name: soap4r-ng
|
|
63
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -86,8 +79,7 @@ dependencies:
|
|
|
86
79
|
- - ">="
|
|
87
80
|
- !ruby/object:Gem::Version
|
|
88
81
|
version: '0'
|
|
89
|
-
description:
|
|
90
|
-
2.6.0 schema.
|
|
82
|
+
description: BuildingSync 2.7.0 schema bindings and ActiveRecord mapping toolkit.
|
|
91
83
|
email:
|
|
92
84
|
- mark.borkum@pnnl.gov
|
|
93
85
|
executables: []
|
|
@@ -152,8 +144,6 @@ files:
|
|
|
152
144
|
- test/dummy/config/locales/en.yml
|
|
153
145
|
- test/dummy/config/routes.rb
|
|
154
146
|
- test/dummy/config/secrets.yml
|
|
155
|
-
- test/dummy/log/development.log
|
|
156
|
-
- test/dummy/log/test.log
|
|
157
147
|
- test/dummy/public/404.html
|
|
158
148
|
- test/dummy/public/422.html
|
|
159
149
|
- test/dummy/public/500.html
|
|
@@ -165,7 +155,6 @@ licenses:
|
|
|
165
155
|
- BSD-2-Clause
|
|
166
156
|
metadata:
|
|
167
157
|
allowed_push_host: https://rubygems.org
|
|
168
|
-
post_install_message:
|
|
169
158
|
rdoc_options: []
|
|
170
159
|
require_paths:
|
|
171
160
|
- lib
|
|
@@ -180,49 +169,46 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
180
169
|
- !ruby/object:Gem::Version
|
|
181
170
|
version: '0'
|
|
182
171
|
requirements: []
|
|
183
|
-
rubygems_version: 3.
|
|
184
|
-
signing_key:
|
|
172
|
+
rubygems_version: 3.6.9
|
|
185
173
|
specification_version: 4
|
|
186
174
|
summary: BuildingSync bindings and Rails integration.
|
|
187
175
|
test_files:
|
|
188
|
-
- test/test_helper.rb
|
|
189
176
|
- test/building_sync_rails_test.rb
|
|
190
|
-
- test/
|
|
191
|
-
- test/dummy/
|
|
192
|
-
- test/dummy/
|
|
193
|
-
- test/dummy/
|
|
194
|
-
- test/dummy/
|
|
195
|
-
- test/dummy/
|
|
196
|
-
- test/dummy/
|
|
197
|
-
- test/dummy/
|
|
198
|
-
- test/dummy/
|
|
177
|
+
- test/dummy/README.rdoc
|
|
178
|
+
- test/dummy/Rakefile
|
|
179
|
+
- test/dummy/app/assets/config/manifest.js
|
|
180
|
+
- test/dummy/app/assets/javascripts/application.js
|
|
181
|
+
- test/dummy/app/assets/stylesheets/application.css
|
|
182
|
+
- test/dummy/app/controllers/application_controller.rb
|
|
183
|
+
- test/dummy/app/helpers/application_helper.rb
|
|
184
|
+
- test/dummy/app/views/layouts/application.html.erb
|
|
185
|
+
- test/dummy/bin/bundle
|
|
186
|
+
- test/dummy/bin/rails
|
|
187
|
+
- test/dummy/bin/rake
|
|
188
|
+
- test/dummy/bin/setup
|
|
189
|
+
- test/dummy/config.ru
|
|
190
|
+
- test/dummy/config/application.rb
|
|
199
191
|
- test/dummy/config/boot.rb
|
|
200
192
|
- test/dummy/config/database.yml
|
|
201
|
-
- test/dummy/config/
|
|
193
|
+
- test/dummy/config/environment.rb
|
|
202
194
|
- test/dummy/config/environments/development.rb
|
|
195
|
+
- test/dummy/config/environments/production.rb
|
|
203
196
|
- test/dummy/config/environments/test.rb
|
|
204
|
-
- test/dummy/config/application.rb
|
|
205
|
-
- test/dummy/config/initializers/to_time_preserves_timezone.rb
|
|
206
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
207
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
|
208
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
|
209
|
-
- test/dummy/config/initializers/mime_types.rb
|
|
210
197
|
- test/dummy/config/initializers/assets.rb
|
|
211
|
-
- test/dummy/config/initializers/inflections.rb
|
|
212
198
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
199
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
|
200
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
201
|
+
- test/dummy/config/initializers/inflections.rb
|
|
202
|
+
- test/dummy/config/initializers/mime_types.rb
|
|
213
203
|
- test/dummy/config/initializers/session_store.rb
|
|
214
|
-
- test/dummy/
|
|
215
|
-
- test/dummy/
|
|
216
|
-
- test/dummy/
|
|
217
|
-
- test/dummy/
|
|
218
|
-
- test/dummy/config.
|
|
219
|
-
- test/dummy/
|
|
220
|
-
- test/dummy/
|
|
221
|
-
- test/dummy/
|
|
222
|
-
- test/dummy/
|
|
223
|
-
- test/
|
|
224
|
-
- test/
|
|
225
|
-
- test/dummy/app/assets/stylesheets/application.css
|
|
226
|
-
- test/dummy/app/assets/config/manifest.js
|
|
227
|
-
- test/dummy/app/assets/javascripts/application.js
|
|
228
|
-
- test/dummy/app/controllers/application_controller.rb
|
|
204
|
+
- test/dummy/config/initializers/to_time_preserves_timezone.rb
|
|
205
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
|
206
|
+
- test/dummy/config/locales/en.yml
|
|
207
|
+
- test/dummy/config/routes.rb
|
|
208
|
+
- test/dummy/config/secrets.yml
|
|
209
|
+
- test/dummy/public/404.html
|
|
210
|
+
- test/dummy/public/422.html
|
|
211
|
+
- test/dummy/public/500.html
|
|
212
|
+
- test/dummy/public/favicon.ico
|
|
213
|
+
- test/integration/navigation_test.rb
|
|
214
|
+
- test/test_helper.rb
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
2
|
-
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
|
3
|
-
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
4
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
5
|
-
[1m[36m (3.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
6
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
7
|
-
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
8
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
9
|
-
Migrating to CreateBuildingSyncTkSites (20190721171535)
|
|
10
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
11
|
-
[1m[35m (0.4ms)[0m CREATE TABLE "building_sync_tk_sites" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "notes" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
12
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190721171535"]]
|
|
13
|
-
[1m[35m (0.6ms)[0m commit transaction
|
|
14
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
15
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
16
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
17
|
-
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
18
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
19
|
-
Migrating to CreateSites (20190721171535)
|
|
20
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
21
|
-
[1m[35m (0.5ms)[0m CREATE TABLE "sites" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "notes" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
|
22
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190721171535"]]
|
|
23
|
-
[1m[35m (0.5ms)[0m commit transaction
|
|
24
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
data/test/dummy/log/test.log
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
2
|
-
------------------------------
|
|
3
|
-
BuildingSyncTkTest: test_truth
|
|
4
|
-
------------------------------
|
|
5
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
|
6
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
7
|
-
------------------------------
|
|
8
|
-
BuildingSyncTkTest: test_truth
|
|
9
|
-
------------------------------
|
|
10
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
|
11
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
12
|
-
------------------------------
|
|
13
|
-
BuildingSyncTkTest: test_truth
|
|
14
|
-
------------------------------
|
|
15
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
|
16
|
-
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
17
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
18
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
19
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
20
|
-
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
21
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
22
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
23
|
-
------------------------------
|
|
24
|
-
BuildingSyncTkTest: test_truth
|
|
25
|
-
------------------------------
|
|
26
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
27
|
-
[1m[36m (2.7ms)[0m [1mCREATE TABLE "building_sync_tk_sites" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "notes" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
28
|
-
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
|
29
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
|
30
|
-
[1m[35m (3.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
31
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
|
32
|
-
[1m[35m (13.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20190721171535')
|
|
33
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
34
|
-
[1m[36m (2.9ms)[0m [1mCREATE TABLE "sites" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "notes" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
35
|
-
[1m[35m (4.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
|
36
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
|
37
|
-
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
38
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
|
39
|
-
[1m[35m (3.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20190721171535')
|
|
40
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
41
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
42
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
43
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
44
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
45
|
-
-----------------------------------
|
|
46
|
-
BuildingSyncSupportTest: test_truth
|
|
47
|
-
-----------------------------------
|
|
48
|
-
[1m[35m (0.1ms)[0m rollback transaction
|