Skip to content

Commit

Permalink
initiial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mois3x committed Mar 28, 2014
0 parents commit 1cd7467
Show file tree
Hide file tree
Showing 14 changed files with 617 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.gem
.bundle
Gemfile.lock
pkg/*
.DS_Store
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Specify your gem's dependencies in apprise-rails.gemspec
gemspec
23 changes: 23 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
JQuery-Switch was created by Rawnet. The project page is https://github.com/rawnet/jquery-switch. The page claims as of march 28, 2014 that project is licensed as MIT.

The MIT License

Copyright (c) 2011 Rawnet http://www.rawnet.com

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.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# jquery-switch-rails

This gem provides the JQuery-Switch project found at http://rawnet.github.io/jquery-switch/ for the Rails asset pipeline (available since Rails 3.1).

To make use of this project add the following line to 'app/assets/javascripts/application.js':

//= require jquery-switch

and add the following line to 'app/assets/stylesheets/application.css':

*= require jquery-switch

### Installation

In your Gemfile, add this line:

gem "jquery-switch-rails", git: "https://github.com/mois3x/jquery-switch-rails"

Then, run `bundle install`.

That's it!
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require "bundler/gem_tasks"
22 changes: 22 additions & 0 deletions jquery-switch-rails.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "jquery-switch/rails/version"

Gem::Specification.new do |s|
s.name = "jquery-switch-rails"
s.version = JQuerySwitch::Rails::VERSION
s.authors = ["Moises Viloria"]
s.email = ["[email protected]"]
s.homepage = "https://github.com/mois3x/jquery-switch-rails"
s.summary = %q{Use jquery-switch with Rails 3 and above}
s.description = %q{This provides JQuery switch by for your Rails 3 - 4 application}

s.rubyforge_project = "jquery-switch-rails"

s.add_dependency "railties", ">= 3.1"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
end
1 change: 1 addition & 0 deletions lib/jquery-switch-rails.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'jquery-switch/rails'
2 changes: 2 additions & 0 deletions lib/jquery-switch/rails.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'jquery-switch/rails/engine'
require 'jquery-switch/rails/version'
6 changes: 6 additions & 0 deletions lib/jquery-switch/rails/engine.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module JQuerySwitch
module Rails
class Engine < ::Rails::Engine
end
end
end
5 changes: 5 additions & 0 deletions lib/jquery-switch/rails/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module JQuerySwitch
module Rails
VERSION = '0.4.0'
end
end
Loading

0 comments on commit 1cd7467

Please sign in to comment.