refinerycms-vimeo-videos 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +4 -0
- data/Rakefile +2 -0
- data/TODO +2 -0
- data/app/controllers/admin/vimeo_base_controller.rb +5 -5
- data/app/models/vimeo_meta_cache.rb +7 -6
- data/lib/refinerycms-vimeo-videos.rb +0 -9
- data/lib/refinerycms_vimeo_videos/version.rb +3 -0
- data/refinerycms-vimeo-videos.gemspec +88 -0
- metadata +9 -26
- data/readme.md +0 -10
data/.gitignore
CHANGED
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -29,11 +29,11 @@ module Admin
|
|
29
29
|
|
30
30
|
def get_account
|
31
31
|
@account = {
|
32
|
-
:username => RefinerySetting.find_or_set(
|
33
|
-
:consumer_key => RefinerySetting.
|
34
|
-
:consumer_secret => RefinerySetting.
|
35
|
-
:token => RefinerySetting.
|
36
|
-
:secret => RefinerySetting.
|
32
|
+
:username => RefinerySetting.find_or_set(:vimeo_username, :value => "Username"),
|
33
|
+
:consumer_key => RefinerySetting.find_or_set(:vimeo_consumer_key, :value => "Consumer Key"),
|
34
|
+
:consumer_secret => RefinerySetting.find_or_set(:vimeo_consumer_secret, :value => "Consumer Secret"),
|
35
|
+
:token => RefinerySetting.find_or_set(:vimeo_token, :value => 'Token').value,
|
36
|
+
:secret => RefinerySetting.find_or_set(:vimeo_secret, :value => 'Secret').value}
|
37
37
|
end
|
38
38
|
|
39
39
|
end
|
@@ -3,7 +3,7 @@ class VimeoMetaCache < ActiveRecord::Base
|
|
3
3
|
|
4
4
|
set_table_name "vimeo_meta_cache"
|
5
5
|
|
6
|
-
has_many :
|
6
|
+
has_many :vimeo_embed_caches, :dependent => :destroy
|
7
7
|
|
8
8
|
belongs_to :image, :class_name => 'Image'
|
9
9
|
|
@@ -45,12 +45,13 @@ class VimeoMetaCache < ActiveRecord::Base
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
+
|
48
49
|
def get_account
|
49
50
|
@account = {
|
50
|
-
:username => RefinerySetting.find_or_set(
|
51
|
-
:consumer_key => RefinerySetting.
|
52
|
-
:consumer_secret => RefinerySetting.
|
53
|
-
:token => RefinerySetting.
|
54
|
-
:secret => RefinerySetting.
|
51
|
+
:username => RefinerySetting.find_or_set(:vimeo_username, :value => "Username"),
|
52
|
+
:consumer_key => RefinerySetting.find_or_set(:vimeo_consumer_key, :value => "Consumer Key"),
|
53
|
+
:consumer_secret => RefinerySetting.find_or_set(:vimeo_consumer_secret, :value => "Consumer Secret"),
|
54
|
+
:token => RefinerySetting.find_or_set(:vimeo_token, :value => 'Token').value,
|
55
|
+
:secret => RefinerySetting.find_or_set(:vimeo_secret, :value => 'Secret').value}
|
55
56
|
end
|
56
57
|
end
|
@@ -7,15 +7,6 @@ module Refinery
|
|
7
7
|
app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
|
8
8
|
end
|
9
9
|
|
10
|
-
# Make sure these settings exist
|
11
|
-
initializer "account settings" do |app|
|
12
|
-
RefinerySetting.find_or_set('vimeo_consumer_key', :value => "Consumer Key")
|
13
|
-
RefinerySetting.find_or_set('vimeo_consumer_secret', :value => "Consumer Secret")
|
14
|
-
RefinerySetting.find_or_set('vimeo_token', :value => "Token")
|
15
|
-
RefinerySetting.find_or_set('vimeo_secret', :value => "Secret")
|
16
|
-
RefinerySetting.find_or_set('vimeo_username', :value => "Username")
|
17
|
-
end
|
18
|
-
|
19
10
|
config.after_initialize do
|
20
11
|
Refinery::Plugin.register do |plugin|
|
21
12
|
plugin.name = "vimeo_videos"
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# DO NOT EDIT THIS FILE DIRECTLY! Instead, use lib/gemspec.rb to generate it.
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "refinerycms_vimeo_videos/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = %q{refinerycms-vimeo-videos}
|
7
|
+
s.version = RefinerycmsVimeoVideos::VERSION
|
8
|
+
s.description = 'Ruby on Rails Vimeo Videos engine for Refinery CMS'
|
9
|
+
s.date = %q{2011-04-20}
|
10
|
+
s.summary = 'Vimeo Videos engine for Refinery CMS'
|
11
|
+
s.email = %q{mail@bitflut.com}
|
12
|
+
s.homepage = %q{http://bitflut.com}
|
13
|
+
s.authors = ['Marian Andre']
|
14
|
+
s.license = %q{MIT}
|
15
|
+
s.require_paths = %w(lib)
|
16
|
+
s.files = Dir['lib/**/*', 'config/**/*', 'app/**/*']
|
17
|
+
|
18
|
+
s.add_dependency 'vimeo', '~> 1.3.0'
|
19
|
+
s.add_dependency 'httparty', '~> 0.6.1'
|
20
|
+
|
21
|
+
s.files = [
|
22
|
+
'.gitignore',
|
23
|
+
'Gemfile',
|
24
|
+
'Gemfile',
|
25
|
+
'Rakefile',
|
26
|
+
'TODO',
|
27
|
+
'app',
|
28
|
+
'app/controllers',
|
29
|
+
'app/controllers/admin',
|
30
|
+
'app/controllers/admin/vimeo_account_controller.rb',
|
31
|
+
'app/controllers/admin/vimeo_base_controller.rb',
|
32
|
+
'app/controllers/admin/vimeo_videos_controller.rb',
|
33
|
+
'app/models',
|
34
|
+
'app/models/vimeo_embed_cache.rb',
|
35
|
+
'app/models/vimeo_meta_cache.rb',
|
36
|
+
'app/models/vimeo_video.rb',
|
37
|
+
'app/views',
|
38
|
+
'app/views/admin',
|
39
|
+
'app/views/admin/vimeo_videos',
|
40
|
+
'app/views/admin/vimeo_videos/_existing_vimeo_video.html.erb',
|
41
|
+
'app/views/admin/vimeo_videos/_form.html.erb',
|
42
|
+
'app/views/admin/vimeo_videos/_vimeo_video.html.haml',
|
43
|
+
'app/views/admin/vimeo_videos/index.js.erb',
|
44
|
+
'app/views/admin/vimeo_videos/insert.html.erb',
|
45
|
+
'app/views/shared',
|
46
|
+
'app/views/shared/admin',
|
47
|
+
'app/views/shared/admin/_vimeo_picker.html.erb',
|
48
|
+
'config',
|
49
|
+
'config/locales',
|
50
|
+
'config/locales/en.yml',
|
51
|
+
'config/locales/lolcat.yml',
|
52
|
+
'config/locales/nb.yml',
|
53
|
+
'config/locales/nl.yml',
|
54
|
+
'config/routes.rb',
|
55
|
+
'db',
|
56
|
+
'db/migrate',
|
57
|
+
'db/migrate/create_vimeo_embed_cache.rb',
|
58
|
+
'db/migrate/create_vimeo_meta_cache.rb',
|
59
|
+
'db/migrate/create_vimeo_videos.rb',
|
60
|
+
'db/seeds',
|
61
|
+
'db/seeds/vimeo_videos.rb',
|
62
|
+
'features',
|
63
|
+
'features/manage_vimeo_videos.feature',
|
64
|
+
'features/step_definitions',
|
65
|
+
'features/step_definitions/vimeo_video_steps.rb',
|
66
|
+
'features/support',
|
67
|
+
'features/support/paths.rb',
|
68
|
+
'lib',
|
69
|
+
'lib/generators',
|
70
|
+
'lib/generators/refinerycms_vimeo_videos_generator.rb',
|
71
|
+
'lib/refinerycms-vimeo-videos.rb',
|
72
|
+
'lib/refinerycms_vimeo_videos',
|
73
|
+
'lib/refinerycms_vimeo_videos/version.rb',
|
74
|
+
'lib/tasks',
|
75
|
+
'lib/tasks/vimeo_videos.rake',
|
76
|
+
'public',
|
77
|
+
'public/javascripts',
|
78
|
+
'public/javascripts/refinery',
|
79
|
+
'public/javascripts/refinery/vimeo_videos.js',
|
80
|
+
'public/stylesheets',
|
81
|
+
'public/stylesheets/admin',
|
82
|
+
'public/stylesheets/admin/vimeo_videos.css',
|
83
|
+
'refinerycms-vimeo-videos.gemspec',
|
84
|
+
'spec',
|
85
|
+
'spec/models',
|
86
|
+
'spec/models/vimeo_video_spec.rb'
|
87
|
+
]
|
88
|
+
end
|
metadata
CHANGED
@@ -1,21 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-vimeo-videos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 31
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 2
|
10
|
-
version: 0.1.2
|
5
|
+
version: 0.1.3
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
|
-
-
|
8
|
+
- Marian Andre
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-
|
13
|
+
date: 2011-04-20 00:00:00 +02:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
@@ -26,11 +21,6 @@ dependencies:
|
|
26
21
|
requirements:
|
27
22
|
- - ~>
|
28
23
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 27
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 3
|
33
|
-
- 0
|
34
24
|
version: 1.3.0
|
35
25
|
type: :runtime
|
36
26
|
version_requirements: *id001
|
@@ -42,11 +32,6 @@ dependencies:
|
|
42
32
|
requirements:
|
43
33
|
- - ~>
|
44
34
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 5
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
- 6
|
49
|
-
- 1
|
50
35
|
version: 0.6.1
|
51
36
|
type: :runtime
|
52
37
|
version_requirements: *id002
|
@@ -60,6 +45,9 @@ extra_rdoc_files: []
|
|
60
45
|
|
61
46
|
files:
|
62
47
|
- .gitignore
|
48
|
+
- Gemfile
|
49
|
+
- Rakefile
|
50
|
+
- TODO
|
63
51
|
- app/controllers/admin/vimeo_account_controller.rb
|
64
52
|
- app/controllers/admin/vimeo_base_controller.rb
|
65
53
|
- app/controllers/admin/vimeo_videos_controller.rb
|
@@ -86,10 +74,11 @@ files:
|
|
86
74
|
- features/support/paths.rb
|
87
75
|
- lib/generators/refinerycms_vimeo_videos_generator.rb
|
88
76
|
- lib/refinerycms-vimeo-videos.rb
|
77
|
+
- lib/refinerycms_vimeo_videos/version.rb
|
89
78
|
- lib/tasks/vimeo_videos.rake
|
90
79
|
- public/javascripts/refinery/vimeo_videos.js
|
91
80
|
- public/stylesheets/admin/vimeo_videos.css
|
92
|
-
-
|
81
|
+
- refinerycms-vimeo-videos.gemspec
|
93
82
|
- spec/models/vimeo_video_spec.rb
|
94
83
|
has_rdoc: true
|
95
84
|
homepage: http://bitflut.com
|
@@ -105,23 +94,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
94
|
requirements:
|
106
95
|
- - ">="
|
107
96
|
- !ruby/object:Gem::Version
|
108
|
-
hash: 3
|
109
|
-
segments:
|
110
|
-
- 0
|
111
97
|
version: "0"
|
112
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
99
|
none: false
|
114
100
|
requirements:
|
115
101
|
- - ">="
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
hash: 3
|
118
|
-
segments:
|
119
|
-
- 0
|
120
103
|
version: "0"
|
121
104
|
requirements: []
|
122
105
|
|
123
106
|
rubyforge_project:
|
124
|
-
rubygems_version: 1.
|
107
|
+
rubygems_version: 1.5.2
|
125
108
|
signing_key:
|
126
109
|
specification_version: 3
|
127
110
|
summary: Vimeo Videos engine for Refinery CMS
|
data/readme.md
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# Vimeo Videos engine for Refinery CMS.
|
2
|
-
|
3
|
-
## How to build this engine as a gem
|
4
|
-
|
5
|
-
cd vendor/engines/vimeo_videos
|
6
|
-
gem build refinerycms-vimeo_videos.gempspec
|
7
|
-
gem install refinerycms-vimeo_videos.gem
|
8
|
-
|
9
|
-
# Sign up for a http://rubygems.org/ account and publish the gem
|
10
|
-
gem push refinerycms-vimeo_videos.gem
|