Giter Site home page Giter Site logo

include_media_rails's Introduction

Include Media Rails

Travis CI Build Badge

A simple wrapper of include_media by Eduardo Bouças, @eduardoboucas and Kitty Giraudel, @KittyGiraudel.

Website and Docs: http://include-media.com/

Repo: https://github.com/eduardoboucas/include-media

Installation

Add this line to your application's Gemfile:

gem 'include_media_rails', '~> 2.0'

And then execute:

$ bundle

Or install it yourself as:

$ gem install include_media_rails

Usage

in a sass file (app/assets/stylsheets/application.scss for example):

@import "include_media";

Dependencies

  • Rails >= 3.1 and <5 (not tested)
  • Sass >=3.3 and <4 (include_media requires sass maps)

Versioning

*.*.* points to the include_media version. i.e. v1.4.2 comes with include_media's v1.4.2. NOTE I started this gem when include_media was at v1.4.2. Earilier versions are not currently supported.

The last number (1.4.2.* ) points to minor changes made to the gem itself.

Available versions:

1.4.2.1
1.4.3
1.4.5
1.4.6

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To quickly update include-media run gulp update. It will pull the latest version from npm and copy include-media to the vendor/assets/stylesheets directory.

To pull down a specific version of include-media pass in a --version flag and set it to the target version. ie: gulp update --version=1.4.2

Upgrading

  1. Get the latest version: gulp update
  2. Bump version in lib/include_media_rails/version.rb
  3. Create PR
  4. Releasing
  • git pull origin master
  • bundle exec rake release

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kaorudev/include_media_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.