api-pagination 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/api-pagination.rb +33 -0
- data/lib/api-pagination/version.rb +7 -0
- data/spec/controllers/numbers_controller_spec.rb +80 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/numbers_controller.rb +8 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +28 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/db/schema.rb +12 -0
- data/spec/dummy/log/development.log +17687 -0
- data/spec/spec_helper.rb +18 -0
- metadata +158 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# Require this file using `require 'spec_helper'` to ensure that it is only
|
2
|
+
# loaded once.
|
3
|
+
#
|
4
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
5
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
6
|
+
require 'rspec/rails'
|
7
|
+
|
8
|
+
RSpec.configure do |config|
|
9
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
10
|
+
config.run_all_when_everything_filtered = true
|
11
|
+
config.filter_run :focus
|
12
|
+
|
13
|
+
# Run specs in random order to surface order dependencies. If you find an
|
14
|
+
# order dependency and want to debug it, you can fix the order by providing
|
15
|
+
# the seed, which is printed after each run.
|
16
|
+
# --seed 1234
|
17
|
+
config.order = 'random'
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,158 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: api-pagination
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- David Celis
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-06-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: kaminari
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.13.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.13.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Link header pagination for Rails APIs
|
70
|
+
email:
|
71
|
+
- me@davidcel.is
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- lib/api-pagination/version.rb
|
77
|
+
- lib/api-pagination.rb
|
78
|
+
- spec/controllers/numbers_controller_spec.rb
|
79
|
+
- spec/dummy/app/controllers/application_controller.rb
|
80
|
+
- spec/dummy/app/controllers/numbers_controller.rb
|
81
|
+
- spec/dummy/app/helpers/application_helper.rb
|
82
|
+
- spec/dummy/bin/bundle
|
83
|
+
- spec/dummy/bin/rails
|
84
|
+
- spec/dummy/bin/rake
|
85
|
+
- spec/dummy/config/application.rb
|
86
|
+
- spec/dummy/config/boot.rb
|
87
|
+
- spec/dummy/config/database.yml
|
88
|
+
- spec/dummy/config/environment.rb
|
89
|
+
- spec/dummy/config/environments/development.rb
|
90
|
+
- spec/dummy/config/environments/production.rb
|
91
|
+
- spec/dummy/config/environments/test.rb
|
92
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
93
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
94
|
+
- spec/dummy/config/initializers/inflections.rb
|
95
|
+
- spec/dummy/config/initializers/mime_types.rb
|
96
|
+
- spec/dummy/config/initializers/secret_token.rb
|
97
|
+
- spec/dummy/config/initializers/session_store.rb
|
98
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
99
|
+
- spec/dummy/config/locales/en.yml
|
100
|
+
- spec/dummy/config/routes.rb
|
101
|
+
- spec/dummy/config.ru
|
102
|
+
- spec/dummy/db/schema.rb
|
103
|
+
- spec/dummy/log/development.log
|
104
|
+
- spec/dummy/Rakefile
|
105
|
+
- spec/spec_helper.rb
|
106
|
+
homepage: https://github.com/davidcelis/api-pagination
|
107
|
+
licenses:
|
108
|
+
- MIT
|
109
|
+
metadata: {}
|
110
|
+
post_install_message:
|
111
|
+
rdoc_options: []
|
112
|
+
require_paths:
|
113
|
+
- lib
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - '>='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
requirements: []
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 2.0.3
|
127
|
+
signing_key:
|
128
|
+
specification_version: 4
|
129
|
+
summary: Link header pagination for Rails APIs. Don't use the request body.
|
130
|
+
test_files:
|
131
|
+
- spec/controllers/numbers_controller_spec.rb
|
132
|
+
- spec/dummy/app/controllers/application_controller.rb
|
133
|
+
- spec/dummy/app/controllers/numbers_controller.rb
|
134
|
+
- spec/dummy/app/helpers/application_helper.rb
|
135
|
+
- spec/dummy/bin/bundle
|
136
|
+
- spec/dummy/bin/rails
|
137
|
+
- spec/dummy/bin/rake
|
138
|
+
- spec/dummy/config/application.rb
|
139
|
+
- spec/dummy/config/boot.rb
|
140
|
+
- spec/dummy/config/database.yml
|
141
|
+
- spec/dummy/config/environment.rb
|
142
|
+
- spec/dummy/config/environments/development.rb
|
143
|
+
- spec/dummy/config/environments/production.rb
|
144
|
+
- spec/dummy/config/environments/test.rb
|
145
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
146
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
147
|
+
- spec/dummy/config/initializers/inflections.rb
|
148
|
+
- spec/dummy/config/initializers/mime_types.rb
|
149
|
+
- spec/dummy/config/initializers/secret_token.rb
|
150
|
+
- spec/dummy/config/initializers/session_store.rb
|
151
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
152
|
+
- spec/dummy/config/locales/en.yml
|
153
|
+
- spec/dummy/config/routes.rb
|
154
|
+
- spec/dummy/config.ru
|
155
|
+
- spec/dummy/db/schema.rb
|
156
|
+
- spec/dummy/log/development.log
|
157
|
+
- spec/dummy/Rakefile
|
158
|
+
- spec/spec_helper.rb
|