brewdler 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Andrew Nesbitt
1
+ Copyright (c) 2012 Andrew Nesbitt
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -4,7 +4,7 @@ Bundler for non-ruby dependencies from homebrew
4
4
 
5
5
  ## Requirements
6
6
 
7
- [Homebrew]()
7
+ [Homebrew](http://github.com/mxcl/homebrew) is used for installing the dependencies, it only works on a mac and so does this gem.
8
8
 
9
9
  ## Usage
10
10
 
@@ -22,11 +22,20 @@ Then list your homebrew based dependencies in your `Brewfile`:
22
22
  mongodb
23
23
  sphinx
24
24
  imagemagick
25
+ mysql
25
26
 
26
27
  You can then easily install all of the dependencies on a new mac like so:
27
28
 
28
29
  $ brewdle install
29
30
 
31
+ ## Note
32
+
33
+ Homebrew does not support installing specific versions of a library, only the most recent one so there is no good mechanism for storing installed versions in a .lock file.
34
+
35
+ If your software needs specific versions then perhaps you'll want to look at using [Vagrant](http://vagrantup.com/) to better match your development and production environments.
36
+
37
+ (Or there is always Macports...)
38
+
30
39
  ## Development
31
40
 
32
41
  Source hosted at [GitHub](http://github.com/andrew/brewdler).
@@ -16,7 +16,7 @@ command :install do |c|
16
16
  dependencies = []
17
17
  File.open(File.join(Dir.pwd, 'Brewfile')).each { |line|
18
18
  line.chomp!
19
- if line.length > 0
19
+ if line.length > 0 && !comment?(line)
20
20
  dependencies << line
21
21
  end
22
22
  }
@@ -25,7 +25,7 @@ command :install do |c|
25
25
  end
26
26
 
27
27
  dependencies.each do |dependency|
28
- installed_version = installed?(dependency)
28
+ installed_version = installed?(dependency)
29
29
  puts "#{installed_version ? 'Using' : 'Installing'}: #{dependency} #{installed_version}"
30
30
  install(dependency) unless installed_version
31
31
  end
@@ -49,3 +49,7 @@ def installed?(name)
49
49
  return installed.split(' ').last
50
50
  end
51
51
  end
52
+
53
+ def comment?(line)
54
+ line =~ /^ *#/
55
+ end
@@ -1,3 +1,3 @@
1
1
  module Brewdler
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,47 +1,35 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: brewdler
3
- version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 0
10
- version: 0.1.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Andrew Nesbitt
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-06-25 00:00:00 +01:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-07-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: commander
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70196044992340 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :runtime
34
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *70196044992340
35
25
  description:
36
- email:
26
+ email:
37
27
  - andrewnez@gmail.com
38
- executables:
28
+ executables:
39
29
  - brewdle
40
30
  extensions: []
41
-
42
31
  extra_rdoc_files: []
43
-
44
- files:
32
+ files:
45
33
  - .gitignore
46
34
  - Gemfile
47
35
  - LICENSE
@@ -51,39 +39,28 @@ files:
51
39
  - brewdler.gemspec
52
40
  - lib/brewdler.rb
53
41
  - lib/brewdler/version.rb
54
- has_rdoc: true
55
42
  homepage:
56
43
  licenses: []
57
-
58
44
  post_install_message:
59
45
  rdoc_options: []
60
-
61
- require_paths:
46
+ require_paths:
62
47
  - lib
63
- required_ruby_version: !ruby/object:Gem::Requirement
48
+ required_ruby_version: !ruby/object:Gem::Requirement
64
49
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- hash: 3
69
- segments:
70
- - 0
71
- version: "0"
72
- required_rubygems_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
55
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
- version: "0"
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
81
60
  requirements: []
82
-
83
61
  rubyforge_project:
84
- rubygems_version: 1.3.7
62
+ rubygems_version: 1.8.11
85
63
  signing_key:
86
64
  specification_version: 3
87
65
  summary: Bundler for non-ruby dependencies from homebrew
88
66
  test_files: []
89
-