ajax_pagination 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/.gitignore +3 -0
  2. data/.travis.yml +16 -0
  3. data/CHANGELOG.md +20 -1
  4. data/README.md +49 -5
  5. data/Rakefile +16 -0
  6. data/ajax_pagination.gemspec +5 -2
  7. data/lib/ajax_pagination/controller_additions.rb +52 -3
  8. data/lib/ajax_pagination/helper_additions.rb +53 -4
  9. data/lib/ajax_pagination/version.rb +1 -1
  10. data/lib/assets/images/ajax-loader.gif +0 -0
  11. data/lib/assets/javascripts/ajax_pagination.js.erb +41 -31
  12. data/spec/PORT +1 -0
  13. data/spec/ajax_pagination/controller_additions_spec.rb +79 -0
  14. data/spec/ajax_pagination/helper_additions_spec.rb +45 -0
  15. data/spec/ajax_pagination/integration/ajaxpaginate_spec.rb +33 -0
  16. data/spec/ajax_pagination/integration/nojavascript_spec.rb +30 -0
  17. data/spec/ajax_pagination/integration/paginate_spec.rb +30 -0
  18. data/spec/rails_app/.gitignore +8 -0
  19. data/spec/rails_app/Gemfile +42 -0
  20. data/spec/rails_app/README.rdoc +261 -0
  21. data/spec/rails_app/Rakefile +7 -0
  22. data/spec/rails_app/app/assets/javascripts/application.js +17 -0
  23. data/spec/rails_app/app/assets/javascripts/posts.js +2 -0
  24. data/spec/rails_app/app/assets/stylesheets/application.css +26 -0
  25. data/spec/rails_app/app/assets/stylesheets/posts.css +4 -0
  26. data/spec/rails_app/app/assets/stylesheets/scaffold.css +56 -0
  27. data/spec/rails_app/app/controllers/application_controller.rb +10 -0
  28. data/spec/rails_app/app/controllers/changelog_controller.rb +13 -0
  29. data/spec/rails_app/app/controllers/pages_controller.rb +23 -0
  30. data/spec/rails_app/app/controllers/posts_controller.rb +95 -0
  31. data/spec/rails_app/app/controllers/sessions_controller.rb +11 -0
  32. data/spec/rails_app/app/helpers/application_helper.rb +2 -0
  33. data/spec/rails_app/app/helpers/posts_helper.rb +2 -0
  34. data/spec/rails_app/app/mailers/.gitkeep +0 -0
  35. data/spec/rails_app/app/models/.gitkeep +0 -0
  36. data/spec/rails_app/app/models/changelog.rb +19 -0
  37. data/spec/rails_app/app/models/post.rb +4 -0
  38. data/spec/rails_app/app/views/changelog/_page.html.erb +10 -0
  39. data/spec/rails_app/app/views/changelog/index.html.erb +3 -0
  40. data/spec/rails_app/app/views/layouts/application.html.erb +37 -0
  41. data/spec/rails_app/app/views/pages/about.html.erb +4 -0
  42. data/spec/rails_app/app/views/pages/readme.html.erb +4 -0
  43. data/spec/rails_app/app/views/pages/welcome.html.erb +6 -0
  44. data/spec/rails_app/app/views/posts/_form.html.erb +29 -0
  45. data/spec/rails_app/app/views/posts/_page.html.erb +15 -0
  46. data/spec/rails_app/app/views/posts/_upcomingpage.html.erb +15 -0
  47. data/spec/rails_app/app/views/posts/edit.html.erb +6 -0
  48. data/spec/rails_app/app/views/posts/index.html.erb +15 -0
  49. data/spec/rails_app/app/views/posts/new.html.erb +5 -0
  50. data/spec/rails_app/app/views/posts/show.html.erb +13 -0
  51. data/spec/rails_app/config.ru +4 -0
  52. data/spec/rails_app/config/application.rb +56 -0
  53. data/spec/rails_app/config/boot.rb +10 -0
  54. data/spec/rails_app/config/database.yml +25 -0
  55. data/spec/rails_app/config/environment.rb +5 -0
  56. data/spec/rails_app/config/environments/development.rb +37 -0
  57. data/spec/rails_app/config/environments/production.rb +67 -0
  58. data/spec/rails_app/config/environments/test.rb +37 -0
  59. data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  60. data/spec/rails_app/config/initializers/inflections.rb +15 -0
  61. data/spec/rails_app/config/initializers/mime_types.rb +5 -0
  62. data/spec/rails_app/config/initializers/secret_token.rb +7 -0
  63. data/spec/rails_app/config/initializers/session_store.rb +8 -0
  64. data/spec/rails_app/config/initializers/wrap_parameters.rb +14 -0
  65. data/spec/rails_app/config/locales/en.yml +5 -0
  66. data/spec/rails_app/config/routes.rb +72 -0
  67. data/spec/rails_app/db/development.sqlite3 +0 -0
  68. data/spec/rails_app/db/migrate/20120219063632_create_posts.rb +10 -0
  69. data/spec/rails_app/db/migrate/20120219130149_add_published_to_post.rb +5 -0
  70. data/spec/rails_app/lib/assets/.gitkeep +0 -0
  71. data/spec/rails_app/log/.gitkeep +0 -0
  72. data/spec/rails_app/public/404.html +26 -0
  73. data/spec/rails_app/public/422.html +26 -0
  74. data/spec/rails_app/public/500.html +25 -0
  75. data/spec/rails_app/public/favicon.ico +0 -0
  76. data/spec/rails_app/script/rails +6 -0
  77. data/spec/rails_app/test/fixtures/posts.yml +9 -0
  78. data/spec/rails_app/test/functional/posts_controller_test.rb +49 -0
  79. data/spec/rails_app/test/unit/helpers/posts_helper_test.rb +4 -0
  80. data/spec/rails_app/test/unit/post_test.rb +7 -0
  81. data/spec/spec_helper.rb +28 -0
  82. data/vendor/assets/javascripts/jquery.url.js +160 -0
  83. metadata +171 -86
