ryanlowe-easy_format 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +6 -16
  2. data/easy_format.gemspec +2 -3
  3. metadata +4 -12
data/README CHANGED
@@ -5,31 +5,21 @@ http://github.com/ryanlowe/easy_format
5
5
  Was hosted at RubyForge
6
6
  http://rubyforge.org/projects/simple-format/
7
7
 
8
+ = easy_format
8
9
 
9
- = easy_format plugin for Ruby on Rails
10
-
11
- easy_format is a Rails plugin that formats and escapes database
12
- text for use in HTML views. The result looks a lot like text in
13
- Gmail: line breaks are converted and links are linked.
10
+ easy_format is a Ruby on Rails plugin that formats and escapes
11
+ database text for HTML views. The result looks a lot like text in
12
+ Gmail: line breaks are converted and HTTP links are linked up.
14
13
 
15
14
  It will not support tags like BBCode; it just formats plain text.
16
15
 
17
16
  == Installation
18
17
 
19
- It looks like Rails 2.1 will support "script/plugin install" with Git
20
- repositories. Until then you can put this plugin in vendor/plugins with:
21
-
22
- git clone git://github.com/ryanlowe/easy_format.git
23
-
24
- and delete the .git directory inside it before committing it to source control.
25
-
26
- When Rails 2.1 supports Git you should be able to do:
27
-
28
- script/plugin install git://github.com/ryanlowe/easy_format.git
18
+ gem install ryanlowe-easy_format --source http://gems.github.com/
29
19
 
30
20
  == Usage
31
21
 
32
22
  <%= EasyFormat.format(@post.body) %>
33
23
 
34
- Note: HTML angle brackets are escaped by format() so
24
+ Note: HTML brackets are escaped by format() so
35
25
  you do not need to use h() as well.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "easy_format"
3
- s.version = "0.1.0"
4
- s.date = "2008-05-26"
3
+ s.version = "0.1.1"
4
+ s.date = "2008-06-01"
5
5
  s.summary = "Formats and escapes database text for safe use in Ruby on Rails views"
6
6
  s.email = "rails@ryanlowe.ca"
7
7
  s.homepage = "http://github.com/ryanlowe/easy_format"
@@ -13,5 +13,4 @@ Gem::Specification.new do |s|
13
13
  s.test_files = ["test/easy_format_test.rb","test/test_helper.rb"]
14
14
  s.rdoc_options = ["--main", "README"]
15
15
  s.extra_rdoc_files = ["README","CHANGELOG"]
16
- s.add_dependency("rails", ["> 2.0.0"])
17
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ryanlowe-easy_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Lowe
@@ -9,18 +9,10 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-26 00:00:00 -07:00
12
+ date: 2008-06-01 00:00:00 -07:00
13
13
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: rails
17
- version_requirement:
18
- version_requirements: !ruby/object:Gem::Requirement
19
- requirements:
20
- - - ">"
21
- - !ruby/object:Gem::Version
22
- version: 2.0.0
23
- version:
14
+ dependencies: []
15
+
24
16
  description: Formats and escapes database text for safe use in Ruby on Rails views
25
17
  email: rails@ryanlowe.ca
26
18
  executables: []