fredit 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/fredit.rb +3 -1
  2. metadata +5 -16
@@ -1,4 +1,5 @@
1
1
  require 'fredit/erb'
2
+ require 'uri'
2
3
 
3
4
  module Fredit
4
5
  extend self
@@ -11,9 +12,10 @@ module Fredit
11
12
  paths.map {|x| rel_path(x)}
12
13
  end
13
14
 
15
+ # TODO change this to be compatible with HAML
14
16
  def link(x)
15
17
  s = <<-END
16
- <a href="/fredit?file=#{x}">#{x}</a>
18
+ <a href="/fredit?file=#{URI.escape(x)}" target="_blank">#{x}</a>
17
19
  END
18
20
  s.strip.html_safe
19
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fredit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,18 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2011-10-25 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rails
16
- requirement: &73525730 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 3.0.5
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: *73525730
13
+ dependencies: []
25
14
  description: Edit the front end of Rails apps through the browser.
26
15
  email:
27
16
  - dhchoi@gmail.com
@@ -54,7 +43,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
54
43
  version: '0'
55
44
  segments:
56
45
  - 0
57
- hash: 434428307
46
+ hash: -744117635
58
47
  required_rubygems_version: !ruby/object:Gem::Requirement
59
48
  none: false
60
49
  requirements:
@@ -63,11 +52,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
52
  version: '0'
64
53
  segments:
65
54
  - 0
66
- hash: 434428307
55
+ hash: -744117635
67
56
  requirements: []
68
57
  rubyforge_project:
69
58
  rubygems_version: 1.8.11
70
59
  signing_key:
71
60
  specification_version: 3
72
- summary: fredit 0.0.1
61
+ summary: fredit 0.0.2
73
62
  test_files: []