Skip to content

Commit

Permalink
updating to 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
seyhunak committed Feb 24, 2012
1 parent a5d67d2 commit b03f629
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 43 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
@@ -0,0 +1,6 @@
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ree
54 changes: 19 additions & 35 deletions README.md
Expand Up @@ -4,6 +4,8 @@ It includes base CSS and HTML for typography, forms, buttons, tables, grids, nav


twitter-bootstrap-rails project integrates Bootstrap CSS toolkit for Rails 3.1 Asset Pipeline twitter-bootstrap-rails project integrates Bootstrap CSS toolkit for Rails 3.1 Asset Pipeline


[![Build Status](https://secure.travis-ci.org/seyhunak/twitter-bootstrap-rails.png)](http://travis-ci.org/seyhunak/twitter-bootstrap-rails)
[![Dependency Status](https://gemnasium.com/seyhunak/twitter-bootstrap-rails.png)](https://gemnasium.com/seyhunak/twitter-bootstrap-rails)


## Using Static CSS, JS (w/o Less) ## Using Static CSS, JS (w/o Less)


Expand All @@ -23,11 +25,11 @@ You can run bundle from command line
You have to require Bootstrap CSS (bootstrap.css) in your application.css You have to require Bootstrap CSS (bootstrap.css) in your application.css


/* /*
*= require bootstrap *= require bootstrap
*/ */

or or

/* /*
*= require bootstrap.min *= require bootstrap.min
*/ */
Expand All @@ -38,48 +40,31 @@ You have to require Bootstrap CSS (bootstrap.css) in your application.css


You have to require Bootstrap JS (bootstrap.js) in your application.js You have to require Bootstrap JS (bootstrap.js) in your application.js


//= require bootstrap-alerts //= require bootstrap
//= require bootstrap-dropdown
//= require bootstrap-modal
//= require bootstrap-twipsy
//= require bootstrap-popover
//= require bootstrap-scrollspy
//= require bootstrap-tabs
//= require bootstrap-buttons

$(document).ready(function(){ $(document).ready(function(){
/* Your javascripts goes here... */ /* Your javascripts goes here... */
}); });




## Using with coffeescript ## Using with coffeescript
Using Twitter Bootstrap with the CoffeeScript is easy. Using Twitter Bootstrap with the CoffeeScript is easy.
Just create a application.js.coffee file to /app/assets/javascripts/ folder and put lines below. Just create a bootstrap.js.coffee file to /app/assets/javascripts/ folder and put lines below.


$ -> jQuery ->
$("body > .topbar").scrollSpy() $("a[rel=popover]").popover()
$ -> $(".tooltip").tooltip()
$(".tabs").tabs() $("a[rel=tooltip]").tooltip()
$ ->
$("a[rel=twipsy]").twipsy live: true
$ ->
$("a[rel=popover]").popover offset: 10
$ ->
$(".topbar-wrapper").dropdown()
$ ->
$(".alert-message").alert()
$ ->
domModal = $(".modal").modal(
backdrop: true
closeOnEscape: true
)
$(".open-modal").click ->
domModal.toggle()


## Credits ## Credits
Seyhun Akyürek - seyhunak [at] gmail com Seyhun Akyürek - seyhunak [at] gmail com


[Follow me on Twitter](http://twitter.com/seyhunak "Twitter") [Visit My Blog](http://www.seyhunakyurek.com/ "Visit My Blog")

[Add Me On Twitter](http://twitter.com/seyhunak "Add Me On Twitter")
[Add Me On Linkedin](http://tr.linkedin.com/in/seyhunak "Add Me On Linkedin")
[Add Me On Facebook](https://www.facebook.com/seyhunak "Add Me On Facebook")
[Add Me On Google+](http://plus.ly/seyhunak "Add Me On Google+")




## Thanks ## Thanks
Expand All @@ -93,4 +78,3 @@ Copyright (c) 2011 Seyhun Akyürek
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: 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 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. 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.

11 changes: 11 additions & 0 deletions Rakefile
@@ -1,3 +1,14 @@
#!/usr/bin/env rake
require 'bundler' require 'bundler'
Bundler::GemHelper.install_tasks Bundler::GemHelper.install_tasks


desc "Bundle the gem"
task :bundle do
sh('bundle install')
sh 'gem build *.gemspec'
sh 'gem install *.gem'
sh 'rm *.gem'
end

task(:default).clear
task :default => :bundle
8 changes: 0 additions & 8 deletions lib/twitter-bootstrap-rails/version.rb~

This file was deleted.

0 comments on commit b03f629

Please sign in to comment.