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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/spacify +0 -1
  3. data/spacify.vim +12 -0
  4. metadata +4 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  $LOAD_PATH << File.join(__FILE__, '..', 'lib')
4
- puts $LOAD_PATH.sort.inspect
5
4
  require 'spacify'
6
5
 
7
6
  input = $stdin.read
@@ -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
- version: 0.0.1
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-07 00:00:00 -07:00
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