mobile_pagination 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -0
- data/README.md +5 -11
- data/lib/mobile_pagination/utils/version.rb +1 -1
- data/spec/spec_helper.rb +4 -2
- metadata +1 -1
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
MobilePagination
|
2
2
|
=========
|
3
3
|
[![Code Climate](https://codeclimate.com/github/primedia/mobile_pagination.png)](https://codeclimate.com/github/primedia/mobile_pagination)
|
4
4
|
[![Build Status](https://travis-ci.org/primedia/mobile_pagination.png)](https://travis-ci.org/primedia/mobile_pagination)
|
@@ -6,13 +6,12 @@ mobile_pagination
|
|
6
6
|
[![Dependency Status](https://gemnasium.com/primedia/mobile_pagination.png)](https://gemnasium.com/primedia/mobile_pagination)
|
7
7
|
[![Gem Version](https://badge.fury.io/rb/mobile_pagination.png)](http://badge.fury.io/rb/mobile_pagination)
|
8
8
|
|
9
|
-
|
9
|
+
Gem for producing minimal pagination links, best suited for smaller screens.
|
10
10
|
|
11
|
-
|
11
|
+
![<Display Name>](http://i.imgur.com/xvzh817.png)
|
12
12
|
|
13
13
|
## Installation
|
14
14
|
|
15
|
-
|
16
15
|
Add this line to your application's Gemfile:
|
17
16
|
|
18
17
|
gem 'mobile_pagination'
|
@@ -92,6 +91,8 @@ module MobilePagination
|
|
92
91
|
end
|
93
92
|
end
|
94
93
|
```
|
94
|
+
Please note, any methods ending in `_link` will need to remain, as these methods are responsible for generating the paginated urls.
|
95
|
+
|
95
96
|
### Configuration
|
96
97
|
Configuration is optional.
|
97
98
|
|
@@ -105,9 +106,6 @@ end
|
|
105
106
|
|
106
107
|
Configuration must run prior to initialization. The resulting pagination links will now contain `/?slide=2, /?slide=3` to suit your custom url structure. The default page_key is `page`.
|
107
108
|
|
108
|
-
Please note, any methods ending in `_link` will need to remain, as these methods are responsible for generating the paginated urls.
|
109
|
-
|
110
|
-
...
|
111
109
|
|
112
110
|
## Contributing
|
113
111
|
|
@@ -123,10 +121,6 @@ Please note, any methods ending in `_link` will need to remain, as these methods
|
|
123
121
|
|
124
122
|
There is a default `spec` task that will run.
|
125
123
|
|
126
|
-
## Credits
|
127
|
-
|
128
|
-
...
|
129
|
-
|
130
124
|
## License
|
131
125
|
|
132
126
|
mobile_pagination is released under the MIT License. See the bundled LICENSE file for details.
|
data/spec/spec_helper.rb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'simplecov'
|
3
3
|
require 'bundler/setup'
|
4
|
+
require 'coveralls'
|
5
|
+
|
6
|
+
Coveralls.wear!
|
4
7
|
|
5
8
|
SimpleCov.start {
|
6
9
|
add_filter '/spec/'
|
7
10
|
add_filter '/vendor/'
|
8
|
-
|
9
11
|
}
|
10
12
|
|
11
13
|
require 'mobile_pagination'
|
12
14
|
|
13
|
-
spec_dir = File.dirname __FILE__
|
15
|
+
spec_dir = File.dirname __FILE__
|