copy 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Copy is a simple, Sinatra-based content management system.
1
+ # Copy is a simple, Sinatra-based CMS (Copy Management System).
2
2
 
3
3
  `$ gem install copy` and then generate a new site `$ copy -n mynewsite`
4
4
 
@@ -66,7 +66,7 @@ module Copy
66
66
  # Remove that same amount of white space from the beginning of every line.
67
67
  content.gsub!(Regexp.new("^#{white_space}"), '')
68
68
  # Remove all whitespace from the end, but keep the newline if present.
69
- content.gsub!(/\s*$/, '') << "\n" if content =~ /\n/
69
+ content.gsub!(/\s*\z/, '') << "\n" if content =~ /\n/
70
70
 
71
71
  # Save the content so it can be edited.
72
72
  Copy::Storage.set(name, content) if Copy::Storage.connected?
@@ -1,3 +1,3 @@
1
1
  module Copy
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Javan Makhmali
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-20 00:00:00 -04:00
18
+ date: 2011-05-21 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency