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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47690513353276d2c352a5ecb6d70b88f0d021f2
4
- data.tar.gz: 105f927d56efd24a6f696df5cab4023fc06f8f3a
3
+ metadata.gz: b41e44b9e2791433312c20c5a50b41944fe99f53
4
+ data.tar.gz: 7e4b0e7bdea5a1bf958e02eb20eafc63d7363ac4
5
5
  SHA512:
6
- metadata.gz: 74d592892a89f01e94095ba60f0c022477888c72b06d3af55b14664964979b5e8c104780d1b54ba900d0a74cbd3ace65936f9c064d087188a932afb853525462
7
- data.tar.gz: 11eacb27f28bc84ab318eadb0c9dfac575e47ed78a5412a780995bbe8b849ed5671085d615b83a10ffdb6a5b0834567efcb7254a424ea0f4098a602d50fd4f63
6
+ metadata.gz: 1a33de8f4deddc0299f80682668955033dfb541f4548a9ef923202407c2ae7d853cb2f362d0864856278425bb5df0eed387262a43299703609bc3da96ac75829
7
+ data.tar.gz: ea3d3b511b6fa894cf0591bd274e6ac7edccf6472219556e7d91dcd1ad1f9eaeb494c9ee6c64f04ea73e352940eed638116c973c0c91f0c1f7da139a46c2bdc8
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in video_embed.gemspec
4
4
  gemspec
5
+
6
+ gem "rails"
@@ -0,0 +1,8 @@
1
+ namespace :railtie do
2
+ desc "Test task from Railtie"
3
+ task :my_task1 => :environment do
4
+ puts "task from video Embed code"
5
+ end
6
+
7
+
8
+ end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module VideoEmbed
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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