Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added gemspec and performed other maintenance for release as a Rubygem

- gave version constant one central home that is read from the gemspec and extension initialiser
- removed version mention from Readme so it won't get forgotten there
  • Loading branch information...
commit 4f3234472acff646d5b621b493ae04d3e4321658 1 parent b62604d
@gerrit gerrit authored
View
14 README
@@ -3,7 +3,6 @@
Created by: Keith Bingman - keithbingman.com
Revived by: Benny Degezelle - gorilla-webdesign.be
New features by: Jim Gay - saturnflyer.com
-Version: 1.5
This extension enhances the page model with tagging capabilities, tagging as in "2.0" and tagclouds.
@@ -15,7 +14,16 @@ You can change the load order of extensions in config/environment.rb (see http:/
== Installation
-1. Copy the extension to your vendor/extensions directory as you would any other extension.
+=== Using RubyGems
+
+`gem install radiant-tags-extension`
+
+add the following line to your environment.rb
+config.gem 'radiant-tags-extension'
+
+=== Classic style
+
+1. Copy the extension to your vendor/extensions directory as you would any other extension or use `script/extension install tags`
2. Run 'rake radiant:extensions:tags:install'
3. Make a page to sit in /search/by-tag, and give it the "Tag Search" pagetype.
If you want to change this location, it's in Radiant::Config['tags.results_page_url'].
@@ -35,4 +43,4 @@ Here's a sample results page to get you started;
<li><r:link/> - <r:author/> - <r:date/></li>
</r:search:results:each>
</ul>
- </r:search:results>
+ </r:search:results>
View
3  lib/radiant-tags-extension.rb
@@ -0,0 +1,3 @@
+module RadiantTagsExtension
+ VERSION = '1.5.1'
+end
View
28 radiant-tags-extension.gemspec
@@ -0,0 +1,28 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path('../lib', __FILE__)
+require 'radiant-tags-extension'
+
+Gem::Specification.new do |s|
+ s.name = 'radiant-tags-extension'
+ s.version = RadiantTagsExtension::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ['Benny Degezelle']
+ s.email = ['benny@gorilla-webdesign.be']
+ s.homepage = 'http://ext.radiantcms.org/extensions/195-tags'
+ s.summary = %q{Tagging for Radiant CMS}
+ s.description = %q{This extension enhances the page model with tagging capabilities, tagging as in \"2.0" and tagclouds.}
+
+ # TODO: add gem dependency on this instead of bundling it
+ # s.add_dependency 'has_many_polymorphs'
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features,vendor/plugins/*/test,vendor/plugins/*/spec,vendor/plugins/*/features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+
+ # TODO: update for usage with Bundler/Gemfile once Radiant gets that capability
+ s.post_install_message = %{
+ Add this to your radiant project by adding the following line to your environment.rb:
+ config.gem 'radiant-tags-extension', :version => '#{RadiantTagsExtension::VERSION}'
+ }
+end
View
3  tags_extension.rb
@@ -1,8 +1,9 @@
require_dependency 'application_controller'
require File.dirname(__FILE__)+'/lib/tagging_methods'
+require 'radiant-tags-extension'
class TagsExtension < Radiant::Extension
- version "1.5"
+ version RadiantTagsExtension::VERSION
description "This extension enhances the page model with tagging capabilities, tagging as in \"2.0\" and tagclouds."
url "http://gorilla-webdesign.be"
Please sign in to comment.
Something went wrong with that request. Please try again.