marty 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -5
- data/Gemfile.lock +73 -75
- data/app/models/marty/data_grid.rb +3 -1
- data/lib/marty/rpc_call.rb +2 -1
- data/lib/marty/version.rb +1 -1
- data/spec/models/data_grid_spec.rb +33 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 617dd635afba9c6d1b56fc1c2db3be5f713f312f
|
4
|
+
data.tar.gz: 1d6f98bf730650667a75a6fe91bb928a8717bba3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79f5da757ad9b8873fa4fbe78f4e7bc1dba68c5fd940d0d446ecda38aa08837c587cac13d2e2023b8e461290c7605f98468653df818ee3cf54870d554ed68cc1
|
7
|
+
data.tar.gz: e0bdc4190a5e0ffb17924b36c03bf34455a189a79835242dc1a7c93aa9fb3add286caa13af377f206458be647182caaaac881c5595ef9b85f04b2502ad10e39c
|
data/Gemfile
CHANGED
@@ -7,9 +7,8 @@ gemspec
|
|
7
7
|
|
8
8
|
gem 'delayed_job_active_record'
|
9
9
|
gem 'daemons', '~> 1.1.9'
|
10
|
-
gem '
|
11
|
-
gem '
|
12
|
-
gem 'pg', '~> 0.18.4'
|
10
|
+
gem 'rails', '~> 4.2.10'
|
11
|
+
gem 'pg'
|
13
12
|
gem 'sqlite3'
|
14
13
|
# for signing of aws ec2 requests
|
15
14
|
gem 'aws-sigv4', '~> 1.0', '>= 1.0.2'
|
@@ -29,6 +28,4 @@ group :development, :test do
|
|
29
28
|
gem 'rspec-instafail', require: false
|
30
29
|
|
31
30
|
gem 'marty_rspec'
|
32
|
-
|
33
|
-
# gem 'delorean_lang', path: File.expand_path('../../delorean', __FILE__)
|
34
31
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
marty (1.1.
|
4
|
+
marty (1.1.2)
|
5
5
|
axlsx (= 2.1.0pre)
|
6
6
|
coderay
|
7
7
|
delorean_lang (~> 0.3.24)
|
@@ -17,36 +17,36 @@ PATH
|
|
17
17
|
GEM
|
18
18
|
remote: http://rubygems.org/
|
19
19
|
specs:
|
20
|
-
actionmailer (4.2.
|
21
|
-
actionpack (= 4.2.
|
22
|
-
actionview (= 4.2.
|
23
|
-
activejob (= 4.2.
|
20
|
+
actionmailer (4.2.10)
|
21
|
+
actionpack (= 4.2.10)
|
22
|
+
actionview (= 4.2.10)
|
23
|
+
activejob (= 4.2.10)
|
24
24
|
mail (~> 2.5, >= 2.5.4)
|
25
25
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
26
|
-
actionpack (4.2.
|
27
|
-
actionview (= 4.2.
|
28
|
-
activesupport (= 4.2.
|
26
|
+
actionpack (4.2.10)
|
27
|
+
actionview (= 4.2.10)
|
28
|
+
activesupport (= 4.2.10)
|
29
29
|
rack (~> 1.6)
|
30
30
|
rack-test (~> 0.6.2)
|
31
31
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
32
32
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
33
|
-
actionview (4.2.
|
34
|
-
activesupport (= 4.2.
|
33
|
+
actionview (4.2.10)
|
34
|
+
activesupport (= 4.2.10)
|
35
35
|
builder (~> 3.1)
|
36
36
|
erubis (~> 2.7.0)
|
37
37
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
38
38
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
39
|
-
activejob (4.2.
|
40
|
-
activesupport (= 4.2.
|
39
|
+
activejob (4.2.10)
|
40
|
+
activesupport (= 4.2.10)
|
41
41
|
globalid (>= 0.3.0)
|
42
|
-
activemodel (4.2.
|
43
|
-
activesupport (= 4.2.
|
42
|
+
activemodel (4.2.10)
|
43
|
+
activesupport (= 4.2.10)
|
44
44
|
builder (~> 3.1)
|
45
|
-
activerecord (4.2.
|
46
|
-
activemodel (= 4.2.
|
47
|
-
activesupport (= 4.2.
|
45
|
+
activerecord (4.2.10)
|
46
|
+
activemodel (= 4.2.10)
|
47
|
+
activesupport (= 4.2.10)
|
48
48
|
arel (~> 6.0)
|
49
|
-
activesupport (4.2.
|
49
|
+
activesupport (4.2.10)
|
50
50
|
i18n (~> 0.7)
|
51
51
|
minitest (~> 5.1)
|
52
52
|
thread_safe (~> 0.3, >= 0.3.4)
|
@@ -60,14 +60,14 @@ GEM
|
|
60
60
|
nokogiri (>= 1.4.1)
|
61
61
|
rubyzip (~> 1.1.7)
|
62
62
|
builder (3.2.3)
|
63
|
-
capybara (2.
|
63
|
+
capybara (2.16.1)
|
64
64
|
addressable
|
65
65
|
mini_mime (>= 0.1.3)
|
66
66
|
nokogiri (>= 1.3.3)
|
67
67
|
rack (>= 1.0.0)
|
68
68
|
rack-test (>= 0.5.4)
|
69
69
|
xpath (~> 2.0)
|
70
|
-
childprocess (0.
|
70
|
+
childprocess (0.8.0)
|
71
71
|
ffi (~> 1.0, >= 1.0.11)
|
72
72
|
coderay (1.1.2)
|
73
73
|
coffee-script (2.4.1)
|
@@ -75,8 +75,9 @@ GEM
|
|
75
75
|
execjs
|
76
76
|
coffee-script-source (1.12.2)
|
77
77
|
concurrent-ruby (1.0.5)
|
78
|
+
crass (1.0.3)
|
78
79
|
daemons (1.1.9)
|
79
|
-
database_cleaner (1.6.
|
80
|
+
database_cleaner (1.6.2)
|
80
81
|
delayed_job (4.1.3)
|
81
82
|
activesupport (>= 3.0, < 5.2)
|
82
83
|
delayed_job_active_record (4.1.2)
|
@@ -89,25 +90,27 @@ GEM
|
|
89
90
|
erubis (2.7.0)
|
90
91
|
execjs (2.7.0)
|
91
92
|
ffi (1.9.18)
|
92
|
-
globalid (0.4.
|
93
|
+
globalid (0.4.1)
|
93
94
|
activesupport (>= 4.2.0)
|
94
95
|
htmlentities (4.3.4)
|
95
|
-
i18n (0.
|
96
|
+
i18n (0.9.1)
|
97
|
+
concurrent-ruby (~> 1.0)
|
96
98
|
json-schema (2.8.0)
|
97
99
|
addressable (>= 2.4)
|
98
|
-
loofah (2.
|
100
|
+
loofah (2.1.1)
|
101
|
+
crass (~> 1.0.2)
|
99
102
|
nokogiri (>= 1.5.9)
|
100
|
-
mail (2.
|
101
|
-
|
103
|
+
mail (2.7.0)
|
104
|
+
mini_mime (>= 0.1.1)
|
102
105
|
marty_rspec (0.1)
|
103
106
|
rspec-by
|
104
107
|
mcfly (0.0.19)
|
105
108
|
delorean_lang (~> 0.1)
|
106
109
|
pg (~> 0.17)
|
107
|
-
method_source (0.
|
110
|
+
method_source (0.9.0)
|
108
111
|
mime-types (2.99.3)
|
109
|
-
mini_mime (0.
|
110
|
-
mini_portile2 (2.
|
112
|
+
mini_mime (1.0.0)
|
113
|
+
mini_portile2 (2.3.0)
|
111
114
|
minitest (5.10.3)
|
112
115
|
net-ldap (0.12.1)
|
113
116
|
netzke-basepack (1.0.1.0)
|
@@ -115,32 +118,31 @@ GEM
|
|
115
118
|
execjs
|
116
119
|
mime-types (< 3)
|
117
120
|
uglifier
|
118
|
-
netzke-testing (
|
121
|
+
netzke-testing (6.5.0.0)
|
119
122
|
coffee-script
|
120
|
-
nokogiri (1.8.
|
121
|
-
mini_portile2 (~> 2.
|
122
|
-
pg (0.
|
123
|
+
nokogiri (1.8.1)
|
124
|
+
mini_portile2 (~> 2.3.0)
|
125
|
+
pg (0.21.0)
|
123
126
|
polyglot (0.3.5)
|
124
|
-
pry (0.
|
127
|
+
pry (0.11.3)
|
125
128
|
coderay (~> 1.1.0)
|
126
|
-
method_source (~> 0.
|
127
|
-
slop (~> 3.4)
|
129
|
+
method_source (~> 0.9.0)
|
128
130
|
pry-rails (0.3.6)
|
129
131
|
pry (>= 0.10.4)
|
130
|
-
public_suffix (3.0.
|
132
|
+
public_suffix (3.0.1)
|
131
133
|
rack (1.6.8)
|
132
134
|
rack-test (0.6.3)
|
133
135
|
rack (>= 1.0)
|
134
|
-
rails (4.2.
|
135
|
-
actionmailer (= 4.2.
|
136
|
-
actionpack (= 4.2.
|
137
|
-
actionview (= 4.2.
|
138
|
-
activejob (= 4.2.
|
139
|
-
activemodel (= 4.2.
|
140
|
-
activerecord (= 4.2.
|
141
|
-
activesupport (= 4.2.
|
136
|
+
rails (4.2.10)
|
137
|
+
actionmailer (= 4.2.10)
|
138
|
+
actionpack (= 4.2.10)
|
139
|
+
actionview (= 4.2.10)
|
140
|
+
activejob (= 4.2.10)
|
141
|
+
activemodel (= 4.2.10)
|
142
|
+
activerecord (= 4.2.10)
|
143
|
+
activesupport (= 4.2.10)
|
142
144
|
bundler (>= 1.3.0, < 2.0)
|
143
|
-
railties (= 4.2.
|
145
|
+
railties (= 4.2.10)
|
144
146
|
sprockets-rails
|
145
147
|
rails-deprecated_sanitizer (1.0.3)
|
146
148
|
activesupport (>= 4.2.0.alpha)
|
@@ -150,43 +152,41 @@ GEM
|
|
150
152
|
rails-deprecated_sanitizer (>= 1.0.1)
|
151
153
|
rails-html-sanitizer (1.0.3)
|
152
154
|
loofah (~> 2.0)
|
153
|
-
railties (4.2.
|
154
|
-
actionpack (= 4.2.
|
155
|
-
activesupport (= 4.2.
|
155
|
+
railties (4.2.10)
|
156
|
+
actionpack (= 4.2.10)
|
157
|
+
activesupport (= 4.2.10)
|
156
158
|
rake (>= 0.8.7)
|
157
159
|
thor (>= 0.18.1, < 2.0)
|
158
|
-
rake (12.
|
159
|
-
rspec (3.
|
160
|
-
rspec-core (~> 3.
|
161
|
-
rspec-expectations (~> 3.
|
162
|
-
rspec-mocks (~> 3.
|
160
|
+
rake (12.3.0)
|
161
|
+
rspec (3.7.0)
|
162
|
+
rspec-core (~> 3.7.0)
|
163
|
+
rspec-expectations (~> 3.7.0)
|
164
|
+
rspec-mocks (~> 3.7.0)
|
163
165
|
rspec-by (0.0.7)
|
164
166
|
rspec-core (>= 3)
|
165
|
-
rspec-core (3.
|
166
|
-
rspec-support (~> 3.
|
167
|
-
rspec-expectations (3.
|
167
|
+
rspec-core (3.7.0)
|
168
|
+
rspec-support (~> 3.7.0)
|
169
|
+
rspec-expectations (3.7.0)
|
168
170
|
diff-lcs (>= 1.2.0, < 2.0)
|
169
|
-
rspec-support (~> 3.
|
171
|
+
rspec-support (~> 3.7.0)
|
170
172
|
rspec-instafail (1.0.0)
|
171
173
|
rspec
|
172
|
-
rspec-mocks (3.
|
174
|
+
rspec-mocks (3.7.0)
|
173
175
|
diff-lcs (>= 1.2.0, < 2.0)
|
174
|
-
rspec-support (~> 3.
|
175
|
-
rspec-rails (3.
|
176
|
+
rspec-support (~> 3.7.0)
|
177
|
+
rspec-rails (3.7.2)
|
176
178
|
actionpack (>= 3.0)
|
177
179
|
activesupport (>= 3.0)
|
178
180
|
railties (>= 3.0)
|
179
|
-
rspec-core (~> 3.
|
180
|
-
rspec-expectations (~> 3.
|
181
|
-
rspec-mocks (~> 3.
|
182
|
-
rspec-support (~> 3.
|
183
|
-
rspec-support (3.
|
181
|
+
rspec-core (~> 3.7.0)
|
182
|
+
rspec-expectations (~> 3.7.0)
|
183
|
+
rspec-mocks (~> 3.7.0)
|
184
|
+
rspec-support (~> 3.7.0)
|
185
|
+
rspec-support (3.7.0)
|
184
186
|
rubyzip (1.1.7)
|
185
|
-
selenium-webdriver (
|
187
|
+
selenium-webdriver (3.7.0)
|
186
188
|
childprocess (~> 0.5)
|
187
189
|
rubyzip (~> 1.0)
|
188
|
-
websocket (~> 1.0)
|
189
|
-
slop (3.6.0)
|
190
190
|
sprockets (3.7.1)
|
191
191
|
concurrent-ruby (~> 1.0)
|
192
192
|
rack (> 1, < 3)
|
@@ -198,13 +198,12 @@ GEM
|
|
198
198
|
thor (0.20.0)
|
199
199
|
thread_safe (0.3.6)
|
200
200
|
timecop (0.9.1)
|
201
|
-
treetop (1.6.
|
201
|
+
treetop (1.6.9)
|
202
202
|
polyglot (~> 0.3)
|
203
|
-
tzinfo (1.2.
|
203
|
+
tzinfo (1.2.4)
|
204
204
|
thread_safe (~> 0.1)
|
205
205
|
uglifier (3.2.0)
|
206
206
|
execjs (>= 0.3.0, < 3)
|
207
|
-
websocket (1.2.4)
|
208
207
|
xpath (2.1.0)
|
209
208
|
nokogiri (~> 1.3)
|
210
209
|
|
@@ -219,13 +218,12 @@ DEPENDENCIES
|
|
219
218
|
delayed_job_active_record
|
220
219
|
marty!
|
221
220
|
marty_rspec
|
222
|
-
mime-types (< 3.0)
|
223
221
|
netzke-basepack
|
224
222
|
netzke-core
|
225
223
|
netzke-testing
|
226
|
-
pg
|
224
|
+
pg
|
227
225
|
pry-rails
|
228
|
-
rails (~> 4.2.
|
226
|
+
rails (~> 4.2.10)
|
229
227
|
rspec-instafail
|
230
228
|
rspec-rails (~> 3.0)
|
231
229
|
selenium-webdriver
|
@@ -160,7 +160,9 @@ class Marty::DataGrid < Marty::Base
|
|
160
160
|
attr = m["attr"]
|
161
161
|
inc = h_passed.fetch(attr, :__nf__)
|
162
162
|
next if inc == :__nf__
|
163
|
-
|
163
|
+
val = (defined? inc.name) ? inc.name : inc
|
164
|
+
h[attr] = val.is_a?(String) ?
|
165
|
+
ActiveRecord::Base.connection.quote(val)[1..-2] : val
|
164
166
|
end
|
165
167
|
|
166
168
|
fn = "lookup_grid_distinct"
|
data/lib/marty/rpc_call.rb
CHANGED
@@ -23,11 +23,12 @@ class Marty::RpcCall
|
|
23
23
|
res
|
24
24
|
end
|
25
25
|
|
26
|
-
def self.marty_download(host, port, path, job_id)
|
26
|
+
def self.marty_download(host, port, path, job_id, ssl=false)
|
27
27
|
params = {job_id: job_id}
|
28
28
|
url = path + '?' + URI.encode(URI.encode_www_form(params))
|
29
29
|
|
30
30
|
http = Net::HTTP.new(host, port)
|
31
|
+
http.use_ssl = ssl
|
31
32
|
request = Net::HTTP::Get.new(url)
|
32
33
|
|
33
34
|
begin
|
data/lib/marty/version.rb
CHANGED
@@ -697,6 +697,39 @@ EOS
|
|
697
697
|
expect(res["data"]).to eq (expected_data)
|
698
698
|
expect(res["metadata"]).to eq (expected_metadata)
|
699
699
|
end
|
700
|
+
|
701
|
+
it "should handle all characters in grid inputs" do
|
702
|
+
dg = Marty::DataGrid.lookup(pt, 'G1')
|
703
|
+
5000.times do
|
704
|
+
st = 30.times.map{rand(224)+32}.pack('U*')
|
705
|
+
res = dg.lookup_grid_distinct_entry(pt, { "ltv" => 10,
|
706
|
+
"fico" => 690,
|
707
|
+
"state" => st }, nil,
|
708
|
+
false, true)
|
709
|
+
end
|
710
|
+
end
|
711
|
+
it "should handle all quote chars in grid inputs" do
|
712
|
+
dg = Marty::DataGrid.lookup(pt, 'G1')
|
713
|
+
# single, double, backslash, grave, acute, unicode quotes: left single,
|
714
|
+
# right single, left double, right double
|
715
|
+
quotes = ["'", '"', '\\', '`', "\u00b4", "\u2018", "\u2019",
|
716
|
+
"\u201C", "\u201D"]
|
717
|
+
100.times do
|
718
|
+
st = 30.times.map{quotes[rand(9)]}.join
|
719
|
+
res = dg.lookup_grid_distinct_entry(pt, { "ltv" => 10,
|
720
|
+
"fico" => 690,
|
721
|
+
"state" => st }, nil,
|
722
|
+
false, true)
|
723
|
+
end
|
724
|
+
end
|
725
|
+
it "should handle quote chars in object name" do
|
726
|
+
dg = Marty::DataGrid.lookup(pt, 'G1')
|
727
|
+
st = Gemini::State.new(name: "'\\")
|
728
|
+
res = dg.lookup_grid_distinct_entry(pt, { "ltv" => 10,
|
729
|
+
"fico" => 690,
|
730
|
+
"state" => st }, nil,
|
731
|
+
false, true)
|
732
|
+
end
|
700
733
|
end
|
701
734
|
|
702
735
|
describe "exports" do
|