rack-usermanual 0.3.2 → 0.4

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
- NGFkMmQyNTkyMDNkYmEzMDQ0ZGQwYzdhN2MxMGFjMzYzMzE5ZGRlYg==
4
+ YzZjMTE4MzJiNzdlYzk0M2QyZTExM2ZhNmE2M2Y0YjdjZGQzMmU2Yw==
5
5
  data.tar.gz: !binary |-
6
- MjEwMDdjMDdiZmNhNmJkMjBiNzU4MjhmNGZiNTdmNjkxMGE2Mjc1Nw==
6
+ NjhkMGVlZjU5MjJjY2IxMWQwMTkyMzZhOGQ3YzIxNjFhNzliNGVhOQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NTk4ZDVmNzg3Mjc1YTU5MmQwZTNlZmFmODQ3MTZlM2MyYjA3ZTcwYmMyNjIw
10
- NGFkZjUxZjQ5M2JjYmYyMzRhNjFlNGRlZTIzZGM3ZGIxNDE3NGRjMTMyN2M2
11
- MThiZGUxNzk2ZmQyYWMxODQ1ZDQ1NzYxNWFhMzcyNzFjMzViZWQ=
9
+ MDQxOTk5YmVlMjMyM2JiM2JkMGNhMGYzMjk0Mzc5M2M5NzQ0MThmYjQ3YmUw
10
+ Y2MxOGVlOTgwZThjYzcwMmZmMjgxYmJjZmExYzQ2NjA0NDk3MDk4ODU5ZmQ5
11
+ MWRmYzNhZWI0NWM2NzI2YTlhNTFhMDZkZmE2NzExM2ZmNjU5NTk=
12
12
  data.tar.gz: !binary |-
13
- MWNjN2Q3MzNkMzIxNTFmOGM0MDVhYjMzNTMwNzAyMmE1NTMwZTU5NDcxNzFl
14
- MjkyNGI3NTA2YTYxNTJkMGM4ZGYxODM5ZjM2OGM3Y2JlMjUxNmFkOGI0MjFm
15
- NjM4NzBhOTBiNmQyODEzYjhiNTExNmUxNDI1OTNmYzg4MDhiMmI=
13
+ ZTdlODQ0ZDBjMWM5ODViMzRjMzNkODE5NDhjOTA5ZmI1YjY0OWJkNjU3ZmNk
14
+ Yjk5YmYwMTZlYzkyZjBlMmQ4YTJhZDc5MjIxYzkxNGYzMjRiMjAwNjlkY2Yw
15
+ Y2FmMTIyYWM0MTZlMTM3OTc0NzJkYTZiOTVkMmY3MmQ1YjQ5ZWE=
@@ -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.3.2"
6
+ s.version = "0.4"
7
7
  s.authors = ["Chris Parsons"]
8
8
  s.email = ["chris.p@rsons.org"]
9
9
  s.homepage = "http://github.com/chrismdp/rack-usermanual"
@@ -0,0 +1,4 @@
1
+ - if string
2
+ %pre.pre-scrollable
3
+ %code= string['value']
4
+
@@ -1,5 +1,5 @@
1
1
  %nav.span3.pull-right
2
- %ul.nav.nav-list.affix-top{:'data-offset-top' => 100, :'data-spy' => 'affix'}
2
+ %ul.nav.nav-list
3
3
  - @sections.each do |human_name, path|
4
4
  %li.nav-header= human_name
5
5
  - if (features = Dir.glob(path + '/*.feature').sort).empty?
@@ -12,7 +12,6 @@
12
12
 
13
13
  - elements = @json.first['elements']
14
14
  - if elements
15
- %h4 Some examples:
16
15
  .examples
17
16
  - elements = @json.first['elements']
18
17
  - if elements.first['keyword'] == 'Background'
@@ -27,7 +26,7 @@
27
26
  %em
28
27
  - if example['steps']
29
28
  - example['steps'].slice_before {|step| step['keyword'] =~ /When|But/ }.each do |chunk|
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>") }
29
+ = replace_start(chunk.map { |step| step['keyword'].downcase + step['name'] + haml(:_cells, :locals => { :rows => step['rows']}) + haml(:_docstring, :locals => { :string => step['doc_string']}) }.join(', ')).tap {|s| s.sub!(/./, &:upcase) }.tap {|s| s.sub!(/$/, '.') unless s.include?("<table>") || s.include?("<pre") }
31
30
  - else
32
31
  %span.muted This example hasn't yet been detailed.
33
32
  %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.3.2
4
+ version: '0.4'
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-21 00:00:00.000000000 Z
11
+ date: 2013-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -131,6 +131,7 @@ files:
131
131
  - spec/spec_helper.rb
132
132
  - spec/usermanual_spec.rb
133
133
  - views/_cells.haml
134
+ - views/_docstring.haml
134
135
  - views/_menu.haml
135
136
  - views/_pending.haml
136
137
  - views/index.haml