brewdler 0.5.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a03b5d21c49476129da9d0191bafa618f14d6543
4
+ data.tar.gz: 816d4cddde94cf2888046dc1111a1278a76ecdb9
5
+ SHA512:
6
+ metadata.gz: 367fc929f579229fb1f69075d9fb576a9520b27ff3bae43346c1b91deb7be5f3b761ef6e370edd532611fb9d0dd41c9d3fbaf964bb1035a5d116358c4fa61718
7
+ data.tar.gz: 2bb449bc57a54d8a1154fede14d9df23c04539adf3c18ee680304e55e973ef163b80680b6cbb28ed4eb4e100bab2712c625753f0bc3c62f40b0cf17420ae3d63
@@ -1,15 +1,13 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
4
3
  - 1.9.2
5
4
  - 1.9.3
6
5
  - 2.0.0
7
6
  - ruby-head
8
- - jruby-18mode
9
7
  - jruby-19mode
10
8
  - jruby-head
11
9
  - rbx-18mode
12
10
  - rbx-19mode
13
11
  matrix:
14
12
  allow_failures:
15
- - rvm: ruby-head
13
+ - rvm: ruby-head
@@ -13,9 +13,11 @@ Gem::Specification.new do |gem|
13
13
  gem.name = "brewdler"
14
14
  gem.require_paths = ['lib']
15
15
  gem.version = Brewdler::VERSION
16
+ gem.required_ruby_version = '>= 1.9.2'
16
17
 
17
18
  gem.add_dependency 'commander'
18
- gem.add_development_dependency 'rspec'
19
+ gem.add_dependency 'mime-types', '1.25'
20
+ gem.add_development_dependency 'rspec', '~> 2.99.0'
19
21
  gem.add_development_dependency 'rake'
20
22
  gem.add_development_dependency 'simplecov'
21
23
  gem.add_development_dependency 'coveralls'
@@ -2,17 +2,21 @@ module Brewdler::Commands
2
2
  class Install
3
3
  def self.run
4
4
  begin
5
- file = File.read(File.join(Dir.pwd, "Brewfile"))
6
- Brewdler::Dsl.new(file).process
5
+ Brewdler::Dsl.new(brewfile).process
7
6
  rescue Errno::ENOENT => e
8
7
  raise "No Brewfile found"
9
8
  rescue NameError
10
- file = File.open(File.join(Dir.pwd, "Brewfile"))
11
- file.find_all do |name|
9
+ brewfile.find_all do |name|
12
10
  name.chomp!
13
11
  Brewdler::BrewInstaller.install(name) if name.length > 0 && name !~ /^ *#/
14
12
  end
15
13
  end
16
14
  end
15
+
16
+ private
17
+
18
+ def self.brewfile
19
+ File.read(Dir['{*,.*}{B,b}rewfile'].first)
20
+ end
17
21
  end
18
22
  end
@@ -1,3 +1,3 @@
1
1
  module Brewdler
2
- VERSION = "0.5.0"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brewdler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Andrew Nesbitt
@@ -11,86 +10,90 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-08-17 00:00:00.000000000 Z
13
+ date: 2014-10-06 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: commander
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ! '>='
19
+ - - ">="
22
20
  - !ruby/object:Gem::Version
23
21
  version: '0'
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ! '>='
26
+ - - ">="
30
27
  - !ruby/object:Gem::Version
31
28
  version: '0'
29
+ - !ruby/object:Gem::Dependency
30
+ name: mime-types
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - '='
34
+ - !ruby/object:Gem::Version
35
+ version: '1.25'
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - '='
41
+ - !ruby/object:Gem::Version
42
+ version: '1.25'
32
43
  - !ruby/object:Gem::Dependency
33
44
  name: rspec
34
45
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
46
  requirements:
37
- - - ! '>='
47
+ - - "~>"
38
48
  - !ruby/object:Gem::Version
39
- version: '0'
49
+ version: 2.99.0
40
50
  type: :development
41
51
  prerelease: false
42
52
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
53
  requirements:
45
- - - ! '>='
54
+ - - "~>"
46
55
  - !ruby/object:Gem::Version
47
- version: '0'
56
+ version: 2.99.0
48
57
  - !ruby/object:Gem::Dependency
49
58
  name: rake
50
59
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
60
  requirements:
53
- - - ! '>='
61
+ - - ">="
54
62
  - !ruby/object:Gem::Version
55
63
  version: '0'
56
64
  type: :development
57
65
  prerelease: false
58
66
  version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
67
  requirements:
61
- - - ! '>='
68
+ - - ">="
62
69
  - !ruby/object:Gem::Version
63
70
  version: '0'
64
71
  - !ruby/object:Gem::Dependency
65
72
  name: simplecov
66
73
  requirement: !ruby/object:Gem::Requirement
67
- none: false
68
74
  requirements:
69
- - - ! '>='
75
+ - - ">="
70
76
  - !ruby/object:Gem::Version
71
77
  version: '0'
72
78
  type: :development
73
79
  prerelease: false
74
80
  version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
81
  requirements:
77
- - - ! '>='
82
+ - - ">="
78
83
  - !ruby/object:Gem::Version
79
84
  version: '0'
80
85
  - !ruby/object:Gem::Dependency
81
86
  name: coveralls
82
87
  requirement: !ruby/object:Gem::Requirement
83
- none: false
84
88
  requirements:
85
- - - ! '>='
89
+ - - ">="
86
90
  - !ruby/object:Gem::Version
87
91
  version: '0'
88
92
  type: :development
89
93
  prerelease: false
90
94
  version_requirements: !ruby/object:Gem::Requirement
91
- none: false
92
95
  requirements:
93
- - - ! '>='
96
+ - - ">="
94
97
  - !ruby/object:Gem::Version
95
98
  version: '0'
96
99
  description:
@@ -103,9 +106,9 @@ executables:
103
106
  extensions: []
104
107
  extra_rdoc_files: []
105
108
  files:
106
- - .gitignore
107
- - .rspec
108
- - .travis.yml
109
+ - ".gitignore"
110
+ - ".rspec"
111
+ - ".travis.yml"
109
112
  - CONTRIBUTING.md
110
113
  - Gemfile
111
114
  - LICENSE
@@ -126,30 +129,28 @@ files:
126
129
  homepage:
127
130
  licenses:
128
131
  - MIT
132
+ metadata: {}
129
133
  post_install_message:
130
134
  rdoc_options: []
131
135
  require_paths:
132
136
  - lib
133
137
  required_ruby_version: !ruby/object:Gem::Requirement
134
- none: false
135
138
  requirements:
136
- - - ! '>='
139
+ - - ">="
137
140
  - !ruby/object:Gem::Version
138
- version: '0'
141
+ version: 1.9.2
139
142
  required_rubygems_version: !ruby/object:Gem::Requirement
140
- none: false
141
143
  requirements:
142
- - - ! '>='
144
+ - - ">="
143
145
  - !ruby/object:Gem::Version
144
146
  version: '0'
145
147
  requirements: []
146
148
  rubyforge_project:
147
- rubygems_version: 1.8.23
149
+ rubygems_version: 2.2.2
148
150
  signing_key:
149
- specification_version: 3
151
+ specification_version: 4
150
152
  summary: Bundler for non-ruby dependencies from homebrew
151
153
  test_files:
152
154
  - spec/dsl_spec.rb
153
155
  - spec/install_command_spec.rb
154
156
  - spec/spec_helper.rb
155
- has_rdoc: