marty 2.9.2 → 2.9.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/Gemfile.lock +4 -1
- data/app/components/marty/log_view.rb +1 -1
- data/lib/marty/mcfly_model.rb +12 -3
- data/lib/marty/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9dcf52a2940fd4cdfa856cf82c2d77dd2ed9536b88d192addfed0d1ab3a9a9d0
|
|
4
|
+
data.tar.gz: 8becb3090ad127df9823f11f1fa4b8719a22f1401cf6e02f6121c11e650e99c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50b7892041ea4f9d4ff6a63f982f29e7edeff67f313fa241b36d24fe18df79126f6d8caaa2ace032696c629f188413be9023e2582403951a5835ce83e448e7d1
|
|
7
|
+
data.tar.gz: f0fe264a2c2150ca4e85d30f2592d65c75f9fab66cad38307007361dd9b3eda7c1ca21c0cc5fa25bc70cf86d4c50182d32d150b0f37dd1f5f7cc92baf1f0f4fe
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
marty (2.9.
|
|
4
|
+
marty (2.9.3)
|
|
5
5
|
aws-sigv4 (~> 1.0, >= 1.0.2)
|
|
6
6
|
axlsx (= 3.0.0pre)
|
|
7
7
|
coderay
|
|
@@ -214,6 +214,8 @@ GEM
|
|
|
214
214
|
rspec-expectations (~> 3.8.0)
|
|
215
215
|
rspec-mocks (~> 3.8.0)
|
|
216
216
|
rspec-support (~> 3.8.0)
|
|
217
|
+
rspec-retry (0.6.1)
|
|
218
|
+
rspec-core (> 3.3)
|
|
217
219
|
rspec-support (3.8.0)
|
|
218
220
|
rubocop (0.64.0)
|
|
219
221
|
jaro_winkler (~> 1.5.1)
|
|
@@ -276,6 +278,7 @@ DEPENDENCIES
|
|
|
276
278
|
rails-controller-testing
|
|
277
279
|
rspec-instafail
|
|
278
280
|
rspec-rails
|
|
281
|
+
rspec-retry
|
|
279
282
|
rubocop
|
|
280
283
|
selenium-webdriver
|
|
281
284
|
sqlite3
|
data/lib/marty/mcfly_model.rb
CHANGED
|
@@ -11,7 +11,13 @@ module Mcfly::Model
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def base_mcfly_lookup(name, options = {}, &block)
|
|
14
|
-
|
|
14
|
+
delorean_options = {
|
|
15
|
+
# private: options.fetch(:private, false),
|
|
16
|
+
cache: options.fetch(:cache, false),
|
|
17
|
+
sig: options[:sig]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
delorean_fn name, delorean_options do |ts, *args|
|
|
15
21
|
raise 'time cannot be nil' if ts.nil?
|
|
16
22
|
|
|
17
23
|
# FIXME: sig is removed from delorean. We need to find a better way
|
|
@@ -139,9 +145,12 @@ module Mcfly::Model
|
|
|
139
145
|
# cache if mode is not nil
|
|
140
146
|
priv = options[:private]
|
|
141
147
|
|
|
148
|
+
# cache if mode is not explicitly set to nil or cache is true
|
|
149
|
+
cache = options.fetch(:cache) { options.fetch(:mode, :first) }
|
|
150
|
+
|
|
142
151
|
delorean_options = {
|
|
143
|
-
private: options.fetch(:private, false),
|
|
144
|
-
cache:
|
|
152
|
+
# private: options.fetch(:private, false),
|
|
153
|
+
cache: cache.present?, # convert to bool
|
|
145
154
|
sig: attrs.length + 1
|
|
146
155
|
}
|
|
147
156
|
|
data/lib/marty/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: marty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.9.
|
|
4
|
+
version: 2.9.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arman Bostani
|
|
@@ -14,7 +14,7 @@ authors:
|
|
|
14
14
|
autorequire:
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
|
-
date: 2019-06-
|
|
17
|
+
date: 2019-06-20 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
20
20
|
name: pg
|