atp 0.5.4 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/application.rb +1 -1
- data/config/version.rb +2 -2
- data/lib/atp/ast/builder.rb +7 -2
- data/lib/atp/flow.rb +4 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03c477cb82c7a6798419792e45b8f949d49851f2
|
4
|
+
data.tar.gz: 30beaddc9cc459ba9898c9a901566c578313cf59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24f38b188ec4a61b04a5fcefe2e61c42b9933c356386a9094061703d76dc34122d2d77a469fd69636ee2565aba57e5ddbc3d231c9c4700eaf5f177f1a40e17d9
|
7
|
+
data.tar.gz: '093210ef029435aa0aa68309f5080d86ab0ef5da8b47a109c422c696a8e1b13c3818f783a050c330ceebe5330717646681b2a15f10bca78f4edfca5bf8472c1e'
|
data/config/application.rb
CHANGED
@@ -10,7 +10,7 @@ class ATPApplication < Origen::Application
|
|
10
10
|
self.namespace = "ATP"
|
11
11
|
config.name = "atp"
|
12
12
|
config.initials = "ATP"
|
13
|
-
config.rc_url = "
|
13
|
+
config.rc_url = "git@github.com:Origen-SDK/atp.git"
|
14
14
|
config.release_externally = true
|
15
15
|
|
16
16
|
# To enable deployment of your documentation to a web server (via the 'origen web'
|
data/config/version.rb
CHANGED
data/lib/atp/ast/builder.rb
CHANGED
@@ -27,8 +27,13 @@ module ATP
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
def render(str)
|
31
|
-
n(:render, str)
|
30
|
+
def render(str, options = {})
|
31
|
+
test = n(:render, str)
|
32
|
+
if options[:conditions]
|
33
|
+
apply_conditions(test, options[:conditions])
|
34
|
+
else
|
35
|
+
test
|
36
|
+
end
|
32
37
|
end
|
33
38
|
|
34
39
|
def id(symbol)
|
data/lib/atp/flow.rb
CHANGED
@@ -156,7 +156,10 @@ module ATP
|
|
156
156
|
# Insert explicitly rendered content in to the flow
|
157
157
|
def render(str, options = {})
|
158
158
|
extract_meta!(options)
|
159
|
-
|
159
|
+
t = apply_open_conditions(options) do |options|
|
160
|
+
builder.render(str, options)
|
161
|
+
end
|
162
|
+
append(t)
|
160
163
|
end
|
161
164
|
|
162
165
|
def with_condition(options)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: origen
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: 1.8.11
|
117
117
|
requirements: []
|
118
118
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.6.
|
119
|
+
rubygems_version: 2.6.11
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: An abstract test program model for Origen
|