cortex-reaver 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@ module CortexReaver
38
38
  errors['site.author'] = "is blank" if c.site.author.blank?
39
39
 
40
40
  # View sections
41
- c.view.sections.clear
41
+ c.view.sections = []
42
42
  request['view.sections'].split("\n").each do |line|
43
43
  parts = line.strip.split(' ')
44
44
  if parts.size > 1
@@ -29,8 +29,8 @@ module Ramaze
29
29
  // Updates the "name" field as the watched field changes.
30
30
  $('##{watch}').change(function () {
31
31
  $.get('#{rs('canonicalize')}', {
32
- new: $('##{watch}').val(),
33
- id: '#{model.id}'
32
+ "new": $('##{watch}').val(),
33
+ "id": '#{model.id}'
34
34
  }, function(response) {
35
35
  $('##{name}').val(response);
36
36
  })
@@ -39,8 +39,8 @@ $('##{watch}').change(function () {
39
39
  // Canonicalizes the name when we're done, just to make sure.
40
40
  $('##{name}').blur(function() {
41
41
  $.get('#{rs('canonicalize')}', {
42
- new: $('##{name}').val(),
43
- id: '#{model.id}'
42
+ "new": $('##{name}').val(),
43
+ "id": '#{model.id}'
44
44
  }, function(response) {
45
45
  $('##{name}').val(response);
46
46
  })
@@ -18,10 +18,7 @@
18
18
 
19
19
  <div id="content">
20
20
  <div id="top">
21
- <% if @model %>
22
- <%= model_nav @model %>
23
- <% end %>
24
- <h1><a href="/"><%=h CortexReaver.config.site.name %></a></h1>
21
+ <%= CortexReaver::MainController.render_view('top') %>
25
22
  </div>
26
23
 
27
24
  <div id="boxes">
@@ -45,7 +45,7 @@ module Sequel
45
45
  # Extract numeric suffices
46
46
  suffices = {}
47
47
  similar.each do |name|
48
- suffices[name[/\d$/].to_i] = true
48
+ suffices[name[/\d+$/].to_i] = true
49
49
  end
50
50
 
51
51
  # Compute suffix
@@ -1,6 +1,6 @@
1
1
  module CortexReaver
2
2
  APP_NAME = 'Cortex Reaver'
3
- APP_VERSION = '0.2.7'
3
+ APP_VERSION = '0.2.8'
4
4
  APP_AUTHOR = 'Kyle Kingsbury'
5
5
  APP_EMAIL = 'aphyr@aphyr.com'
6
6
  APP_URL = 'http://aphyr.com'
@@ -0,0 +1,4 @@
1
+ <% if @model %>
2
+ <%= model_nav @model %>
3
+ <% end %>
4
+ <h1><a href="/"><%=h CortexReaver.config.site.name %></a></h1>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cortex-reaver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kingsbury
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-01 00:00:00 -08:00
12
+ date: 2010-01-24 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -239,6 +239,7 @@ files:
239
239
  - lib/cortex_reaver/view/journals/list.rhtml
240
240
  - lib/cortex_reaver/view/journals/show.rhtml
241
241
  - lib/cortex_reaver/view/journals/journal.rhtml
242
+ - lib/cortex_reaver/view/top.rhtml
242
243
  - lib/cortex_reaver/view/tracker.rhtml
243
244
  - lib/cortex_reaver/view/users/form.rhtml
244
245
  - lib/cortex_reaver/view/users/login.rhtml