mspac 0.1.8 → 0.1.9

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: 9d003a526f6e3a975b55e6e45f8834ed9b4e43de
4
- data.tar.gz: 8c3ed0126188f1ea84a5c28cb8e6d48870c78185
3
+ metadata.gz: e386cfbe02203907947ce154b857df82129832f8
4
+ data.tar.gz: 009078909806e303299d6d56691e2809edeecc4f
5
5
  SHA512:
6
- metadata.gz: f60ceea42ae45e5dc0408a696e8e47ec281cd2b82d7343d89da1a465e6f67987416befe11f8ed5e358783abbc715e263385a1ed263e062166b358600c3a48898
7
- data.tar.gz: 2482e28e1cff4e9e13d9916a25e0f67f00b6ced052c718a8faedbeff22fa2c2a5077f6a529d919b599eb76af149f5ba0c9165eb3beddaa654b478832f33c7305
6
+ metadata.gz: c3709ae67232579bd1f033ebedc25b20693f90096330191a087fcf835494a0b8c1429f75c9dfd3608bb6927ad8f76f47deff1a566961411a3e889dd32d3160d6
7
+ data.tar.gz: 3d904d22450b07606bb3a7b96ce2502e38b0004deacaef08a321a217d1643915a2378aebd5cf255407a0576f4e4c32391f6b9eb92c994b5ec3befefa8cf6a2b1
data/bin/mspac CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require "colorize"
3
4
  require "mspac"
4
5
  require "optparse"
5
- require "string"
6
6
 
7
7
  class MsPacExit
8
8
  GOOD = 0
data/lib/mspac.rb CHANGED
@@ -1,8 +1,8 @@
1
+ require "colorize"
1
2
  require "fileutils"
2
3
  require "json"
3
4
  require "pathname"
4
5
  require "scoobydoo"
5
- require "string"
6
6
 
7
7
  class MsPac
8
8
  def cached
data/lib/mspac/pellet.rb CHANGED
@@ -1,5 +1,5 @@
1
+ require "colorize"
1
2
  require "fileutils"
2
- require "string"
3
3
 
4
4
  class MsPac::Pellet < Hash
5
5
  @@cache_dir = Pathname("~/.mspac/cache").expand_path
metadata CHANGED
@@ -1,15 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mspac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-06 00:00:00.000000000 Z
11
+ date: 2016-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: colorize
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.7.7
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '0.7'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.7.7
13
33
  - !ruby/object:Gem::Dependency
14
34
  name: scoobydoo
15
35
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +72,6 @@ files:
52
72
  - lib/mspac/package_manager.rb
53
73
  - lib/mspac/pellet.rb
54
74
  - lib/mspac/version_control.rb
55
- - lib/string.rb
56
75
  homepage: https://mjwhitta.github.io/mspac
57
76
  licenses:
58
77
  - GPL-3.0
data/lib/string.rb DELETED
@@ -1,48 +0,0 @@
1
- # Redefine String class to allow for colorizing, rsplit, and word wrap
2
- class String
3
- def black
4
- return colorize(30)
5
- end
6
-
7
- def blue
8
- return colorize(34)
9
- end
10
-
11
- def colorize(color)
12
- return "\e[#{color}m#{self}\e[0m"
13
- end
14
-
15
- def cyan
16
- return colorize(36)
17
- end
18
-
19
- def green
20
- return colorize(32)
21
- end
22
-
23
- def purple
24
- return colorize(35)
25
- end
26
-
27
- def red
28
- return colorize(31)
29
- end
30
-
31
- def rsplit(pattern)
32
- ret = rpartition(pattern)
33
- ret.delete_at(1)
34
- return ret
35
- end
36
-
37
- def white
38
- return colorize(37)
39
- end
40
-
41
- def word_wrap(width = 70)
42
- return scan(/\S.{0,#{width}}\S(?=\s|$)|\S+/).join("\n")
43
- end
44
-
45
- def yellow
46
- return colorize(33)
47
- end
48
- end