copy 0.1.2 → 0.1.3
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.
- data/README.md +1 -1
- data/lib/copy/server.rb +1 -1
- data/lib/copy/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
data/lib/copy/server.rb
CHANGED
@@ -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
|
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?
|
data/lib/copy/version.rb
CHANGED
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:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
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-
|
18
|
+
date: 2011-05-21 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|