site_logic 1.6.6 → 1.6.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.6
1
+ 1.6.7
data/config/routes.rb CHANGED
@@ -11,25 +11,25 @@ Rails.application.routes.draw do
11
11
  def matches?(request)
12
12
  return false if request.subdomain == 'admin'
13
13
  site = Site.where(:domain => request.host).first
14
- site && site.redirects.where(:source_url => "#{request.path}").first
14
+ site && site.redirects.where(:source_url => request.path).first
15
15
  end
16
16
  end
17
17
 
18
18
  constraints(RedirectConstraint.new) do
19
- match ':source_url', :to => 'redirects#show'
19
+ get ':source_url', :to => 'redirects#show'
20
20
  end
21
21
 
22
22
  constraints(SiteConstraint.new) do
23
- root :to => 'pages#show'
24
- match '*path' => 'pages#show'
23
+ root :to => 'pages#show', :via => 'get'
24
+ get '*path' => 'pages#show'
25
25
  end
26
26
 
27
27
  namespace :admin do
28
- match 'sites/:site_id/nav_items/reorder', :to => 'nav_items#reorder', :as => 'site_reorder_nav_items'
28
+ put 'sites/:site_id/nav_items/reorder', :to => 'nav_items#reorder', :as => 'site_reorder_nav_items'
29
29
  resources :sites do
30
30
  resources :nav_items
31
31
  resources :pages do
32
- match 'preview', :to => 'pages#preview', :as => 'preview_admin_site_page'
32
+ get 'preview', :to => 'pages#preview', :as => 'preview_admin_site_page'
33
33
  end
34
34
  resources :redirects
35
35
  end
data/site_logic.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{site_logic}
8
- s.version = "1.6.6"
8
+ s.version = "1.6.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Bantik}]
12
- s.date = %q{2011-07-17}
12
+ s.date = %q{2011-07-27}
13
13
  s.description = %q{An engine for search-engine-optimized content management.}
14
14
  s.email = %q{corey@seologic.com}
15
15
  s.extra_rdoc_files = [
@@ -1,8 +1,6 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
3
  describe PagesController do
4
- render_views
5
-
6
4
  before :all do
7
5
  Site.destroy_all
8
6
  @site = Site.make
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_logic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
- - 6
10
- version: 1.6.6
9
+ - 7
10
+ version: 1.6.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bantik
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-17 00:00:00 Z
18
+ date: 2011-07-27 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bson_ext