jquery-oembed-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,422 @@
1
+ div.oembedall-githubrepos {
2
+ border: 1px solid #DDD;
3
+ border-radius: 4px 4px 4px 4px;
4
+ list-style-type: none;
5
+ margin: 0 0 10px;
6
+ padding: 8px 10px 0;
7
+ font: 13.34px/1.4 helvetica,arial,freesans,clean,sans-serif;
8
+ /*background: url("http://github.com/images/icons/public.png") no-repeat scroll 6px 9px transparent;*/
9
+ width : 452px;
10
+ background-color:#fff;
11
+ }
12
+
13
+ div.oembedall-githubrepos .oembedall-body {
14
+ background: -moz-linear-gradient(center top , #FAFAFA, #EFEFEF) repeat scroll 0 0 transparent;
15
+ background: -webkit-gradient(linear,left top,left bottom,from(#FAFAFA),to(#EFEFEF));;
16
+ border-bottom-left-radius: 4px;
17
+ border-bottom-right-radius: 4px;
18
+ border-top: 1px solid #EEE;
19
+ margin-left: -10px;
20
+ margin-top: 8px;
21
+ padding: 5px 10px;
22
+ width: 100%;
23
+ }
24
+
25
+ div.oembedall-githubrepos h3 {
26
+ font-size: 14px;
27
+ margin: 0;
28
+ padding-left: 18px;
29
+ white-space: nowrap;
30
+ }
31
+
32
+ div.oembedall-githubrepos p.oembedall-description {
33
+ color: #444;
34
+ font-size: 12px;
35
+ margin: 0 0 3px;
36
+ }
37
+
38
+ div.oembedall-githubrepos p.oembedall-updated-at {
39
+ color: #888;
40
+ font-size: 11px;
41
+ margin: 0;
42
+ }
43
+
44
+ div.oembedall-githubrepos ul.oembedall-repo-stats {
45
+ /*background: url("http://github.com/images/modules/pagehead/actions_fade.png") no-repeat scroll 0 0 transparent;*/
46
+ border: medium none;
47
+ float: right;
48
+ font-size: 11px;
49
+ font-weight: bold;
50
+ padding-left: 15px;
51
+ position: relative;
52
+ z-index: 5;
53
+ margin:0;
54
+ }
55
+ div.oembedall-githubrepos ul.oembedall-repo-stats li {
56
+ border: medium none;
57
+ color: #666;
58
+ display: inline-block;
59
+ list-style-type: none;
60
+ margin: 0 !important;
61
+ }
62
+ div.oembedall-githubrepos ul.oembedall-repo-stats li a {
63
+ background-color: transparent;
64
+ background-position: 5px -2px;
65
+ border: medium none;
66
+ color: #666 !important;
67
+ background-position: 5px -2px;
68
+ background-repeat: no-repeat;
69
+ border-left: 1px solid #DDD;
70
+ display: inline-block;
71
+ height: 21px;
72
+ line-height: 21px;
73
+ padding: 0 5px 0 23px;
74
+ }
75
+
76
+
77
+ div.oembedall-githubrepos ul.oembedall-repo-stats li:first-child a {
78
+ border-left: medium none;
79
+ margin-right: -3px;
80
+ }
81
+ div.oembedall-githubrepos ul.oembedall-repo-stats li a:hover {
82
+ background: none no-repeat scroll 5px -27px #4183C4;
83
+ color: #FFFFFF !important;
84
+ text-decoration: none;
85
+ }
86
+ div.oembedall-githubrepos ul.oembedall-repo-stats li:first-child a:hover {
87
+ border-bottom-left-radius: 3px;
88
+ border-top-left-radius: 3px;
89
+ }
90
+ ul.oembedall-repo-stats li:last-child a:hover {
91
+ border-bottom-right-radius: 3px;
92
+ border-top-right-radius: 3px;
93
+ }
94
+ div.oembedall-githubrepos ul.oembedall-repo-stats li.oembedall-watchers a {
95
+ /*background-image: url("http://github.com/images/modules/pagehead/repostat_watchers.png");*/
96
+ }
97
+
98
+ div.oembedall-githubrepos ul.oembedall-repo-stats li.oembedall-forks a {
99
+ /*background-image: url("http://github.com/images/modules/pagehead/repostat_forks.png");*/
100
+ }
101
+
102
+
103
+ span.oembedall-closehide{
104
+ background-color: #aaa;
105
+ border-radius: 2px;
106
+ cursor: pointer;
107
+ margin-right: 3px;
108
+ }
109
+
110
+ div.oembedall-container {
111
+ margin-top : 5px;
112
+ text-align: left;
113
+ }
114
+
115
+ .oembedall-ljuser {
116
+ font-weight: bold;
117
+ }
118
+
119
+ .oembedall-ljuser img {
120
+ vertical-align: bottom;
121
+ border: 0;
122
+ padding-right: 1px;
123
+ }
124
+
125
+ .oembedall-stoqembed {
126
+ border-bottom: 1px dotted #999999;
127
+ float: left;
128
+ overflow: hidden;
129
+ padding: 11px 0;
130
+ width: 730px;
131
+ line-height: 1;
132
+ background: none repeat scroll 0 0 #FFFFFF;
133
+ color: #000000;
134
+ font-family: Arial,Liberation Sans,DejaVu Sans,sans-serif;
135
+ font-size: 80%;
136
+ text-align: left;
137
+ margin: 0;
138
+ padding: 0;
139
+ }
140
+
141
+ .oembedall-stoqembed a {
142
+ color: #0077CC;
143
+ text-decoration: none;
144
+ margin: 0;
145
+ padding: 0;
146
+ }
147
+ .oembedall-stoqembed a:hover {
148
+ text-decoration: underline;
149
+ }
150
+ .oembedall-stoqembed a:visited {
151
+ color: #4A6B82;
152
+ }
153
+
154
+ .oembedall-stoqembed h3 {
155
+ font-family: Trebuchet MS,Liberation Sans,DejaVu Sans,sans-serif;
156
+ font-size: 130%;
157
+ font-weight: bold;
158
+ margin: 0;
159
+ padding: 0;
160
+ }
161
+
162
+ .oembedall-stoqembed .oembedall-reputation-score {
163
+ color: #444444;
164
+ font-size: 120%;
165
+ font-weight: bold;
166
+ margin-right: 2px;
167
+ }
168
+
169
+
170
+ .oembedall-stoqembed .oembedall-user-info {
171
+ height: 35px;
172
+ width: 185px;
173
+ }
174
+ .oembedall-stoqembed .oembedall-user-info .oembedall-user-gravatar32 {
175
+ float: left;
176
+ height: 32px;
177
+ width: 32px;
178
+ }
179
+
180
+ .oembedall-stoqembed .oembedall-user-info .oembedall-user-details {
181
+ float: left;
182
+ margin-left: 5px;
183
+ overflow: hidden;
184
+ white-space: nowrap;
185
+ width: 145px;
186
+ }
187
+
188
+ .oembedall-stoqembed .oembedall-question-hyperlink {
189
+ font-weight: bold;
190
+ }
191
+
192
+ .oembedall-stoqembed .oembedall-stats {
193
+ background: none repeat scroll 0 0 #EEEEEE;
194
+ margin: 0 0 0 7px;
195
+ padding: 4px 7px 6px;
196
+ width: 58px;
197
+ }
198
+ .oembedall-stoqembed .oembedall-statscontainer {
199
+ float: left;
200
+ margin-right: 8px;
201
+ width: 86px;
202
+ }
203
+
204
+ .oembedall-stoqembed .oembedall-votes {
205
+ color: #555555;
206
+ padding: 0 0 7px;
207
+ text-align: center;
208
+ }
209
+
210
+ .oembedall-stoqembed .oembedall-vote-count-post {
211
+ display: block;
212
+ font-size: 240%;
213
+ color: #808185;
214
+ display: block;
215
+ font-weight: bold;
216
+ }
217
+
218
+
219
+ .oembedall-stoqembed .oembedall-views {
220
+ color: #999999;
221
+ padding-top: 4px;
222
+ text-align: center;
223
+ }
224
+
225
+ .oembedall-stoqembed .oembedall-status {
226
+ margin-top: -3px;
227
+ padding: 4px 0;
228
+ text-align: center;
229
+ background: none repeat scroll 0 0 #75845C;
230
+ color: #FFFFFF;
231
+ }
232
+
233
+ .oembedall-stoqembed .oembedall-status strong {
234
+ color: #FFFFFF;
235
+ display: block;
236
+ font-size: 140%;
237
+ }
238
+
239
+
240
+ .oembedall-stoqembed .oembedall-summary {
241
+ float: left;
242
+ width: 635px;
243
+ }
244
+
245
+ .oembedall-stoqembed .oembedall-excerpt {
246
+ line-height: 1.2;
247
+ margin: 0;
248
+ padding: 0 0 5px;
249
+ }
250
+
251
+ .oembedall-stoqembed .oembedall-tags {
252
+ float: left;
253
+ line-height: 18px;
254
+ }
255
+ .oembedall-stoqembed .oembedall-tags a:hover {
256
+ text-decoration: none;
257
+ }
258
+
259
+ .oembedall-stoqembed .oembedall-post-tag {
260
+ background-color: #E0EAF1;
261
+ border-bottom: 1px solid #3E6D8E;
262
+ border-right: 1px solid #7F9FB6;
263
+ color: #3E6D8E;
264
+ font-size: 90%;
265
+ line-height: 2.4;
266
+ margin: 2px 2px 2px 0;
267
+ padding: 3px 4px;
268
+ text-decoration: none;
269
+ white-space: nowrap;
270
+ }
271
+ .oembedall-stoqembed .oembedall-post-tag:hover {
272
+ background-color: #3E6D8E;
273
+ border-bottom: 1px solid #37607D;
274
+ border-right: 1px solid #37607D;
275
+ color: #E0EAF1;
276
+ }
277
+
278
+
279
+ .oembedall-stoqembed .oembedall-fr {
280
+ float: right;
281
+ }
282
+
283
+ .oembedall-stoqembed .oembedall-statsarrow {
284
+ background-image: url("http://cdn.sstatic.net/stackoverflow/img/sprites.png?v=3");
285
+ background-repeat: no-repeat;
286
+ overflow: hidden;
287
+ background-position: 0 -435px;
288
+ float: right;
289
+ height: 13px;
290
+ margin-top: 12px;
291
+ width: 7px;
292
+ }
293
+
294
+ .oembedall-facebook1 {
295
+ border: #1A3C6C solid 1px;
296
+ padding:0px;
297
+ font: 13.34px/1.4 verdana;
298
+ width : 500px;
299
+
300
+ }
301
+
302
+ .oembedall-facebook2 {
303
+ background-color: #627add;
304
+ }
305
+ .oembedall-facebook2 a {
306
+ color: #e8e8e8;
307
+ text-decoration:none;
308
+ }
309
+
310
+ .oembedall-facebookBody {
311
+ background-color: #fff;
312
+ vertical-align: top;
313
+ padding: 5px;
314
+ }
315
+
316
+ .oembedall-facebookBody .contents {
317
+ display: inline-block;
318
+ width: 100%;
319
+ }
320
+
321
+ .oembedall-facebookBody div img {
322
+ float: left;
323
+ margin-right: 5px;
324
+ }
325
+
326
+ div.oembedall-lanyard{
327
+ -webkit-box-shadow: none;
328
+ -webkit-transition-delay: 0s;
329
+ -webkit-transition-duration: 0.4000000059604645s;
330
+ -webkit-transition-property: width;
331
+ -webkit-transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
332
+ background-attachment: scroll;
333
+ background-clip: border-box;
334
+ background-color: transparent;
335
+ background-image: none;
336
+ background-origin: padding-box;
337
+ border-bottom-width: 0px;
338
+ border-left-width: 0px;
339
+ border-right-width: 0px;
340
+ border-top-width: 0px;
341
+ box-shadow: none;
342
+ color: #112644;
343
+ display: block;
344
+ float: left;
345
+ font-family: 'Trebuchet MS', Trebuchet, sans-serif;
346
+ font-size: 16px;
347
+ height: 253px;
348
+ line-height: 19px;
349
+ margin-bottom: 0px;
350
+ margin-left: 0px;
351
+ margin-right: 0px;
352
+ margin-top: 0px;
353
+ max-width: none;
354
+ min-height: 0px;
355
+ outline-color: #112644;
356
+ outline-style: none;
357
+ outline-width: 0px;
358
+ overflow-x: visible;
359
+ overflow-y: visible;
360
+ padding-bottom: 0px;
361
+ padding-left: 0px;
362
+ padding-right: 0px;
363
+ padding-top: 0px;
364
+ position: relative;
365
+ text-align: left;
366
+ vertical-align: baseline;
367
+ width: 804px;
368
+ }
369
+
370
+ div.oembedall-lanyard .tagline{
371
+ font-size: 1.5em;
372
+ }
373
+
374
+ div.oembedall-lanyard .wrapper{
375
+ overflow: hidden;
376
+ clear: both;
377
+ }
378
+ div.oembedall-lanyard .split{
379
+ float: left;
380
+ display: inline;
381
+
382
+ }
383
+
384
+ div.oembedall-lanyard .prominent-place .flag:link, div.oembedall-lanyard .prominent-place .flag:visited,div.oembedall-lanyard .prominent-place .flag:hover
385
+ ,div.oembedall-lanyard .prominent-place .flag:focus,div.oembedall-lanyard .prominent-place .flag:active {
386
+ float: left;
387
+ display: block;
388
+ width: 48px;
389
+ height: 48px;
390
+ position: relative;
391
+ top: -5px;
392
+ margin-right: 10px;
393
+ }
394
+
395
+ div.oembedall-lanyard .place-context {
396
+ font-size: 0.889em;
397
+ }
398
+
399
+ div.oembedall-lanyard .prominent-place .sub-place {
400
+ display: block;
401
+ }
402
+
403
+ div.oembedall-lanyard .prominent-place{
404
+ font-size: 1.125em;
405
+ line-height: 1.1em;
406
+ font-weight: normal;
407
+
408
+ }
409
+
410
+ div.oembedall-lanyard .main-date{
411
+ color: #8CB4E0;
412
+ font-weight: bold;
413
+ line-height: 1.1;
414
+
415
+ }
416
+
417
+ div.oembedall-lanyard .first{
418
+ margin-left: 0;
419
+ width: 48.57%;
420
+ margin: 0 0 0 2.857%;
421
+
422
+ }
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'jquery/oembed/rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "jquery-oembed-rails"
8
+ spec.version = Jquery::Oembed::Rails::VERSION
9
+ spec.authors = ["Abdulaziz AlShetwi"]
10
+ spec.email = ["e@ecleel.com"]
11
+ spec.summary = %q{jquery-oembed-all rails assets pipeline.}
12
+ spec.description = %q{gem enable oEmbed for rails using jquery-oembed-all.}
13
+ spec.homepage = "https://github.com/ecleel/jquery-oembed-rails"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "railties", "> 3.1"
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.6"
24
+ spec.add_development_dependency "rake"
25
+ end
@@ -0,0 +1,7 @@
1
+ module Jquery
2
+ module Oembed
3
+ module Rails
4
+ VERSION = "0.1.0"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require "jquery/oembed/rails/version"
2
+
3
+ module Jquery
4
+ module Oembed
5
+ module Rails
6
+ class Engine < ::Rails::Engine
7
+ end
8
+ end
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jquery-oembed-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Abdulaziz AlShetwi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-09-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: gem enable oEmbed for rails using jquery-oembed-all.
56
+ email:
57
+ - e@ecleel.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - Gemfile
64
+ - LICENSE
65
+ - README.md
66
+ - Rakefile
67
+ - app/assets/javascripts/jquery.oembed.js
68
+ - app/assets/stylesheets/jquery.oembed.css
69
+ - jquery-oembed-rails.gemspec
70
+ - lib/jquery/oembed/rails.rb
71
+ - lib/jquery/oembed/rails/version.rb
72
+ homepage: https://github.com/ecleel/jquery-oembed-rails
73
+ licenses:
74
+ - MIT
75
+ metadata: {}
76
+ post_install_message:
77
+ rdoc_options: []
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ requirements: []
91
+ rubyforge_project:
92
+ rubygems_version: 2.2.2
93
+ signing_key:
94
+ specification_version: 4
95
+ summary: jquery-oembed-all rails assets pipeline.
96
+ test_files: []