refinerycms-vimeo-videos 0.1.8 → 0.1.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +1,23 @@
1
1
  require 'refinerycms-base'
2
2
  require 'vimeo'
3
-
4
- require 'refinerycms_vimeo_videos/account'
5
- require 'refinerycms_vimeo_videos/active_record_extension'
6
- require 'refinerycms_vimeo_videos/url_tempfile'
3
+ require 'refinerycms-vimeo-videos/version'
7
4
 
8
5
  module Refinery
9
6
  module VimeoVideos
7
+
8
+ autoload :URLTempfile, 'refinerycms-vimeo-videos/url_tempfile.rb'
9
+ autoload :Account, 'refinerycms-vimeo-videos/account.rb'
10
+ autoload :ActiveRecordExtension, 'refinerycms-vimeo-videos/active_record_extension.rb'
11
+
10
12
  class Engine < Rails::Engine
11
13
  initializer "static assets" do |app|
12
14
  app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
13
15
  end
14
16
 
17
+ initializer "add active record extensions" do |app|
18
+ ActiveRecord::Base.class_eval { include Refinery::VimeoVideos::ActiveRecordExtension }
19
+ end
20
+
15
21
  config.after_initialize do
16
22
  Refinery::Plugin.register do |plugin|
17
23
  plugin.version = Refinery::VimeoVideos::VERSION
@@ -35,6 +35,4 @@ module Refinery
35
35
 
36
36
  end
37
37
  end
38
- end
39
-
40
- ActiveRecord::Base.class_eval { include Refinery::VimeoVideos::ActiveRecordExtension }
38
+ end
@@ -1,5 +1,5 @@
1
1
  module Refinery
2
2
  module VimeoVideos
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.8.1"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  $:.push File.expand_path("../lib", __FILE__)
2
- require "refinerycms_vimeo_videos/version"
2
+ require "refinerycms-vimeo-videos/version"
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = %q{refinerycms-vimeo-videos}
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: refinerycms-vimeo-videos
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.8
5
+ version: 0.1.8.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Marian Andre
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-28 00:00:00 +02:00
13
+ date: 2011-04-29 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -71,10 +71,10 @@ files:
71
71
  - db/seeds/vimeo_videos.rb
72
72
  - lib/generators/refinerycms_vimeo_videos_generator.rb
73
73
  - lib/refinerycms-vimeo-videos.rb
74
- - lib/refinerycms_vimeo_videos/account.rb
75
- - lib/refinerycms_vimeo_videos/active_record_extension.rb
76
- - lib/refinerycms_vimeo_videos/url_tempfile.rb
77
- - lib/refinerycms_vimeo_videos/version.rb
74
+ - lib/refinerycms-vimeo-videos/account.rb
75
+ - lib/refinerycms-vimeo-videos/active_record_extension.rb
76
+ - lib/refinerycms-vimeo-videos/url_tempfile.rb
77
+ - lib/refinerycms-vimeo-videos/version.rb
78
78
  - lib/tasks/vimeo_videos.rake
79
79
  - public/javascripts/refinery/vimeo_videos.js
80
80
  - public/stylesheets/admin/vimeo_videos.css