oauth_im 0.1.2 → 0.4.6

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -5
  3. data/lib/oauth_im/version.rb +1 -1
  4. metadata +47 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ba9ab7f3674cc033d6ceaa2adb235c3a046f0b4090ea7d712318d8787d9abdf
4
- data.tar.gz: ae1998dbd428f00ee8f2b30e334de251be35ae760b0efab820a37bc00900e7d1
3
+ metadata.gz: e28d71eba7b82be12370b581d9d18e1586c306f9289b652c01840b5741c390b1
4
+ data.tar.gz: a00df7c4945ba074f7493f727bed3a9b7b2404743d5f7b41f240e2042242530b
5
5
  SHA512:
6
- metadata.gz: 7a87bf27fc06e740fe0b4de963d553e2d5077e55db71ce2137850fdc01bd9ee2092c600c760c788e200ef7dc0dfc0710a5961ce4b23a5310215e9cf6e4d51ff4
7
- data.tar.gz: 9be6e477b2e60ad61e73e25edbc4151cbe986bb01e2125b35fb527f9c58dbbd3dd56a750492957900d539e4b0fe2312b04fd91714c580b3a9dc2d2dabc6bd188
6
+ metadata.gz: fbcb705e404198de143fc4be4cfc0d3e61565d8e65786e856b0d0b562d86071cd686288ebb262db4d1b0e5433a2b7cf05da0d03746619114510f0e04e719cae8
7
+ data.tar.gz: fde29ac8263407ec2cce0d17d90ef85fa916e8d92ae8cc97b26335206b8b6c30c517c60b2af256ccdf16eea50fba7f8e94f1d727a77f6704002b62a3a4a2b313
data/README.md CHANGED
@@ -8,7 +8,7 @@ apps.
8
8
  Add this line to your application's Gemfile:
9
9
 
10
10
  ```ruby
11
- gem 'oauth_im'
11
+ gem 'oauth_im', '0.x.y' # e.g., '0.1.2'
12
12
  ```
13
13
 
14
14
  Then run:
@@ -54,10 +54,13 @@ end
54
54
  ### Helpers for Logging in and Out
55
55
  The engine provides [two endpoints](https://github.com/illustrativemathematics/oauth_im/blob/main/config/routes.rb#L5-L6) for logging in and out, and exposes
56
56
  corresponding view helpers. These are accessible from the main app as:
57
- * `oauth_im.login_path` or `oauth_im.login_url`
58
- * `oauth_im.logout_path` or `oauth_im.logout_url`
59
57
 
60
- Note that the helpers are namespaced to the engine.
58
+ | path | url |
59
+ |------|-----|
60
+ | `oauth_im.login_path` | `oauth_im.login_url` |
61
+ | `oauth_im.logout_path` | `oauth_im.logout_url` |
62
+
63
+ * Note that the helpers are namespaced to the engine.
61
64
 
62
65
  The [controller actions](https://github.com/illustrativemathematics/oauth_im/blob/main/app/controllers/oauth_im/client_controller.rb#L14-L21) for these routes are provided and should "just
63
66
  work." Note that there are no view templates associated with these
@@ -71,4 +74,12 @@ exposes [two helper methods](https://github.com/illustrativemathematics/oauth_im
71
74
  * `email`: returns the current user's authenticated email address.
72
75
 
73
76
  You can include this concern in your app's `ApplicationController` or
74
- some other appropriate location.
77
+ some other appropriate location, e.g.:
78
+ ``` ruby
79
+ class ApplicationController < ActionController::Base
80
+ include OauthIm::Authenticable
81
+
82
+ # etc. etc. etc.
83
+ end
84
+
85
+ ```
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OauthIm
4
- VERSION = '0.1.2'
4
+ VERSION = '0.4.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth_im
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Connally
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-09 00:00:00.000000000 Z
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -66,6 +66,48 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 1.23.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 1.23.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.21'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.21'
69
111
  description: Include this gem in Gemfile, add an initializer, and you are good to
70
112
  go.
71
113
  email:
@@ -98,7 +140,7 @@ metadata:
98
140
  homepage_uri: https://github.com/illustrativemathematics/oauth_im
99
141
  source_code_uri: https://github.com/illustrativemathematics/oauth_im
100
142
  changelog_uri: https://github.com/illustrativemathematics/oauth_im
101
- post_install_message:
143
+ post_install_message:
102
144
  rdoc_options: []
103
145
  require_paths:
104
146
  - lib
@@ -114,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
156
  version: '0'
115
157
  requirements: []
116
158
  rubygems_version: 3.0.3
117
- signing_key:
159
+ signing_key:
118
160
  specification_version: 4
119
161
  summary: Provide oauth functionality for IM apps.
120
162
  test_files: []