thetvdb-ruby 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5076b5faea64c69ecfe11f61b7ce18d50f6e999a
4
+ data.tar.gz: feceab695e0c302662b94e77a7e4ed58c9d19204
5
+ SHA512:
6
+ metadata.gz: 7576d5291f282e02568e85902a3e4e53ad9ed9a060f07536d5a32a41c4490979b4888a2336a898ebadd924b5e609d7e60856c3613473371e4886775343c25800
7
+ data.tar.gz: 5e1581223dba4df8321b8480bf5ba07867a03fcd354d3df5db5ae4420281c5d73a9bfd47b013e776737be111971906b905f126c18220ceec64a8c08388234dc9
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,33 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="CompassSettings">
4
+ <option name="compassExecutableFilePath" value="$USER_HOME$/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/compass-0.12.7/bin/compass" />
5
+ </component>
6
+ <component name="FacetManager">
7
+ <facet type="gem" name="Ruby Gem">
8
+ <configuration>
9
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
10
+ <option name="GEM_APP_TEST_PATH" value="$MODULE_DIR$/test" />
11
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
12
+ </configuration>
13
+ </facet>
14
+ </component>
15
+ <component name="NewModuleRootManager">
16
+ <content url="file://$MODULE_DIR$">
17
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
18
+ </content>
19
+ <orderEntry type="inheritedJdk" />
20
+ <orderEntry type="sourceFolder" forTests="false" />
21
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.9.6, rbenv: 2.2.1) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="domain_name (v0.5.24, rbenv: 2.2.1) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="http-cookie (v1.0.2, rbenv: 2.2.1) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v2.6.1, rbenv: 2.2.1) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="mini_portile (v0.6.2, rbenv: 2.2.1) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="netrc (v0.10.3, rbenv: 2.2.1) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.6.2, rbenv: 2.2.1) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, rbenv: 2.2.1) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="rest-client (v1.8.0, rbenv: 2.2.1) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="unf (v0.1.4, rbenv: 2.2.1) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="unf_ext (v0.0.7.1, rbenv: 2.2.1) [gem]" level="application" />
32
+ </component>
33
+ </module>
@@ -0,0 +1,422 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="ee57d26d-a157-4145-b2e3-dd6ee564112e" name="Default" comment="">
5
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.gitignore" />
6
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.travis.yml" />
7
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/CODE_OF_CONDUCT.md" />
8
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Gemfile" />
9
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/LICENSE.txt" />
10
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/README.md" />
11
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Rakefile" />
12
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/thetvdb/client.rb" />
13
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/console" />
14
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/test/minitest_helper.rb" />
15
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/setup" />
16
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/test/test_thetvdb.rb" />
17
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/thetvdb.gemspec" />
18
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/thetvdb.iml" />
19
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/thetvdb.rb" />
20
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/generators/templates/thetvdb.rb" />
21
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/generators/thetvdb_generator.rb" />
22
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/thetvdb/version.rb" />
23
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
24
+ </list>
25
+ <ignored path="thetvdb.iws" />
26
+ <ignored path=".idea/workspace.xml" />
27
+ <ignored path=".idea/dataSources.local.xml" />
28
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
29
+ <option name="TRACKING_ENABLED" value="true" />
30
+ <option name="SHOW_DIALOG" value="false" />
31
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
32
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
33
+ <option name="LAST_RESOLUTION" value="IGNORE" />
34
+ </component>
35
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
36
+ <component name="CreatePatchCommitExecutor">
37
+ <option name="PATCH_PATH" value="" />
38
+ </component>
39
+ <component name="FavoritesManager">
40
+ <favorites_list name="thetvdb" />
41
+ </component>
42
+ <component name="FileEditorManager">
43
+ <leaf>
44
+ <file leaf-file-name="thetvdb.gemspec" pinned="false" current-in-tab="true">
45
+ <entry file="file://$PROJECT_DIR$/thetvdb.gemspec">
46
+ <provider selected="true" editor-type-id="text-editor">
47
+ <state vertical-scroll-proportion="0.37333333">
48
+ <caret line="14" column="28" selection-start-line="14" selection-start-column="28" selection-end-line="14" selection-end-column="28" />
49
+ <folding />
50
+ </state>
51
+ </provider>
52
+ </entry>
53
+ </file>
54
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
55
+ <entry file="file://$PROJECT_DIR$/README.md">
56
+ <provider selected="true" editor-type-id="text-editor">
57
+ <state vertical-scroll-proportion="-27.36">
58
+ <caret line="38" column="40" selection-start-line="38" selection-start-column="40" selection-end-line="38" selection-end-column="40" />
59
+ <folding />
60
+ </state>
61
+ </provider>
62
+ </entry>
63
+ </file>
64
+ <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
65
+ <entry file="file://$PROJECT_DIR$/Gemfile">
66
+ <provider selected="true" editor-type-id="text-editor">
67
+ <state vertical-scroll-proportion="0.0">
68
+ <caret line="5" column="17" selection-start-line="5" selection-start-column="17" selection-end-line="5" selection-end-column="17" />
69
+ <folding />
70
+ </state>
71
+ </provider>
72
+ </entry>
73
+ </file>
74
+ <file leaf-file-name="thetvdb.rb" pinned="false" current-in-tab="false">
75
+ <entry file="file://$PROJECT_DIR$/lib/thetvdb.rb">
76
+ <provider selected="true" editor-type-id="text-editor">
77
+ <state vertical-scroll-proportion="0.0">
78
+ <caret line="4" column="14" selection-start-line="4" selection-start-column="14" selection-end-line="4" selection-end-column="14" />
79
+ <folding />
80
+ </state>
81
+ </provider>
82
+ </entry>
83
+ </file>
84
+ <file leaf-file-name="client.rb" pinned="false" current-in-tab="false">
85
+ <entry file="file://$PROJECT_DIR$/lib/thetvdb/client.rb">
86
+ <provider selected="true" editor-type-id="text-editor">
87
+ <state vertical-scroll-proportion="0.0">
88
+ <caret line="0" column="7" selection-start-line="0" selection-start-column="7" selection-end-line="0" selection-end-column="14" />
89
+ <folding />
90
+ </state>
91
+ </provider>
92
+ </entry>
93
+ </file>
94
+ <file leaf-file-name="thetvdb_generator.rb" pinned="false" current-in-tab="false">
95
+ <entry file="file://$PROJECT_DIR$/lib/generators/thetvdb_generator.rb">
96
+ <provider selected="true" editor-type-id="text-editor">
97
+ <state vertical-scroll-proportion="0.0">
98
+ <caret line="6" column="3" selection-start-line="6" selection-start-column="3" selection-end-line="6" selection-end-column="3" />
99
+ <folding />
100
+ </state>
101
+ </provider>
102
+ </entry>
103
+ </file>
104
+ <file leaf-file-name="thetvdb.rb" pinned="false" current-in-tab="false">
105
+ <entry file="file://$PROJECT_DIR$/lib/generators/templates/thetvdb.rb">
106
+ <provider selected="true" editor-type-id="text-editor">
107
+ <state vertical-scroll-proportion="0.0">
108
+ <caret line="1" column="9" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="9" />
109
+ <folding />
110
+ </state>
111
+ </provider>
112
+ </entry>
113
+ </file>
114
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
115
+ <entry file="file://$PROJECT_DIR$/lib/thetvdb/version.rb">
116
+ <provider selected="true" editor-type-id="text-editor">
117
+ <state vertical-scroll-proportion="0.0">
118
+ <caret line="0" column="7" selection-start-line="0" selection-start-column="7" selection-end-line="0" selection-end-column="14" />
119
+ <folding />
120
+ </state>
121
+ </provider>
122
+ </entry>
123
+ </file>
124
+ </leaf>
125
+ </component>
126
+ <component name="Git.Settings">
127
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
128
+ </component>
129
+ <component name="IdeDocumentHistory">
130
+ <option name="CHANGED_PATHS">
131
+ <list>
132
+ <option value="$PROJECT_DIR$/lib/thetvdb/version.rb" />
133
+ <option value="$PROJECT_DIR$/Gemfile" />
134
+ <option value="$PROJECT_DIR$/lib/thetvdb.rb" />
135
+ <option value="$PROJECT_DIR$/lib/thetvdb/client.rb" />
136
+ <option value="$PROJECT_DIR$/lib/generators/thetvdb_generator.rb" />
137
+ <option value="$PROJECT_DIR$/lib/generators/templates/thetvdb.rb" />
138
+ <option value="$PROJECT_DIR$/README.md" />
139
+ <option value="$PROJECT_DIR$/thetvdb.gemspec" />
140
+ </list>
141
+ </option>
142
+ </component>
143
+ <component name="JsBuildToolGruntFileManager" detection-done="true" />
144
+ <component name="JsGulpfileManager">
145
+ <detection-done>true</detection-done>
146
+ </component>
147
+ <component name="NamedScopeManager">
148
+ <order />
149
+ </component>
150
+ <component name="ProjectFrameBounds">
151
+ <option name="x" value="57" />
152
+ <option name="y" value="21" />
153
+ <option name="width" value="1309" />
154
+ <option name="height" value="747" />
155
+ </component>
156
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
157
+ <OptionsSetting value="true" id="Add" />
158
+ <OptionsSetting value="true" id="Remove" />
159
+ <OptionsSetting value="true" id="Checkout" />
160
+ <OptionsSetting value="true" id="Update" />
161
+ <OptionsSetting value="true" id="Status" />
162
+ <OptionsSetting value="true" id="Edit" />
163
+ <ConfirmationsSetting value="0" id="Add" />
164
+ <ConfirmationsSetting value="0" id="Remove" />
165
+ </component>
166
+ <component name="ProjectView">
167
+ <navigator currentView="ProjectPane" proportions="" version="1">
168
+ <flattenPackages />
169
+ <showMembers />
170
+ <showModules />
171
+ <showLibraryContents />
172
+ <hideEmptyPackages />
173
+ <abbreviatePackageNames />
174
+ <autoscrollToSource />
175
+ <autoscrollFromSource />
176
+ <sortByType />
177
+ </navigator>
178
+ <panes>
179
+ <pane id="Scratches" />
180
+ <pane id="ProjectPane">
181
+ <subPane>
182
+ <PATH>
183
+ <PATH_ELEMENT>
184
+ <option name="myItemId" value="thetvdb" />
185
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
186
+ </PATH_ELEMENT>
187
+ </PATH>
188
+ <PATH>
189
+ <PATH_ELEMENT>
190
+ <option name="myItemId" value="thetvdb" />
191
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
192
+ </PATH_ELEMENT>
193
+ <PATH_ELEMENT>
194
+ <option name="myItemId" value="thetvdb" />
195
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
196
+ </PATH_ELEMENT>
197
+ </PATH>
198
+ <PATH>
199
+ <PATH_ELEMENT>
200
+ <option name="myItemId" value="thetvdb" />
201
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
202
+ </PATH_ELEMENT>
203
+ <PATH_ELEMENT>
204
+ <option name="myItemId" value="thetvdb" />
205
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
206
+ </PATH_ELEMENT>
207
+ <PATH_ELEMENT>
208
+ <option name="myItemId" value="lib" />
209
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
210
+ </PATH_ELEMENT>
211
+ </PATH>
212
+ </subPane>
213
+ </pane>
214
+ <pane id="Scope" />
215
+ </panes>
216
+ </component>
217
+ <component name="PropertiesComponent">
218
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
219
+ <property name="WebServerToolWindowFactoryState" value="false" />
220
+ </component>
221
+ <component name="RunManager">
222
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
223
+ <method />
224
+ </configuration>
225
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
226
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
227
+ <module name="" />
228
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
229
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
230
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
231
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
232
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
233
+ <envs />
234
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
235
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
236
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
237
+ <COVERAGE_PATTERN ENABLED="true">
238
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
239
+ </COVERAGE_PATTERN>
240
+ </EXTENSION>
241
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
242
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
243
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
244
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
245
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
246
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
247
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
248
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
249
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
250
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
251
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
252
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
253
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
254
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
255
+ <method />
256
+ </configuration>
257
+ <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
258
+ <module name="" />
259
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
260
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
261
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
262
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
263
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
264
+ <envs />
265
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
266
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
267
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
268
+ <COVERAGE_PATTERN ENABLED="true">
269
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
270
+ </COVERAGE_PATTERN>
271
+ </EXTENSION>
272
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
273
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
274
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
275
+ <method />
276
+ </configuration>
277
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
278
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
279
+ <module name="" />
280
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
281
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
282
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
283
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
284
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
285
+ <envs />
286
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
287
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
288
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
289
+ <COVERAGE_PATTERN ENABLED="true">
290
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
291
+ </COVERAGE_PATTERN>
292
+ </EXTENSION>
293
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
294
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
295
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
296
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
297
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
298
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
299
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
300
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
301
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
302
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
303
+ <method />
304
+ </configuration>
305
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
306
+ <node-options />
307
+ <gulpfile />
308
+ <tasks />
309
+ <arguments />
310
+ <pass-parent-envs>true</pass-parent-envs>
311
+ <envs />
312
+ <method />
313
+ </configuration>
314
+ </component>
315
+ <component name="ShelveChangesManager" show_recycled="false" />
316
+ <component name="TaskManager">
317
+ <task active="true" id="Default" summary="Default task">
318
+ <changelist id="ee57d26d-a157-4145-b2e3-dd6ee564112e" name="Default" comment="" />
319
+ <created>1442950509916</created>
320
+ <option name="number" value="Default" />
321
+ <updated>1442950509916</updated>
322
+ </task>
323
+ <servers />
324
+ </component>
325
+ <component name="ToolWindowManager">
326
+ <frame x="57" y="21" width="1309" height="747" extended-state="6" />
327
+ <editor active="false" />
328
+ <layout>
329
+ <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24980901" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
330
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
331
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
332
+ <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
333
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
334
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
335
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
336
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
337
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
338
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
339
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
340
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
341
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
342
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
343
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
344
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
345
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32859176" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
346
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
347
+ </layout>
348
+ </component>
349
+ <component name="VcsContentAnnotationSettings">
350
+ <option name="myLimit" value="2678400000" />
351
+ </component>
352
+ <component name="XDebuggerManager">
353
+ <breakpoint-manager />
354
+ <watches-manager />
355
+ </component>
356
+ <component name="editorHistoryManager">
357
+ <entry file="file://$PROJECT_DIR$/Gemfile">
358
+ <provider selected="true" editor-type-id="text-editor">
359
+ <state vertical-scroll-proportion="0.0">
360
+ <caret line="5" column="17" selection-start-line="5" selection-start-column="17" selection-end-line="5" selection-end-column="17" />
361
+ <folding />
362
+ </state>
363
+ </provider>
364
+ </entry>
365
+ <entry file="file://$PROJECT_DIR$/lib/thetvdb/version.rb">
366
+ <provider selected="true" editor-type-id="text-editor">
367
+ <state vertical-scroll-proportion="0.0">
368
+ <caret line="0" column="7" selection-start-line="0" selection-start-column="7" selection-end-line="0" selection-end-column="14" />
369
+ <folding />
370
+ </state>
371
+ </provider>
372
+ </entry>
373
+ <entry file="file://$PROJECT_DIR$/lib/generators/thetvdb_generator.rb">
374
+ <provider selected="true" editor-type-id="text-editor">
375
+ <state vertical-scroll-proportion="0.0">
376
+ <caret line="6" column="3" selection-start-line="6" selection-start-column="3" selection-end-line="6" selection-end-column="3" />
377
+ <folding />
378
+ </state>
379
+ </provider>
380
+ </entry>
381
+ <entry file="file://$PROJECT_DIR$/lib/thetvdb.rb">
382
+ <provider selected="true" editor-type-id="text-editor">
383
+ <state vertical-scroll-proportion="0.0">
384
+ <caret line="4" column="14" selection-start-line="4" selection-start-column="14" selection-end-line="4" selection-end-column="14" />
385
+ <folding />
386
+ </state>
387
+ </provider>
388
+ </entry>
389
+ <entry file="file://$PROJECT_DIR$/lib/thetvdb/client.rb">
390
+ <provider selected="true" editor-type-id="text-editor">
391
+ <state vertical-scroll-proportion="0.0">
392
+ <caret line="0" column="7" selection-start-line="0" selection-start-column="7" selection-end-line="0" selection-end-column="14" />
393
+ <folding />
394
+ </state>
395
+ </provider>
396
+ </entry>
397
+ <entry file="file://$PROJECT_DIR$/lib/generators/templates/thetvdb.rb">
398
+ <provider selected="true" editor-type-id="text-editor">
399
+ <state vertical-scroll-proportion="0.0">
400
+ <caret line="1" column="9" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="9" />
401
+ <folding />
402
+ </state>
403
+ </provider>
404
+ </entry>
405
+ <entry file="file://$PROJECT_DIR$/README.md">
406
+ <provider selected="true" editor-type-id="text-editor">
407
+ <state vertical-scroll-proportion="-27.36">
408
+ <caret line="38" column="40" selection-start-line="38" selection-start-column="40" selection-end-line="38" selection-end-column="40" />
409
+ <folding />
410
+ </state>
411
+ </provider>
412
+ </entry>
413
+ <entry file="file://$PROJECT_DIR$/thetvdb.gemspec">
414
+ <provider selected="true" editor-type-id="text-editor">
415
+ <state vertical-scroll-proportion="0.37333333">
416
+ <caret line="14" column="28" selection-start-line="14" selection-start-column="28" selection-end-line="14" selection-end-column="28" />
417
+ <folding />
418
+ </state>
419
+ </provider>
420
+ </entry>
421
+ </component>
422
+ </project>
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in thetvdb.gemspec
4
+ gemspec
5
+ gem 'nokogiri'
6
+ gem 'rest-client'
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Victor Areba
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,53 @@
1
+ # Thetvdb
2
+
3
+ A Ruby Wrapper for [TVDB API](http://thetvdb.com/wiki/index.php?title=Programmers_API)
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'thetvdb-ruby'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install thetvdb-ruby
20
+
21
+ ## Usage
22
+
23
+ Create TheTvDB initializer thetvdb.rb
24
+ $ rails g thetvdb
25
+
26
+ Edit the initializer file and place your TVDB API key
27
+
28
+ require 'thetvdb'
29
+ API_KEY = "Your API Key"
30
+
31
+ #### Getting shows
32
+ To query for shows, use the command
33
+
34
+ $ show = Thetvdb::Client.new("name of show").get_show
35
+
36
+ Note to replace "name of show" with the show you want to query
37
+
38
+ ##How I developed it
39
+ Read on how I developed the gem [here]()
40
+
41
+ ## Development
42
+
43
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
44
+
45
+ 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` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
46
+
47
+ ## Contributing
48
+
49
+ 1. Fork it ( https://github.com/[my-github-username]/thetvdb/fork )
50
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
51
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
52
+ 4. Push to the branch (`git push origin my-new-feature`)
53
+ 5. Create a new Pull Request
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "thetvdb"
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
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,2 @@
1
+ require 'thetvdb'
2
+ API_KEY = "Your API Key"
@@ -0,0 +1,7 @@
1
+ class ThetvdbGenerator < Rails::Generators::Base
2
+ source_root File.expand_path("../templates", __FILE__)
3
+ def create_initializer_file
4
+ #create_file "config/initializers/showsmapper.rb"
5
+ copy_file "thetvdb.rb", "config/initializers/thetvdb.rb"
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ require "thetvdb/version"
2
+ require 'rest-client'
3
+ require 'nokogiri'
4
+
5
+ require 'thetvdb/client'
@@ -0,0 +1,21 @@
1
+ module Thetvdb
2
+ class Client
3
+ attr_reader :token, :seriesName
4
+
5
+ def initialize(seriesName)
6
+ @token = API_KEY
7
+ @seriesName = seriesName
8
+ if @seriesName.empty? || @token.empty?
9
+ raise ArgumentError, 'Series Name and token are required'
10
+ end
11
+ end
12
+
13
+ def get_show
14
+ result = RestClient.get 'http://thetvdb.com/api/GetSeries.php?seriesname=' + @seriesName
15
+ doc = Nokogiri::XML(result)
16
+ seriesId = doc.at('seriesid').text
17
+ series_data = RestClient.get 'http://thetvdb.com/api/' + @token + '/series/' + seriesId + '/all/en.xml'
18
+ return series_data
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,3 @@
1
+ module Thetvdb
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'thetvdb/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "thetvdb-ruby"
8
+ spec.version = Thetvdb::VERSION
9
+ spec.authors = ["Victor Areba"]
10
+ spec.email = ["vicgoburg@gmail.com"]
11
+
12
+ spec.summary = %q{Ruby wrapper for TVDB API}
13
+ spec.description = %q{Get access to your favorite tv shows and it's episodes details}
14
+ spec.homepage = "https://github.com/theareba/thetvdb-ruby"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.9"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ end
metadata ADDED
@@ -0,0 +1,89 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: thetvdb-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Victor Areba
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-09-22 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.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
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
+ description: Get access to your favorite tv shows and it's episodes details
42
+ email:
43
+ - vicgoburg@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - ".idea/thetvdb.iml"
50
+ - ".idea/workspace.xml"
51
+ - ".travis.yml"
52
+ - CODE_OF_CONDUCT.md
53
+ - Gemfile
54
+ - LICENSE.txt
55
+ - README.md
56
+ - Rakefile
57
+ - bin/console
58
+ - bin/setup
59
+ - lib/generators/templates/thetvdb.rb
60
+ - lib/generators/thetvdb_generator.rb
61
+ - lib/thetvdb.rb
62
+ - lib/thetvdb/client.rb
63
+ - lib/thetvdb/version.rb
64
+ - thetvdb.gemspec
65
+ homepage: https://github.com/theareba/thetvdb-ruby
66
+ licenses:
67
+ - MIT
68
+ metadata: {}
69
+ post_install_message:
70
+ rdoc_options: []
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ requirements: []
84
+ rubyforge_project:
85
+ rubygems_version: 2.4.5
86
+ signing_key:
87
+ specification_version: 4
88
+ summary: Ruby wrapper for TVDB API
89
+ test_files: []