Skip to content

Commit

Permalink
Rewrite - use banzai and cut off rails integration
Browse files Browse the repository at this point in the history
  • Loading branch information
dejan committed Dec 13, 2015
1 parent 27a3c7e commit 8545d00
Show file tree
Hide file tree
Showing 89 changed files with 1,002 additions and 1,502 deletions.
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--require spec_helper
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

93 changes: 61 additions & 32 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
## 1.6.4, released 2014-04-11
CHANGELOG
=========

## 2.0.0-snapshot

* New, breaking API
* Removed Rails dependency
* Filters cleanup, only the most popular ones are bundled

## 1.6.4

* New filter: youtube image filter

## 1.6.3, released 2014-04-01
## 1.6.3

* Fixed Twitter filter
* New filter: liveleak

## 1.6.2, released 2014-03-15
## 1.6.2

* Deferred loading of filters dependencies when possible
* Wrap youtube video with div for easier styling
* Update redcarpet to latest
Expand All @@ -14,8 +26,9 @@
* Allow replacing youtube URL without protocol
* Fix gist filter - add type attribute

## 1.6.1, released 2014-01-05
* Permit auto_html_for on an attribute that's not in the DB.
## 1.6.1

* Permit auto_html_for on an attribute that is not in the DB.
* Image filter: :proxy option, do not format existing <img>
* Link filter: :short_link_name option
* GoogleMap filter: support for all countries (domains)
Expand All @@ -26,75 +39,91 @@
* New filters: worldstar
* Deprecate GoogleVideo since it is discontinued

## 1.6.0, released 2012-07-28
## 1.6.0

* Twitter, Flickr, Soundcloud filters added
* Options for markdown filter added
* Omit protocol where applicable (youtube, googlemap, vimeo) to avoid mixed content warnings. Fixes [#50](https://github.com/dejan/auto_html/issues/50)
* rake task fixed. Resolves [#42](https://github.com/dejan/auto_html/issues/42)
* Omit protocol where applicable (youtube, googlemap, vimeo) to avoid mixed content warnings #50
* rake task fixed #42
* Relax redcarpet version requirement

## 1.5.3, released 2012-05-08
## 1.5.3

* Fixed Mongoid support

## 1.5.2, released 2012-05-05
## 1.5.2

* Works with Rails 3.2.1+
* Updated youtube regex to account for feature=player_embedded url param

## 1.5.1, released 2012-02-18
## 1.5.1

* Rails 3.2 support
* Gist & GoogleMap filter
* fix #26 - error after the rake task completed
* fix #29 - youtube filter swallows text that comes after a link

## 1.5.0, released 2011-12-07
## 1.5.0

* use redcarpet ~> 2.0.0; :renderer option
* use rinku ~> 1.5.0
* Rake task for rebuilding cached markup
* default youtube embed code should be the same as provide by youtube.com; wmode is no longer default param
* reducing dependencies - do not bundle RedCloth filter. Redcarpet (markdown) is default choice for markup and planned for more usage internally, so the lib goes with only that.
* minor youtube filter fixes (https support, short url with params)

## 1.4.2, released 2011-08-12
## 1.4.2

* Add support for YouTube short url
* added Redcarpet filter (Markdown rendering)

## 1.4.1, released 2011-07-09
## 1.4.1

* AutoHtml gets module method: AutoHtml.auto_html(...)
* on blank filter list return input instead of nil
* AutoHtmlFor producing html_safe

## 1.4.0, released 2011-07-09
## 1.4.0

* remove Rails dependencies by using rinku & tag_helper
* image filter supports attributes
* output of auto_html method is html_safe
* auto_html module is included in ApplicationHelper

## 1.3.7, released 2011-04-12
## 1.3.7

* require activerecord only if available

## 1.3.6, released 2011-03-30
## 1.3.6

* RedCloth name fix in gemspec

## 1.3.5, released 2011-03-30
## 1.3.5

* RedCloth filter
* https support for image filter

## 1.3.4, released 2011-01-01
## 1.3.4

* added metacafe filter
* converts all filter outputs to_s

## 1.3.3, released 2010-09-01
## 1.3.3

* yet another Rails 3 initialization fix

## 1.3.2, released 2010-08-27
## 1.3.2

* pre-rails 3 initialization fix

## 1.3.1, released 2010-08-22
## 1.3.1

* Rails 3 initialization fix
* fixes to conform Rails 3.0.0.rc, sanitization by default in text_helpers (auto_link, simple_format)
* added vimeo html5 universal embed player

## 1.3.0, released 2010-08-14
## 1.3.0

* no need for explicit call to auto_html_prepare
* no need for DB column for cache (ie. _html)
* Rails 3 support
Expand All @@ -103,32 +132,32 @@
* youtube filter supports html5


## 1.2.1, released 2009-10-28
## 1.2.1

* more options for vimeo filter
* switch to gemcutter

## 1.2.0, released 2009-09-26
## 1.2.0

* link filter now uses Rails' link discovery engine. Closes: <http://github.com/dejan/auto_html/issues#issue/2> and <http://github.com/dejan/auto_html/issues#issue/3> if Rails 2.3+ is in use.
* link filter now uses Rails' link discovery engine #3
* added dailymotion filter
* added sanitize filter

## 1.1.2, released 2009-09-24
## 1.1.2

* link filter fix. Closes: <http://github.com/dejan/auto_html/issues#issue/2>
* link filter fix #2

## 1.1.1, released 2009-09-06
## 1.1.1

* test_helper fix

## 1.1.0, released 2009-09-05
## 1.1.0

* Plugin gemified
* AutoHtmlFor.options[:htmlized_attribute_suffix] is now AutoHtmlFor.auto_html_for_options[:htmlized_attribute_suffix]. Closes gh-1
* AutoHtmlFor.options[:htmlized_attribute_suffix] is now AutoHtmlFor.auto_html_for_options[:htmlized_attribute_suffix]. Closes #1
* Removed deezer filter since deezer.com no longer provides sharing of this kind

## 1.0.0

* Stuff described here: <http://www.elctech.com/projects/auto_html-plugin>
* Initial public release

17 changes: 1 addition & 16 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
source "http://rubygems.org"
source 'http://rubygems.org'

gemspec

rails_version = ENV["RAILS_VERSION"] || "default"

rails = case rails_version
when "master"
{github: "rails/rails"}
when "default"
"~> 3.2.0"
else
"~> #{rails_version}"
end

gem "rails", rails
gem 'sqlite3', '~> 1.3.3'
gem 'fakeweb'
20 changes: 20 additions & 0 deletions MIT-LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2011 Dejan Simic

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit 8545d00

Please sign in to comment.