api_guard 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e7fd3e30531e593d102344eae722507a2bb93397
4
- data.tar.gz: 98bbbbd0ad3d8d3dc541483e79d8db46381da316
2
+ SHA256:
3
+ metadata.gz: 16c29cefc6fd22302a55e87e7ec5f52d6fc4936640ee190cad692646cbe37cc7
4
+ data.tar.gz: daa21cfa0052dc034fc5e5c18c380a9ee3eac72e3d1490db895798dc2f31c9f7
5
5
  SHA512:
6
- metadata.gz: 867e07e76fb1957adb353d2f667e43ef10cad61ea360e917dc1e60d72f57c1cb05962af42d855ae5ccdacc88b0a16834487568b81e13aec04ae1fc087d78ff91
7
- data.tar.gz: f57dae8c1baba2ad90c15a2001b4e139d10f44dccbbdc19ab6548b592d9d97ab681ae9efd9d72128ef03f2f1f9ed9feb185ff58b8cf7d5625d8d425dc33a61da
6
+ metadata.gz: 6daaca97ec4dd5d3c4f9938642edc77b2fc25a8854985d6b305e4ce1e83b20dd52b2056fed4e0e9d8b6e14f9f0049391afe42c40f455983d9386556fc1bca37c
7
+ data.tar.gz: a3feb57d806c7581a6679833a2cb0f41328e8b9a9077acd5504898173527b7ae30778d846efbbac4106d52abea65c35300e6714f2aa0cc2cb3016e1dd2b1eb2f
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # API Guard
2
2
 
