From 932ee1f4739582fa061b20c961549b42c6ac1b00 Mon Sep 17 00:00:00 2001 From: Grayson Wright Date: Wed, 18 May 2016 12:21:56 -0700 Subject: [PATCH] Release version 0.2.1 Changes: * [#573] [FEATURE] Render custom javascripts and stylesheets to the page by registering them with Administrate in an initializer. For example, you can create `config/initializers/administrate.rb` with the contents: ``` Administrate::Engine.add_javascript "my_plugin/script" Administrate::Engine.add_stylesheet "my_plugin/styles" ``` * [#567] [FEATURE] Add a partial for rendering HTML links to stylesheets. This is useful for plugin developers, as well as people who want to add custom stylesheets on a page-by-page basis using `content_for(:stylesheet)`. * [#492] [FEATURE] Translate attribute labels on show and index pages. To customize an attribute label, add translations according to the structure: ``` en: helpers: label: customer: name: Full Name ``` --- CHANGELOG.md | 10 ++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/administrate/version.rb | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e021b3493e..c4cfbac232 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,16 @@ ### Upcoming Release +### 0.2.1 (May 18, 2016) + +* [#573] [FEATURE] Render custom javascripts and stylesheets to the page + by registering them with Administrate in an initializer. + For example, you can create `config/initializers/administrate.rb` + with the contents: + ``` + Administrate::Engine.add_javascript "my_plugin/script" + Administrate::Engine.add_stylesheet "my_plugin/styles" + ``` * [#567] [FEATURE] Add a partial for rendering HTML links to stylesheets. This is useful for plugin developers, as well as people who want to add custom stylesheets on a page-by-page basis diff --git a/Gemfile.lock b/Gemfile.lock index 7c3ef9704d..74d08b9f53 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - administrate (0.2.0) + administrate (0.2.1) autoprefixer-rails (~> 6.0) datetime_picker_rails (~> 0.0.7) jquery-rails (~> 4.0) diff --git a/README.md b/README.md index 5cecce9f66..017276cb16 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Add Administrate to your Gemfile: ```ruby # Gemfile -gem "administrate", "~> 0.2.0" +gem "administrate", "~> 0.2.1" ``` Re-bundle, then run the installer: diff --git a/lib/administrate/version.rb b/lib/administrate/version.rb index cd59f90b15..d96a2e3192 100644 --- a/lib/administrate/version.rb +++ b/lib/administrate/version.rb @@ -1,3 +1,3 @@ module Administrate - VERSION = "0.2.0".freeze + VERSION = "0.2.1".freeze end