spacify 0.0.1 → 0.1.0
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/VERSION +1 -1
- data/bin/spacify +0 -1
- data/spacify.vim +12 -0
- metadata +4 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0
|
|
1
|
+
0.1.0
|
data/bin/spacify
CHANGED
data/spacify.vim
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function! Spacify(html) range
|
|
2
|
+
" let input = shellescape( join( getline(a:firstline, a:lastline), "\n") )
|
|
3
|
+
let input = join( getline(a:firstline, a:lastline), "\n")
|
|
4
|
+
let regex = shellescape( a:html )
|
|
5
|
+
let res = system( "spacify " . regex, input )
|
|
6
|
+
echo type(res)
|
|
7
|
+
let current_line = a:firstline
|
|
8
|
+
for line in split(res, '\n')
|
|
9
|
+
execute setline(current_line, line)
|
|
10
|
+
let current_line += 1
|
|
11
|
+
endfor
|
|
12
|
+
endfunction
|
metadata
CHANGED
|
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
|
4
4
|
prerelease: false
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
|
-
- 0
|
|
8
7
|
- 1
|
|
9
|
-
|
|
8
|
+
- 0
|
|
9
|
+
version: 0.1.0
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Scott Noel-Hemming
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-07-
|
|
17
|
+
date: 2010-07-12 00:00:00 -07:00
|
|
18
18
|
default_executable: spacify
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -62,6 +62,7 @@ files:
|
|
|
62
62
|
- lib/html_node_element.treetop
|
|
63
63
|
- lib/html_parser.treetop
|
|
64
64
|
- lib/spacify.rb
|
|
65
|
+
- spacify.vim
|
|
65
66
|
- test/helper.rb
|
|
66
67
|
- test/test_spacify.rb
|
|
67
68
|
has_rdoc: true
|