Skip to content

Commit 8cc2bcd

Browse files
committed
initial commit
0 parents  commit 8cc2bcd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1016
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.bundle/
2+
log/*.log
3+
pkg/
4+
test/dummy/db/*.sqlite3
5+
test/dummy/db/*.sqlite3-journal
6+
test/dummy/log/*.log
7+
test/dummy/tmp/
8+
test/dummy/.sass-cache

Gemfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
source 'https://rubygems.org'
2+
3+
# Declare your gem's dependencies in bootstrap_form_extensions.gemspec.
4+
# Bundler will treat runtime dependencies like base dependencies, and
5+
# development dependencies will be added by default to the :development group.
6+
gemspec
7+
8+
# Declare any dependencies that are still in development here instead of in
9+
# your gemspec. These might include edge Rails or gems from your path or
10+
# Git. Remember to move these dependencies to your gemspec before releasing
11+
# your gem to rubygems.org.
12+
13+
gem 'bootstrap_form'
14+
gem 'byebug', group: [:development, :test]
15+

Gemfile.lock

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
PATH
2+
remote: .
3+
specs:
4+
bootstrap_form_extensions (0.0.2)
5+
bootstrap_form (~> 2.3)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
actionmailer (4.2.4)
11+
actionpack (= 4.2.4)
12+
actionview (= 4.2.4)
13+
activejob (= 4.2.4)
14+
mail (~> 2.5, >= 2.5.4)
15+
rails-dom-testing (~> 1.0, >= 1.0.5)
16+
actionpack (4.2.4)
17+
actionview (= 4.2.4)
18+
activesupport (= 4.2.4)
19+
rack (~> 1.6)
20+
rack-test (~> 0.6.2)
21+
rails-dom-testing (~> 1.0, >= 1.0.5)
22+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
23+
actionview (4.2.4)
24+
activesupport (= 4.2.4)
25+
builder (~> 3.1)
26+
erubis (~> 2.7.0)
27+
rails-dom-testing (~> 1.0, >= 1.0.5)
28+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
29+
activejob (4.2.4)
30+
activesupport (= 4.2.4)
31+
globalid (>= 0.3.0)
32+
activemodel (4.2.4)
33+
activesupport (= 4.2.4)
34+
builder (~> 3.1)
35+
activerecord (4.2.4)
36+
activemodel (= 4.2.4)
37+
activesupport (= 4.2.4)
38+
arel (~> 6.0)
39+
activesupport (4.2.4)
40+
i18n (~> 0.7)
41+
json (~> 1.7, >= 1.7.7)
42+
minitest (~> 5.1)
43+
thread_safe (~> 0.3, >= 0.3.4)
44+
tzinfo (~> 1.1)
45+
arel (6.0.3)
46+
bootstrap_form (2.3.0)
47+
builder (3.2.2)
48+
byebug (6.0.2)
49+
erubis (2.7.0)
50+
globalid (0.3.6)
51+
activesupport (>= 4.1.0)
52+
i18n (0.7.0)
53+
json (1.8.3)
54+
loofah (2.0.3)
55+
nokogiri (>= 1.5.9)
56+
mail (2.6.3)
57+
mime-types (>= 1.16, < 3)
58+
metaclass (0.0.4)
59+
mime-types (2.6.2)
60+
mini_portile (0.6.2)
61+
minitest (5.8.0)
62+
mocha (1.1.0)
63+
metaclass (~> 0.0.1)
64+
nokogiri (1.6.6.2)
65+
mini_portile (~> 0.6.0)
66+
rack (1.6.4)
67+
rack-test (0.6.3)
68+
rack (>= 1.0)
69+
rails (4.2.4)
70+
actionmailer (= 4.2.4)
71+
actionpack (= 4.2.4)
72+
actionview (= 4.2.4)
73+
activejob (= 4.2.4)
74+
activemodel (= 4.2.4)
75+
activerecord (= 4.2.4)
76+
activesupport (= 4.2.4)
77+
bundler (>= 1.3.0, < 2.0)
78+
railties (= 4.2.4)
79+
sprockets-rails
80+
rails-deprecated_sanitizer (1.0.3)
81+
activesupport (>= 4.2.0.alpha)
82+
rails-dom-testing (1.0.7)
83+
activesupport (>= 4.2.0.beta, < 5.0)
84+
nokogiri (~> 1.6.0)
85+
rails-deprecated_sanitizer (>= 1.0.1)
86+
rails-html-sanitizer (1.0.2)
87+
loofah (~> 2.0)
88+
railties (4.2.4)
89+
actionpack (= 4.2.4)
90+
activesupport (= 4.2.4)
91+
rake (>= 0.8.7)
92+
thor (>= 0.18.1, < 2.0)
93+
rake (10.4.2)
94+
sprockets (3.3.4)
95+
rack (~> 1.0)
96+
sprockets-rails (2.3.3)
97+
actionpack (>= 3.0)
98+
activesupport (>= 3.0)
99+
sprockets (>= 2.8, < 4.0)
100+
sqlite3 (1.3.10)
101+
thor (0.19.1)
102+
thread_safe (0.3.5)
103+
tzinfo (1.2.2)
104+
thread_safe (~> 0.1)
105+
106+
PLATFORMS
107+
ruby
108+
109+
DEPENDENCIES
110+
bootstrap_form
111+
bootstrap_form_extensions!
112+
byebug
113+
mocha
114+
rails (~> 4.0)
115+
sqlite3

MIT-LICENSE

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

README.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Rails Bootstrap Forms Extensions
2+
3+
## Requirements
4+
5+
* Ruby 1.9+
6+
* Rails 4.0+
7+
* Twitter Bootstrap 3.0+
8+
9+
## Installation
10+
11+
Add it to your Gemfile:
12+
13+
`gem 'bootstrap_form_extensions'`
14+
15+
Then:
16+
17+
`bundle`
18+
19+
Then require the CSS in your `application.css` file:
20+
21+
```css
22+
/*
23+
*= require rails_bootstrap_forms_extensions
24+
*/
25+
```
26+
27+
## Contributing
28+
29+
Here's a quick guide for contributing:
30+
31+
1. Fork the repo.
32+
33+
2. Run the existing test suite:
34+
35+
```
36+
$ bundle exec rake -f test/dummy/Rakefile db:create db:migrate RAILS_ENV=test
37+
$ bundle exec rake
38+
```
39+
40+
3. Add tests for your change.
41+
42+
4. Add your changes and make your test(s) pass.
43+
44+
5. Update the README if necessary.
45+
46+
6. Add a line to the CHANGELOG for your bug fix or feature.
47+
48+
7. Push to your fork and submit a pull request.

Rakefile

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
begin
2+
require 'bundler/setup'
3+
rescue LoadError
4+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5+
end
6+
7+
require 'rdoc/task'
8+
9+
RDoc::Task.new(:rdoc) do |rdoc|
10+
rdoc.rdoc_dir = 'rdoc'
11+
rdoc.title = 'BootstrapFormExtensions'
12+
rdoc.options << '--line-numbers'
13+
rdoc.rdoc_files.include('README.rdoc')
14+
rdoc.rdoc_files.include('lib/**/*.rb')
15+
end
16+
17+
18+
19+
20+
21+
22+
Bundler::GemHelper.install_tasks
23+
24+
require 'rake/testtask'
25+
26+
Rake::TestTask.new(:test) do |t|
27+
t.libs << 'lib'
28+
t.libs << 'test'
29+
t.pattern = 'test/**/*_test.rb'
30+
t.verbose = false
31+
end
32+
33+
34+
task default: :test

bootstrap_form_extensions.gemspec

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
$:.push File.expand_path("../lib", __FILE__)
2+
3+
# Maintain your gem's version:
4+
require "bootstrap_form_extensions/version"
5+
6+
# Describe your gem and declare its dependencies:
7+
Gem::Specification.new do |s|
8+
s.name = "bootstrap_form_extensions"
9+
s.version = BootstrapFormExtensions::VERSION
10+
s.author = "Jesús Dugarte"
11+
s.email = "[email protected]"
12+
s.homepage = "http://github.com/jdugarte/rails_bootstrap_forms_extensions/"
13+
s.summary = "Specialized controls added to the bootstrap_form gem"
14+
s.description = ""
15+
s.license = "MIT"
16+
17+
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
18+
s.test_files = Dir["test/**/*"]
19+
20+
s.add_dependency "bootstrap_form", "~> 2.3"
21+
22+
s.add_development_dependency "rails", "~> 4.0"
23+
s.add_development_dependency "sqlite3"
24+
s.add_development_dependency "mocha"
25+
end

lib/bootstrap_form_extensions.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module BootstrapFormExtensions
2+
end
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module BootstrapFormExtensions
2+
VERSION = "0.0.1"
3+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# desc "Explaining what the task does"
2+
# task :bootstrap_form_extensions do
3+
# # Task goes here
4+
# end
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'test_helper'
2+
3+
class BootstrapFormExtensionsTest < ActiveSupport::TestCase
4+
test "truth" do
5+
assert_kind_of Module, BootstrapFormExtensions
6+
end
7+
end

test/dummy/README.rdoc

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
== README
2+
3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
5+
6+
Things you may want to cover:
7+
8+
* Ruby version
9+
10+
* System dependencies
11+
12+
* Configuration
13+
14+
* Database creation
15+
16+
* Database initialization
17+
18+
* How to run the test suite
19+
20+
* Services (job queues, cache servers, search engines, etc.)
21+
22+
* Deployment instructions
23+
24+
* ...
25+
26+
27+
Please feel free to use a different markup language if you do not plan to run
28+
<tt>rake doc:app</tt>.

test/dummy/Rakefile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require File.expand_path('../config/application', __FILE__)
5+
6+
Rails.application.load_tasks

test/dummy/app/assets/images/.keep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6+
//
7+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8+
// compiled file.
9+
//
10+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11+
// about supported directives.
12+
//
13+
//= require_tree .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
9+
* compiled file so the styles you add here take precedence over styles defined in any styles
10+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11+
* file per style scope.
12+
*
13+
*= require_tree .
14+
*= require_self
15+
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class ApplicationController < ActionController::Base
2+
# Prevent CSRF attacks by raising an exception.
3+
# For APIs, you may want to use :null_session instead.
4+
protect_from_forgery with: :exception
5+
end

test/dummy/app/controllers/concerns/.keep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module ApplicationHelper
2+
end

test/dummy/app/mailers/.keep

Whitespace-only changes.

test/dummy/app/models/.keep

Whitespace-only changes.

test/dummy/app/models/concerns/.keep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Dummy</title>
5+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7+
<%= csrf_meta_tags %>
8+
</head>
9+
<body>
10+
11+
<%= yield %>
12+
13+
</body>
14+
</html>

test/dummy/bin/bundle

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env ruby
2+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3+
load Gem.bin_path('bundler', 'bundle')

test/dummy/bin/rails

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env ruby
2+
APP_PATH = File.expand_path('../../config/application', __FILE__)
3+
require_relative '../config/boot'
4+
require 'rails/commands'

test/dummy/bin/rake

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env ruby
2+
require_relative '../config/boot'
3+
require 'rake'
4+
Rake.application.run

0 commit comments

Comments
 (0)