Code Monkey home page Code Monkey logo

r2rb's Introduction

R2

Library for swapping CSS values for right-to-left display. A direct Ruby port of the Javascript/Node project at https://github.com/ded/R2.

Installation

$ gem install r2

Usage

You can use the handy static method for flipping any CSS string via:

> R2.r2("/* Comment */\nbody { direction: rtl; }")
#=> "body{direction:ltr;}"

Build Status

Build Status

Reporting bugs

Report bugs in the github project at http://github.com/mzsanford/r2rb

Change Log

  • v0.2.6 - Handle multi-row selectors (fix from @n0nick)
  • v0.2.5 - Handle background: shorthand
  • v0.2.4 - Handle url() properties better
    • [BUG] - Handle url() without embedded semi-colons and with trailing parameters
  • v0.2.3 - Handle url() properties better
    • [BUG] - Handle url() with embedded semi-colons (like escaped SVG)
    • [CHANGE] - Remove Travis tests for Ruby 1.8 because Travis adds a celluloid dependency that does not work before Ruby 1.9.3
  • v0.2.2 – CSS3 box-shadow fix continues
    • [BUG] Correctly handle box-shadow declarations that define multiple shadows (fix from @wazeHQ)
    • [FEATURE] Make the r2 command line tool convert CSS provided via stdin or a file (previously it was a no-op)
  • v0.2.1 – CSS3 box-shadow fix
    • [BUG] Correctly handle box-shadow declarations starting with inset (fix from @wazeHQ)
  • v0.2.0 – CSS3 additions
    • [FEATURE] Support @media queries by ignoring them (fix from @haimlankry)
    • [FEATURE] Correctly flip box-shadow values (bug report from @aviaron)
  • v0.1.0 – @fractious updates
    • [CLEANUP] Added rspec dev dependency
    • [CLEANUP] Fixed typo in internal method name
    • [FEATURE] Added support for background-position
  • v0.0.3 - Feature release
    • [FEATURE] Added -moz and -webkit border support
    • [FEATURE] Added box-shadow (+moz and webkit) support
    • [DOC] Added change log
  • v0.0.2 - Documentation updated
  • v0.0.1 - Initial release

Copyright and License

 Copyright 2011 Twitter, Inc.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this work except in compliance with the License.
 You may obtain a copy of the License in the LICENSE file, or at:

   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

r2rb's People

Contributors

bquorning avatar elentok avatar haimlankry avatar jamesbebbington avatar mzsanford avatar n0nick avatar purian avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.