beet 0.6.1 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{beet}
8
- s.version = "0.6.1"
8
+ s.version = "0.6.3"
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-08-31}
12
+ s.date = %q{2010-09-03}
13
13
  s.default_executable = %q{beet}
14
14
  s.email = %q{jack.dempsey@gmail.com}
15
15
  s.executables = ["beet"]
@@ -105,7 +105,7 @@ module Beet
105
105
  #
106
106
  def append_file(relative_destination, data)
107
107
  path = destination_path(relative_destination)
108
- File.open(path, 'ab') { |file| file.write(data) }
108
+ File.open(path, 'ab') { |file| file.write("\n#{data}") }
109
109
  end
110
110
 
111
111
  # Add text after matching line
@@ -59,7 +59,8 @@ module Beet
59
59
  @_gem_group = nil
60
60
  end
61
61
 
62
- # Adds an entry into config/environment.rb for the supplied gem :
62
+ # TODO prevent same gem from being added twice
63
+ # Passes gem info along to gemfile method that handles adding it in
63
64
  def gem(name, options = {})
64
65
  log 'gem', name
65
66
  group = options.delete(:group) || @_gem_group
@@ -1,3 +1,7 @@
1
+ gem "mysql"
2
+
3
+ run "bundle install"
4
+
1
5
  file 'config/database.yml' do
2
6
  %{
3
7
  ---
@@ -1,9 +1,5 @@
1
- %w(application controls dragdrop effects prototype rails).each do |filename|
2
- FileUtils.rm("public/javascripts/#{filename}.js")
3
- end
1
+ gem "jquery-rails"
4
2
 
5
- run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.4.1.min.js > public/javascripts/jquery.js"
6
- run "curl -L http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js > public/javascripts/jquery.form.js"
7
- run "curl -L http://github.com/rails/jquery-ujs/raw/master/src/rails.js > public/javascripts/rails.js"
3
+ run "bundle install"
8
4
 
9
- prepend_file 'public/javascripts/rails.js', %{jQuery.ajaxSetup({'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript");}})}
5
+ generate "jquery:install --ui"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 3
10
+ version: 0.6.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jack Dempsey
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-31 00:00:00 -04:00
18
+ date: 2010-09-03 00:00:00 -04:00
19
19
  default_executable: beet
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency