api_pagination_headers 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbc1bb209392610ed0cbdb2e6c8f1acad4c345ea
4
- data.tar.gz: 12da3da8f08069065e7d2b9c65049c0790926870
3
+ metadata.gz: 283c50f394d1de087909deb7aff6d2a4de54694f
4
+ data.tar.gz: ece85ad7e0b8a836a822f7d1234898c15647a0ba
5
5
  SHA512:
6
- metadata.gz: 63023f56aa083ff91a158a1de00fe3e9585a002abbb42f755aba164334ff0ede0dd2f3cac9954cd4772fcc10379b599c3e6fe9c2addca3b6788b52fa14bebf7b
7
- data.tar.gz: f17ec0aec0d372f9b125a889b9b06ce341db288f6face91980bfe150a865d5d2d32a57d8f665c52c284a405664f8c8f98bf8c6ac438e5b9db1884d986c55b014
6
+ metadata.gz: 1b31f25d3b3208650fff656de8672a5c4b05cf7ae3fea56d52fedf63db46b1890becd18fc85f039a6c410c49b52a2542ea8e21317da9165c95d252f4b099f41e
7
+ data.tar.gz: 8336cc6aca45039b7b5213eb34845a3d0214a47f09e3bc26397774d5a3564265a00a19ff0b974ba12a2e35995320de36647efc86d8d440994debd13cc2e8564e
data/.gitignore CHANGED
@@ -1,10 +1,10 @@
1
- .bundle/
2
- .DS_Store
3
1
  *.gem