@@ -0,0 +1,10 @@
1
+ class CreatePosts < ActiveRecord::Migration
2
+ def change
3
+ create_table :posts do |t|
4
+ t.string :title
5
+ t.text :content
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ class AddPublishedToPost < ActiveRecord::Migration
2
+ def change
3
+ add_column :posts, :published_at, :timestamp
4
+ end
5
+ end
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby1.8
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,9 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ title: MyString
5
+ content: MyText
6
+
7
+ two:
8
+ title: MyString
9
+ content: MyText
@@ -0,0 +1,49 @@
1
+ require 'test_helper'
2
+
3
+ class PostsControllerTest < ActionController::TestCase
4
+ setup do
5
+ @post = posts(:one)
6
+ end
7
+
8
+ test "should get index" do
9
+ get :index
10
+ assert_response :success
11
+ assert_not_nil assigns(:posts)
12
+ end
13
+
14
+ test "should get new" do
15
+ get :new
16
+ assert_response :success
17
+ end
18
+
19
+ test "should create post" do
20
+ assert_difference('Post.count') do
21
+ post :create, :post => @post.attributes
22
+ end
23
+
24
+ assert_redirected_to post_path(assigns(:post))
25
+ end
26
+
27
+ test "should show post" do
28
+ get :show, :id => @post
29
+ assert_response :success
30
+ end
31
+
32
+ test "should get edit" do
33
+ get :edit, :id => @post
34
+ assert_response :success
35
+ end
36
+
37
+ test "should update post" do
38
+ put :update, :id => @post, :post => @post.attributes
39
+ assert_redirected_to post_path(assigns(:post))
40
+ end
41
+
42
+ test "should destroy post" do
43
+ assert_difference('Post.count', -1) do
44
+ delete :destroy, :id => @post
45
+ end
46
+
47
+ assert_redirected_to posts_path
48
+ end
49
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class PostsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PostTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,2 +1,30 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+
3
+ require File.expand_path("../rails_app/config/environment.rb", __FILE__)
4
+ #require "rails_app/config/environment"
5
+ require 'rspec/rails'
6
+ require 'capybara/rspec'
7
+ require 'capybara'
8
+ require 'rake'
9
+
1
10
  require 'ajax_pagination'
2
11
 
12
+ Rails.backtrace_cleaner.remove_silencers!
13
+
14
+ Capybara.app = RailsApp::Application
15
+
16
+ # Load support files
17
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
18
+
19
+ RSpec.configure do |config|
20
+ config.use_transactional_fixtures = true
21
+ end
22
+
23
+ Capybara.register_driver :rack_test do |app|
24
+ Capybara::RackTest::Driver.new(app, :browser => :chrome)
25
+ end
26
+
27
+ include Capybara::DSL
28
+
29
+ SERVERPORT = IO.read(File.expand_path("../PORT",__FILE__)).strip # port number that we are using
30
+
@@ -0,0 +1,160 @@
1
+ // JQuery URL Parser plugin - https://github.com/allmarkedup/jQuery-URL-Parser
2
+ // Written by Mark Perkins, mark@allmarkedup.com
3
+ // License: http://unlicense.org/ (i.e. do what you want with it!)
4
+
5
+ ;(function($, undefined) {
6
+
7
+ var tag2attr = {
8
+ a : 'href',
9
+ img : 'src',
10
+ form : 'action',
11
+ base : 'href',
12
+ script : 'src',
13
+ iframe : 'src',
14
+ link : 'href'
15
+ },
16
+
17
+ key = ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"], // keys available to query
18
+
19
+ aliases = { "anchor" : "fragment" }, // aliases for backwards compatability
20
+
21
+ parser = {
22
+ strict : /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, //less intuitive, more accurate to the specs
23
+ loose : /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // more intuitive, fails on relative paths and deviates from specs
24
+ },
25
+
26
+ querystring_parser = /(?:^|&|;)([^&=;]*)=?([^&;]*)/g, // supports both ampersand and semicolon-delimted query string key/value pairs
27
+
28
+ fragment_parser = /(?:^|&|;)([^&=;]*)=?([^&;]*)/g; // supports both ampersand and semicolon-delimted fragment key/value pairs
29
+
30
+ function parseUri( url, strictMode )
31
+ {
32
+ var str = decodeURI( url ),
33
+ res = parser[ strictMode || false ? "strict" : "loose" ].exec( str ),
34
+ uri = { attr : {}, param : {}, seg : {} },
35
+ i = 14;
36
+
37
+ while ( i-- )
38
+ {
39
+ uri.attr[ key[i] ] = res[i] || "";
40
+ }
41
+
42
+ // build query and fragment parameters
43
+
44
+ uri.param['query'] = {};
45
+ uri.param['fragment'] = {};
46
+
47
+ uri.attr['query'].replace( querystring_parser, function ( $0, $1, $2 ){
48
+ if ($1)
49
+ {
50
+ uri.param['query'][$1] = $2;
51
+ }
52
+ });
53
+
54
+ uri.attr['fragment'].replace( fragment_parser, function ( $0, $1, $2 ){
55
+ if ($1)
56
+ {
57
+ uri.param['fragment'][$1] = $2;
58
+ }
59
+ });
60
+
61
+ // split path and fragement into segments
62
+
63
+ uri.seg['path'] = uri.attr.path.replace(/^\/+|\/+$/g,'').split('/');
64
+
65
+ uri.seg['fragment'] = uri.attr.fragment.replace(/^\/+|\/+$/g,'').split('/');
66
+
67
+ // compile a 'base' domain attribute
68
+
69
+ uri.attr['base'] = uri.attr.host ? uri.attr.protocol+"://"+uri.attr.host + (uri.attr.port ? ":"+uri.attr.port : '') : '';
70
+
71
+ return uri;
72
+ };
73
+
74
+ function getAttrName( elm )
75
+ {
76
+ var tn = elm.tagName;
77
+ if ( tn !== undefined ) return tag2attr[tn.toLowerCase()];
78
+ return tn;
79
+ }
80
+
81
+ $.fn.url = function( strictMode )
82
+ {
83
+ var url = '';
84
+
85
+ if ( this.length )
86
+ {
87
+ url = $(this).attr( getAttrName(this[0]) ) || '';
88
+ }
89
+
90
+ return $.url( url, strictMode );
91
+ };
92
+
93
+ $.url = function( url, strictMode )
94
+ {
95
+ if ( arguments.length === 1 && url === true )
96
+ {
97
+ strictMode = true;
98
+ url = undefined;
99
+ }
100
+
101
+ strictMode = strictMode || false;
102
+ url = url || window.location.toString();
103
+
104
+ return {
105
+
106
+ data : parseUri(url, strictMode),
107
+
108
+ // get various attributes from the URI
109
+ attr : function( attr )
110
+ {
111
+ attr = aliases[attr] || attr;
112
+ return attr !== undefined ? this.data.attr[attr] : this.data.attr;
113
+ },
114
+
115
+ // return query string parameters
116
+ param : function( param )
117
+ {
118
+ return param !== undefined ? this.data.param.query[param] : this.data.param.query;
119
+ },
120
+
121
+ // return fragment parameters
122
+ fparam : function( param )
123
+ {
124
+ return param !== undefined ? this.data.param.fragment[param] : this.data.param.fragment;
125
+ },
126
+
127
+ // return path segments
128
+ segment : function( seg )
129
+ {
130
+ if ( seg === undefined )
131
+ {
132
+ return this.data.seg.path;
133
+ }
134
+ else
135
+ {
136
+ seg = seg < 0 ? this.data.seg.path.length + seg : seg - 1; // negative segments count from the end
137
+ return this.data.seg.path[seg];
138
+ }
139
+ },
140
+
141
+ // return fragment segments
142
+ fsegment : function( seg )
143
+ {
144
+ if ( seg === undefined )
145
+ {
146
+ return this.data.seg.fragment;
147
+ }
148
+ else
149
+ {
150
+ seg = seg < 0 ? this.data.seg.fragment.length + seg : seg - 1; // negative segments count from the end
151
+ return this.data.seg.fragment[seg];
152
+ }
153
+ }
154
+
155
+ };
156
+
157
+ };
158
+
159
+ })(jQuery);
160
+
metadata CHANGED
@@ -1,92 +1,117 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ajax_pagination
3
- version: !ruby/object:Gem::Version
4
- hash: 27
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 2
10
- version: 0.0.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Ronald Ping Man Chan
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-02-19 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: rspec
12
+ date: 2012-02-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: &10548120 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
22
23
  prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
+ version_requirements: *10548120
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec-rails
27
+ requirement: &10547700 !ruby/object:Gem::Requirement
24
28
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *10547700
36
+ - !ruby/object:Gem::Dependency
37
+ name: sqlite3
38
+ requirement: &10547260 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *10547260
47
+ - !ruby/object:Gem::Dependency
48
+ name: will_paginate
49
+ requirement: &10546680 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
32
55
  type: :development
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: rails
36
56
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
57
+ version_requirements: *10546680
58
+ - !ruby/object:Gem::Dependency
59
+ name: capybara
60
+ requirement: &10546160 !ruby/object:Gem::Requirement
38
61
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 5
43
- segments:
44
- - 3
45
- - 1
46
- version: "3.1"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *10546160
69
+ - !ruby/object:Gem::Dependency
70
+ name: rails
71
+ requirement: &10545360 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '3.1'
47
77
  type: :runtime
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: jquery-rails
51
78
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
79
+ version_requirements: *10545360
80
+ - !ruby/object:Gem::Dependency
81
+ name: jquery-rails
82
+ requirement: &10575320 !ruby/object:Gem::Requirement
53
83
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 15
58
- segments:
59
- - 1
60
- - 0
61
- version: "1.0"
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '1.0'
62
88
  type: :runtime
63
- version_requirements: *id003
64
- - !ruby/object:Gem::Dependency
65
- name: jquery-historyjs
66
89
  prerelease: false
67
- requirement: &id004 !ruby/object:Gem::Requirement
90
+ version_requirements: *10575320
91
+ - !ruby/object:Gem::Dependency
92
+ name: jquery-historyjs
93
+ requirement: &10574740 !ruby/object:Gem::Requirement
68
94
  none: false
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- hash: 3
73
- segments:
74
- - 0
75
- version: "0"
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
76
99
  type: :runtime
77
- version_requirements: *id004
78
- description: Handles AJAX pagination for you, by hooking up the links you want to load content with javascript in designated page containers. Each webpage can have multiple page containers, each with a different set of pagination links. The page containers can be nested. Degrades gracefully when javascript is disabled.
79
- email:
100
+ prerelease: false
101
+ version_requirements: *10574740
102
+ description: Handles AJAX pagination for you, by hooking up the links you want to
103
+ load content with javascript in designated page containers. Each webpage can have
104
+ multiple page containers, each with a different set of pagination links. The page
105
+ containers can be nested. Degrades gracefully when javascript is disabled.
106
+ email:
80
107
  - ronalchn@gmail.com
81
108
  executables: []
82
-
83
109
  extensions: []
84
-
85
110
  extra_rdoc_files: []
86
-
87
- files:
111
+ files:
88
112
  - .gitignore
89
113
  - .rspec
114
+ - .travis.yml
90
115
  - CHANGELOG.md
91
116
  - COPYING
92
117
  - COPYING.LESSER
@@ -100,42 +125,102 @@ files:
100
125
  - lib/ajax_pagination/helper_additions.rb
101
126
  - lib/ajax_pagination/rails.rb
102
127
  - lib/ajax_pagination/version.rb
128
+ - lib/assets/images/ajax-loader.gif
103
129
  - lib/assets/javascripts/ajax_pagination.js.erb
130
+ - spec/PORT
131
+ - spec/ajax_pagination/controller_additions_spec.rb
132
+ - spec/ajax_pagination/helper_additions_spec.rb
133
+ - spec/ajax_pagination/integration/ajaxpaginate_spec.rb
134
+ - spec/ajax_pagination/integration/nojavascript_spec.rb
135
+ - spec/ajax_pagination/integration/paginate_spec.rb
136
+ - spec/rails_app/.gitignore
137
+ - spec/rails_app/Gemfile
138
+ - spec/rails_app/README.rdoc
139
+ - spec/rails_app/Rakefile
140
+ - spec/rails_app/app/assets/javascripts/application.js
141
+ - spec/rails_app/app/assets/javascripts/posts.js
142
+ - spec/rails_app/app/assets/stylesheets/application.css
143
+ - spec/rails_app/app/assets/stylesheets/posts.css
144
+ - spec/rails_app/app/assets/stylesheets/scaffold.css
145
+ - spec/rails_app/app/controllers/application_controller.rb
146
+ - spec/rails_app/app/controllers/changelog_controller.rb
147
+ - spec/rails_app/app/controllers/pages_controller.rb
148
+ - spec/rails_app/app/controllers/posts_controller.rb
149
+ - spec/rails_app/app/controllers/sessions_controller.rb
150
+ - spec/rails_app/app/helpers/application_helper.rb
151
+ - spec/rails_app/app/helpers/posts_helper.rb
152
+ - spec/rails_app/app/mailers/.gitkeep
153
+ - spec/rails_app/app/models/.gitkeep
154
+ - spec/rails_app/app/models/changelog.rb
155
+ - spec/rails_app/app/models/post.rb
156
+ - spec/rails_app/app/views/changelog/_page.html.erb
157
+ - spec/rails_app/app/views/changelog/index.html.erb
158
+ - spec/rails_app/app/views/layouts/application.html.erb
159
+ - spec/rails_app/app/views/pages/about.html.erb
160
+ - spec/rails_app/app/views/pages/readme.html.erb
161
+ - spec/rails_app/app/views/pages/welcome.html.erb
162
+ - spec/rails_app/app/views/posts/_form.html.erb
163
+ - spec/rails_app/app/views/posts/_page.html.erb
164
+ - spec/rails_app/app/views/posts/_upcomingpage.html.erb
165
+ - spec/rails_app/app/views/posts/edit.html.erb
166
+ - spec/rails_app/app/views/posts/index.html.erb
167
+ - spec/rails_app/app/views/posts/new.html.erb
168
+ - spec/rails_app/app/views/posts/show.html.erb
169
+ - spec/rails_app/config.ru
170
+ - spec/rails_app/config/application.rb
171
+ - spec/rails_app/config/boot.rb
172
+ - spec/rails_app/config/database.yml
173
+ - spec/rails_app/config/environment.rb
174
+ - spec/rails_app/config/environments/development.rb
175
+ - spec/rails_app/config/environments/production.rb
176
+ - spec/rails_app/config/environments/test.rb
177
+ - spec/rails_app/config/initializers/backtrace_silencers.rb
178
+ - spec/rails_app/config/initializers/inflections.rb
179
+ - spec/rails_app/config/initializers/mime_types.rb
180
+ - spec/rails_app/config/initializers/secret_token.rb
181
+ - spec/rails_app/config/initializers/session_store.rb
182
+ - spec/rails_app/config/initializers/wrap_parameters.rb
183
+ - spec/rails_app/config/locales/en.yml
184
+ - spec/rails_app/config/routes.rb
185
+ - spec/rails_app/db/development.sqlite3
186
+ - spec/rails_app/db/migrate/20120219063632_create_posts.rb
187
+ - spec/rails_app/db/migrate/20120219130149_add_published_to_post.rb
188
+ - spec/rails_app/lib/assets/.gitkeep
189
+ - spec/rails_app/log/.gitkeep
190
+ - spec/rails_app/public/404.html
191
+ - spec/rails_app/public/422.html
192
+ - spec/rails_app/public/500.html
193
+ - spec/rails_app/public/favicon.ico
194
+ - spec/rails_app/script/rails
195
+ - spec/rails_app/test/fixtures/posts.yml
196
+ - spec/rails_app/test/functional/posts_controller_test.rb
197
+ - spec/rails_app/test/unit/helpers/posts_helper_test.rb
198
+ - spec/rails_app/test/unit/post_test.rb
104
199
  - spec/spec_helper.rb
105
200
  - vendor/assets/javascripts/jquery.ba-bbq.js
201
+ - vendor/assets/javascripts/jquery.url.js
106
202
  homepage: https://github.com/ronalchn/ajax_pagination
107
203
  licenses: []
108
-
109
204
  post_install_message:
110
205
  rdoc_options: []
111
-
112
- require_paths:
206
+ require_paths:
113
207
  - lib
114
- required_ruby_version: !ruby/object:Gem::Requirement
208
+ required_ruby_version: !ruby/object:Gem::Requirement
115
209
  none: false
116
- requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- hash: 3
120
- segments:
121
- - 0
122
- version: "0"
123
- required_rubygems_version: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
215
  none: false
125
- requirements:
126
- - - ">="
127
- - !ruby/object:Gem::Version
128
- hash: 3
129
- segments:
130
- - 0
131
- version: "0"
216
+ requirements:
217
+ - - ! '>='
218
+ - !ruby/object:Gem::Version
219
+ version: '0'
132
220
  requirements: []
133
-
134
221
  rubyforge_project: ajax_pagination
135
222
  rubygems_version: 1.8.15
136
223
  signing_key:
137
224
  specification_version: 3
138
225
  summary: Handles AJAX pagination, changing the content when certain links are followed.
139
226
  test_files: []
140
-
141
- has_rdoc: