rack-usermanual 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmJlOWMwYzg4YzkwZjU2MmQwM2JjMTg1OGU1OTdmYjQyNGMyY2RiZg==
4
+ ZjRkN2U2NjExMDVhOWI1YTgyZDFlOGIyNDVkNTRlZGU1NTQwMWE0YQ==
5
5
  data.tar.gz: !binary |-
6
- Y2JjYWFjNzhmOGI2NjVhNmU4Mjg1N2Y0MTEwZDU5OTA5ODAwY2IyZQ==
6
+ MTAzOGNiMTlkYmM1Zjk1NmNkMDBiZTU2YWEwZDE3ZmE4YjJjMzNkNw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODQ5OWU2ZDEyZDI1YTcyYjhlZWYzZWVlYzM2NmJkZDYzY2Q2NTg2Zjk4MTM2
10
- MDJhZGY4MmQ3ODY0YjJlZGNlY2M3YWMyNTE4ODI4YTEwYjRhMTJlZDRhMDBi
11
- NWEyNzc5YTBiNGI2NDEyMDM4ZWVlNTQzNTg0YjYxMzVlOTE5NTc=
9
+ NDAxMmVmOGMyMTE3MWIwNWNlZmE5ZGJmMjUxYjkwZjRlMzFhYjg5YjZlMzAy
10
+ NDkyY2Y5ZTFiZDhkMWUwMDU0MmYxZmNmNzM2YWI1MGNiYzU4M2M0OTBiZTA4
11
+ NDZmZjkzZjI5MWRmYmI2ZDJlNjFkYWE1NWM5Yjk1NjNmMjkyZGE=
12
12
  data.tar.gz: !binary |-
13
- NTljMDRmM2U5MTI0MzA3ZmUwMDY1NmJlNzU1MGQxZjFiNTIxOGY4MGFjOTlm
14
- MDIwYTFiZjI0YzE0MmI0ZmNkNTI0N2QyNTcwNjdmZWY2M2NkZWYxYzE2YmMz
15
- NzY1OTgxYzI2OWQxZWM4MWU3ZWI4NTE1Y2QwOWQyODRkMGNlOTA=
13
+ ZDQwZGU2ODgzNGRhMjRmZjk3Zjc5N2YwN2U0ODlhMTlhZTAyYzhkNWZlMzE3
14
+ MDc4ZDUyNmU0MTg1YzBiZjU2OTMxN2E1YmFmZDEzYjQ2YWY2YjRhMDRlNTRk
15
+ ZGI4ODIwOGNiNjg2YjIyYWQ4YzM4MmY2ZmY2ZGIxOTI5MDk3ZmU=
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "rack-usermanual"
6
- s.version = "0.2.0"
6
+ s.version = "0.3.0"
7
7
  s.authors = ["Chris Parsons"]
8
8
  s.email = ["chris.p@rsons.org"]
9
9
  s.homepage = "http://github.com/chrismdp/rack-usermanual"
data/views/_cells.haml ADDED
@@ -0,0 +1,8 @@
1
+ - if rows
2
+ %table
3
+ - rows.each do |cells|
4
+ %tr
5
+ - cells["cells"].each do |cell|
6
+ %td= cell
7
+ %br
8
+
data/views/page.haml CHANGED
@@ -27,7 +27,7 @@
27
27
  %em
28
28
  - if example['steps']
29
29
  - example['steps'].slice_before {|step| step['keyword'] =~ /When|But/ }.each do |chunk|
30
- = replace_start(chunk.map { |step| step['keyword'].downcase + step['name'] }.join(', ')).tap {|s| s.sub!(/./, &:upcase) } + '.'
30
+ = replace_start(chunk.map { |step| step['keyword'].downcase + step['name'] + haml(:_cells, :locals => { :rows => step['rows']}) }.join(', ')).tap {|s| s.sub!(/./, &:upcase) }.tap {|s| s.sub!(/$/, '.') unless s.include?("<table>") }
31
31
  - else
32
32
  %span.muted This example hasn't yet been detailed.
33
33
  %hr
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-usermanual
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Parsons
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-17 00:00:00.000000000 Z
11
+ date: 2013-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -129,6 +129,7 @@ files:
129
129
  - spec/fixtures/layout.haml
130
130
  - spec/spec_helper.rb
131
131
  - spec/usermanual_spec.rb
132
+ - views/_cells.haml
132
133
  - views/_menu.haml
133
134
  - views/_pending.haml
134
135
  - views/index.haml