4
- log/*.log
5
- pkg/
6
- spec/dummy/db/*.sqlite3
7
- spec/dummy/db/*.sqlite3-journal
8
- spec/dummy/log/*.log
2
+ *.log
3
+ *.log
4
+ *.sqlite3
5
+ *.sqlite3-journal
6
+ .bundle
7
+ .sass-cache
8
+ Gemfile.lock
9
+ pkg
9
10
  spec/dummy/tmp/
10
- spec/dummy/.sass-cache
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- #api_pagination_headers [![Build Status](https://travis-ci.org/richardkall/api_pagination_headers.svg)](http://travis-ci.org/richardkall/api_pagination_headers) [![Dependency Status](https://gemnasium.com/richardkall/api_pagination_headers.svg)](https://gemnasium.com/richardkall/api_pagination_headers)
1
+ # api_pagination_headers [![Build Status](https://img.shields.io/codeship/e218bba0-c8c5-0132-1d54-2e67424578fa.svg)](https://codeship.com/projects/75115) [![Dependency Status](https://gemnasium.com/richardkall/api_pagination_headers.svg)](https://gemnasium.com/richardkall/api_pagination_headers)
2
2
 
3
3
  > Adds pagination info to a `Link` response header.
4
4
 
@@ -52,4 +52,4 @@ end
52
52
 
53
53
  ## License
54
54
 
55
- MIT © [Richard Käll](http://richardkall.se)
55
+ MIT © [Richard Käll](http://richardkall.se)
@@ -15,11 +15,11 @@ Gem::Specification.new do |s|
15
15
  s.files = `git ls-files`.split($/)
16
16
  s.test_files = `git ls-files -- {spec}/*`.split("\n")
17
17
 
18
- s.add_dependency 'rails', '>= 4.1.8'
18
+ s.add_dependency 'rails', '>= 4.2.0'
19
19
 
20
20
  s.add_development_dependency 'factory_girl_rails'
21
- s.add_development_dependency 'sqlite3'
22
- s.add_development_dependency 'rspec-rails'
23
21
  s.add_development_dependency 'kaminari'
22
+ s.add_development_dependency 'rspec-rails'
23
+ s.add_development_dependency 'sqlite3'
24
24
  s.add_development_dependency 'will_paginate'
25
25
  end
@@ -14,12 +14,12 @@ module ApiPaginationHeaders
14
14
  @config ||= ApiPaginationHeaders::Configuration.new
15
15
  end
16
16
 
17
- class Configuration #:nodoc:
17
+ class Configuration
18
18
  include ActiveSupport::Configurable
19
19
 
20
20
  TOTAL_COUNT_HEADER = 'Total-Count'
21
21
 
22
- config_accessor(:total_count_header) { TOTAL_COUNT_HEADER }
23
- config_accessor(:force_https) { false }
22
+ config_accessor(:total_count_header) { TOTAL_COUNT_HEADER }
23
+ config_accessor(:force_https) { false }
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module ApiPaginationHeaders
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
@@ -13,11 +13,11 @@
13
13
 
14
14
  ActiveRecord::Schema.define(version: 20140406141645) do
15
15
 
16
- create_table "comments", force: true do |t|
16
+ create_table "comments", force: :cascade do |t|
17
17
  t.string "content"
18
18
  end
19
19
 
20
- create_table "posts", force: true do |t|
20
+ create_table "posts", force: :cascade do |t|
21
21
  t.string "content"
22
22
  end
23
23
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_pagination_headers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Käll
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-18 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.8
19
+ version: 4.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.1.8
26
+ version: 4.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: factory_girl_rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: sqlite3
42
+ name: kaminari
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: kaminari
70
+ name: sqlite3
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -102,9 +102,7 @@ extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
104
  - ".gitignore"
105
- - ".travis.yml"
106
105
  - Gemfile
107
- - Gemfile.lock
108
106
  - LICENSE
109
107
  - README.md
110
108
  - Rakefile
@@ -159,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
157
  version: '0'
160
158
  requirements: []
161
159
  rubyforge_project:
162
- rubygems_version: 2.4.6
160
+ rubygems_version: 2.4.5.1
163
161
  signing_key:
164
162
  specification_version: 4
165
163
  summary: Link header pagination for APIs
@@ -1,8 +0,0 @@
1
- language:
2
- - ruby
3
- install:
4
- - 'bundle install'
5
- - 'cd spec/dummy;rake db:drop;rake db:create;rake db:schema:load;rake db:test:prepare;cd ../../'
6
- rvm:
7
- - 1.9.3
8
- - 2.0.0
@@ -1,137 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- api_pagination_headers (2.1.0)
5
- rails (>= 4.1.8)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionmailer (4.2.1)
11
- actionpack (= 4.2.1)
12
- actionview (= 4.2.1)
13
- activejob (= 4.2.1)
14
- mail (~> 2.5, >= 2.5.4)
15
- rails-dom-testing (~> 1.0, >= 1.0.5)
16
- actionpack (4.2.1)
17
- actionview (= 4.2.1)
18
- activesupport (= 4.2.1)
19
- rack (~> 1.6)
20
- rack-test (~> 0.6.2)
21
- rails-dom-testing (~> 1.0, >= 1.0.5)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
23
- actionview (4.2.1)
24
- activesupport (= 4.2.1)
25
- builder (~> 3.1)
26
- erubis (~> 2.7.0)
27
- rails-dom-testing (~> 1.0, >= 1.0.5)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
29
- activejob (4.2.1)
30
- activesupport (= 4.2.1)
31
- globalid (>= 0.3.0)
32
- activemodel (4.2.1)
33
- activesupport (= 4.2.1)
34
- builder (~> 3.1)
35
- activerecord (4.2.1)
36
- activemodel (= 4.2.1)
37
- activesupport (= 4.2.1)
38
- arel (~> 6.0)
39
- activesupport (4.2.1)
40
- i18n (~> 0.7)
41
- json (~> 1.7, >= 1.7.7)
42
- minitest (~> 5.1)
43
- thread_safe (~> 0.3, >= 0.3.4)
44
- tzinfo (~> 1.1)
45
- arel (6.0.0)
46
- builder (3.2.2)
47
- diff-lcs (1.2.5)
48
- erubis (2.7.0)
49
- factory_girl (4.5.0)
50
- activesupport (>= 3.0.0)
51
- factory_girl_rails (4.5.0)
52
- factory_girl (~> 4.5.0)
53
- railties (>= 3.0.0)
54
- globalid (0.3.5)
55
- activesupport (>= 4.1.0)
56
- i18n (0.7.0)
57
- json (1.8.2)
58
- kaminari (0.16.3)
59
- actionpack (>= 3.0.0)
60
- activesupport (>= 3.0.0)
61
- loofah (2.0.1)
62
- nokogiri (>= 1.5.9)
63
- mail (2.6.3)
64
- mime-types (>= 1.16, < 3)
65
- mime-types (2.4.3)
66
- mini_portile (0.6.2)
67
- minitest (5.6.0)
68
- nokogiri (1.6.6.2)
69
- mini_portile (~> 0.6.0)
70
- rack (1.6.0)
71
- rack-test (0.6.3)
72
- rack (>= 1.0)
73
- rails (4.2.1)
74
- actionmailer (= 4.2.1)
75
- actionpack (= 4.2.1)
76
- actionview (= 4.2.1)
77
- activejob (= 4.2.1)
78
- activemodel (= 4.2.1)
79
- activerecord (= 4.2.1)
80
- activesupport (= 4.2.1)
81
- bundler (>= 1.3.0, < 2.0)
82
- railties (= 4.2.1)
83
- sprockets-rails
84
- rails-deprecated_sanitizer (1.0.3)
85
- activesupport (>= 4.2.0.alpha)
86
- rails-dom-testing (1.0.6)
87
- activesupport (>= 4.2.0.beta, < 5.0)
88
- nokogiri (~> 1.6.0)
89
- rails-deprecated_sanitizer (>= 1.0.1)
90
- rails-html-sanitizer (1.0.2)
91
- loofah (~> 2.0)
92
- railties (4.2.1)
93
- actionpack (= 4.2.1)
94
- activesupport (= 4.2.1)
95
- rake (>= 0.8.7)
96
- thor (>= 0.18.1, < 2.0)
97
- rake (10.4.2)
98
- rspec-core (3.2.3)
99
- rspec-support (~> 3.2.0)
100
- rspec-expectations (3.2.1)
101
- diff-lcs (>= 1.2.0, < 2.0)
102
- rspec-support (~> 3.2.0)
103
- rspec-mocks (3.2.1)
104
- diff-lcs (>= 1.2.0, < 2.0)
105
- rspec-support (~> 3.2.0)
106
- rspec-rails (3.2.1)
107
- actionpack (>= 3.0, < 4.3)
108
- activesupport (>= 3.0, < 4.3)
109
- railties (>= 3.0, < 4.3)
110
- rspec-core (~> 3.2.0)
111
- rspec-expectations (~> 3.2.0)
112
- rspec-mocks (~> 3.2.0)
113
- rspec-support (~> 3.2.0)
114
- rspec-support (3.2.2)
115
- sprockets (3.0.1)
116
- rack (~> 1.0)
117
- sprockets-rails (2.2.4)
118
- actionpack (>= 3.0)
119
- activesupport (>= 3.0)
120
- sprockets (>= 2.8, < 4.0)
121
- sqlite3 (1.3.10)
122
- thor (0.19.1)
123
- thread_safe (0.3.5)
124
- tzinfo (1.2.2)
125
- thread_safe (~> 0.1)
126
- will_paginate (3.0.7)
127
-
128
- PLATFORMS
129
- ruby
130
-
131
- DEPENDENCIES
132
- api_pagination_headers!
133
- factory_girl_rails
134
- kaminari
135
- rspec-rails
136
- sqlite3
137
- will_paginate