video_code_embed 0.0.3 → 0.0.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/Gemfile +2 -0
- data/lib/tasks/railtie_task.rake +8 -0
- data/lib/video_embed/my_railtie.rb +20 -0
- data/lib/video_embed/version.rb +1 -1
- data/lib/video_embed.rb +4 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b41e44b9e2791433312c20c5a50b41944fe99f53
|
4
|
+
data.tar.gz: 7e4b0e7bdea5a1bf958e02eb20eafc63d7363ac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a33de8f4deddc0299f80682668955033dfb541f4548a9ef923202407c2ae7d853cb2f362d0864856278425bb5df0eed387262a43299703609bc3da96ac75829
|
7
|
+
data.tar.gz: ea3d3b511b6fa894cf0591bd274e6ac7edccf6472219556e7d91dcd1ad1f9eaeb494c9ee6c64f04ea73e352940eed638116c973c0c91f0c1f7da139a46c2bdc8
|
data/Gemfile
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
module VideoEmbed
|
2
|
+
class VirtualRailtie < ::Rails::Railtie
|
3
|
+
initializer "configure_rails_initialization" do
|
4
|
+
VideoEmbed.railtie_test("Loaded")
|
5
|
+
end
|
6
|
+
rake_tasks do
|
7
|
+
load 'tasks/railtie_task.rake'
|
8
|
+
end
|
9
|
+
config.before_initialize do
|
10
|
+
VideoEmbed.railtie_test("before rails initialization")
|
11
|
+
end
|
12
|
+
|
13
|
+
config.after_initialize do
|
14
|
+
VideoEmbed.railtie_test("after completion of initialization process")
|
15
|
+
end
|
16
|
+
config.before_configuration do
|
17
|
+
VideoEmbed.railtie_test("before loading application.rb file means after boot")
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/video_embed/version.rb
CHANGED
data/lib/video_embed.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
require "video_embed/version"
|
2
2
|
require "video_embed/third_party_api"
|
3
|
+
require "video_embed/my_railtie" if defined?(Rails)
|
3
4
|
|
4
5
|
module VideoEmbed
|
5
6
|
# Your code goes here...
|
7
|
+
def self.railtie_test(message)
|
8
|
+
puts "Message from Video Embed Gem : #{message}"
|
9
|
+
end
|
6
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: video_code_embed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pramod
|
@@ -50,7 +50,9 @@ files:
|
|
50
50
|
- LICENSE.txt
|
51
51
|
- README.md
|
52
52
|
- Rakefile
|
53
|
+
- lib/tasks/railtie_task.rake
|
53
54
|
- lib/video_embed.rb
|
55
|
+
- lib/video_embed/my_railtie.rb
|
54
56
|
- lib/video_embed/third_party_api.rb
|
55
57
|
- lib/video_embed/version.rb
|
56
58
|
- video_embed.gemspec
|