youtube_embed 0.0.1.alpha

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.
data/.gitignore ADDED
@@ -0,0 +1,20 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ .idea
19
+ .idea/
20
+ .idea/*
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,325 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="b7640352-25ab-4292-982e-3e09aa420ffa" name="Default" comment="">
5
+ <change type="DELETED" beforePath="$PROJECT_DIR$/.idea/scopes/scope_settings.xml" afterPath="" />
6
+ <change type="DELETED" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="" />
7
+ <change type="DELETED" beforePath="$PROJECT_DIR$/README.md.orig" afterPath="" />
8
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
9
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/youtube_embed/version.rb" afterPath="$PROJECT_DIR$/lib/youtube_embed/version.rb" />
10
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/youtube_embed.rb" afterPath="$PROJECT_DIR$/lib/youtube_embed.rb" />
11
+ </list>
12
+ <ignored path="youtube_embed.iws" />
13
+ <ignored path=".idea/workspace.xml" />
14
+ <file path="/Dummy.txt" changelist="b7640352-25ab-4292-982e-3e09aa420ffa" time="1365069413989" ignored="false" />
15
+ <file path="/youtube_embed.gemspec" changelist="b7640352-25ab-4292-982e-3e09aa420ffa" time="1365070046387" ignored="false" />
16
+ <file path="/youtube_embed.rb" changelist="b7640352-25ab-4292-982e-3e09aa420ffa" time="1365079017188" ignored="false" />
17
+ <file path="/.gitignore" changelist="b7640352-25ab-4292-982e-3e09aa420ffa" time="1365070890113" ignored="false" />
18
+ <file path="/README.md" changelist="b7640352-25ab-4292-982e-3e09aa420ffa" time="1365079290739" ignored="false" />
19
+ <file path="/version.rb" changelist="b7640352-25ab-4292-982e-3e09aa420ffa" time="1365079782979" ignored="false" />
20
+ <option name="TRACKING_ENABLED" value="true" />
21
+ <option name="SHOW_DIALOG" value="false" />
22
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
23
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
24
+ <option name="LAST_RESOLUTION" value="IGNORE" />
25
+ </component>
26
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
27
+ <component name="CreatePatchCommitExecutor">
28
+ <option name="PATCH_PATH" value="" />
29
+ </component>
30
+ <component name="DaemonCodeAnalyzer">
31
+ <disable_hints />
32
+ </component>
33
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
34
+ <component name="FileEditorManager">
35
+ <leaf>
36
+ <file leaf-file-name="youtube_embed.gemspec" pinned="false" current="false" current-in-tab="false">
37
+ <entry file="file://$PROJECT_DIR$/youtube_embed.gemspec">
38
+ <provider selected="true" editor-type-id="text-editor">
39
+ <state line="11" column="25" selection-start="445" selection-end="445" vertical-scroll-proportion="0.0">
40
+ <folding />
41
+ </state>
42
+ </provider>
43
+ </entry>
44
+ </file>
45
+ <file leaf-file-name="README.md" pinned="false" current="false" current-in-tab="false">
46
+ <entry file="file://$PROJECT_DIR$/README.md">
47
+ <provider selected="true" editor-type-id="text-editor">
48
+ <state line="6" column="44" selection-start="120" selection-end="120" vertical-scroll-proportion="0.0">
49
+ <folding />
50
+ </state>
51
+ </provider>
52
+ </entry>
53
+ </file>
54
+ <file leaf-file-name=".gitignore" pinned="false" current="false" current-in-tab="false">
55
+ <entry file="file://$PROJECT_DIR$/.gitignore">
56
+ <provider selected="true" editor-type-id="text-editor">
57
+ <state line="18" column="6" selection-start="166" selection-end="166" vertical-scroll-proportion="0.0">
58
+ <folding />
59
+ </state>
60
+ </provider>
61
+ </entry>
62
+ </file>
63
+ <file leaf-file-name="youtube_embed.rb" pinned="false" current="false" current-in-tab="false">
64
+ <entry file="file://$PROJECT_DIR$/lib/youtube_embed.rb">
65
+ <provider selected="true" editor-type-id="text-editor">
66
+ <state line="22" column="8" selection-start="557" selection-end="557" vertical-scroll-proportion="0.0">
67
+ <folding />
68
+ </state>
69
+ </provider>
70
+ </entry>
71
+ </file>
72
+ <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
73
+ <entry file="file://$PROJECT_DIR$/lib/youtube_embed/version.rb">
74
+ <provider selected="true" editor-type-id="text-editor">
75
+ <state line="1" column="24" selection-start="44" selection-end="44" vertical-scroll-proportion="0.0198939">
76
+ <folding />
77
+ </state>
78
+ </provider>
79
+ </entry>
80
+ </file>
81
+ </leaf>
82
+ </component>
83
+ <component name="FindManager">
84
+ <FindUsagesManager>
85
+ <setting name="OPEN_NEW_TAB" value="false" />
86
+ </FindUsagesManager>
87
+ </component>
88
+ <component name="Git.Settings">
89
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
90
+ </component>
91
+ <component name="GitLogSettings">
92
+ <option name="myDateState">
93
+ <MyDateState />
94
+ </option>
95
+ </component>
96
+ <component name="IdeDocumentHistory">
97
+ <option name="changedFiles">
98
+ <list>
99
+ <option value="$PROJECT_DIR$/youtube_embed.gemspec" />
100
+ <option value="$PROJECT_DIR$/.gitignore" />
101
+ <option value="$PROJECT_DIR$/lib/youtube_embed.rb" />
102
+ <option value="$PROJECT_DIR$/README.md" />
103
+ <option value="$PROJECT_DIR$/lib/youtube_embed/version.rb" />
104
+ </list>
105
+ </option>
106
+ </component>
107
+ <component name="ProjectFrameBounds">
108
+ <option name="x" value="128" />
109
+ <option name="y" value="94" />
110
+ <option name="width" value="1853" />
111
+ <option name="height" value="877" />
112
+ </component>
113
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
114
+ <OptionsSetting value="true" id="Add" />
115
+ <OptionsSetting value="true" id="Remove" />
116
+ <OptionsSetting value="true" id="Checkout" />
117
+ <OptionsSetting value="true" id="Update" />
118
+ <OptionsSetting value="true" id="Status" />
119
+ <OptionsSetting value="true" id="Edit" />
120
+ <ConfirmationsSetting value="0" id="Add" />
121
+ <ConfirmationsSetting value="0" id="Remove" />
122
+ </component>
123
+ <component name="ProjectReloadState">
124
+ <option name="STATE" value="0" />
125
+ </component>
126
+ <component name="ProjectView">
127
+ <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
128
+ <flattenPackages />
129
+ <showMembers />
130
+ <showModules />
131
+ <showLibraryContents />
132
+ <hideEmptyPackages />
133
+ <abbreviatePackageNames />
134
+ <autoscrollToSource />
135
+ <autoscrollFromSource />
136
+ <sortByType />
137
+ </navigator>
138
+ <panes>
139
+ <pane id="Scope" />
140
+ <pane id="ProjectPane">
141
+ <subPane>
142
+ <PATH>
143
+ <PATH_ELEMENT>
144
+ <option name="myItemId" value="youtube_embed" />
145
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
146
+ </PATH_ELEMENT>
147
+ </PATH>
148
+ <PATH>
149
+ <PATH_ELEMENT>
150
+ <option name="myItemId" value="youtube_embed" />
151
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
152
+ </PATH_ELEMENT>
153
+ <PATH_ELEMENT>
154
+ <option name="myItemId" value="youtube_embed" />
155
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
156
+ </PATH_ELEMENT>
157
+ </PATH>
158
+ <PATH>
159
+ <PATH_ELEMENT>
160
+ <option name="myItemId" value="youtube_embed" />
161
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
162
+ </PATH_ELEMENT>
163
+ <PATH_ELEMENT>
164
+ <option name="myItemId" value="youtube_embed" />
165
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
166
+ </PATH_ELEMENT>
167
+ <PATH_ELEMENT>
168
+ <option name="myItemId" value="lib" />
169
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
170
+ </PATH_ELEMENT>
171
+ </PATH>
172
+ <PATH>
173
+ <PATH_ELEMENT>
174
+ <option name="myItemId" value="youtube_embed" />
175
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
176
+ </PATH_ELEMENT>
177
+ <PATH_ELEMENT>
178
+ <option name="myItemId" value="youtube_embed" />
179
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
180
+ </PATH_ELEMENT>
181
+ <PATH_ELEMENT>
182
+ <option name="myItemId" value="lib" />
183
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
184
+ </PATH_ELEMENT>
185
+ <PATH_ELEMENT>
186
+ <option name="myItemId" value="youtube_embed" />
187
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
188
+ </PATH_ELEMENT>
189
+ </PATH>
190
+ </subPane>
191
+ </pane>
192
+ </panes>
193
+ </component>
194
+ <component name="PropertiesComponent">
195
+ <property name="WebServerToolWindowFactoryState" value="false" />
196
+ </component>
197
+ <component name="RunManager">
198
+ <list size="0" />
199
+ </component>
200
+ <component name="ShelveChangesManager" show_recycled="false" />
201
+ <component name="TaskManager">
202
+ <task active="true" id="Default" summary="Default task">
203
+ <changelist id="b7640352-25ab-4292-982e-3e09aa420ffa" name="Default" comment="" />
204
+ <created>1365069412819</created>
205
+ <updated>1365069412819</updated>
206
+ </task>
207
+ <servers />
208
+ </component>
209
+ <component name="ToolWindowManager">
210
+ <frame x="128" y="94" width="1853" height="877" extended-state="0" />
211
+ <editor active="true" />
212
+ <layout>
213
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
214
+ <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" />
215
+ <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="-1" side_tool="false" content_ui="tabs" />
216
+ <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" />
217
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24958494" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
218
+ <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" />
219
+ <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="-1" side_tool="false" content_ui="tabs" />
220
+ <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="-1" side_tool="false" content_ui="tabs" />
221
+ <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" />
222
+ <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="-1" side_tool="false" content_ui="tabs" />
223
+ <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" />
224
+ <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" />
225
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
226
+ <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" />
227
+ <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" />
228
+ <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" />
229
+ <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" />
230
+ </layout>
231
+ </component>
232
+ <component name="VcsContentAnnotationSettings">
233
+ <option name="myLimit" value="2678400000" />
234
+ </component>
235
+ <component name="VcsManagerConfiguration">
236
+ <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
237
+ <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
238
+ <option name="CHECK_NEW_TODO" value="true" />
239
+ <option name="myTodoPanelSettings">
240
+ <value>
241
+ <are-packages-shown value="false" />
242
+ <are-modules-shown value="false" />
243
+ <flatten-packages value="false" />
244
+ <is-autoscroll-to-source value="false" />
245
+ </value>
246
+ </option>
247
+ <option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
248
+ <option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
249
+ <option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
250
+ <option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
251
+ <option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
252
+ <option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
253
+ <option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
254
+ <option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
255
+ <option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
256
+ <option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
257
+ <option name="DEFAULT_PATCH_EXTENSION" value="patch" />
258
+ <option name="SHORT_DIFF_HORISONTALLY" value="true" />
259
+ <option name="SHORT_DIFF_EXTRA_LINES" value="2" />
260
+ <option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
261
+ <option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
262
+ <option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
263
+ <option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
264
+ <option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
265
+ <option name="SHOW_DIRTY_RECURSIVELY" value="false" />
266
+ <option name="LIMIT_HISTORY" value="true" />
267
+ <option name="MAXIMUM_HISTORY_ROWS" value="1000" />
268
+ <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
269
+ <option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
270
+ <option name="LAST_COMMIT_MESSAGE" />
271
+ <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
272
+ <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
273
+ <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
274
+ <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
275
+ <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
276
+ <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
277
+ <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
278
+ <option name="ACTIVE_VCS_NAME" />
279
+ <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
280
+ <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
281
+ <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
282
+ <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
283
+ </component>
284
+ <component name="XDebuggerManager">
285
+ <breakpoint-manager />
286
+ </component>
287
+ <component name="editorHistoryManager">
288
+ <entry file="file://$PROJECT_DIR$/.gitignore">
289
+ <provider selected="true" editor-type-id="text-editor">
290
+ <state line="18" column="6" selection-start="166" selection-end="166" vertical-scroll-proportion="0.0">
291
+ <folding />
292
+ </state>
293
+ </provider>
294
+ </entry>
295
+ <entry file="file://$PROJECT_DIR$/youtube_embed.gemspec">
296
+ <provider selected="true" editor-type-id="text-editor">
297
+ <state line="11" column="25" selection-start="445" selection-end="445" vertical-scroll-proportion="0.0">
298
+ <folding />
299
+ </state>
300
+ </provider>
301
+ </entry>
302
+ <entry file="file://$PROJECT_DIR$/README.md">
303
+ <provider selected="true" editor-type-id="text-editor">
304
+ <state line="6" column="44" selection-start="120" selection-end="120" vertical-scroll-proportion="0.0">
305
+ <folding />
306
+ </state>
307
+ </provider>
308
+ </entry>
309
+ <entry file="file://$PROJECT_DIR$/lib/youtube_embed.rb">
310
+ <provider selected="true" editor-type-id="text-editor">
311
+ <state line="22" column="8" selection-start="557" selection-end="557" vertical-scroll-proportion="0.0">
312
+ <folding />
313
+ </state>
314
+ </provider>
315
+ </entry>
316
+ <entry file="file://$PROJECT_DIR$/lib/youtube_embed/version.rb">
317
+ <provider selected="true" editor-type-id="text-editor">
318
+ <state line="1" column="24" selection-start="44" selection-end="44" vertical-scroll-proportion="0.0198939">
319
+ <folding />
320
+ </state>
321
+ </provider>
322
+ </entry>
323
+ </component>
324
+ </project>
325
+
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in youtube_embed.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Mohit Sharma
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # YoutubeEmbed
2
+
3
+ Embed youtube videos in textarea from URL
4
+
5
+ 1. Simple Embed
6
+
7
+ 2. Embed with title, description & thumbnail
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ gem 'youtube_embed'
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install youtube_embed
22
+
23
+ ## Usage
24
+
25
+ Under Active Development
26
+
27
+ ## Contributing
28
+
29
+ youtube_embed
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,3 @@
1
+ module YoutubeEmbed
2
+ VERSION = "0.0.1.alpha"
3
+ end
@@ -0,0 +1,26 @@
1
+ require "youtube_embed/version"
2
+
3
+ module YoutubeEmbed
4
+
5
+ #Extract ID From Url Formats
6
+ VIDEO_FORMATS = [
7
+ %r(https?://www\.youtube\.com/embed/(.*?)(\?|$)),
8
+ %r(https?://youtu\.be/(.+)),
9
+ %r(https?://www\.youtube\.com/user/.*?#\w/\w/\w/\w/(.+)\b),
10
+ %r(https?://www\.youtube\.com/v/(.*?)(#|\?|$)),
11
+ %r(https?://www\.youtube\.com/watch\?v=(.*?)(&|#|$))
12
+ ]
13
+ def get_video_id(url)
14
+ url.strip!
15
+ VIDEO_FORMATS.find { |video_format| url =~ video_format } and $1
16
+ end
17
+
18
+ def self.thumbnail_and_description
19
+
20
+ end
21
+
22
+ def self.simple
23
+
24
+ end
25
+
26
+ end
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'youtube_embed/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "youtube_embed"
8
+ gem.version = YoutubeEmbed::VERSION
9
+ gem.authors = ["Mohit Sharma"]
10
+ gem.email = ["developer.pht@gmail.com"]
11
+ gem.description = %q{Embed youtube videos in textarea}
12
+ gem.summary = %q{Embed youtube videos in textarea with thumbnail, title description}
13
+ gem.homepage = ""
14
+
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.require_paths = ["lib"]
19
+ end
metadata ADDED
@@ -0,0 +1,55 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: youtube_embed
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.alpha
5
+ prerelease: 6
6
+ platform: ruby
7
+ authors:
8
+ - Mohit Sharma
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-04-04 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Embed youtube videos in textarea
15
+ email:
16
+ - developer.pht@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - .idea/scopes/scope_settings.xml
23
+ - .idea/workspace.xml
24
+ - Gemfile
25
+ - LICENSE.txt
26
+ - README.md
27
+ - Rakefile
28
+ - lib/youtube_embed.rb
29
+ - lib/youtube_embed/version.rb
30
+ - youtube_embed.gemspec
31
+ homepage: ''
32
+ licenses: []
33
+ post_install_message:
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>'
47
+ - !ruby/object:Gem::Version
48
+ version: 1.3.1
49
+ requirements: []
50
+ rubyforge_project:
51
+ rubygems_version: 1.8.24
52
+ signing_key:
53
+ specification_version: 3
54
+ summary: Embed youtube videos in textarea with thumbnail, title description
55
+ test_files: []