Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tmaier/tagmanager-rails

Tag Manager for Rails asset pipeline
https://github.com/tmaier/tagmanager-rails

Last synced: 11 days ago
JSON representation

Tag Manager for Rails asset pipeline

Awesome Lists containing this project

README

        

# tagmanager-rails

[![Gem Version](https://badge.fury.io/rb/tagmanager-rails.svg)](http://badge.fury.io/rb/tagmanager-rails)
[![Dependency Status](https://gemnasium.com/tmaier/tagmanager-rails.svg)](https://gemnasium.com/tmaier/tagmanager-rails)
[![Code Climate](https://codeclimate.com/github/tmaier/tagmanager-rails.svg)](https://codeclimate.com/github/tmaier/tagmanager-rails)

This gem provides [Tag Manager][] for Rails asset pipeline.

It includes the CSS; SCSS and LESS version of the stylesheet.

## Version

Tag Manager version 3.0.1
[e71e5e3991cd30a9ad93c3cf879279602e68a85e](https://github.com/max-favilli/tagmanager/commit/e71e5e3991cd30a9ad93c3cf879279602e68a85e)

## Installation

Add the tagmanager-rails gem to your Gemfile.

```ruby
gem 'tagmanager-rails'
```

And run `bundle install`.

### Rails 3.1 or greater with asset pipeline *enabled*

The Tag Manager file will be added to the asset pipeline.

#### JS

Add the following line to `app/assets/javascripts/application.js`:

```js
//= require tagmanager
```

#### CSS, SCSS or LESS

Add the following line to `app/assets/stylesheets/application.css`:

```css
/*
*= require tagmanager
*/
```

If you want to change the variables, include it with the Sass `@import` method

```scss
@import 'tagmanager.css.scss';
```

Do the same if you are using LESS respectively.

## Contributing

Feel free to open an issue ticket if you find something that could be improved.

### Upgrading Tag Manager

1. Upgrade CSS and LESS version of stylesheet
1. Convert LESS to SCSS
1. Update `TAGMANAGER_VERSION`
1. Update Changelog and README

## Acknowledgements

Many thanks to [max-favilli](https://github.com/max-favilli) for [Tag Manager][] and all Rails committer for Rails.

Copyright [Tobias L. Maier](http://tobiasmaier.info), released under the MIT License.
Tag Manager itself is under Mozilla Public License. See [license.txt](https://github.com/max-favilli/tagmanager/blob/master/license.txt) of the project.

[Tag Manager]: https://github.com/max-favilli/tagmanager