mobile_pagination 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,20 @@
1
+ language: ruby
2
+ 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
16
+ matrix:
17
+ allow_failures:
18
+ - rvm: 1.8.7
19
+ - rvm: jruby-18mode
20
+ - rvm: rbx-18mode
data/CHANGELOG ADDED
File without changes
data/CONTRIBUTORS ADDED
File without changes
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 RentPath, Inc.
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/LICENSE.old ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 RentPath, Inc.
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File without changes
data/README.md CHANGED
@@ -1,12 +1,18 @@
1
- # MobilePagination
1
+ mobile_pagination
2
+ =========
3
+ [![Code Climate](https://codeclimate.com/github/primedia/mobile_pagination.png)](https://codeclimate.com/github/primedia/mobile_pagination)
4
+ [![Build Status](https://travis-ci.org/primedia/mobile_pagination.png)](https://travis-ci.org/primedia/mobile_pagination)
5
+ [![Coverage Status](https://coveralls.io/repos/primedia/mobile_pagination/badge.png?branch=dev)](https://coveralls.io/r/primedia/mobile_pagination?branch=dev)
6
+ [![Dependency Status](https://gemnasium.com/primedia/mobile_pagination.png)](https://gemnasium.com/primedia/mobile_pagination)
7
+ [![Gem Version](https://badge.fury.io/rb/mobile_pagination.png)](http://badge.fury.io/rb/mobile_pagination)
2
8
 
3
- ## Description
4
- Gem for producing minimal pagination links, best suited for smaller screens.
9
+ ## Requirements
5
10
 
6
- ![<Display Name>](http://i.imgur.com/qZcqfx8.png)
11
+ ...
7
12
 
8
13
  ## Installation
9
14
 
15
+
10
16
  Add this line to your application's Gemfile:
11
17
 
12
18
  gem 'mobile_pagination'
@@ -19,6 +25,7 @@ Or install it yourself as:
19
25
 
20
26
  $ gem install mobile_pagination
21
27
 
28
+
22
29
  ## Usage
23
30
  Initializes with 4 options: `current_page, total_pages, query, path`
24
31
 
@@ -100,8 +107,7 @@ Configuration must run prior to initialization. The resulting pagination links w
100
107
 
101
108
  Please note, any methods ending in `_link` will need to remain, as these methods are responsible for generating the paginated urls.
102
109
 
103
- ### Testing
104
- `rspec spec`
110
+ ...
105
111
 
106
112
  ## Contributing
107
113
 
@@ -110,3 +116,16 @@ Please note, any methods ending in `_link` will need to remain, as these methods
110
116
  3. Commit your changes (`git commit -am 'Add some feature'`)
111
117
  4. Push to the branch (`git push origin my-new-feature`)
112
118
  5. Create new Pull Request
119
+
120
+ ## Running the Tests
121
+
122
+ `rspec spec`
123
+
124
+ ## Credits
125
+
126
+ ...
127
+
128
+ ## License
129
+
130
+ mobile_pagination is released under the MIT License. See the bundled LICENSE file for
131
+ details.
data/Rakefile CHANGED
@@ -1 +1,19 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ task :update_contributors do
5
+ puts 'Updating CONTRIBUTORS file'
6
+ contributors = `git log --format='%aN' | sort -u`.split("\n")
7
+ contributors_file = 'CONTRIBUTORS'
8
+ contributors.each do |contributor|
9
+ unless File.read(contributors_file).match(contributor)
10
+ File.open(contributors_file, 'a') { |file| file.write("#{contributor}\n") }
11
+ end
12
+ end
13
+ end
14
+
15
+ RSpec::Core::RakeTask.new(:spec)
16
+
17
+ task :default => :spec
18
+
19
+ task 'build' => :update_contributors
@@ -1,3 +1,3 @@
1
1
  module MobilePagination
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -1,26 +1,29 @@
1
1
  # coding: utf-8
2
- require 'date'
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
4
  require './lib/mobile_pagination/utils/version'
4
5
 
5
- Gem::Specification.new do |gem|
6
- gem.name = "mobile_pagination"
7
- gem.authors = ["Luke Fender"]
8
- gem.email = ["lfender6445@gmail.com"]
9
- gem.description = %q{Creates a series of pagination elements relative to current page.}
10
- gem.summary = %q{Minimal and configurable pagination templating, best suited for smaller screenspace. Provides buttons for first, previous, next, and last page.}
11
- gem.homepage = 'http://github.com/lfender6445/mobile_pagination'
12
- gem.license = "MIT"
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "mobile_pagination"
8
+ spec.version = MobilePagination::VERSION
9
+ spec.authors = ["Luke Fender"]
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.}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
13
15
 
14
- gem.add_development_dependency "rake"
15
- gem.add_development_dependency 'simplecov'
16
- gem.add_development_dependency 'guard-rspec'
17
- gem.add_development_dependency 'rack-test'
18
- gem.add_development_dependency 'rspec'
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
19
20
 
20
- gem.required_ruby_version = '>= 1.9.3'
21
- gem.platform = Gem::Platform::RUBY
22
- gem.date = Date.today.to_s
23
- gem.files = `git ls-files`.split("\n")
24
- gem.require_paths = ["lib"]
25
- gem.version = MobilePagination::VERSION
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec"
24
+ spec.add_development_dependency "rake"
25
+ spec.add_development_dependency 'simplecov'
26
+ spec.add_development_dependency 'guard-rspec'
27
+ spec.add_development_dependency 'rack-test'
28
+ spec.add_development_dependency 'rspec'
26
29
  end
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.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,6 +11,54 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2013-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
14
62
  - !ruby/object:Gem::Dependency
15
63
  name: rake
16
64
  requirement: !ruby/object:Gem::Requirement
@@ -91,7 +139,7 @@ dependencies:
91
139
  - - ! '>='
92
140
  - !ruby/object:Gem::Version
93
141
  version: '0'
94
- description: Creates a series of pagination elements relative to current page.
142
+ description: reates a series of pagination elements relative to current page.
95
143
  email:
96
144
  - lfender6445@gmail.com
97
145
  executables: []
@@ -99,9 +147,14 @@ extensions: []
99
147
  extra_rdoc_files: []
100
148
  files:
101
149
  - .gitignore
150
+ - .travis.yml
151
+ - CHANGELOG
152
+ - CONTRIBUTORS
102
153
  - Gemfile
103
154
  - Guardfile
104
- - LICENSE.txt
155
+ - LICENSE
156
+ - LICENSE.old
157
+ - LICENSE.txt.old
105
158
  - README.md
106
159
  - Rakefile
107
160
  - lib/mobile_pagination.rb
@@ -117,7 +170,7 @@ files:
117
170
  - spec/unit/mobile_pagination_spec.rb
118
171
  - spec/unit/paginate_spec.rb
119
172
  - spec/unit/utils_spec.rb
120
- homepage: http://github.com/lfender6445/mobile_pagination
173
+ homepage: ''
121
174
  licenses:
122
175
  - MIT
123
176
  post_install_message:
@@ -129,7 +182,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
182
  requirements:
130
183
  - - ! '>='
131
184
  - !ruby/object:Gem::Version
132
- version: 1.9.3
185
+ version: '0'
133
186
  required_rubygems_version: !ruby/object:Gem::Requirement
134
187
  none: false
135
188
  requirements:
@@ -143,5 +196,9 @@ signing_key:
143
196
  specification_version: 3
144
197
  summary: Minimal and configurable pagination templating, best suited for smaller screenspace.
145
198
  Provides buttons for first, previous, next, and last page.
146
- test_files: []
199
+ test_files:
200
+ - spec/spec_helper.rb
201
+ - spec/unit/mobile_pagination_spec.rb
202
+ - spec/unit/paginate_spec.rb
203
+ - spec/unit/utils_spec.rb
147
204
  has_rdoc: