itamae-plugin-recipe-homebrew 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 580992f46b0b7df149a92cc6c85a402cf49da679
4
- data.tar.gz: 99f7ea680c1d00936a19c0f46a7fda32f14352ff
3
+ metadata.gz: 7f77034ed2ba1c990babf4b777861b290109bd12
4
+ data.tar.gz: 9b56857159198362c30bfb408805b7f5381fac8c
5
5
  SHA512:
6
- metadata.gz: 769bf81253449f1a8c8261d303d4333ad200b7e4daf9c47a4490f81ceaf4c103dfa3945692f54f7de7be8896413f93244b41481d2a3448d68d6c7401df263cf4
7
- data.tar.gz: b89f5fda8516f1380248e65e301d9d9a88f9c82a74d19823f140c2235b64b5c47136e38f65d5bd3bf1a527aeac1ca9354bae82c9ad68be9708901b3bce6342ae
6
+ metadata.gz: 4ad1b3c6dec776ab7dd55ac91ed6e75d8e50b1b212ba8b2f74d4bd4bee6e555c9ac02a72947c9c49d556c884b825344984f92105dd932f0d47ea3a1d498a8067
7
+ data.tar.gz: 8fcc8f71524b1540df51bf1f5e8cd84848c513ce86eb7d27531aee54de90b620c2979e74e98d57360453dccf3544fa2ae7811b78d1e0468ed35357a327ad5858
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
1
  # itamae-plugin-recipe-homebrew
2
+ [![Gem Version](https://badge.fury.io/rb/itamae-plugin-recipe-homebrew.svg)](http://badge.fury.io/rb/itamae-plugin-recipe-homebrew)
2
3
 
3
4
  Plugin to support the HomeBrew for [Itamae](https://github.com/itamae-kitchen/itamae)
4
5
 
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -88,15 +90,15 @@ brew:
88
90
  - bettertouchtool
89
91
  ```
90
92
  ##### Description of Option
91
- * ** enable_update ** : run the `brew update` If true
92
- * ** enable_upgrade ** : run the `brew upgrade` If true
93
- * ** add_repositories ** : run the `brew tap XXXXX`. To specify the repositories you want to add an array
94
- * ** install_packages ** : run the `brew install XXXXX`. To specify the packages you want to add an array
95
- * ** install_apps ** : run the `brew cask instal`. To specify the applications you want to add an array
93
+ * **enable_update** : run the `brew update` If true
94
+ * **enable_upgrade** : run the `brew upgrade` If true
95
+ * **add_repositories** : run the `brew tap XXXXX`. To specify the repositories you want to add an array
96
+ * **install_packages** : run the `brew install XXXXX`. To specify the packages you want to add an array
97
+ * **install_apps** : run the `brew cask instal`. To specify the applications you want to add an array
96
98
 
97
99
  ## Contributing
98
100
 
99
- 1. Fork it ( https://github.com/[my-github-username]/itamae-plugin-recipe-homebrew/fork )
101
+ 1. Fork it ( https://github.com/fukuiretu/itamae-plugin-recipe-homebrew/fork )
100
102
  2. Create your feature branch (`git checkout -b my-new-feature`)
101
103
  3. Commit your changes (`git commit -am 'Add some feature'`)
102
104
  4. Push to the branch (`git push origin my-new-feature`)
@@ -2,8 +2,9 @@ include_recipe 'common.rb'
2
2
 
3
3
  # Install bin packages
4
4
  node['brew']['install_packages'].each do |package|
5
- execute "Install package: #{package}" do
5
+ package_without_options = package.split(/[ \/]/).last
6
+ execute "Install package: #{package_without_options}" do
6
7
  command "brew install #{package}"
7
- not_if "brew list | grep -q #{package}"
8
+ not_if "brew list | grep -q '#{package_without_options}$'"
8
9
  end
9
10
  end
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Homebrew
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-homebrew
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - fukuiretu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-22 00:00:00.000000000 Z
11
+ date: 2015-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.4.5
78
+ rubygems_version: 2.4.8
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Plugin to support the HomeBrew for Itamae