mobile_pagination 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +20 -16
- data/CONTRIBUTORS +1 -0
- data/README.md +6 -2
- data/lib/mobile_pagination.rb +6 -2
- data/lib/mobile_pagination/paginate.rb +4 -1
- data/lib/mobile_pagination/{utils/utils.rb → utils.rb} +2 -1
- data/lib/mobile_pagination/{utils/version.rb → version.rb} +1 -1
- data/mobile_pagination.gemspec +3 -3
- metadata +7 -9
- data/lib/mobile_pagination/initialize.rb +0 -5
- data/lib/mobile_pagination/utils/initialize.rb +0 -2
data/.travis.yml
CHANGED
@@ -1,20 +1,24 @@
|
|
1
|
+
---
|
1
2
|
language: ruby
|
2
3
|
rvm:
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
notifications:
|
12
|
-
campfire:
|
13
|
-
secure: "GnEk4I+ZRjW8h7x6rtZaI/2BfhErJkeELkbjamg3a4CnRQgAKzQZUNwQL8NH\nfbxmAcVSZfVPF6unw0XMY54pgO0+6Fp6fkypaV4fpDgSJEE+6QsSJxBEPN0w\n0bkXKa7/gsRpPLx6GwkQCqSAQIf+aVB0zTV7m1spMoRE40cXZss="
|
14
|
-
on_success: always
|
15
|
-
on_failure: always
|
4
|
+
- 1.8.7
|
5
|
+
- 1.9.2
|
6
|
+
- 1.9.3
|
7
|
+
- 2.0.0
|
8
|
+
- jruby-18mode
|
9
|
+
- jruby-19mode
|
10
|
+
- rbx-18mode
|
11
|
+
- rbx-19mode
|
16
12
|
matrix:
|
17
13
|
allow_failures:
|
18
|
-
|
19
|
-
|
20
|
-
|
14
|
+
- rvm: 1.8.7
|
15
|
+
- rvm: jruby-18mode
|
16
|
+
- rvm: rbx-18mode
|
17
|
+
notifications:
|
18
|
+
campfire:
|
19
|
+
rooms:
|
20
|
+
secure: ! 'cYNdCV3+8DM672sQW27UbHqs2Rrcxv7aXvTZkA7nN0pDKuRWalMVpL2RsRWk
|
21
|
+
|
22
|
+
ZyMqu+m0R7j16Twz70hq5d1Z9+EPayj/vIL7h/HjkNW/hU6G4TARXdSI0YUl
|
23
|
+
|
24
|
+
4C9E5JCL7ZvG/RPUUnecyzYrJGIt+CuHHtONqorgtNQfqOzA8H0='
|
data/CONTRIBUTORS
CHANGED
data/README.md
CHANGED
@@ -31,7 +31,7 @@ Initializes with 4 options: `current_page, total_pages, query, path`
|
|
31
31
|
```ruby
|
32
32
|
# in your view, you may have something like this:
|
33
33
|
ol
|
34
|
-
=
|
34
|
+
= pagination_html
|
35
35
|
|
36
36
|
# in your helpers, you might have something like:
|
37
37
|
|
@@ -49,7 +49,11 @@ def opts
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def pagination
|
52
|
-
MobilePagination::Paginate.new(opts).html
|
52
|
+
@pagination ||= MobilePagination::Paginate.new(opts).html
|
53
|
+
end
|
54
|
+
|
55
|
+
def pagination_html
|
56
|
+
pagination.html
|
53
57
|
end
|
54
58
|
|
55
59
|
```
|
data/lib/mobile_pagination.rb
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
|
1
|
+
require 'mobile_pagination/version'
|
2
|
+
require 'mobile_pagination/utils'
|
3
|
+
require 'mobile_pagination/configuration'
|
4
|
+
require 'mobile_pagination/templates'
|
5
|
+
require 'mobile_pagination/paginate'
|
2
6
|
|
3
7
|
module MobilePagination
|
4
8
|
class << self
|
@@ -12,4 +16,4 @@ module MobilePagination
|
|
12
16
|
|
13
17
|
end
|
14
18
|
|
15
|
-
MobilePagination.configure unless block_given?
|
19
|
+
MobilePagination.configure unless block_given?
|
data/mobile_pagination.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require '
|
4
|
+
require 'mobile_pagination/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "mobile_pagination"
|
8
8
|
spec.version = MobilePagination::VERSION
|
9
9
|
spec.authors = ["Luke Fender"]
|
10
10
|
spec.email = ["lfender6445@gmail.com"]
|
11
|
-
spec.description = %q{
|
12
|
-
spec.summary = %q{
|
11
|
+
spec.description = %q{Creates a series of pagination elements relative to current page, best suited for minimal screenspace.}
|
12
|
+
spec.summary = %q{Provides pagination elemenents for first, previous, next, and last page.}
|
13
13
|
spec.homepage = "https://github.com/primedia/mobile_pagination?source=c"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobile_pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -139,7 +139,8 @@ dependencies:
|
|
139
139
|
- - ! '>='
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '0'
|
142
|
-
description:
|
142
|
+
description: Creates a series of pagination elements relative to current page, best
|
143
|
+
suited for minimal screenspace.
|
143
144
|
email:
|
144
145
|
- lfender6445@gmail.com
|
145
146
|
executables: []
|
@@ -157,12 +158,10 @@ files:
|
|
157
158
|
- Rakefile
|
158
159
|
- lib/mobile_pagination.rb
|
159
160
|
- lib/mobile_pagination/configuration.rb
|
160
|
-
- lib/mobile_pagination/initialize.rb
|
161
161
|
- lib/mobile_pagination/paginate.rb
|
162
162
|
- lib/mobile_pagination/templates.rb
|
163
|
-
- lib/mobile_pagination/utils
|
164
|
-
- lib/mobile_pagination/
|
165
|
-
- lib/mobile_pagination/utils/version.rb
|
163
|
+
- lib/mobile_pagination/utils.rb
|
164
|
+
- lib/mobile_pagination/version.rb
|
166
165
|
- mobile_pagination.gemspec
|
167
166
|
- spec/spec_helper.rb
|
168
167
|
- spec/unit/mobile_pagination_spec.rb
|
@@ -192,8 +191,7 @@ rubyforge_project:
|
|
192
191
|
rubygems_version: 1.8.25
|
193
192
|
signing_key:
|
194
193
|
specification_version: 3
|
195
|
-
summary:
|
196
|
-
Provides buttons for first, previous, next, and last page.
|
194
|
+
summary: Provides pagination elemenents for first, previous, next, and last page.
|
197
195
|
test_files:
|
198
196
|
- spec/spec_helper.rb
|
199
197
|
- spec/unit/mobile_pagination_spec.rb
|