omniauth-goodreads3 1.0.0
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 +7 -0
- data/.gitignore +9 -0
- data/.idea/misc.xml +4 -0
- data/.idea/modules.xml +8 -0
- data/.idea/omniauth-goodreads3.iml +20 -0
- data/.idea/workspace.xml +332 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +10 -0
- data/LICENSE.txt +19 -0
- data/README.md +39 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/omniauth-goodreads3.rb +2 -0
- data/lib/omniauth-goodreads3/version.rb +5 -0
- data/lib/omniauth/strategies/goodreads3.rb +47 -0
- data/omniauth-goodreads3.gemspec +29 -0
- metadata +106 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 44954c417d76011d119ebc162873fb2f421661da048be08c10e4fc0aab9bd1fd
|
4
|
+
data.tar.gz: 3e38049612baf18b3cd93af8cbeff717642a8ebf2af52cd78fac1669fb40d2a0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8541c881bace6db62f0568152b86d6dc746c26b3f891b42de82110ea541bc2893a0633b888ccbb9b07a40679152d46e22b5203034e9963f41c8d8db6abf1cae9
|
7
|
+
data.tar.gz: 06ec836b710e1d3ab61da8225fc5e0e50bd08afe8a87b0ac30116c2dbaf2224d32a2c137840d167afd3b279ef2abc3d2624363cdae6beefe20b76dd24ff3ed53
|
data/.gitignore
ADDED
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/omniauth-goodreads3.iml" filepath="$PROJECT_DIR$/.idea/omniauth-goodreads3.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="ModuleRunConfigurationManager">
|
4
|
+
<shared />
|
5
|
+
</component>
|
6
|
+
<component name="NewModuleRootManager">
|
7
|
+
<content url="file://$MODULE_DIR$" />
|
8
|
+
<orderEntry type="jdk" jdkName="ruby-2.4.2-p198" jdkType="RUBY_SDK" />
|
9
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.15.4, ruby-2.4.2-p198) [gem]" level="application" />
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="hashie (v3.5.6, ruby-2.4.2-p198) [gem]" level="application" />
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.10.3, ruby-2.4.2-p198) [gem]" level="application" />
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="multi_xml (v0.5.5, ruby-2.4.2-p198) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="oauth (v0.5.3, ruby-2.4.2-p198) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="omniauth (v1.7.0, ruby-2.4.2-p198) [gem]" level="application" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="omniauth-oauth (v1.1.0, ruby-2.4.2-p198) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="rack (v2.0.3, ruby-2.4.2-p198) [gem]" level="application" />
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, ruby-2.4.2-p198) [gem]" level="application" />
|
19
|
+
</component>
|
20
|
+
</module>
|
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,332 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="4b2e1109-707f-498a-b5e6-0d6a78c70b18" name="Default" comment="">
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.gitignore" />
|
6
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
|
7
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
|
8
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/omniauth-goodreads3.iml" />
|
9
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
10
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.travis.yml" />
|
11
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/CODE_OF_CONDUCT.md" />
|
12
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Gemfile" />
|
13
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/LICENSE.txt" />
|
14
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/README.md" />
|
15
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Rakefile" />
|
16
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/console" />
|
17
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/setup" />
|
18
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/omniauth-goodreads3.rb" />
|
19
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/omniauth-goodreads3/version.rb" />
|
20
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/omniauth/strategies/goodreads3.rb" />
|
21
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/omniauth-goodreads3.gemspec" />
|
22
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/test/omniauth/goodreads3_test.rb" />
|
23
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/test/test_helper.rb" />
|
24
|
+
</list>
|
25
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
26
|
+
<option name="TRACKING_ENABLED" value="true" />
|
27
|
+
<option name="SHOW_DIALOG" value="false" />
|
28
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
29
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
30
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
31
|
+
</component>
|
32
|
+
<component name="FileEditorManager">
|
33
|
+
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
34
|
+
<file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
|
35
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
36
|
+
<provider selected="true" editor-type-id="text-editor">
|
37
|
+
<state relative-caret-position="0">
|
38
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
39
|
+
<folding />
|
40
|
+
</state>
|
41
|
+
</provider>
|
42
|
+
</entry>
|
43
|
+
</file>
|
44
|
+
<file leaf-file-name="omniauth-goodreads3.rb" pinned="false" current-in-tab="false">
|
45
|
+
<entry file="file://$PROJECT_DIR$/lib/omniauth-goodreads3.rb">
|
46
|
+
<provider selected="true" editor-type-id="text-editor">
|
47
|
+
<state relative-caret-position="15">
|
48
|
+
<caret line="1" column="39" lean-forward="false" selection-start-line="1" selection-start-column="39" selection-end-line="1" selection-end-column="39" />
|
49
|
+
<folding />
|
50
|
+
</state>
|
51
|
+
</provider>
|
52
|
+
</entry>
|
53
|
+
</file>
|
54
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
|
55
|
+
<entry file="file://$PROJECT_DIR$/lib/omniauth-goodreads3/version.rb">
|
56
|
+
<provider selected="true" editor-type-id="text-editor">
|
57
|
+
<state relative-caret-position="0">
|
58
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
59
|
+
<folding />
|
60
|
+
</state>
|
61
|
+
</provider>
|
62
|
+
</entry>
|
63
|
+
</file>
|
64
|
+
<file leaf-file-name="goodreads3.rb" pinned="false" current-in-tab="false">
|
65
|
+
<entry file="file://$PROJECT_DIR$/lib/omniauth/strategies/goodreads3.rb">
|
66
|
+
<provider selected="true" editor-type-id="text-editor">
|
67
|
+
<state relative-caret-position="75">
|
68
|
+
<caret line="5" column="20" lean-forward="false" selection-start-line="5" selection-start-column="20" selection-end-line="5" selection-end-column="20" />
|
69
|
+
<folding />
|
70
|
+
</state>
|
71
|
+
</provider>
|
72
|
+
</entry>
|
73
|
+
</file>
|
74
|
+
<file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
|
75
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
76
|
+
<provider selected="true" editor-type-id="text-editor">
|
77
|
+
<state relative-caret-position="75">
|
78
|
+
<caret line="5" column="7" lean-forward="true" selection-start-line="5" selection-start-column="7" selection-end-line="5" selection-end-column="7" />
|
79
|
+
<folding />
|
80
|
+
</state>
|
81
|
+
</provider>
|
82
|
+
</entry>
|
83
|
+
</file>
|
84
|
+
<file leaf-file-name="omniauth-goodreads3.gemspec" pinned="false" current-in-tab="true">
|
85
|
+
<entry file="file://$PROJECT_DIR$/omniauth-goodreads3.gemspec">
|
86
|
+
<provider selected="true" editor-type-id="text-editor">
|
87
|
+
<state relative-caret-position="180">
|
88
|
+
<caret line="12" column="68" lean-forward="false" selection-start-line="12" selection-start-column="68" selection-end-line="12" selection-end-column="68" />
|
89
|
+
<folding />
|
90
|
+
</state>
|
91
|
+
</provider>
|
92
|
+
</entry>
|
93
|
+
</file>
|
94
|
+
</leaf>
|
95
|
+
</component>
|
96
|
+
<component name="Git.Settings">
|
97
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
98
|
+
</component>
|
99
|
+
<component name="IdeDocumentHistory">
|
100
|
+
<option name="CHANGED_PATHS">
|
101
|
+
<list>
|
102
|
+
<option value="$PROJECT_DIR$/lib/omniauth-goodreads.rb" />
|
103
|
+
<option value="$PROJECT_DIR$/Gemfile" />
|
104
|
+
<option value="$PROJECT_DIR$/lib/omniauth/strategies/goodreads3.rb" />
|
105
|
+
<option value="$PROJECT_DIR$/omniauth-goodreads3.gemspec" />
|
106
|
+
</list>
|
107
|
+
</option>
|
108
|
+
</component>
|
109
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
|
110
|
+
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
|
111
|
+
<component name="JsGulpfileManager">
|
112
|
+
<detection-done>true</detection-done>
|
113
|
+
<sorting>DEFINITION_ORDER</sorting>
|
114
|
+
</component>
|
115
|
+
<component name="ProjectFrameBounds">
|
116
|
+
<option name="x" value="20" />
|
117
|
+
<option name="y" value="23" />
|
118
|
+
<option name="width" value="1260" />
|
119
|
+
<option name="height" value="688" />
|
120
|
+
</component>
|
121
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
122
|
+
<component name="ProjectView">
|
123
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
124
|
+
<flattenPackages />
|
125
|
+
<showMembers />
|
126
|
+
<showModules />
|
127
|
+
<showLibraryContents />
|
128
|
+
<hideEmptyPackages />
|
129
|
+
<abbreviatePackageNames />
|
130
|
+
<autoscrollToSource />
|
131
|
+
<autoscrollFromSource />
|
132
|
+
<sortByType />
|
133
|
+
<manualOrder />
|
134
|
+
<foldersAlwaysOnTop value="true" />
|
135
|
+
</navigator>
|
136
|
+
<panes>
|
137
|
+
<pane id="Scope" />
|
138
|
+
<pane id="Scratches" />
|
139
|
+
<pane id="ProjectPane">
|
140
|
+
<subPane>
|
141
|
+
<expand>
|
142
|
+
<path>
|
143
|
+
<item name="omniauth-goodreads3" type="b2602c69:ProjectViewProjectNode" />
|
144
|
+
<item name="omniauth-goodreads3" type="462c0819:PsiDirectoryNode" />
|
145
|
+
</path>
|
146
|
+
<path>
|
147
|
+
<item name="omniauth-goodreads3" type="b2602c69:ProjectViewProjectNode" />
|
148
|
+
<item name="omniauth-goodreads3" type="462c0819:PsiDirectoryNode" />
|
149
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
150
|
+
</path>
|
151
|
+
<path>
|
152
|
+
<item name="omniauth-goodreads3" type="b2602c69:ProjectViewProjectNode" />
|
153
|
+
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
|
154
|
+
</path>
|
155
|
+
</expand>
|
156
|
+
<select />
|
157
|
+
</subPane>
|
158
|
+
</pane>
|
159
|
+
</panes>
|
160
|
+
</component>
|
161
|
+
<component name="PropertiesComponent">
|
162
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
163
|
+
</component>
|
164
|
+
<component name="RecentsManager">
|
165
|
+
<key name="MoveFile.RECENT_KEYS">
|
166
|
+
<recent name="$PROJECT_DIR$/lib/omniauth/strategies" />
|
167
|
+
<recent name="$PROJECT_DIR$/lib/omniauth-goodreads3" />
|
168
|
+
</key>
|
169
|
+
</component>
|
170
|
+
<component name="RunDashboard">
|
171
|
+
<option name="ruleStates">
|
172
|
+
<list>
|
173
|
+
<RuleState>
|
174
|
+
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
175
|
+
</RuleState>
|
176
|
+
<RuleState>
|
177
|
+
<option name="name" value="StatusDashboardGroupingRule" />
|
178
|
+
</RuleState>
|
179
|
+
</list>
|
180
|
+
</option>
|
181
|
+
</component>
|
182
|
+
<component name="ShelveChangesManager" show_recycled="false">
|
183
|
+
<option name="remove_strategy" value="false" />
|
184
|
+
</component>
|
185
|
+
<component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
|
186
|
+
<component name="TaskManager">
|
187
|
+
<task active="true" id="Default" summary="Default task">
|
188
|
+
<changelist id="4b2e1109-707f-498a-b5e6-0d6a78c70b18" name="Default" comment="" />
|
189
|
+
<created>1508469070848</created>
|
190
|
+
<option name="number" value="Default" />
|
191
|
+
<option name="presentableId" value="Default" />
|
192
|
+
<updated>1508469070848</updated>
|
193
|
+
<workItem from="1508469072634" duration="3177000" />
|
194
|
+
<workItem from="1512888525418" duration="21000" />
|
195
|
+
</task>
|
196
|
+
<servers />
|
197
|
+
</component>
|
198
|
+
<component name="TimeTrackingManager">
|
199
|
+
<option name="totallyTimeSpent" value="3198000" />
|
200
|
+
</component>
|
201
|
+
<component name="ToolWindowManager">
|
202
|
+
<frame x="20" y="23" width="1260" height="688" extended-state="0" />
|
203
|
+
<editor active="true" />
|
204
|
+
<layout>
|
205
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
206
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
207
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
208
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
209
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
210
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
211
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
212
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
213
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
214
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
215
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
216
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
217
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32868218" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
218
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
219
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32868218" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
220
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
221
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
222
|
+
</layout>
|
223
|
+
</component>
|
224
|
+
<component name="TypeScriptGeneratedFilesManager">
|
225
|
+
<option name="version" value="1" />
|
226
|
+
</component>
|
227
|
+
<component name="VcsContentAnnotationSettings">
|
228
|
+
<option name="myLimit" value="2678400000" />
|
229
|
+
</component>
|
230
|
+
<component name="XDebuggerManager">
|
231
|
+
<breakpoint-manager />
|
232
|
+
<watches-manager />
|
233
|
+
</component>
|
234
|
+
<component name="editorHistoryManager">
|
235
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
236
|
+
<provider selected="true" editor-type-id="text-editor">
|
237
|
+
<state relative-caret-position="0">
|
238
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
239
|
+
<folding />
|
240
|
+
</state>
|
241
|
+
</provider>
|
242
|
+
</entry>
|
243
|
+
<entry file="file://$PROJECT_DIR$/lib/omniauth-goodreads3.rb">
|
244
|
+
<provider selected="true" editor-type-id="text-editor">
|
245
|
+
<state relative-caret-position="15">
|
246
|
+
<caret line="1" column="39" lean-forward="false" selection-start-line="1" selection-start-column="39" selection-end-line="1" selection-end-column="39" />
|
247
|
+
<folding />
|
248
|
+
</state>
|
249
|
+
</provider>
|
250
|
+
</entry>
|
251
|
+
<entry file="file://$PROJECT_DIR$/lib/omniauth/strategies/goodreads3.rb">
|
252
|
+
<provider selected="true" editor-type-id="text-editor">
|
253
|
+
<state relative-caret-position="75">
|
254
|
+
<caret line="5" column="20" lean-forward="false" selection-start-line="5" selection-start-column="20" selection-end-line="5" selection-end-column="20" />
|
255
|
+
<folding />
|
256
|
+
</state>
|
257
|
+
</provider>
|
258
|
+
</entry>
|
259
|
+
<entry file="file://$PROJECT_DIR$/lib/omniauth-goodreads3/version.rb">
|
260
|
+
<provider selected="true" editor-type-id="text-editor">
|
261
|
+
<state relative-caret-position="0">
|
262
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
263
|
+
<folding />
|
264
|
+
</state>
|
265
|
+
</provider>
|
266
|
+
</entry>
|
267
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
268
|
+
<provider selected="true" editor-type-id="text-editor">
|
269
|
+
<state relative-caret-position="75">
|
270
|
+
<caret line="5" column="7" lean-forward="true" selection-start-line="5" selection-start-column="7" selection-end-line="5" selection-end-column="7" />
|
271
|
+
<folding />
|
272
|
+
</state>
|
273
|
+
</provider>
|
274
|
+
</entry>
|
275
|
+
<entry file="file://$PROJECT_DIR$/omniauth-goodreads3.gemspec">
|
276
|
+
<provider selected="true" editor-type-id="text-editor">
|
277
|
+
<state relative-caret-position="180">
|
278
|
+
<caret line="12" column="68" lean-forward="false" selection-start-line="12" selection-start-column="68" selection-end-line="12" selection-end-column="68" />
|
279
|
+
<folding />
|
280
|
+
</state>
|
281
|
+
</provider>
|
282
|
+
</entry>
|
283
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
284
|
+
<provider selected="true" editor-type-id="text-editor">
|
285
|
+
<state relative-caret-position="0">
|
286
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
287
|
+
<folding />
|
288
|
+
</state>
|
289
|
+
</provider>
|
290
|
+
</entry>
|
291
|
+
<entry file="file://$PROJECT_DIR$/lib/omniauth-goodreads3/version.rb">
|
292
|
+
<provider selected="true" editor-type-id="text-editor">
|
293
|
+
<state relative-caret-position="0">
|
294
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
295
|
+
<folding />
|
296
|
+
</state>
|
297
|
+
</provider>
|
298
|
+
</entry>
|
299
|
+
<entry file="file://$PROJECT_DIR$/lib/omniauth-goodreads3.rb">
|
300
|
+
<provider selected="true" editor-type-id="text-editor">
|
301
|
+
<state relative-caret-position="15">
|
302
|
+
<caret line="1" column="39" lean-forward="false" selection-start-line="1" selection-start-column="39" selection-end-line="1" selection-end-column="39" />
|
303
|
+
<folding />
|
304
|
+
</state>
|
305
|
+
</provider>
|
306
|
+
</entry>
|
307
|
+
<entry file="file://$PROJECT_DIR$/lib/omniauth/strategies/goodreads3.rb">
|
308
|
+
<provider selected="true" editor-type-id="text-editor">
|
309
|
+
<state relative-caret-position="75">
|
310
|
+
<caret line="5" column="20" lean-forward="false" selection-start-line="5" selection-start-column="20" selection-end-line="5" selection-end-column="20" />
|
311
|
+
<folding />
|
312
|
+
</state>
|
313
|
+
</provider>
|
314
|
+
</entry>
|
315
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
316
|
+
<provider selected="true" editor-type-id="text-editor">
|
317
|
+
<state relative-caret-position="75">
|
318
|
+
<caret line="5" column="7" lean-forward="true" selection-start-line="5" selection-start-column="7" selection-end-line="5" selection-end-column="7" />
|
319
|
+
<folding />
|
320
|
+
</state>
|
321
|
+
</provider>
|
322
|
+
</entry>
|
323
|
+
<entry file="file://$PROJECT_DIR$/omniauth-goodreads3.gemspec">
|
324
|
+
<provider selected="true" editor-type-id="text-editor">
|
325
|
+
<state relative-caret-position="180">
|
326
|
+
<caret line="12" column="68" lean-forward="false" selection-start-line="12" selection-start-column="68" selection-end-line="12" selection-end-column="68" />
|
327
|
+
<folding />
|
328
|
+
</state>
|
329
|
+
</provider>
|
330
|
+
</entry>
|
331
|
+
</component>
|
332
|
+
</project>
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at sara.mpa13@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Omniauth::Goodreads3
|
2
|
+
|
3
|
+
This is an update to the existing omniauth-goodreads2 gem (which I did not originally write and which is open source under the MIT license) to accommodate the recent https requirement by Goodreads for their auth service.
|
4
|
+
|
5
|
+
See https://rubygems.org/gems/omniauth-goodreads2 for the omniauth-goodreads2 I used for this gem.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'omniauth-goodreads3'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install omniauth-goodreads3
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Include in your application's gemfile as ```gem 'omniauth-goodreads3'```. Follow instructions found in the Goodreads documentation for implementation of their OAuth service into your application.
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## License
|
34
|
+
|
35
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
36
|
+
|
37
|
+
## Code of Conduct
|
38
|
+
|
39
|
+
Everyone interacting in the Omniauth::Goodreads3 project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct included herein.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "omniauth/goodreads3"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'multi_xml'
|
2
|
+
require 'omniauth-oauth'
|
3
|
+
|
4
|
+
module OmniAuth
|
5
|
+
module Strategies
|
6
|
+
class Goodreads3 < OmniAuth::Strategies::OAuth
|
7
|
+
option :client_options, {
|
8
|
+
:site => 'https://www.goodreads.com',
|
9
|
+
:authorize_url => 'https://www.goodreads.com/oauth/authorize',
|
10
|
+
:token_url => 'https://www.goodreads.com/oauth/access_token'
|
11
|
+
}
|
12
|
+
|
13
|
+
def request_phase
|
14
|
+
super
|
15
|
+
end
|
16
|
+
|
17
|
+
uid { raw_info['id'].to_s }
|
18
|
+
|
19
|
+
info do
|
20
|
+
{
|
21
|
+
'name' => raw_info['name'],
|
22
|
+
'user_name' => raw_info['user_name'],
|
23
|
+
'image' => raw_info['image_url'],
|
24
|
+
'about' => raw_info['about'],
|
25
|
+
'location' => raw_info['location'],
|
26
|
+
'website' => raw_info['website'],
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
extra do
|
31
|
+
{:raw_info => raw_info}
|
32
|
+
end
|
33
|
+
|
34
|
+
def raw_info
|
35
|
+
if @raw_info.nil?
|
36
|
+
MultiXml.parser = :rexml
|
37
|
+
authenticated_user = MultiXml.parse(access_token.get('/api/auth_user').body)
|
38
|
+
id = authenticated_user['GoodreadsResponse']['user']['id'].to_i
|
39
|
+
response_doc = MultiXml.parse(access_token.get("/user/show/#{id}.xml?key=#{@consumer_key}").body)
|
40
|
+
@raw_info = response_doc['GoodreadsResponse']['user']
|
41
|
+
end
|
42
|
+
|
43
|
+
@raw_info
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "omniauth-goodreads3"
|
7
|
+
spec.version = "1.0.0"
|
8
|
+
spec.authors = ["Sara Stanton"]
|
9
|
+
spec.email = ["sara.mpa13@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "Update of another gem (omniauth-goodreads2) to accomodate new https requirement for Goodreads OAuth"
|
12
|
+
spec.description = "This is an update to the existing omniauth-goodreads2 gem (which I did not originally write and which is open source under the MIT license) to accommodate the recent https requirement by Goodreads for their auth service."
|
13
|
+
spec.homepage = "http://rubygems.org/gems/omniauth-goodreads3"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
|
19
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
20
|
+
f.match(%r{^(test|spec|features)/})
|
21
|
+
end
|
22
|
+
spec.bindir = "exe"
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: omniauth-goodreads3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sara Stanton
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-03-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
description: This is an update to the existing omniauth-goodreads2 gem (which I did
|
56
|
+
not originally write and which is open source under the MIT license) to accommodate
|
57
|
+
the recent https requirement by Goodreads for their auth service.
|
58
|
+
email:
|
59
|
+
- sara.mpa13@gmail.com
|
60
|
+
executables: []
|
61
|
+
extensions: []
|
62
|
+
extra_rdoc_files: []
|
63
|
+
files:
|
64
|
+
- ".gitignore"
|
65
|
+
- ".idea/misc.xml"
|
66
|
+
- ".idea/modules.xml"
|
67
|
+
- ".idea/omniauth-goodreads3.iml"
|
68
|
+
- ".idea/workspace.xml"
|
69
|
+
- ".travis.yml"
|
70
|
+
- CODE_OF_CONDUCT.md
|
71
|
+
- Gemfile
|
72
|
+
- LICENSE.txt
|
73
|
+
- README.md
|
74
|
+
- Rakefile
|
75
|
+
- bin/console
|
76
|
+
- bin/setup
|
77
|
+
- lib/omniauth-goodreads3.rb
|
78
|
+
- lib/omniauth-goodreads3/version.rb
|
79
|
+
- lib/omniauth/strategies/goodreads3.rb
|
80
|
+
- omniauth-goodreads3.gemspec
|
81
|
+
homepage: http://rubygems.org/gems/omniauth-goodreads3
|
82
|
+
licenses:
|
83
|
+
- MIT
|
84
|
+
metadata: {}
|
85
|
+
post_install_message:
|
86
|
+
rdoc_options: []
|
87
|
+
require_paths:
|
88
|
+
- lib
|
89
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
requirements: []
|
100
|
+
rubyforge_project:
|
101
|
+
rubygems_version: 2.7.7
|
102
|
+
signing_key:
|
103
|
+
specification_version: 4
|
104
|
+
summary: Update of another gem (omniauth-goodreads2) to accomodate new https requirement
|
105
|
+
for Goodreads OAuth
|
106
|
+
test_files: []
|