Skip to content

Commit cb95820

Browse files
committed
Initial commit
0 parents  commit cb95820

15 files changed

+7594
-0
lines changed

.gitignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
*.gem
2+
*.rbc
3+
.bundle
4+
.config
5+
.yardoc
6+
Gemfile.lock
7+
InstalledFiles
8+
_yardoc
9+
coverage
10+
doc/
11+
lib/bundler/man
12+
pkg
13+
rdoc
14+
spec/reports
15+
test/tmp
16+
test/version_tmp
17+
tmp

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
# Specify your gem's dependencies in bootstrap-editable-rails.gemspec
4+
gemspec

LICENSE.txt

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2012 Toru KAWAMURA
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Bootstrap Editable Rails
2+
3+
In-place editing with Twitter Bootstrap for Rails
4+
5+
This gem is based on X-editable (v1.1.1) which is the new version of Bootstrap Editable.
6+
7+
https://github.com/vitalets/x-editable
8+
9+
## Demo & Documents
10+
11+
See http://vitalets.github.com/x-editable
12+
13+
## Installation
14+
15+
Add this line to your application's Gemfile:
16+
17+
gem 'bootstrap-editable-rails'
18+
19+
And then execute:
20+
21+
$ bundle
22+
23+
## Usage
24+
25+
Write the top of `app/assets/javascripts/application.js` like this:
26+
27+
```javascript
28+
//= require jquery
29+
//= require jquery_ujs
30+
//= require bootstrap
31+
//= require bootstrap-editable
32+
//= require bootstrap-editable-rails
33+
//= require_tree .
34+
```
35+
36+
and need to load `bootstrap-editable.css` at the place where you like.
37+
38+
## Contributing
39+
40+
1. Fork it
41+
2. Create your feature branch (`git checkout -b my-new-feature`)
42+
3. Commit your changes (`git commit -am 'Add some feature'`)
43+
4. Push to the branch (`git push origin my-new-feature`)
44+
5. Create new Pull Request

Rakefile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require "bundler/gem_tasks"

bootstrap-editable-rails.gemspec

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# -*- encoding: utf-8 -*-
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'bootstrap-editable-rails/version'
5+
6+
Gem::Specification.new do |gem|
7+
gem.name = "bootstrap-editable-rails"
8+
gem.version = Bootstrap::Editable::Rails::VERSION
9+
gem.authors = ["Toru KAWAMURA"]
10+
gem.email = ["[email protected]"]
11+
gem.description = %q{In-place editing with Twitter Bootstrap for Rails}
12+
gem.summary = %q{In-place editing with Twitter Bootstrap for Rails}
13+
gem.homepage = "https://github.com/tkawa/bootstrap-editable-rails"
14+
15+
gem.files = `git ls-files`.split($/)
16+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18+
gem.require_paths = ["lib"]
19+
20+
gem.add_dependency "railties", "~> 3.1"
21+
end

lib/bootstrap-editable-rails.rb

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require "bootstrap-editable-rails/version"
2+
3+
module Bootstrap
4+
module Editable
5+
module Rails
6+
class Engine < ::Rails::Engine
7+
end
8+
end
9+
end
10+
end
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module Bootstrap
2+
module Editable
3+
module Rails
4+
VERSION = "0.0.1"
5+
end
6+
end
7+
end

vendor/assets/images/loading.gif

1.81 KB
Loading

0 commit comments

Comments
 (0)