bridge_blueprint 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/bridge_blueprint/remote_data.rb +4 -2
- data/lib/bridge_blueprint/version.rb +1 -1
- metadata +19 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7e440e81516ef2932ea241fc35b0a5ee0744638ad859b2f56289a88ba61e9152
|
4
|
+
data.tar.gz: 39530b8322f62933ce815fe6e954c7000342c886d0249a6fec378e69e0c910b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ac0f6bf8aa8c8089d543a383349d24e5b3e3c33fb90a2790e21a51d31b13540d59176ad1aa23a39cd6eac1548e3019788dcc0814cae9143c927c509ee0c4972
|
7
|
+
data.tar.gz: a26c94d1f6c5c0288751543c1f0a45a65f09229ba292a9ecb16403b432868e59b909622553555c19b975d1c8a94ff1ef64f31de6ff7379ccb66da1b3f05144be
|
@@ -21,11 +21,13 @@ module BridgeBlueprint
|
|
21
21
|
@file_path = nil
|
22
22
|
@is_complete = false
|
23
23
|
@client = nil
|
24
|
+
@models = nil
|
24
25
|
|
25
|
-
def initialize(base_url, key, secret)
|
26
|
+
def initialize(base_url, key, secret, models = nil)
|
26
27
|
@base_url = base_url
|
27
28
|
@auth_header = 'Basic ' + Base64.strict_encode64("#{key}:#{secret}")
|
28
29
|
@client = BridgeAPI::Client.new(prefix: base_url, api_key: key, api_secret: secret)
|
30
|
+
@models = models
|
29
31
|
end
|
30
32
|
|
31
33
|
def start_data_report
|
@@ -40,7 +42,7 @@ module BridgeBlueprint
|
|
40
42
|
return if Time.parse(dump['date']) > Time.now - 300
|
41
43
|
end
|
42
44
|
end
|
43
|
-
@client.create_data_dump
|
45
|
+
@models.present? ? @client.create_data_dump({only: @models}) : @client.create_data_dump
|
44
46
|
end
|
45
47
|
|
46
48
|
def status
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridge_blueprint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Shaffer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bridge_api
|
@@ -56,22 +56,22 @@ dependencies:
|
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '1.0'
|
62
59
|
- - ">="
|
63
60
|
- !ruby/object:Gem::Version
|
64
61
|
version: 1.0.0
|
62
|
+
- - "~>"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '1.0'
|
65
65
|
type: :development
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- - "~>"
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '1.0'
|
72
69
|
- - ">="
|
73
70
|
- !ruby/object:Gem::Version
|
74
71
|
version: 1.0.0
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '1.0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: byebug
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,22 +174,22 @@ dependencies:
|
|
174
174
|
name: tilt
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
|
-
- - ">="
|
178
|
-
- !ruby/object:Gem::Version
|
179
|
-
version: 1.3.4
|
180
177
|
- - "~>"
|
181
178
|
- !ruby/object:Gem::Version
|
182
179
|
version: '1.3'
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: 1.3.4
|
183
183
|
type: :development
|
184
184
|
prerelease: false
|
185
185
|
version_requirements: !ruby/object:Gem::Requirement
|
186
186
|
requirements:
|
187
|
-
- - ">="
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: 1.3.4
|
190
187
|
- - "~>"
|
191
188
|
- !ruby/object:Gem::Version
|
192
189
|
version: '1.3'
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: 1.3.4
|
193
193
|
- !ruby/object:Gem::Dependency
|
194
194
|
name: webmock
|
195
195
|
requirement: !ruby/object:Gem::Requirement
|
@@ -240,7 +240,7 @@ homepage: https://getbridge.com
|
|
240
240
|
licenses:
|
241
241
|
- MIT
|
242
242
|
metadata: {}
|
243
|
-
post_install_message:
|
243
|
+
post_install_message:
|
244
244
|
rdoc_options: []
|
245
245
|
require_paths:
|
246
246
|
- lib
|
@@ -255,17 +255,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
255
|
- !ruby/object:Gem::Version
|
256
256
|
version: '0'
|
257
257
|
requirements: []
|
258
|
-
|
259
|
-
|
260
|
-
signing_key:
|
258
|
+
rubygems_version: 3.0.3
|
259
|
+
signing_key:
|
261
260
|
specification_version: 4
|
262
261
|
summary: Bridge Blueprint
|
263
262
|
test_files:
|
264
263
|
- spec/bridge_blueprint/data_dump_spec.rb
|
265
264
|
- spec/bridge_blueprint/remote_data_spec.rb
|
265
|
+
- spec/support/fake_bridge.rb
|
266
266
|
- spec/fixtures/bridge_zip/custom_fields.csv
|
267
267
|
- spec/fixtures/bridge_zip/users.csv
|
268
268
|
- spec/fixtures/data_dumps.json
|
269
269
|
- spec/fixtures/data_dumps_pending.json
|
270
|
-
- spec/support/fake_bridge.rb
|
271
270
|
- spec/test_helper.rb
|