pen 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/app/assets/javascripts/pen/pen.js +2 -2
- data/lib/pen/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a546f8cfcb17248c4a0f569784c025046f270c3f
|
4
|
+
data.tar.gz: 9f4bcfd8ca164da53f2f5334bfad05b689355c14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d2ecd6fed05ebe5fac3ddb1a68ee8a6ff173d7e2f8e9a3f7ecc41f238beabc92c3568c7c6197e567e77c846e0071f8696f201eaf557245f9e4d1088e73374e1
|
7
|
+
data.tar.gz: 5e0c257f2635d90edf2891e0b8d86e6cb678b9199c12075e9ee253aab541f40eb7c0ee702f05a3870a16172902be292f619ebdf312cc1f8146172c783acfc6ae
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Pen
|
2
2
|
|
3
|
-
Pen Editor for Rails
|
3
|
+
Pen Editor for Rails [![Gem Version](https://badge.fury.io/rb/pen.png)](http://badge.fury.io/rb/pen)
|
4
4
|
|
5
5
|
See https://github.com/sofish/pen for more information.
|
6
6
|
|
@@ -20,7 +20,7 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
**
|
23
|
+
**In application.css**
|
24
24
|
|
25
25
|
```css
|
26
26
|
/*
|
@@ -28,13 +28,13 @@ Or install it yourself as:
|
|
28
28
|
*/
|
29
29
|
```
|
30
30
|
|
31
|
-
**
|
31
|
+
**In application.js**
|
32
32
|
|
33
33
|
```javascript
|
34
34
|
//= require 'pen'
|
35
35
|
```
|
36
36
|
|
37
|
-
**
|
37
|
+
**Invoke pen**
|
38
38
|
```js
|
39
39
|
var editor = new Pen('#editor');
|
40
40
|
```
|
@@ -195,7 +195,7 @@
|
|
195
195
|
|
196
196
|
createlink = function(input) {
|
197
197
|
input.style.display = 'none';
|
198
|
-
if(input.value) return apply(input.value.replace(/(^\s+)|(\s+$)/g, ''));
|
198
|
+
if(input.value) return apply(input.value.replace(/(^\s+)|(\s+$)/g, '').replace(/^(?!http:\/\/|https:\/\/)(.*)$/, 'http://$1'));
|
199
199
|
action = 'unlink';
|
200
200
|
apply();
|
201
201
|
};
|
@@ -363,4 +363,4 @@
|
|
363
363
|
// make it accessible
|
364
364
|
this.Pen = doc.getSelection ? Pen : FakePen;
|
365
365
|
|
366
|
-
}(document);
|
366
|
+
}(document);
|
data/lib/pen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Torsten Trautwein
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.
|
87
|
+
rubygems_version: 2.0.3
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Pen Editor for Rails
|