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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf68dbb2ea9a6eb64e5df85091f32898515096d3
4
- data.tar.gz: 87123d17850c41271c3f042a381947c2b0ffec20
3
+ metadata.gz: a546f8cfcb17248c4a0f569784c025046f270c3f
4
+ data.tar.gz: 9f4bcfd8ca164da53f2f5334bfad05b689355c14
5
5
  SHA512:
6
- metadata.gz: 693cc7d022eb671a7eec369b65c4a5ad727d30f722ecb254e62a833a300f102c6e0a125c9c19822ef3a2a04a8c71760e13d67d60336824cf7def24907a64b372
7
- data.tar.gz: bd0f565744d7cd2b747be78e2bf4ba95a626d3af6524155ed056a28cf38c20f84dd9259544caa102d616cf7e14739362c8e2df965207f1c43c57f9cbabf55410
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
- **in application.css**
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
- **in application.js**
31
+ **In application.js**
32
32
 
33
33
  ```javascript
34
34
  //= require 'pen'
35
35
  ```
36
36
 
37
- **invoke pen
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);
@@ -1,3 +1,3 @@
1
1
  module Pen
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
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.1
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-18 00:00:00.000000000 Z
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.1.9
87
+ rubygems_version: 2.0.3
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Pen Editor for Rails