config_curator 0.4.0 → 0.5.0

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: 2511894af0fcc9e59c648a7621496f663853dded
4
- data.tar.gz: b119e02051dc69e31be6c8b6b2d31a3e5c64aaa3
3
+ metadata.gz: cc46233b979aba4d379befdf86f788f153a081a7
4
+ data.tar.gz: 119eb4200a5d6b3dc1ea603ec835da180cd18bc8
5
5
  SHA512:
6
- metadata.gz: f26f480a7fb7a41eac2d84482ed5d1cc8551db0808fcb52f0b0f4c6121fc9fe2ed7abe2628a4df454dd0ff2621bf16c2d9047cb44df2f3ea2ff666f921dc9167
7
- data.tar.gz: 7ee456743ea8d74726b8311896ee375c5392e6ccdb5570bf963f31414693f871b8bab6f5ca1d10a439d0735b7cb5a5a40898de4513e792c05cec646e81f0f899
6
+ metadata.gz: 78a4a644fc57783d40318ec7c8fce4d25b6e558d6e0e9c7437ec013e07cd3783403ba8336f9efcdb1198251d9c7213bdccc60a4a9dc78257b0382684324c7647
7
+ data.tar.gz: 1cc001c6bdea4a5daee71435c44b399e61ed76e7265f3f90275b2a4c685eb855370fba7893cf6c63e8f0dd09734d044ccacbbdc1e355d2b21987513cff9546d3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # ChangeLog
2
2
 
3
+ ## 0.5.0
4
+
5
+ - Add Homebrew support.
6
+
3
7
  ## 0.4.0
4
8
 
5
9
  - Add `backend` option for components.
data/README.md CHANGED
@@ -69,7 +69,7 @@ root: "~/"
69
69
 
70
70
  # Package tool to use.
71
71
  # Will automatically detect if not explicitly set.
72
- # Available tools: pacman, dpkg, pkgng.
72
+ # Available tools: pacman, dpkg, pkgng, brew.
73
73
  package_tool:
74
74
  ```
75
75
 
@@ -20,7 +20,8 @@ module ConfigCurator
20
20
  TOOLS = {
21
21
  dpkg: 'dpkg',
22
22
  pacman: 'pacman',
23
- pkgng: 'pkg'
23
+ pkgng: 'pkg',
24
+ brew: 'brew'
24
25
  }
25
26
 
26
27
  attr_accessor :tool, :tools
@@ -86,5 +87,11 @@ module ConfigCurator
86
87
  wait_thr.value.to_i == 0
87
88
  end
88
89
  end
90
+
91
+ def brew(package)
92
+ cmd = command? 'brew'
93
+ stdout = `${cmd} ls --versions ${package}`
94
+ !stdout.empty?
95
+ end
89
96
  end
90
97
  end
@@ -1,5 +1,5 @@
1
1
  # Simple and intelligent configuration file management.
2
2
  module ConfigCurator
3
3
  # Config Curator version.
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_curator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Boyd Sosenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-28 00:00:00.000000000 Z
11
+ date: 2016-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
324
  version: '0'
325
325
  requirements: []
326
326
  rubyforge_project:
327
- rubygems_version: 2.4.5.1
327
+ rubygems_version: 2.5.1
328
328
  signing_key:
329
329
  specification_version: 4
330
330
  summary: Simple and intelligent configuration file management.