bootstrap-switch-rails-3.3.4/.gitignore000644 001750 001750 00000000242 13366301254 020442 0ustar00pravipravi000000 000000 *.gem *.rbc .bundle .config .yardoc Gemfile.lock InstalledFiles _yardoc coverage doc/ lib/bundler/man pkg rdoc spec/reports test/tmp test/version_tmp tmp _source bootstrap-switch-rails-3.3.4/README.md000644 001750 001750 00000003044 13366301254 017734 0ustar00pravipravi000000 000000 # bootstrap-switch-rails [![Gem Version](https://badge.fury.io/rb/bootstrap-switch-rails.png)](http://badge.fury.io/rb/bootstrap-switch-rails) bootstrap-switch-rails provides the [bootstrap-switch](http://bootstrapswitch.site/) plugin as a Rails engine to use it within the asset pipeline. ## Installation Add this to your Gemfile: ```ruby gem "bootstrap-switch-rails" ``` and run `bundle install`. ## Usage In your `application.js`, include the following: ```js //= require bootstrap-switch ``` In your `application.css`, include the following: ```css /* * for bootstrap3 *= require bootstrap3-switch * * or for bootstrap2 *= require bootstrap2-switch */ *= require bootstrap-switch ``` or in any `SASS` file, include the following: ```css /* for bootstrap3 */ @import "bootstrap3-switch"; /* or for bootstrap2 */ @import "bootstrap2-switch"; ``` ## Examples See the [demo page](http://bootstrapswitch.site/examples.html) for examples how to use the plugin ## License * The [bootstrap-switch](http://bootstrapswitch.site/) plugin is licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) * The [bootstrap-switch-rails](https://github.com/manuelvanrijn/bootstrap-switch-rails) project is licensed under the [MIT License](http://opensource.org/licenses/mit-license.html) ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request bootstrap-switch-rails-3.3.4/lib/bootstrap-switch-rails/railtie.rb000644 001750 001750 00000000160 13366301254 025621 0ustar00pravipravi000000 000000 module Bootstrap module Switch module Rails class Railtie < ::Rails::Railtie; end end end end bootstrap-switch-rails-3.3.4/Gemfile000644 001750 001750 00000000137 13366301254 017750 0ustar00pravipravi000000 000000 source 'https://rubygems.org' # Specify your gem's dependencies in genericons.gemspec gemspec bootstrap-switch-rails-3.3.4/lib/000755 001750 001750 00000000000 13366301254 017222 5ustar00pravipravi000000 000000 /000700 001750 001750 00000000000 13732662323 011436 5ustar00pravipravi000000 000000 bootstrap-switch-rails-3.3.4/LICENSE.txt000644 001750 001750 00000002060 13366301254 020275 0ustar00pravipravi000000 000000 Copyright (c) 2013 Manuel van Rijn MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. bootstrap-switch-rails-3.3.4/update_from_vendor.sh000755 001750 001750 00000001362 13366301254 022677 0ustar00pravipravi000000 000000 #!/bin/sh # Checkout vendor repo echo "Cloning Bttstrp/bootstrap-switch github repo into tmp_vendor" git clone https://github.com/Bttstrp/bootstrap-switch.git tmp_vendor # Copy files echo "Copying bootstrap-switch.js" cp tmp_vendor/dist/js/bootstrap-switch.js vendor/assets/javascripts/bootstrap-switch.js echo "Copying bootstrap-switch.css files" cp tmp_vendor/dist/css/bootstrap2/bootstrap-switch.css vendor/assets/stylesheets/bootstrap2-switch.scss cp tmp_vendor/dist/css/bootstrap3/bootstrap-switch.css vendor/assets/stylesheets/bootstrap3-switch.scss # Delete vendor repo echo "Removing cloned vendor repo" rm -rf tmp_vendor echo "Finished... You'll need to commit the changes. You should consider updating the changelog and gem version number" bootstrap-switch-rails-3.3.4/Rakefile000644 001750 001750 00000000034 13366301254 020116 0ustar00pravipravi000000 000000 require "bundler/gem_tasks" bootstrap-switch-rails-3.3.4/lib/bootstrap-switch-rails/version.rb000644 001750 001750 00000000134 13366301254 025656 0ustar00pravipravi000000 000000 module Bootstrap module Switch module Rails VERSION = "3.3.4" end end end bootstrap-switch-rails-3.3.4/lib/bootstrap-switch-rails/000755 001750 001750 00000000000 13366301254 023646 5ustar00pravipravi000000 000000 bootstrap-switch-rails-3.3.4/lib/bootstrap-switch-rails.rb000644 001750 001750 00000000425 13366301254 024174 0ustar00pravipravi000000 000000 require "rails" require "bootstrap-switch-rails/version" module Bootstrap module Switch module Rails if ::Rails.version < "3.1" require "bootstrap-switch-rails/railtie" else require "bootstrap-switch-rails/engine" end end end end bootstrap-switch-rails-3.3.4/lib/bootstrap-switch-rails/engine.rb000644 001750 001750 00000000163 13366301254 025440 0ustar00pravipravi000000 000000 module Bootstrap module Switch module Rails class Engine < ::Rails::Engine end end end end bootstrap-switch-rails-3.3.4/bootstrap-switch-rails.gemspec000644 001750 001750 00000001774 13366301254 024456 0ustar00pravipravi000000 000000 # coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'bootstrap-switch-rails/version' Gem::Specification.new do |spec| spec.name = "bootstrap-switch-rails" spec.version = Bootstrap::Switch::Rails::VERSION spec.authors = ["Manuel van Rijn"] spec.email = ["manuel@manuelvanrijn.nl"] spec.description = %q{A small gem for putting bootstrap-switch into the Rails asset pipeline} spec.summary = %q{an asset gemification of the bootstrap-switch plugin} spec.homepage = "https://github.com/manuelvanrijn/bootstrap-switch-rails" spec.license = "MIT, Apache License v2.0" spec.files = `git ls-files`.split($/) spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] spec.add_development_dependency "bundler", "~> 1.3" spec.add_development_dependency "rake" end bootstrap-switch-rails-3.3.4/000755 001750 001750 00000000000 13366301254 016454 5ustar00pravipravi000000 000000