Skip to content

Commit

Permalink
Initial gemification
Browse files Browse the repository at this point in the history
  • Loading branch information
zmillman committed Apr 14, 2014
1 parent ce4aecf commit 6f9f167
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in redactor-rails.gemspec
gemspec
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,28 @@ $('.infinite-table').infinitePages('resume')
Installation
------------

Just copy the `jquery.infinite-pages.js.coffee` file to your `app/assets/javascripts`
folder.
Add this line to your application's Gemfile:

(It would be awesome to make this a gem, so consider that a feature request :smile:)
```ruby
gem 'jquery-infinite-pages', :git => 'git://github.com/magoosh/jquery-infinite-pages.git'
```

And then execute:

```
bundle install
```

Add to your `application.js`:

```javascript
//= require jquery.infinite-pages
```

### Non-Rails

Just copy the `jquery.infinite-pages.js.coffee` file from `app/assets/javascripts` to
wherever you want it.

Rails/Kaminari Example
----------------------
Expand Down
File renamed without changes.
17 changes: 17 additions & 0 deletions jquery-infinite-pages.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/jquery-infinite-pages/version', __FILE__)

Gem::Specification.new do |s|
s.name = "jquery-infinite-pages"
s.version = JqueryInfinitePages::VERSION
s.licenses = ["MIT"]
s.summary = "Infinite pages for jQuery + Rails"
s.description = "A light-weight infinite scrolling jQuery plugin, wrapped in a gem for Rails"
s.authors = ["Zach Millman"]
s.email = ["[email protected]"]
s.homepage = "https://github.com/magoosh/jquery-infinite-pages"
s.files = Dir["{lib,app}/**/*"] + ["LICENSE", "README.md"]

s.add_dependency "jquery-rails"
s.add_dependency "railties", ">= 3.1"
end
2 changes: 2 additions & 0 deletions lib/jquery-infinite-pages.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'jquery-infinite-pages/version'
require 'jquery-infinite-pages/engine'
4 changes: 4 additions & 0 deletions lib/jquery-infinite-pages/engine.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module JqueryInfinitePages
class Engine < ::Rails::Engine
end
end
3 changes: 3 additions & 0 deletions lib/jquery-infinite-pages/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module JqueryInfinitePages
VERSION = "0.1.1"
end

0 comments on commit 6f9f167

Please sign in to comment.