profig 0.05 → 0.06

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/profig/config.rb CHANGED
@@ -31,6 +31,10 @@ class Section
31
31
  end
32
32
  @items << item
33
33
  end
34
+
35
+ def to_s()
36
+ return "#<Profig::Section:#{@type}>"
37
+ end
34
38
  end
35
39
 
36
40
 
@@ -2,7 +2,7 @@
2
2
  module Profig
3
3
 
4
4
 
5
- def self.handle_hackage(package_name, opts)
5
+ def self.handle_cabal(package_name, opts)
6
6
  cmd = "cabal install #{package_name}"
7
7
  system cmd
8
8
  end
data/lib/profig/ubuntu.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'profig/linux'
2
2
  require 'profig/debian'
3
+ require 'profig/haskell'
3
4
  require 'profig/python'
4
5
  require 'profig/ruby'
5
6
 
@@ -27,6 +28,10 @@ def self.handle_ubuntu_user(user_name, opts)
27
28
  system cmd
28
29
  end
29
30
 
31
+ def self.handle_ubuntu_cabal(pkg_name, opts)
32
+ Profig.handle_cabal(pkg_name, opts)
33
+ end
34
+
30
35
  def self.handle_ubuntu_deb(pkg_name, opts)
31
36
  Profig.handle_debian_deb(pkg_name, opts)
32
37
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: profig
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 5
9
- version: "0.05"
8
+ - 6
9
+ version: "0.06"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matthew Graham