shutter 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Shutter
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/shutter.gemspec CHANGED
@@ -4,8 +4,13 @@ require File.expand_path('../lib/shutter/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Rob Lyon"]
6
6
  gem.email = ["nosignsoflifehere@gmail.com"]
7
- gem.description = %q{Shutter helps maintain firewalls}
8
- gem.summary = %q{Shutter helps maintain firewalls}
7
+ gem.description = %q{Shutter is a tool that gives system administrators the ability
8
+ to manage iptables firewall settings through simple lists instead
9
+ of complex iptables rules. Please note: This application currently
10
+ only works with Red Hat based distributions, as the need arrises
11
+ more distributions will be added.
12
+ }
13
+ gem.summary = %q{Shutter helps manage iptables firewalls}
9
14
  gem.homepage = ""
10
15
 
11
16
  gem.files = `git ls-files`.split($\)
@@ -0,0 +1,16 @@
1
+ require File.dirname(__FILE__) + '/spec_helper'
2
+ require 'fileutils'
3
+
4
+ describe "Shutter::CommandLine" do
5
+ it "should create the configuration directory if it does not exist" do
6
+ cmd = Shutter::CommandLine.new('./tmp/configs')
7
+ cmd.init
8
+ File.directory?('./tmp/configs').should == true
9
+ FileUtils.rm_rf('./tmp/configs')
10
+ end
11
+
12
+ it "should not recursively create the configuration directory if the parent does not exist" do
13
+ cmd = Shutter::CommandLine.new('./tmp/configs/this')
14
+ expect { cmd.init }.to raise_error
15
+ end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-27 00:00:00.000000000 Z
12
+ date: 2012-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -43,7 +43,12 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- description: Shutter helps maintain firewalls
46
+ description: ! "Shutter is a tool that gives system administrators the ability \n
47
+ \ to manage iptables firewall settings through simple lists
48
+ instead \n of complex iptables rules. Please note: This
49
+ application currently \n only works with Red Hat based distributions,
50
+ as the need arrises \n more distributions will be added.\n
51
+ \ "
47
52
  email:
48
53
  - nosignsoflifehere@gmail.com
49
54
  executables:
@@ -69,6 +74,7 @@ files:
69
74
  - lib/shutter/os.rb
70
75
  - lib/shutter/version.rb
71
76
  - shutter.gemspec
77
+ - spec/command_line_spec.rb
72
78
  - spec/content_spec.rb
73
79
  - spec/env_spec.rb
74
80
  - spec/spec_helper.rb
@@ -95,8 +101,9 @@ rubyforge_project:
95
101
  rubygems_version: 1.8.20
96
102
  signing_key:
97
103
  specification_version: 3
98
- summary: Shutter helps maintain firewalls
104
+ summary: Shutter helps manage iptables firewalls
99
105
  test_files:
106
+ - spec/command_line_spec.rb
100
107
  - spec/content_spec.rb
101
108
  - spec/env_spec.rb
102
109
  - spec/spec_helper.rb