forked from danielfarrell/bootstrap-combobox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make publishable as a gem. danielfarrell#80.
- Loading branch information
1 parent
0421f16
commit 406cf9c
Showing
7 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
vendor | ||
*.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in bootstrap-combobox-rails.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require "bundler/gem_tasks" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- encoding: utf-8 -*- | ||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'fileutils' | ||
require 'bootstrap-combobox/version' | ||
|
||
%w{vendor vendor/assets vendor/assets/javascripts vendor/assets/stylesheets }.each do |path| | ||
file = File.join(path.split('/')) | ||
Dir.mkdir(file) unless Dir.exist?(file) | ||
end | ||
|
||
[[File.join(%w{css bootstrap-combobox.css}), File.join(%w{vendor assets stylesheets bootstrap-combobox.css})], | ||
[File.join(%w{js bootstrap-combobox.js}), File.join(%w{vendor assets javascripts bootstrap-combobox.js})]].each do |pair| | ||
FileUtils.cp(pair[0], pair[1]) unless File.exist? pair[1] | ||
end | ||
|
||
Gem::Specification.new do |gem| | ||
gem.name = "bootstrap-combobox" | ||
gem.version = Bootstrap::Combobox::VERSION | ||
gem.authors = %w{ danielfarrell denishaskin } | ||
gem.email = %w{ [email protected] [email protected] } | ||
gem.description = %q{Combobox for Bootstrap, based on Bootstrap typeahead} | ||
gem.summary = %q{Combobox for Bootstrap, based on Bootstrap typeahead} | ||
gem.homepage = "https://github.com/danielfarrell/bootstrap-combobox" | ||
gem.license = 'MIT' | ||
|
||
gem.files = Dir["{lib,vendor}/**/*"] + ["README.md"] | ||
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } | ||
gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) | ||
gem.require_paths = ["lib"] | ||
|
||
gem.add_dependency "railties", "~> 3.1" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require "bootstrap-combobox-rails/version" | ||
|
||
module Bootstrap | ||
module Combobox | ||
module Rails | ||
class Engine < ::Rails::Engine | ||
# Rails, will you please look in our vendor? kthx | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Bootstrap | ||
module Combobox | ||
# This version is a little arbitrary; at time of this writing source fork is at 1.1-WIP? | ||
VERSION = "1.1" | ||
end | ||
end |