marty 1.0.38 → 1.0.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/Gemfile.lock +225 -0
- data/app/components/marty/report_form.rb +1 -1
- data/app/components/marty/report_select.rb +1 -1
- data/app/controllers/marty/rpc_controller.rb +2 -2
- data/lib/marty/promise_job.rb +1 -1
- data/lib/marty/version.rb +1 -1
- data/spec/lib/xl_spec.rb +1 -1
- data/spec/lib/xl_styles_spec.rb +1 -1
- 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: c3d5f574966052ae97f6cd32ce6de46d6ba0349c
|
4
|
+
data.tar.gz: 2d168acee2a87a80112c67a1c9bdb312f5b6025d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2406f23f35850e9d905afb94c89242879a9f0cd86d481d07d1b134c41cc5e9f1060493ae9f613ffbbdb3adfcac97790627ced29479dc37481000bf5e4dbdb325
|
7
|
+
data.tar.gz: d7085ca103f7b0401389dd8b990caa33ff72f8543d311fef60dd05401103afb4562a35fe03013fa7490b58dc325916a6c6bb0f632eea2070efbe99c5723f86ad
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,225 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
marty (1.0.39)
|
5
|
+
axlsx (= 2.1.0pre)
|
6
|
+
coderay
|
7
|
+
delorean_lang (~> 0.1)
|
8
|
+
json-schema
|
9
|
+
mcfly (= 0.0.19)
|
10
|
+
net-ldap (~> 0.12.0)
|
11
|
+
netzke-basepack (~> 1.0.0)
|
12
|
+
netzke-core (~> 1.0.0)
|
13
|
+
pg (~> 0.17)
|
14
|
+
rubyzip
|
15
|
+
sqlite3
|
16
|
+
|
17
|
+
GEM
|
18
|
+
remote: http://rubygems.org/
|
19
|
+
specs:
|
20
|
+
actionmailer (4.2.9)
|
21
|
+
actionpack (= 4.2.9)
|
22
|
+
actionview (= 4.2.9)
|
23
|
+
activejob (= 4.2.9)
|
24
|
+
mail (~> 2.5, >= 2.5.4)
|
25
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
26
|
+
actionpack (4.2.9)
|
27
|
+
actionview (= 4.2.9)
|
28
|
+
activesupport (= 4.2.9)
|
29
|
+
rack (~> 1.6)
|
30
|
+
rack-test (~> 0.6.2)
|
31
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
33
|
+
actionview (4.2.9)
|
34
|
+
activesupport (= 4.2.9)
|
35
|
+
builder (~> 3.1)
|
36
|
+
erubis (~> 2.7.0)
|
37
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
38
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
39
|
+
activejob (4.2.9)
|
40
|
+
activesupport (= 4.2.9)
|
41
|
+
globalid (>= 0.3.0)
|
42
|
+
activemodel (4.2.9)
|
43
|
+
activesupport (= 4.2.9)
|
44
|
+
builder (~> 3.1)
|
45
|
+
activerecord (4.2.9)
|
46
|
+
activemodel (= 4.2.9)
|
47
|
+
activesupport (= 4.2.9)
|
48
|
+
arel (~> 6.0)
|
49
|
+
activesupport (4.2.9)
|
50
|
+
i18n (~> 0.7)
|
51
|
+
minitest (~> 5.1)
|
52
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
53
|
+
tzinfo (~> 1.1)
|
54
|
+
addressable (2.5.2)
|
55
|
+
public_suffix (>= 2.0.2, < 4.0)
|
56
|
+
arel (6.0.4)
|
57
|
+
axlsx (2.1.0.pre)
|
58
|
+
htmlentities (~> 4.3.1)
|
59
|
+
nokogiri (>= 1.4.1)
|
60
|
+
rubyzip (~> 1.1.7)
|
61
|
+
builder (3.2.3)
|
62
|
+
capybara (2.15.1)
|
63
|
+
addressable
|
64
|
+
mini_mime (>= 0.1.3)
|
65
|
+
nokogiri (>= 1.3.3)
|
66
|
+
rack (>= 1.0.0)
|
67
|
+
rack-test (>= 0.5.4)
|
68
|
+
xpath (~> 2.0)
|
69
|
+
childprocess (0.7.1)
|
70
|
+
ffi (~> 1.0, >= 1.0.11)
|
71
|
+
coderay (1.1.2)
|
72
|
+
coffee-script (2.4.1)
|
73
|
+
coffee-script-source
|
74
|
+
execjs
|
75
|
+
coffee-script-source (1.12.2)
|
76
|
+
concurrent-ruby (1.0.5)
|
77
|
+
daemons (1.1.9)
|
78
|
+
database_cleaner (1.6.1)
|
79
|
+
delayed_job (4.1.3)
|
80
|
+
activesupport (>= 3.0, < 5.2)
|
81
|
+
delayed_job_active_record (4.1.2)
|
82
|
+
activerecord (>= 3.0, < 5.2)
|
83
|
+
delayed_job (>= 3.0, < 5)
|
84
|
+
delorean_lang (0.3.30)
|
85
|
+
activerecord (>= 3.2)
|
86
|
+
treetop (~> 1.5)
|
87
|
+
diff-lcs (1.3)
|
88
|
+
erubis (2.7.0)
|
89
|
+
execjs (2.7.0)
|
90
|
+
ffi (1.9.18)
|
91
|
+
globalid (0.4.0)
|
92
|
+
activesupport (>= 4.2.0)
|
93
|
+
htmlentities (4.3.4)
|
94
|
+
i18n (0.8.6)
|
95
|
+
json-schema (2.8.0)
|
96
|
+
addressable (>= 2.4)
|
97
|
+
loofah (2.0.3)
|
98
|
+
nokogiri (>= 1.5.9)
|
99
|
+
mail (2.6.6)
|
100
|
+
mime-types (>= 1.16, < 4)
|
101
|
+
marty_rspec (0.1)
|
102
|
+
rspec-by
|
103
|
+
mcfly (0.0.19)
|
104
|
+
delorean_lang (~> 0.1)
|
105
|
+
pg (~> 0.17)
|
106
|
+
method_source (0.8.2)
|
107
|
+
mime-types (2.99.3)
|
108
|
+
mini_mime (0.1.4)
|
109
|
+
mini_portile2 (2.2.0)
|
110
|
+
minitest (5.10.3)
|
111
|
+
net-ldap (0.12.1)
|
112
|
+
netzke-basepack (1.0.1.0)
|
113
|
+
netzke-core (1.0.1.0)
|
114
|
+
execjs
|
115
|
+
mime-types (< 3)
|
116
|
+
uglifier
|
117
|
+
netzke-testing (1.0.1.0)
|
118
|
+
coffee-script
|
119
|
+
nokogiri (1.8.0)
|
120
|
+
mini_portile2 (~> 2.2.0)
|
121
|
+
pg (0.18.4)
|
122
|
+
polyglot (0.3.5)
|
123
|
+
pry (0.10.4)
|
124
|
+
coderay (~> 1.1.0)
|
125
|
+
method_source (~> 0.8.1)
|
126
|
+
slop (~> 3.4)
|
127
|
+
pry-rails (0.3.6)
|
128
|
+
pry (>= 0.10.4)
|
129
|
+
public_suffix (3.0.0)
|
130
|
+
rack (1.6.8)
|
131
|
+
rack-test (0.6.3)
|
132
|
+
rack (>= 1.0)
|
133
|
+
rails (4.2.9)
|
134
|
+
actionmailer (= 4.2.9)
|
135
|
+
actionpack (= 4.2.9)
|
136
|
+
actionview (= 4.2.9)
|
137
|
+
activejob (= 4.2.9)
|
138
|
+
activemodel (= 4.2.9)
|
139
|
+
activerecord (= 4.2.9)
|
140
|
+
activesupport (= 4.2.9)
|
141
|
+
bundler (>= 1.3.0, < 2.0)
|
142
|
+
railties (= 4.2.9)
|
143
|
+
sprockets-rails
|
144
|
+
rails-deprecated_sanitizer (1.0.3)
|
145
|
+
activesupport (>= 4.2.0.alpha)
|
146
|
+
rails-dom-testing (1.0.8)
|
147
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
148
|
+
nokogiri (~> 1.6)
|
149
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
150
|
+
rails-html-sanitizer (1.0.3)
|
151
|
+
loofah (~> 2.0)
|
152
|
+
railties (4.2.9)
|
153
|
+
actionpack (= 4.2.9)
|
154
|
+
activesupport (= 4.2.9)
|
155
|
+
rake (>= 0.8.7)
|
156
|
+
thor (>= 0.18.1, < 2.0)
|
157
|
+
rake (12.1.0)
|
158
|
+
rspec-by (0.0.7)
|
159
|
+
rspec-core (>= 3)
|
160
|
+
rspec-core (3.6.0)
|
161
|
+
rspec-support (~> 3.6.0)
|
162
|
+
rspec-expectations (3.6.0)
|
163
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
164
|
+
rspec-support (~> 3.6.0)
|
165
|
+
rspec-mocks (3.6.0)
|
166
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
167
|
+
rspec-support (~> 3.6.0)
|
168
|
+
rspec-rails (3.6.1)
|
169
|
+
actionpack (>= 3.0)
|
170
|
+
activesupport (>= 3.0)
|
171
|
+
railties (>= 3.0)
|
172
|
+
rspec-core (~> 3.6.0)
|
173
|
+
rspec-expectations (~> 3.6.0)
|
174
|
+
rspec-mocks (~> 3.6.0)
|
175
|
+
rspec-support (~> 3.6.0)
|
176
|
+
rspec-support (3.6.0)
|
177
|
+
rubyzip (1.1.7)
|
178
|
+
selenium-webdriver (3.5.2)
|
179
|
+
childprocess (~> 0.5)
|
180
|
+
rubyzip (~> 1.0)
|
181
|
+
slop (3.6.0)
|
182
|
+
sprockets (3.7.1)
|
183
|
+
concurrent-ruby (~> 1.0)
|
184
|
+
rack (> 1, < 3)
|
185
|
+
sprockets-rails (3.2.1)
|
186
|
+
actionpack (>= 4.0)
|
187
|
+
activesupport (>= 4.0)
|
188
|
+
sprockets (>= 3.0.0)
|
189
|
+
sqlite3 (1.3.13)
|
190
|
+
thor (0.20.0)
|
191
|
+
thread_safe (0.3.6)
|
192
|
+
timecop (0.9.1)
|
193
|
+
treetop (1.6.8)
|
194
|
+
polyglot (~> 0.3)
|
195
|
+
tzinfo (1.2.3)
|
196
|
+
thread_safe (~> 0.1)
|
197
|
+
uglifier (3.2.0)
|
198
|
+
execjs (>= 0.3.0, < 3)
|
199
|
+
xpath (2.1.0)
|
200
|
+
nokogiri (~> 1.3)
|
201
|
+
|
202
|
+
PLATFORMS
|
203
|
+
ruby
|
204
|
+
|
205
|
+
DEPENDENCIES
|
206
|
+
capybara
|
207
|
+
daemons (~> 1.1.9)
|
208
|
+
database_cleaner
|
209
|
+
delayed_job_active_record
|
210
|
+
marty!
|
211
|
+
marty_rspec
|
212
|
+
mime-types (< 3.0)
|
213
|
+
netzke-basepack
|
214
|
+
netzke-core
|
215
|
+
netzke-testing
|
216
|
+
pg (~> 0.18.4)
|
217
|
+
pry-rails
|
218
|
+
rails (~> 4.2.1)
|
219
|
+
rspec-rails (~> 3.0)
|
220
|
+
selenium-webdriver
|
221
|
+
sqlite3
|
222
|
+
timecop
|
223
|
+
|
224
|
+
BUNDLED WITH
|
225
|
+
1.15.4
|
@@ -178,7 +178,7 @@ class Marty::ReportForm < Marty::Form
|
|
178
178
|
raise engine.to_s if engine.is_a?(Hash)
|
179
179
|
|
180
180
|
items, title, format = engine.
|
181
|
-
|
181
|
+
evaluate(root_sess[:selected_node],
|
182
182
|
["form", "title", "format"],
|
183
183
|
{},
|
184
184
|
)
|
@@ -113,7 +113,7 @@ class Marty::ReportSelect < Marty::Form
|
|
113
113
|
next if roles && !roles.any?{ |r| Marty::User.has_role(r) }
|
114
114
|
|
115
115
|
begin
|
116
|
-
title, format = engine.
|
116
|
+
title, format = engine.evaluate(node, ["title", "format"])
|
117
117
|
format ? [node, "#{title} (#{format})"] : nil
|
118
118
|
rescue
|
119
119
|
[node, node]
|
@@ -24,7 +24,7 @@ class Marty::RpcController < ActionController::Base
|
|
24
24
|
def get_schemas(tag, sname, node, attrs)
|
25
25
|
begin
|
26
26
|
engine = Marty::ScriptSet.new(tag).get_engine(sname+'Schemas')
|
27
|
-
result = engine.
|
27
|
+
result = engine.evaluate(node, attrs, {})
|
28
28
|
attrs.zip(result)
|
29
29
|
rescue => e
|
30
30
|
use_message = e.message == 'No such script' ?
|
@@ -120,7 +120,7 @@ class Marty::RpcController < ActionController::Base
|
|
120
120
|
result = engine.background_eval(node, params, attrs)
|
121
121
|
return retval = {"job_id" => result.__promise__.id}
|
122
122
|
end
|
123
|
-
res = engine.
|
123
|
+
res = engine.evaluate(node, attrs, params)
|
124
124
|
|
125
125
|
validation_error = {}
|
126
126
|
err_count = 0
|
data/lib/marty/promise_job.rb
CHANGED
@@ -114,7 +114,7 @@ class Marty::PromiseJob < Struct.new(:promise,
|
|
114
114
|
|
115
115
|
engine = Marty::ScriptSet.new(tag).get_engine(sname)
|
116
116
|
|
117
|
-
attrs_eval = engine.
|
117
|
+
attrs_eval = engine.evaluate(node, attrs, params)
|
118
118
|
res = attrs.zip(attrs_eval).each_with_object({}) do |(attr, val), h|
|
119
119
|
h[attr] = val
|
120
120
|
end
|
data/lib/marty/version.rb
CHANGED
data/spec/lib/xl_spec.rb
CHANGED
@@ -95,7 +95,7 @@ describe Marty::Xl do
|
|
95
95
|
map = {'C1' => c[0].to_s, 'C2' => c[1].to_s}
|
96
96
|
map.each { |k,v| code.sub!(k,v) }
|
97
97
|
engine.parse(code)
|
98
|
-
engine.
|
98
|
+
engine.evaluate("M", ["result"]).flatten(1)
|
99
99
|
end
|
100
100
|
|
101
101
|
before(:all) do
|
data/spec/lib/xl_styles_spec.rb
CHANGED
@@ -43,7 +43,7 @@ describe Marty::Xl do
|
|
43
43
|
before(:each) do
|
44
44
|
code = STYLE_CODE.clone
|
45
45
|
engine.parse(code)
|
46
|
-
@ws = engine.
|
46
|
+
@ws = engine.evaluate("S", ["result"]).flatten(1)
|
47
47
|
end
|
48
48
|
|
49
49
|
it "should be able to create a spreadsheet with overlapping border styles" do
|
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: 1.0.
|
4
|
+
version: 1.0.39
|
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: 2017-09-
|
17
|
+
date: 2017-09-19 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: pg
|
@@ -195,6 +195,7 @@ files:
|
|
195
195
|
- ".rspec"
|
196
196
|
- ".travis.yml"
|
197
197
|
- Gemfile
|
198
|
+
- Gemfile.lock
|
198
199
|
- INDEPENDENCE_ISSUES.md
|
199
200
|
- MIT-LICENSE
|
200
201
|
- README.md
|