shaddox 0.1.2 → 0.1.3

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: f98c7a2862e64bba6a8d9e2853be35992cfa5d37
4
- data.tar.gz: 6bc5823b1f6767ad022c95fabb9ccf038682e139
3
+ metadata.gz: 0b7a05c48839e638572910bfa34968396ecd8a9b
4
+ data.tar.gz: dabf80421c58c6e77278b155cc7b9dff2f0d0642
5
5
  SHA512:
6
- metadata.gz: 32c27d760b058857927ecf55311b17056a48f900b720132b743b38c0983aa4e466d8c3822c4e25883ce3f6ad78a11b92e16984f5494eaa50ef3028a731f76160
7
- data.tar.gz: 0177a9505c91eb963b68319827b75a72203e65703759723b26f4ee4eb65c36443da93da80fb3ab5fb04449ee4f9c7bfeef28f479f9b648334e4ce62a9fc32286
6
+ metadata.gz: d9109e512368a5647c51cee8032d14cee81381a92b0d3f542f63a9172642034982f77d9495658dd0bd38baec7d3b121a7fde67cc8fbf6bc9de1d0dd974f6fd84
7
+ data.tar.gz: afacf03337cddf9cc628488098597da847531f403cf5e586d69fdb2f7bb3b6ae78dd474fa61ee5ff6d0cb6a03edef5d21bf48d1d4d457e321be669aff0206561
data/.gitignore CHANGED
@@ -1,15 +1,39 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
1
+ # Created by https://www.gitignore.io
2
+
3
+ ### Ruby ###
4
+ *.gem
5
+ *.rbc
6
+ /.config
5
7
  /coverage/
6
- /doc/
8
+ /InstalledFiles
7
9
  /pkg/
8
10
  /spec/reports/
11
+ /test/tmp/
12
+ /test/version_tmp/
9
13
  /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
15
- /.vagrant/
14
+
15
+ ## Specific to RubyMotion:
16
+ .dat*
17
+ .repl_history
18
+ build/
19
+
20
+ ## Documentation cache and generated files:
21
+ /.yardoc/
22
+ /_yardoc/
23
+ /doc/
24
+ /rdoc/
25
+
26
+ ## Environment normalisation:
27
+ /.bundle/
28
+ /vendor/bundle
29
+ /lib/bundler/man/
30
+
31
+ # for a library or gem, you might want to ignore these files since the code is
32
+ # intended to run in multiple environments; otherwise, check them in:
33
+ # Gemfile.lock
34
+ # .ruby-version
35
+ # .ruby-gemset
36
+
37
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
38
+ .rvmrc
39
+
data/Gemfile.lock ADDED
@@ -0,0 +1,19 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ shaddox (0.1.0)
5
+ highline (~> 1.7.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ highline (1.7.2)
11
+
12
+ PLATFORMS
13
+ ruby
14
+
15
+ DEPENDENCIES
16
+ shaddox!
17
+
18
+ BUNDLED WITH
19
+ 1.10.4
@@ -5,6 +5,7 @@ module Shaddox
5
5
  return AptInstaller.new(pvr) if pvr.availiable? "apt-get"
6
6
  return BrewInstaller.new(pvr) if pvr.availiable? "brew"
7
7
  return PacmanInstaller.new(pvr) if pvr.availiable? "pacman"
8
+ return YumInstaller.new(pvr) if pvr.availiable? "yum"
8
9
  warn "Installer could not be automatically identified.", 1
9
10
  require 'highline/import'
10
11
  choose do |menu|
@@ -71,4 +72,12 @@ module Shaddox
71
72
  end
72
73
  end
73
74
 
75
+ class YumInstaller < Installer
76
+ def install(package)
77
+ return if installed?(package)
78
+ @pvr.exec("yum install #{package}")
79
+ raise "Could not install #{package}" unless installed?(package)
80
+ end
81
+ end
82
+
74
83
  end
@@ -1,3 +1,3 @@
1
1
  module Shaddox
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shaddox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - joshglendenning
@@ -35,6 +35,7 @@ files:
35
35
  - ".gitignore"
36
36
  - Doxfile
37
37
  - Gemfile
38
+ - Gemfile.lock
38
39
  - LICENSE.txt
39
40
  - README.md
40
41
  - bin/shaddox