brewdler 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
data/.travis.yml ADDED
@@ -0,0 +1,15 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - 2.0.0
7
+ - ruby-head
8
+ - jruby-18mode
9
+ - jruby-19mode
10
+ - jruby-head
11
+ - rbx-18mode
12
+ - rbx-19mode
13
+ matrix:
14
+ allow_failures:
15
+ - rvm: ruby-head
data/Rakefile CHANGED
@@ -1,2 +1,7 @@
1
1
  #!/usr/bin/env rake
2
2
  require 'bundler/gem_tasks'
3
+ require 'rspec/core/rake_task'
4
+
5
+ RSpec::Core::RakeTask.new('spec')
6
+
7
+ task :default => :spec
data/Readme.mdown CHANGED
@@ -5,6 +5,8 @@ Bundler for non-ruby dependencies from homebrew
5
5
  [![Gem Version](https://badge.fury.io/rb/brewdler.png)](http://badge.fury.io/rb/brewdler)
6
6
  [![Dependency Status](https://gemnasium.com/andrew/brewdler.png)](https://gemnasium.com/andrew/brewdler)
7
7
  [![Code Climate](https://codeclimate.com/github/andrew/brewdler.png)](https://codeclimate.com/github/andrew/brewdler)
8
+ [![Coverage Status](https://coveralls.io/repos/andrew/brewdler/badge.png)](https://coveralls.io/r/andrew/brewdler)
9
+ [![Build Status](https://travis-ci.org/andrew/brewdler.png)](https://travis-ci.org/andrew/brewdler)
8
10
 
9
11
  ## Requirements
10
12
 
data/bin/brewdle CHANGED
@@ -15,8 +15,7 @@ command :install do |c|
15
15
  file = File.read(File.join(Dir.pwd, "Brewfile"))
16
16
  Brewdler::Dsl.new(file).process
17
17
  rescue Errno::ENOENT => e
18
- puts 'No Brewfile found'
19
- puts e.message
18
+ raise "No Brewfile found\n#{e.message}"
20
19
  rescue NameError
21
20
  file = File.open(File.join(Dir.pwd, "Brewfile"))
22
21
  file.find_all do |name|
data/brewdler.gemspec CHANGED
@@ -14,4 +14,8 @@ Gem::Specification.new do |gem|
14
14
  gem.version = Brewdler::VERSION
15
15
 
16
16
  gem.add_dependency 'commander'
17
+ gem.add_development_dependency 'rspec'
18
+ gem.add_development_dependency 'rake'
19
+ gem.add_development_dependency 'simplecov'
20
+ gem.add_development_dependency 'coveralls'
17
21
  end
@@ -1,3 +1,3 @@
1
1
  module Brewdler
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/spec/dsl_spec.rb ADDED
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe Brewdler::Dsl do
4
+ let(:dsl) { Brewdler::Dsl.new("brew 'git'\ncask 'google-chrome'") }
5
+
6
+ it "processes input" do
7
+ dsl.should_receive(:brew).with('git')
8
+ dsl.should_receive(:cask).with('google-chrome')
9
+ dsl.process
10
+ end
11
+ end
@@ -0,0 +1,16 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
3
+
4
+ require 'coveralls'
5
+ Coveralls.wear!
6
+
7
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
8
+ Coveralls::SimpleCov::Formatter,
9
+ SimpleCov::Formatter::HTMLFormatter
10
+ ]
11
+
12
+ require 'brewdler'
13
+
14
+ RSpec.configure do |config|
15
+
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brewdler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-06-10 00:00:00.000000000 Z
14
+ date: 2013-07-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: commander
@@ -29,6 +29,70 @@ dependencies:
29
29
  - - ! '>='
30
30
  - !ruby/object:Gem::Version
31
31
  version: '0'
32
+ - !ruby/object:Gem::Dependency
33
+ name: rspec
34
+ requirement: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: rake
50
+ requirement: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ - !ruby/object:Gem::Dependency
65
+ name: simplecov
66
+ requirement: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ type: :development
73
+ prerelease: false
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ - !ruby/object:Gem::Dependency
81
+ name: coveralls
82
+ requirement: !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
32
96
  description:
33
97
  email:
34
98
  - andrewnez@gmail.com
@@ -40,6 +104,8 @@ extensions: []
40
104
  extra_rdoc_files: []
41
105
  files:
42
106
  - .gitignore
107
+ - .rspec
108
+ - .travis.yml
43
109
  - CONTRIBUTING.md
44
110
  - Gemfile
45
111
  - LICENSE
@@ -52,6 +118,8 @@ files:
52
118
  - lib/brewdler/cask_installer.rb
53
119
  - lib/brewdler/dsl.rb
54
120
  - lib/brewdler/version.rb
121
+ - spec/dsl_spec.rb
122
+ - spec/spec_helper.rb
55
123
  homepage:
56
124
  licenses: []
57
125
  post_install_message:
@@ -76,4 +144,7 @@ rubygems_version: 1.8.23
76
144
  signing_key:
77
145
  specification_version: 3
78
146
  summary: Bundler for non-ruby dependencies from homebrew
79
- test_files: []
147
+ test_files:
148
+ - spec/dsl_spec.rb
149
+ - spec/spec_helper.rb
150
+ has_rdoc: