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 CHANGED
@@ -1,20 +1,24 @@
1
+ ---
1
2
  language: ruby
2
3
  rvm:
3
- - "1.8.7"
4
- - "1.9.2"
5
- - "1.9.3"
6
- - "2.0.0"
7
- - jruby-18mode # JRuby in 1.8 mode
8
- - jruby-19mode # JRuby in 1.9 mode
9
- - rbx-18mode
10
- - rbx-19mode
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
- - rvm: 1.8.7
19
- - rvm: jruby-18mode
20
- - rvm: rbx-18mode
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
@@ -1 +1,2 @@
1
1
  Luke Fender
2
+ Colin Rymer
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
- = pagination
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
  ```
@@ -1,4 +1,8 @@
1
- require_relative 'mobile_pagination/initialize'
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?
@@ -1,3 +1,6 @@
1
+ require 'mobile_pagination/utils'
2
+ require 'mobile_pagination/templates'
3
+
1
4
  module MobilePagination
2
5
  class Paginate
3
6
 
@@ -87,4 +90,4 @@ module MobilePagination
87
90
  end
88
91
 
89
92
  end
90
- end
93
+ end
@@ -1,4 +1,5 @@
1
1
  require 'rack/utils'
2
+ require 'uri'
2
3
 
3
4
  module MobilePagination
4
5
  module Utils
@@ -12,4 +13,4 @@ module MobilePagination
12
13
  end
13
14
 
14
15
  end
15
- end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module MobilePagination
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -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 './lib/mobile_pagination/utils/version'
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{reates a series of pagination elements relative to current page.}
12
- spec.summary = %q{Minimal and configurable pagination templating, best suited for smaller screenspace. Provides buttons for first, previous, next, and last page.}
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.7
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-16 00:00:00.000000000 Z
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: reates a series of pagination elements relative to current page.
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/initialize.rb
164
- - lib/mobile_pagination/utils/utils.rb
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: Minimal and configurable pagination templating, best suited for smaller screenspace.
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
@@ -1,5 +0,0 @@
1
- require 'uri'
2
- require_relative 'configuration'
3
- require_relative 'utils/initialize'
4
- require_relative 'templates'
5
- require_relative 'paginate'
@@ -1,2 +0,0 @@
1
- require_relative 'version'
2
- require_relative 'utils'