Skip to content

Commit

Permalink
initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
rweng committed Sep 21, 2011
0 parents commit 50c5755
Show file tree
Hide file tree
Showing 8 changed files with 901 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
*.gem
.bundle
Gemfile.lock
pkg/*
.idea/
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Specify your gem's dependencies in underscore-rails.gemspec
gemspec
1 change: 1 addition & 0 deletions Rakefile
@@ -0,0 +1 @@
require "bundler/gem_tasks"
16 changes: 16 additions & 0 deletions Readme.md
@@ -0,0 +1,16 @@
Rails 3.1 asset-pipeline gem to provide underscore.js

# Install

gem 'underscore-rails'


# Use

In your application.js manifest:

//= underscore

or directly available under `/assets/underscore.js`

Easy as pie.
11 changes: 11 additions & 0 deletions lib/underscore-rails.rb
@@ -0,0 +1,11 @@
require "underscore-rails/version"

module Underscore
module Rails
if defined?(::Rails) and ::Rails.version >= "3.1"
class Rails::Engine < ::Rails::Engine
# this class enables the asset pipeline
end
end
end
end
5 changes: 5 additions & 0 deletions lib/underscore-rails/version.rb
@@ -0,0 +1,5 @@
module Underscore
module Rails
VERSION = "1.1.7"
end
end
20 changes: 20 additions & 0 deletions underscore-rails.gemspec
@@ -0,0 +1,20 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "underscore-rails/version"

Gem::Specification.new do |s|
s.name = "underscore-rails"
s.version = Underscore::Rails::VERSION
s.authors = ["Robin Wenglewski"]
s.email = ["robin@wenglewski.de"]
s.homepage = "https://github.com/rweng/underscore-rails"
s.summary = %q{underscore.js asset pipeline provider/wrapper}

s.rubyforge_project = "underscore-rails"

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

0 comments on commit 50c5755

Please sign in to comment.