3
3
  [![Version](https://img.shields.io/gem/v/api_guard.svg?color=green)](https://rubygems.org/gems/api_guard)
4
- [![Build Status](https://travis-ci.org/Gokul595/api_guard.svg?branch=master)](https://travis-ci.org/Gokul595/api_guard)
4
+ [![Build Status](https://github.com/Gokul595/api_guard/workflows/build/badge.svg?branch=master)](https://github.com/Gokul595/api_guard/actions?query=workflow%3Abuild)
5
5
  [![Maintainability](https://api.codeclimate.com/v1/badges/ced3e74a26a66ed915cb/maintainability)](https://codeclimate.com/github/Gokul595/api_guard/maintainability)
6
6
  [![Test Coverage](https://api.codeclimate.com/v1/badges/ced3e74a26a66ed915cb/test_coverage)](https://codeclimate.com/github/Gokul595/api_guard/test_coverage)
7
7
 
@@ -9,7 +9,7 @@ module ApiGuard
9
9
  def update
10
10
  invalidate_old_jwt_tokens(current_resource)
11
11
 
12
- if current_resource.update_attributes(password_params)
12
+ if current_resource.update(password_params)
13
13
  blacklist_token unless ApiGuard.invalidate_old_tokens_on_password_change
14
14
  destroy_all_refresh_tokens(current_resource)
15
15
 
@@ -6,7 +6,7 @@ module ApiGuard
6
6
  def render_success(data: nil, message: nil)
7
7
  resp_data = { status: I18n.t('api_guard.response.success') }
8
8
  resp_data[:message] = message if message
9
- resp_data[:data] = message if data
9
+ resp_data[:data] = data if data
10
10
 
11
11
  render json: resp_data, status: 200
12
12
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApiGuard
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_guard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gokul Murali
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-26 00:00:00.000000000 Z
11
+ date: 2020-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.1'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 2.1.0
19
+ version: '2.2'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '2.1'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 2.1.0
26
+ version: '2.2'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: bcrypt
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -37,9 +31,6 @@ dependencies:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
33
  version: '3.1'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 3.1.11
43
34
  type: :development
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
@@ -47,69 +38,62 @@ dependencies:
47
38
  - - "~>"
48
39
  - !ruby/object:Gem::Version
49
40
  version: '3.1'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 3.1.11
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: factory_bot_rails
55
43
  requirement: !ruby/object:Gem::Requirement
56
44
  requirements:
57
45
  - - "~>"
58
46
  - !ruby/object:Gem::Version
59
- version: '4.8'
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 4.8.2
47
+ version: '6.1'
63
48
  type: :development
64
49
  prerelease: false
65
50
  version_requirements: !ruby/object:Gem::Requirement
66
51
  requirements:
67
52
  - - "~>"
68
53
  - !ruby/object:Gem::Version
69
- version: '4.8'
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: 4.8.2
54
+ version: '6.1'
73
55
  - !ruby/object:Gem::Dependency
74
56
  name: rails
75
57
  requirement: !ruby/object:Gem::Requirement
76
58
  requirements:
77
59
  - - "~>"
78
60
  - !ruby/object:Gem::Version
79
- version: '5.1'
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 5.1.5
61
+ version: '6.0'
83
62
  type: :development
84
63
  prerelease: false
85
64
  version_requirements: !ruby/object:Gem::Requirement
86
65
  requirements:
87
66
  - - "~>"
88
67
  - !ruby/object:Gem::Version
89
- version: '5.1'
90
- - - ">="
68
+ version: '6.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: listen
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
91
74
  - !ruby/object:Gem::Version
92
- version: 5.1.5
75
+ version: '3.2'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.2'
93
83
  - !ruby/object:Gem::Dependency
94
84
  name: rspec-rails
95
85
  requirement: !ruby/object:Gem::Requirement
96
86
  requirements:
97
87
  - - "~>"
98
88
  - !ruby/object:Gem::Version
99
- version: '3.7'
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: 3.7.2
89
+ version: '4.0'
103
90
  type: :development
104
91
  prerelease: false
105
92
  version_requirements: !ruby/object:Gem::Requirement
106
93
  requirements:
107
94
  - - "~>"
108
95
  - !ruby/object:Gem::Version
109
- version: '3.7'
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 3.7.2
96
+ version: '4.0'
113
97
  - !ruby/object:Gem::Dependency
114
98
  name: rubocop
115
99
  requirement: !ruby/object:Gem::Requirement
@@ -128,42 +112,30 @@ dependencies:
128
112
  name: simplecov
129
113
  requirement: !ruby/object:Gem::Requirement
130
114
  requirements:
131
- - - "~>"
132
- - !ruby/object:Gem::Version
133
- version: '0.16'
134
- - - ">="
115
+ - - '='
135
116
  - !ruby/object:Gem::Version
136
- version: 0.16.1
117
+ version: '0.17'
137
118
  type: :development
138
119
  prerelease: false
139
120
  version_requirements: !ruby/object:Gem::Requirement
140
121
  requirements:
141
- - - "~>"
122
+ - - '='
142
123
  - !ruby/object:Gem::Version
143
- version: '0.16'
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- version: 0.16.1
124
+ version: '0.17'
147
125
  - !ruby/object:Gem::Dependency
148
126
  name: sqlite3
149
127
  requirement: !ruby/object:Gem::Requirement
150
128
  requirements:
151
129
  - - "~>"
152
130
  - !ruby/object:Gem::Version
153
- version: '1.3'
154
- - - ">="
155
- - !ruby/object:Gem::Version
156
- version: 1.3.13
131
+ version: '1.4'
157
132
  type: :development
158
133
  prerelease: false
159
134
  version_requirements: !ruby/object:Gem::Requirement
160
135
  requirements:
161
136
  - - "~>"
162
137
  - !ruby/object:Gem::Version
163
- version: '1.3'
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: 1.3.13
138
+ version: '1.4'
167
139
  description: JWT authentication solution for Rails APIs
168
140
  email:
169
141
  - m.gokul595@gmail.com
@@ -208,7 +180,7 @@ homepage: https://github.com/Gokul595/api_guard
208
180
  licenses:
209
181
  - MIT
210
182
  metadata: {}
211
- post_install_message:
183
+ post_install_message:
212
184
  rdoc_options: []
213
185
  require_paths:
214
186
  - lib
@@ -216,16 +188,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
216
188
  requirements:
217
189
  - - ">="
218
190
  - !ruby/object:Gem::Version
219
- version: 2.3.0
191
+ version: 2.5.0
220
192
  required_rubygems_version: !ruby/object:Gem::Requirement
221
193
  requirements:
222
194
  - - ">="
223
195
  - !ruby/object:Gem::Version
224
196
  version: '0'
225
197
  requirements: []
226
- rubyforge_project:
227
- rubygems_version: 2.6.14
228
- signing_key:
198
+ rubygems_version: 3.1.2
199
+ signing_key:
229
200
  specification_version: 4
230
201
  summary: Rails API authentication made easy
231
202
  test_files: []