jquery-infinite-pages 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjczYTQwYjA4ZjRlNGFhMjBkZGY3Mzg0YTY4ZWFiMDQyMjNjZjU4ZA==
4
+ OTFlZjg0ZGNkYTk4MmZiODI0YTljZmQ4YTZmYWQ4MGViYzEwZjUzZg==
5
5
  data.tar.gz: !binary |-
6
- MzczYWYzN2Q3MzYzYTNhMTBhYTA0ZWVkYzhmODUxNmQ3OWZjNmVlNg==
6
+ ZmY0ZmNmMmI5NGNlMWIzZDkzNmNmYmFlOTE2Y2Q1ZTNiZDYwMGYxMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTljMjI0OGYyYmVkNTM1ZDNjZWYyZDI3Y2U4YjczMWRkOTAxZDM2NmYyZDdm
10
- Yjk0YTg2YmExMzIxYTFiOTdjMzY4MDJkOWQ3OGE4OGViMGQyMTI5ZDQ5YjU4
11
- M2Q0YjQxNmIzMjE2ZTE5YmYyYzAxMDdiMWQ2NTlmZjUzMGQxNTE=
9
+ MDdmZDJmMmJhNGQ1ZDIwZjZmMGQyOTEzOWM1NmZlZjU5NDUwNGYyMGIwNzAz
10
+ OGQ1MGY4YTdkOWIwYWFmOTk5MWM5NDRmMjZhNDZhZmRhZGFlODE0Y2I2MTUy
11
+ ODdmYjQxMzU4NjZkMjNjOTcxMDY4N2RlMGM0NGQxMjEzODJhZmM=
12
12
  data.tar.gz: !binary |-
13
- MmRlYzE0ZjM5Y2M1NzNiNGYwMDQyNTQ1MTYxNjY3MWRjMzQ5YjFkOGQwZmJk
14
- OGM2MzU3NjIzYWY5ZGVkZTcyNmNkMjFmNjk5MzY3ZDU1NjY5ZWFhMjAwNDg2
15
- MGVjNjc4NDI4M2E3ZjAzNWQxMzI2OGI0MTM1NjgwZDlkZWYyNWI=
13
+ NzVmNjg5YjVjMDM1NGFhZDM5MGYxOGQwNzU3YWQ0YmIxMTQyY2YyNjk3OWVm
14
+ MjFlMDNmOWZlOTkwYjI4Zjg1Y2U2ZGM1MzFmN2E3ODIzMGFlNzI2NjIxYzA4
15
+ ODE1NGI3ZDM4OTdjY2QxYTAwMDMxMmE5YzhhYjU5MWZjOTQ2ZTM=
data/README.md CHANGED
@@ -1,12 +1,37 @@
1
1
  jQuery Infinite Pages
2
2
  =====================
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/jquery-infinite-pages.svg)](http://badge.fury.io/rb/jquery-infinite-pages)
5
+
4
6
  A light-weight jQuery plugin for adding infinite scrolling to paginated HTML views
5
7
  that tastes great with [Rails](https://github.com/rails/rails) and
6
8
  [Kaminari](https://github.com/amatsuda/kaminari).
7
9
 
8
- This project was originally designed for Rails, so it's wrapped in a gem for easy
9
- installation. However, the core plugin is flexible enough to use anywhere.
10
+ This project was originally designed for Rails, but the core plugin is flexible
11
+ enough to use anywhere.
12
+
13
+ Installation
14
+ ------------
15
+
16
+ Add this line to your application's `Gemfile`:
17
+ ```ruby
18
+ gem 'jquery-infinite-pages'
19
+ ```
20
+
21
+ And then execute:
22
+ ```
23
+ bundle install
24
+ ```
25
+
26
+ Add to your `application.js` file:
27
+ ```javascript
28
+ //= require jquery.infinite-pages
29
+ ```
30
+
31
+ ### Non-Rails
32
+
33
+ Just copy the `jquery.infinite-pages.js.coffee` file from `app/assets/javascripts` to
34
+ wherever you want it.
10
35
 
11
36
  Usage
12
37
  -----
@@ -34,7 +59,7 @@ $('.infinite-table').infinitePages
34
59
 
35
60
  You can also manually control the firing of load events:
36
61
 
37
- ```
62
+ ```coffeescript
38
63
  # Force load of the next page
39
64
  $('.infinite-table').infinitePages('next')
40
65
 
@@ -45,32 +70,6 @@ $('.infinite-table').infinitePages('pause')
45
70
  $('.infinite-table').infinitePages('resume')
46
71
  ```
47
72
 
48
- Installation
49
- ------------
50
-
51
- Add this line to your application's Gemfile:
52
-
53
- ```ruby
54
- gem 'jquery-infinite-pages', :git => 'git://github.com/magoosh/jquery-infinite-pages.git'
55
- ```
56
-
57
- And then execute:
58
-
59
- ```
60
- bundle install
61
- ```
62
-
63
- Add to your `application.js`:
64
-
65
- ```javascript
66
- //= require jquery.infinite-pages
67
- ```
68
-
69
- ### Non-Rails
70
-
71
- Just copy the `jquery.infinite-pages.js.coffee` file from `app/assets/javascripts` to
72
- wherever you want it.
73
-
74
73
  Rails/Kaminari Example
75
74
  ----------------------
76
75
 
@@ -80,8 +80,8 @@ Released under the MIT License
80
80
  @_loading()
81
81
 
82
82
  $.getScript(@$container.find(@options.navSelector).attr('href'))
83
- .done (=> @_success())
84
- .fail (=> @_error())
83
+ .done(=> @_success())
84
+ .fail(=> @_error())
85
85
 
86
86
  _loading: ->
87
87
  @options.state.loading = true
@@ -1,3 +1,3 @@
1
1
  module JqueryInfinitePages
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-infinite-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Millman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-14 00:00:00.000000000 Z
11
+ date: 2014-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jquery-rails