beet 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/beet.gemspec +2 -2
- data/lib/beet.rb +1 -1
- data/lib/beet/rails.rb +1 -1
- data/lib/beet/recipes/rails3/file_uploads/paperclip.rb +6 -6
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.9
|
data/beet.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{beet}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jack Dempsey"]
|
12
|
-
s.date = %q{2010-09-
|
12
|
+
s.date = %q{2010-09-25}
|
13
13
|
s.default_executable = %q{beet}
|
14
14
|
s.email = %q{jack.dempsey@gmail.com}
|
15
15
|
s.executables = ["beet"]
|
data/lib/beet.rb
CHANGED
data/lib/beet/rails.rb
CHANGED
@@ -64,7 +64,7 @@ module Beet
|
|
64
64
|
def gem(name, options = {})
|
65
65
|
log 'gem', name
|
66
66
|
if File.read("Gemfile").include?(name)
|
67
|
-
log "
|
67
|
+
log "Warning", "Gemfile already mentions '#{name}'. Skipping."
|
68
68
|
return
|
69
69
|
end
|
70
70
|
group = options.delete(:group) || @_gem_group
|
@@ -6,16 +6,16 @@ underscored_model_name = model_name.underscore
|
|
6
6
|
|
7
7
|
in_root do
|
8
8
|
if File.exists?("app/models/#{model_name}.rb")
|
9
|
-
table_name =
|
9
|
+
table_name = model_name.tableize
|
10
10
|
|
11
11
|
generate "migration add_#{attachment_name}_to_#{table_name}"
|
12
12
|
migration_file = Dir["db/migrate/*add_#{attachment_name}_to_#{table_name}*"].first
|
13
|
-
add_after
|
13
|
+
add_after migration_file, 'def self.up', do
|
14
14
|
%{
|
15
|
-
add_column :#{table_name},
|
16
|
-
add_column :#{table_name},
|
17
|
-
add_column :#{table_name},
|
18
|
-
add_column :#{table_name},
|
15
|
+
add_column :#{table_name}, :#{attachment_name}_file_name, :string
|
16
|
+
add_column :#{table_name}, :#{attachment_name}_content_type, :string
|
17
|
+
add_column :#{table_name}, :#{attachment_name}_file_size, :integer
|
18
|
+
add_column :#{table_name}, :#{attachment_name}_updated_at, :datetime
|
19
19
|
}
|
20
20
|
end
|
21
21
|
else
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 9
|
9
|
+
version: 0.6.9
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jack Dempsey
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-09-
|
17
|
+
date: 2010-09-25 00:00:00 -04:00
|
18
18
|
default_executable: beet
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|