wagn 1.20.4 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b24eaee3796d3a2dd901d53f7f5fde5812b8f0cf
4
- data.tar.gz: '01907edb2c055543feee4bc45dbea97948d22fe7'
3
+ metadata.gz: dd62b300fdfa7ab1eb32f5d2d3d751acbc3b7e91
4
+ data.tar.gz: dad2c2256c30f6e82f15ec16e6195970ab4b136e
5
5
  SHA512:
6
- metadata.gz: a1674997df75d0f0e771701eae5650258779a24de64d1ddc4539322457d13a49060e321652c25c04cb577a72a0849a025a02eeccb57a19fe02bac2ee39c26af7
7
- data.tar.gz: e7024bba7c91ae141ed53548a66d1ce03603d7ffdbb20a17052b37f657df7acd64431346788dfad997fd9c1debdf26aac706d90fc3f29eec69a1be2e49cb5c04
6
+ metadata.gz: f260458a65f9d11fb29d3158e6f6c2df207f4f43ba11323f5f10fa3b1aa44cf50c3f06c196178a4ae075d8272c9de6ba0e3d50869fa37242a23a6835391a639c
7
+ data.tar.gz: 97798f779c80e00b109467746a93f30df0af24dbb6319ba26c7ddffa8a2d0b24e1f5c7931fc14f8e80b80210719b375920dbc76acca68d8588591f3fc6a2305b
@@ -31,4 +31,4 @@ Feature: Navbox
31
31
  Then I should see "Search results"
32
32
  And I should see "Sample Skin"
33
33
  When I click on "2"
34
- Then I should see "simplex skin+style"
34
+ Then I should see "superhero skin"
@@ -56,7 +56,7 @@ end
56
56
  # prefer to use XPath just remove this line and adjust any selectors in your
57
57
  # steps to use the XPath syntax.
58
58
  Capybara.default_selector = :css
59
- Capybara.default_max_wait_time = 20
59
+ Capybara.default_max_wait_time = 30
60
60
  Cardio.config.paging_limit = 10
61
61
  # By default, any exception happening in your Rails application will bubble up
62
62
  # to Cucumber so that your scenario will fail. This is a different from how
@@ -22,6 +22,7 @@ module Wagn
22
22
  env_args = @opts[:env].join " "
23
23
  # turn coverage off if not all cukes run
24
24
  env_args << " COVERAGE=false" if @cucumber_args.present?
25
+ env_args << " RAILS_GROUPS=test,debug"
25
26
  env_args
26
27
  end
27
28
 
@@ -68,6 +68,9 @@ module <%= app_const_base %>
68
68
  # },
69
69
  # attributes: { "Cache-Control" => "max-age=#{365.day.to_i}" },
70
70
  # public: true,
71
+ # read_only: false, # if true then updating a file
72
+ # # in that bucket will move it
73
+ # # to the default storage location
71
74
  # authenticated_url_expiration: 180 # if public is set to false this
72
75
  # # option is needed
73
76
  # }
@@ -4,6 +4,7 @@
4
4
 
5
5
  require "wagn" # only for card_gem_root
6
6
  require File.join Wagn.card_gem_root, "spec/support/card_spec_loader.rb"
7
+ require File.join Wagn.card_gem_root, "spec/support/matchers.rb"
7
8
 
8
9
  CardSpecLoader.init
9
10
 
@@ -51,10 +51,6 @@ module Wagn
51
51
  send_file File.join(path, filename), x_sendfile: true
52
52
  end
53
53
 
54
- def page_opts_from_params
55
- (params[:slot] || {}).deep_symbolize_keys
56
- end
57
-
58
54
  def format_from_params
59
55
  return :file if params[:explicit_file]
60
56
  format = request.parameters[:format]
@@ -85,6 +85,7 @@ namespace :wagn do
85
85
  desc "reset cache"
86
86
  task reset_cache: :environment do
87
87
  Card::Cache.reset_all
88
+ Card.reset_all_machines
88
89
  end
89
90
 
90
91
  desc "set symlink for assets"
@@ -0,0 +1 @@
1
+ define("ace/mode/latex_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment",regex:"%.*$"},{token:["keyword","lparen","variable.parameter","rparen","lparen","storage.type","rparen"],regex:"(\\\\(?:documentclass|usepackage|input))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})"},{token:["keyword","lparen","variable.parameter","rparen"],regex:"(\\\\(?:label|v?ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\(?:begin|end))({)(\\w*)(})"},{token:"storage.type",regex:"\\\\[a-zA-Z]+"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"constant.character.escape",regex:"\\\\[^a-zA-Z]?"},{token:"string",regex:"\\${1,2}",next:"equation"}],equation:[{token:"comment",regex:"%.*$"},{token:"string",regex:"\\${1,2}",next:"start"},{token:"constant.character.escape",regex:"\\\\(?:[^a-zA-Z]|[a-zA-Z]+)"},{token:"error",regex:"^\\s*$",next:"start"},{defaultToken:"string"}]}};r.inherits(s,i),t.LatexHighlightRules=s}),define("ace/mode/folding/latex",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=e("../../range").Range,o=e("../../token_iterator").TokenIterator,u=t.FoldMode=function(){};r.inherits(u,i),function(){this.foldingStartMarker=/^\s*\\(begin)|(section|subsection|paragraph)\b|{\s*$/,this.foldingStopMarker=/^\s*\\(end)\b|^\s*}/,this.getFoldWidgetRange=function(e,t,n){var r=e.doc.getLine(n),i=this.foldingStartMarker.exec(r);if(i)return i[1]?this.latexBlock(e,n,i[0].length-1):i[2]?this.latexSection(e,n,i[0].length-1):this.openingBracketBlock(e,"{",n,i.index);var i=this.foldingStopMarker.exec(r);if(i)return i[1]?this.latexBlock(e,n,i[0].length-1):this.closingBracketBlock(e,"}",n,i.index+i[0].length)},this.latexBlock=function(e,t,n){var r={"\\begin":1,"\\end":-1},i=new o(e,t,n),u=i.getCurrentToken();if(!u||u.type!="storage.type"&&u.type!="constant.character.escape")return;var a=u.value,f=r[a],l=function(){var e=i.stepForward(),t=e.type=="lparen"?i.stepForward().value:"";return f===-1&&(i.stepBackward(),t&&i.stepBackward()),t},c=[l()],h=f===-1?i.getCurrentTokenColumn():e.getLine(t).length,p=t;i.step=f===-1?i.stepBackward:i.stepForward;while(u=i.step()){if(!u||u.type!="storage.type"&&u.type!="constant.character.escape")continue;var d=r[u.value];if(!d)continue;var v=l();if(d===f)c.unshift(v);else if(c.shift()!==v||!c.length)break}if(c.length)return;var t=i.getCurrentTokenRow();return f===-1?new s(t,e.getLine(t).length,p,h):(i.stepBackward(),new s(p,h,t,i.getCurrentTokenColumn()))},this.latexSection=function(e,t,n){var r=["\\subsection","\\section","\\begin","\\end","\\paragraph"],i=new o(e,t,n),u=i.getCurrentToken();if(!u||u.type!="storage.type")return;var a=r.indexOf(u.value),f=0,l=t;while(u=i.stepForward()){if(u.type!=="storage.type")continue;var c=r.indexOf(u.value);if(c>=2){f||(l=i.getCurrentTokenRow()-1),f+=c==2?1:-1;if(f<0)break}else if(c>=a)break}f||(l=i.getCurrentTokenRow()-1);while(l>t&&!/\S/.test(e.getLine(l)))l--;return new s(t,e.getLine(t).length,l,e.getLine(l).length)}}.call(u.prototype)}),define("ace/mode/latex",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/latex_highlight_rules","ace/mode/folding/latex","ace/range"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./latex_highlight_rules").LatexHighlightRules,o=e("./folding/latex").FoldMode,u=e("../range").Range,a=function(){this.HighlightRules=s,this.foldingRules=new o};r.inherits(a,i),function(){this.type="text",this.lineCommentStart="%",this.$id="ace/mode/latex"}.call(a.prototype),t.Mode=a})
@@ -112,7 +112,7 @@ class CardController < ActionController::Base
112
112
 
113
113
  view ||= params[:view]
114
114
  result = card.act do
115
- format.page view, page_opts_from_params
115
+ format.page view, Card::Env.slot_opts
116
116
  end
117
117
 
118
118
  status = format.error_status || status
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wagn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.4
4
+ version: 1.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-04-15 00:00:00.000000000 Z
14
+ date: 2017-06-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -33,14 +33,14 @@ dependencies:
33
33
  requirements:
34
34
  - - '='
35
35
  - !ruby/object:Gem::Version
36
- version: 1.20.4
36
+ version: 1.21.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - '='
42
42
  - !ruby/object:Gem::Version
43
- version: 1.20.4
43
+ version: 1.21.0
44
44
  description: a wiki approach to stuctured data, dynamic interaction, and web design
45
45
  email:
46
46
  - info@wagn.org
@@ -177,6 +177,7 @@ files:
177
177
  - rails/assets/ace/mode-html.js
178
178
  - rails/assets/ace/mode-javascript.js
179
179
  - rails/assets/ace/mode-json.js
180
+ - rails/assets/ace/mode-latex.js
180
181
  - rails/assets/ace/mode-scss.js
181
182
  - rails/assets/ace/theme-github.js
182
183
  - rails/assets/ace/theme-textmate.js