formatize 1.0.0rc3 → 1.0.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/LICENSE +1 -1
- data/README.md +16 -43
- data/lib/formatize/version.rb +1 -1
- metadata +11 -14
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
Formatize
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
If you are running edge Rails, Formatize can already be useful now.
|
|
4
|
+
As of version 3, Rails doesn't have the `textilize`,
|
|
5
|
+
`textilize_without_paragraph`, and `markdown` helper methods. Formatize brings
|
|
6
|
+
them back. Drop it into the old application you're upgrading and it'll smoothen
|
|
7
|
+
the process just that little bit more.
|
|
9
8
|
|
|
10
9
|
Installation
|
|
11
10
|
------------
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
gem 'formatize'
|
|
17
|
-
|
|
18
|
-
Alternatively, you can install as a plugin:
|
|
19
|
-
|
|
20
|
-
rails plugin install git://github.com/dtrasbo/formatize.git
|
|
21
|
-
|
|
22
|
-
Don't forget to add the `RedCloth` and/or `bluecloth` gems to the Gemfile if
|
|
23
|
-
you go with the plugin. They will be installed
|
|
24
|
-
automatically when installing the gem.
|
|
12
|
+
Put `gem 'formatize'` into your Gemfile and do a `bundle install`, and that's
|
|
13
|
+
it. Formatize depends on `RedCloth` and `bluecloth` so you will not have to
|
|
14
|
+
worry about those.
|
|
25
15
|
|
|
26
16
|
Usage
|
|
27
17
|
-----
|
|
@@ -68,35 +58,18 @@ before conversion:
|
|
|
68
58
|
Compatibility
|
|
69
59
|
-------------
|
|
70
60
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
prerelease of Rails 3.0.0 is out, Formatize will be updated (if necessary) to
|
|
80
|
-
be compatible with that. However, there will not be made an effort to maintain
|
|
81
|
-
backwards compatibility with prereleases of Rails 3.0.0 in the future. As soon
|
|
82
|
-
as Rails 3.0.0 Final is released Formatize 1.0.0 Final will be released, and
|
|
83
|
-
all future Formatize versions will maintain compatibility with the latest Rails
|
|
84
|
-
3.x versions.
|
|
85
|
-
|
|
86
|
-
What that means is that when Rails 3.0.1 is released there will not be made an
|
|
87
|
-
effort to maintain backwards compatibility with 3.0.0, because 3.0.1 is the
|
|
88
|
-
latest 3.0 version. The reason for that is that it should be fairly straight
|
|
89
|
-
forward to upgrade from, for example, Rails 3.0.0 to 3.0.1, but it might not be
|
|
90
|
-
as easy to upgrade from 3.0.5 to 3.1.0.
|
|
91
|
-
|
|
92
|
-
If one day a new Ruby/Rails version is released and there is no sensible way to
|
|
93
|
-
maintain the level of backwards compatibility promised above, a new major
|
|
94
|
-
version of Formatize will be released. If Formatize 2 is released one day,
|
|
95
|
-
Formatize 1 will be maintained in a separate branch.
|
|
61
|
+
I'll maintain compatibility with the latest Ruby 1.8 and 1.9 versions, which
|
|
62
|
+
for the moment being means Ruby 1.8.7 and 1.9.2. It might work with others but
|
|
63
|
+
it's not guaranteed. Patches welcome.
|
|
64
|
+
|
|
65
|
+
As for Rails, I'll make sure Formatize works with the latest 3.x versions,
|
|
66
|
+
which for the moment being just means Rails 3.0.0. If, say, the latest 3.0
|
|
67
|
+
version was 3.0.5 and the latest 3.1 version was 3.1.1, Formatize would work
|
|
68
|
+
with both.
|
|
96
69
|
|
|
97
70
|
Copyright & Licensing
|
|
98
71
|
---------------------
|
|
99
72
|
|
|
100
|
-
Copyright (c) 2010 David
|
|
73
|
+
Copyright (c) 2010 David Trasbo
|
|
101
74
|
|
|
102
75
|
Released under the MIT License. See LICENSE for details.
|
data/lib/formatize/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: formatize
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
prerelease:
|
|
4
|
+
prerelease: false
|
|
5
5
|
segments:
|
|
6
6
|
- 1
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 1.0.
|
|
8
|
+
- 0
|
|
9
|
+
version: 1.0.0
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
|
-
- David
|
|
12
|
+
- David Trasbo
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-08-
|
|
17
|
+
date: 2010-08-30 00:00:00 +02:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -57,12 +57,11 @@ dependencies:
|
|
|
57
57
|
- 3
|
|
58
58
|
- 0
|
|
59
59
|
- 0
|
|
60
|
-
|
|
61
|
-
version: 3.0.0.rc2
|
|
60
|
+
version: 3.0.0
|
|
62
61
|
type: :runtime
|
|
63
62
|
version_requirements: *id003
|
|
64
63
|
description:
|
|
65
|
-
email:
|
|
64
|
+
email: me@dtrasbo.com
|
|
66
65
|
executables: []
|
|
67
66
|
|
|
68
67
|
extensions: []
|
|
@@ -95,19 +94,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
95
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
95
|
none: false
|
|
97
96
|
requirements:
|
|
98
|
-
- - "
|
|
97
|
+
- - ">="
|
|
99
98
|
- !ruby/object:Gem::Version
|
|
100
99
|
segments:
|
|
101
|
-
-
|
|
102
|
-
|
|
103
|
-
- 1
|
|
104
|
-
version: 1.3.1
|
|
100
|
+
- 0
|
|
101
|
+
version: "0"
|
|
105
102
|
requirements: []
|
|
106
103
|
|
|
107
104
|
rubyforge_project:
|
|
108
105
|
rubygems_version: 1.3.7
|
|
109
106
|
signing_key:
|
|
110
107
|
specification_version: 3
|
|
111
|
-
summary:
|
|
108
|
+
summary: Gem containing the textilize, textilize_without_paragraph, and markdown helper methods removed from Rails.
|
|
112
109
|
test_files: []
|
|
113
110
|
|