beet 0.6.8 → 0.6.9

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.8
1
+ 0.6.9
@@ -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"
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-18}
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"]
@@ -10,4 +10,4 @@ require 'beet/gem_location_map'
10
10
  require 'beet/template_location_map'
11
11
 
12
12
  # for camelize and others
13
- require 'active_support/core_ext/string/inflections'
13
+ require 'active_support/inflector'
@@ -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 "Error", "File matches on '#{name}'. Skipping for now."
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 = underscored_model_name.pluralize
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 "db/migrate/#{migration_file}.rb", 'def self.up', do
13
+ add_after migration_file, 'def self.up', do
14
14
  %{
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
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
- - 8
9
- version: 0.6.8
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-18 00:00:00 -04:00
17
+ date: 2010-09-25 00:00:00 -04:00
18
18
  default_executable: beet
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency