chili_videos 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.1 2011-08-18
2
+
3
+ * Fixed missing link to edit a video's meta-data
4
+
1
5
  == 0.2.0 2011-08-18
2
6
 
3
7
  Minor enhancements:
data/README.md CHANGED
@@ -77,18 +77,18 @@ gem install chili_videos
77
77
 
78
78
  ### Manual steps after gem installation
79
79
 
80
- In your 'config/environment.rb', add:
80
+ In your 'Gemfile', add:
81
81
 
82
82
  ``` ruby
83
- config.gem 'chili_videos'
83
+ gem 'chili_videos'
84
84
  ```
85
85
 
86
- In your 'Rakefile', add:
86
+ Execute `bundle install` (or `bundle update chili_videos` if you had a previous version installed).
87
+
88
+ Next, in your 'Rakefile', add:
87
89
 
88
90
  ``` ruby
89
- require 'chili_videos'
90
91
  require 'tasks/chili_videos_tasks'
91
- ChiliVideosTasks.new
92
92
  ```
93
93
 
94
94
  Run the installation rake task (runs migrations & installs assets)
@@ -122,15 +122,13 @@ RAILS_ENV=production rake chili_videos:uninstall
122
122
  In your 'Rakefile', remove:
123
123
 
124
124
  ``` ruby
125
- require 'chili_videos'
126
125
  require 'tasks/chili_videos_tasks'
127
- ChiliVideosTasks.new"
128
126
  ```
129
127
 
130
- In your 'config/environment.rb', remove:
128
+ In your 'Gemfile', remove:
131
129
 
132
130
  ``` ruby
133
- config.gem 'chili_videos'
131
+ gem 'chili_videos'
134
132
  ```
135
133
 
136
134
  Cycle your application server (mongrel, unicorn, whatevs)...
@@ -42,7 +42,7 @@ module VideosHelper
42
42
  " <a href='#{prjct_video_path(video.project, video)}' class='video-cell small' style='float: left; margin-right: 20px; background-color:#000; text-align: right; display: block; width:128px; height:96px;'>\n" + \
43
43
  " <span style='position:relative; top: 81px; padding-right: 3px; color: #CCC; display: block;'>#{video.length}</span>\n" + \
44
44
  " </a>\n" + \
45
- "<h3 style='border-bottom: none; font-size: 12px; width: 128px; padding: 5px 0 0 0; margin: 0;'>#{link_to(truncate(video.title, :length => 24), prjct_video_path(video.project, video), :title => video.title)}</h3>\n" + \
45
+ "<h3 style='border-bottom: none; font-size: 12px; width: 128px; padding: 5px 0 0 0; margin: 0;'>#{link_to(truncate(video.title, :length => 21), prjct_video_path(video.project, video), :title => video.title)}</h3>\n" + \
46
46
  "<dl style='margin-top: 0;'>\n" + \
47
47
  " <dt style='float: left; padding-right: 3px;'>by:</dt>\n" \
48
48
  " <dd style='margin: 3px; clear: after; display: block;'>#{link_to(truncate(video.user.name, :length => 17), usr_path(video.user))}</dd>\n" + \
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div class="contextual">
6
6
  <%= link_to(l(:new_video_label), new_project_video_path(@project), :class => 'icon icon-add') if User.current.allowed_to?(:add_video, nil, :global => true) %>
7
- <%= link_to(l(:edit_video_label), edit_project_video_path(@project), :class => 'icon icon-edit video-edit') if User.current.allowed_to?(:modify_video, nil, :global => true) %>
7
+ <%= link_to(l(:edit_video_label), edit_project_video_path(@project), :class => 'icon icon-edit video-edit') if User.current.allowed_to?(:modify_videos, nil, :global => true) %>
8
8
  <%= link_to(l(:delete_video_label), project_video_path(@project), :class => 'icon icon-del video-del', :confirm => l(:confirm_video_deletion), :method => :delete) if User.current.allowed_to?(:delete_video, nil, :global => true) %>
9
9
  </div>
10
10
 
data/lib/chili_videos.rb CHANGED
@@ -10,7 +10,7 @@ require 'chili_videos/config'
10
10
  module ChiliVideos
11
11
  extend self
12
12
 
13
- VERSION = '0.2.0' unless defined?(ChiliVideos::VERSION)
13
+ VERSION = '0.2.1' unless defined?(ChiliVideos::VERSION)
14
14
 
15
15
  def configured?
16
16
  !Config.api_key.blank? && !Config.workflow.blank?
@@ -27,6 +27,15 @@ class ContributorTasks < Rake::TaskLib
27
27
  puts "No new contributors."
28
28
  end
29
29
  end
30
+
31
+ task :release do
32
+ puts "#####################"
33
+ puts "For the twitters"
34
+ puts "#####################"
35
+ puts "[ANN] chili_videos v#{ChiliVideos::VERSION} released. Changes: http://bit.ly/orxPzQ, Repo: http://bit.ly/hExlRR #chiliproject"
36
+ puts "#####################"
37
+
38
+ end
30
39
  end
31
40
 
32
41
  private
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chili_videos
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Kersten
metadata.gz.sig CHANGED
Binary file