kapost-bootstrapper 0.1.3 → 0.2.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: f03f2ad2d76982768b3169d0c5ca3ad8d94f6153
4
- data.tar.gz: 42cea242ba11e2ea03b13e0aa6ae2ce317992470
3
+ metadata.gz: e4d7530215a80ce5f20423d078b28352e22c65bb
4
+ data.tar.gz: 36bc6449556de23f09721e31d29969cda77b557d
5
5
  SHA512:
6
- metadata.gz: 1fa148d0ff45acb295d9fce58a1d5648f8bb545001c2e14f16cff9ace76096b796520fc5557f6c3623060e5e62ef75c43b99632f25c8ba55cf8f35b5927aa684
7
- data.tar.gz: cb267036a47e592f2f95abbac0c36dde7e5dc618f850509bb3f1b5cdbb0b661e906201aab9a8ac3eaeeb691911eb80cd9eb5f743796b4711b53759ff9dcf1a9f
6
+ metadata.gz: fed3eaa934921b85d701c4e7980a4d9ffd959749ef35a3d7043f2f42db4bb98939348e91446a0e87e4d6f3e533d8c62682ec1d516914172d84aaa4d6fffe562a
7
+ data.tar.gz: cc53dff5d135a87cf4bb3db5e5c01223a78a752a0741d9fb5d786d328f991448b51733b628ecc5b1b6b9b7b61217a24041fb77bd683c8759206910fe28121173
@@ -1,5 +1,5 @@
1
1
  module Kapost
2
2
  class Bootstrapper
3
- VERSION = "0.1.3"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -16,6 +16,10 @@ module Kapost
16
16
  instance_eval(&block) if os == :macosx
17
17
  end
18
18
 
19
+ def debian(&block)
20
+ instance_eval(&block) if os == :debian
21
+ end
22
+
19
23
  def check(command, help = nil, version: nil, &block)
20
24
  success = say(label(command, version)) do
21
25
  if block_given?
@@ -95,7 +99,7 @@ module Kapost
95
99
  when /darwin|mac os/
96
100
  :macosx
97
101
  when /linux/
98
- :linux
102
+ installed?("apt-get") ? :debian : :linux
99
103
  else
100
104
  fail "unknown os: #{RUBY_PLATFORM.inspect}"
101
105
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kapost-bootstrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Sadauskas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-08 00:00:00.000000000 Z
11
+ date: 2016-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.5.1
97
+ rubygems_version: 2.6.4
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: A small helper utility for your app to declare and setup its system dependencies