embed_me 0.1.3 → 0.1.4
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 +4 -4
- data/README.md +18 -7
- data/lib/embed_me/version.rb +1 -1
- metadata +1 -6
- data/app/controllers/embed_me/application_controller.rb +0 -5
- data/app/helpers/embed_me/application_helper.rb +0 -4
- data/app/jobs/embed_me/application_job.rb +0 -4
- data/app/mailers/embed_me/application_mailer.rb +0 -6
- data/app/models/embed_me/application_record.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dda6ba0fa5e0b54818fad9ef0a7a66e1d5070e4c301d1adfb3bfce86be3e365
|
4
|
+
data.tar.gz: 13eefa617694cb83162141313f4c6f4e5e9975c8a5afa30c880eb7294a86abc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b620f0fcae3dba68a31afc00d6566a5c6ee60ed786b9c41001e17a13223ce1840b4facc3331762f32ec031d7e9f1020e6d847a5f85a50b59b76138879f4c864
|
7
|
+
data.tar.gz: 6f7eeffbfb718e2e2c44bb7e329c667697ba079f5f97ff44942bb5d6b297ca6d0b7223e294e9cb974eabe7232270264c59f968f2c559d6e87ed33e6a49ad0f1f
|
data/README.md
CHANGED
@@ -2,22 +2,33 @@
|
|
2
2
|
EmbedMe allows you and your users to easily embed your rails application or parts of it on other websites.
|
3
3
|
|
4
4
|
|
5
|
+
## Table of Contents
|
6
|
+
- [Use Cases](#use-cases)
|
7
|
+
- [Installation](#installation)
|
8
|
+
- [Usage](#usage)
|
9
|
+
- [Define Embeddable Routes](#define-embeddable-routes)
|
10
|
+
- [Adjust Behaviour of Application](#adjust-behaviour-of-application)
|
11
|
+
- [Provide Embed-Code](#provide-embed-code)
|
12
|
+
- [Adjust Links on embeddable Pages](#adjust-links-on-embeddable-pages)
|
13
|
+
- [License](#license)
|
14
|
+
|
15
|
+
|
5
16
|
## Use Cases
|
6
17
|
|
7
18
|
### YouTube
|
8
19
|
YouTube has offered this feature for years. Users have the option to embed a video from YouTube on their own blog or website. While normal YouTube content (www.youtube.com/watch?v=) is blocked by the X-Frame options, content via a YouTube Embed URL (www.youtube.com/embed/...) can be displayed in a frame. If a video is opened in a frame, the appearance is optimized so that it works well in a frame (no ratings, no comments, only video). Although YouTube does not use this gem for this function, the way this gem works is adapted accordingly.
|
9
20
|
|
10
|
-

|
21
|
+

|
11
22
|
|
12
|
-

|
23
|
+

|
13
24
|
|
14
25
|
|
15
26
|
### Other Examples
|
16
27
|
Similar functions are also available on Twitter, Instagram, Google Maps and many other sites.
|
17
28
|
|
18
|
-

|
29
|
+

|
19
30
|
|
20
|
-

|
31
|
+

|
21
32
|
|
22
33
|
|
23
34
|
## Installation
|
@@ -89,7 +100,7 @@ You may want to show the user of your application the code to include the resour
|
|
89
100
|
|
90
101
|
To get the default interface, use the function `embed_frontend`, which returns an HTML button to open a basic pop-up that allows the user of the web page to copy the embedding code. The default design can be overridden with a file at `app/views/embed_me/_embed_frontend.html.erb`.
|
91
102
|
|
92
|
-
```
|
103
|
+
```
|
93
104
|
<div class="container-fluid d-flex align-items-center">
|
94
105
|
<!-- some frontend stuff -->
|
95
106
|
<%= embed_frontend %>
|
@@ -98,7 +109,7 @@ To get the default interface, use the function `embed_frontend`, which returns a
|
|
98
109
|
|
99
110
|
Default Popup will look like this:
|
100
111
|
|
101
|
-

|
112
|
+

|
102
113
|
|
103
114
|
#### Default Embedding Code
|
104
115
|
|
@@ -146,7 +157,7 @@ embeddable_link_to("Embeddable", embeddable_path)
|
|
146
157
|
# => <a href="/embed/embeddable">Embeddable</a>
|
147
158
|
```
|
148
159
|
|
149
|
-
#### Embedded Link Available
|
160
|
+
#### Embedded Link Available
|
150
161
|
|
151
162
|
Checks whether there is an embedded version of a specific route.
|
152
163
|
|
data/lib/embed_me/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embed_me
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Bohn
|
@@ -57,11 +57,6 @@ files:
|
|
57
57
|
- Rakefile
|
58
58
|
- app/assets/config/embed_me_manifest.js
|
59
59
|
- app/assets/stylesheets/embed_me/application.css
|
60
|
-
- app/controllers/embed_me/application_controller.rb
|
61
|
-
- app/helpers/embed_me/application_helper.rb
|
62
|
-
- app/jobs/embed_me/application_job.rb
|
63
|
-
- app/mailers/embed_me/application_mailer.rb
|
64
|
-
- app/models/embed_me/application_record.rb
|
65
60
|
- app/views/embed_me/_embed_frontend.html.erb
|
66
61
|
- app/views/layouts/embed_me/application.html.erb
|
67
62
|
- config/routes.rb
|