Skip to content

Commit 1ba625c

Browse files
committed
tweak to module usage instead of class
1 parent 8a16611 commit 1ba625c

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

lambchop.gemspec

+13-11
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ $:.push File.expand_path("../lib", __FILE__)
22
require "lambchop/version"
33

44
Gem::Specification.new do |s|
5-
s.name = 'lambchop'
6-
s.version = Lambchop.version
7-
s.platform = Gem::Platform::RUBY
8-
s.summary = "Create puppet DSL from arbitrary files."
9-
s.description = "You shouldn't have to learn Puppet's DSL just to generate a manifest for a single config file. Lambchop automates that for you."
10-
s.authors = ["Erik M Jacobs"]
11-
s.email = '[email protected]'
12-
s.homepage = 'https://github.com/thoraxe/lambchop'
13-
s.files = ["lib/lambchop.rb", "lib/util/parser.rb"]
14-
s.license = 'GPL-3.0'
15-
s.require_path = 'lib'
5+
s.name = 'lambchop'
6+
s.version = Lambchop.version
7+
s.platform = Gem::Platform::RUBY
8+
s.summary = "Create puppet DSL from arbitrary files."
9+
s.description = "You shouldn't have to learn Puppet's DSL just to generate a manifest for a single config file. Lambchop automates that for you."
10+
s.authors = ["Erik M Jacobs"]
11+
s.email = '[email protected]'
12+
s.homepage = 'https://github.com/thoraxe/lambchop'
13+
s.files = Dir['{lib,test}/**/*', 'README*']
14+
s.test_files = Dir['test/**/*']
15+
s.extra_rdoc_files = Dir['README*']
16+
s.license = 'GPL-3.0'
17+
s.require_path = 'lib'
1618
s.add_development_dependency "rspec"
1719
s.add_development_dependency "rake"
1820
end

lib/lambchop.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Lambchop
1+
module Lambchop
22

33
require 'util/parser'
44

lib/util/parser.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Lambchop::Parser
1+
module Lambchop::Parser
22
def self.selinux_stanzas(file)
33
require 'selinux'
44
parsed_context = parse_selinux_context(Selinux.lgetfilecon(file)[1])

0 commit comments

Comments
 (0)