burp_cms 1.3.16 → 1.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 928fe7baf8518353a9cb4a288c0dcfcb7a253e1a
4
- data.tar.gz: 59bf2e7a7359295c4b83add9f3a5cf73e7855380
3
+ metadata.gz: 98b38ae650ebcf87c3bf63e4a37f12ac7e658b51
4
+ data.tar.gz: af03cb6ccf0ecb479013f62552e9f87ca9ade19d
5
5
  SHA512:
6
- metadata.gz: 55f9c237cace2d1a7e01aa17370f5e21fea9c3e476bdba94ad989cc0d298d571827b05c7d728eea57f8532d146bc9200ca7ed889e98dd691cdea1d51e8a0a156
7
- data.tar.gz: a610926288a1de5cecaba8c40c64a2b733d3c9b5c2e737d159c8960b0b6ea2cc791c8f73205da36ebb6c36dedd633f77b31b3e49f0b9ee4f4176d4e4c2173654
6
+ metadata.gz: 5c870144558df74614a1c5064a553c746a6f326a0da38b963507747ed77e4cfbb62c862ed4a77a5c505d335051c6717514dbad9321907b7c8a7ddef5bfb56240
7
+ data.tar.gz: e82896d8f9d0f25ef549dbaf7b22ee4b3d839ef006e6c32a12d7a53afe78c5cac58fc86712e2421892a3b74143f215f99f7455522cae71bcdca060870401b549
@@ -11,8 +11,8 @@ module Burp
11
11
  attr_accessor :path, :title, :snippets
12
12
 
13
13
  validates_presence_of :path, :message => "You must enter a path"
14
- validates :path, :format => { :with => /^\//, :message => "Must start with a slash" }
15
- validates :path, :format => { :with => /^[a-zA-Z0-9\-\.\/]+$/, :message => "Invalid path" }
14
+ validates :path, :format => { :with => /\A\//, :message => "Must start with a slash" }
15
+ validates :path, :format => { :with => /\A[a-zA-Z0-9\-\.\/]+\z/, :message => "Invalid path" }
16
16
  validate do
17
17
  if File.exist?("#{on_disk_path}/page.json") && @original_path != path
18
18
  errors.add(:path, "Path already taken, #{path}")
data/config/routes.rb CHANGED
@@ -20,11 +20,11 @@ Burp::Engine.routes.draw do
20
20
  end
21
21
 
22
22
  # Catch all to 404 error
23
- match "/*path" => "error#no_such_page"
23
+ get "/*path" => "error#no_such_page"
24
24
 
25
25
  end
26
26
 
27
27
  Rails.application.routes.draw do
28
28
  mount Burp::Engine => "/burp"
29
- match '/:path' => 'burp::catch_all#show', :constraints => { :path => /.*/ }
29
+ get '/:path' => 'burp/catch_all#show', :constraints => { :path => /.*/ }
30
30
  end
data/lib/burp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Burp
2
- VERSION = "1.3.16"
2
+ VERSION = "1.3.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: burp_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.16
4
+ version: 1.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darwin