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 +2 -0
- data/.travis.yml +15 -0
- data/Rakefile +5 -0
- data/Readme.mdown +2 -0
- data/bin/brewdle +1 -2
- data/brewdler.gemspec +4 -0
- data/lib/brewdler/version.rb +1 -1
- data/spec/dsl_spec.rb +11 -0
- data/spec/spec_helper.rb +16 -0
- metadata +74 -3
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Rakefile
CHANGED
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
|
-
|
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
|
data/lib/brewdler/version.rb
CHANGED
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
|
data/spec/spec_helper.rb
ADDED
@@ -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.
|
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-
|
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:
|