linux_admin 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -2
- data/lib/linux_admin/rpm.rb +7 -0
- data/lib/linux_admin/version.rb +1 -1
- data/linux_admin.gemspec +1 -1
- data/spec/rpm_spec.rb +5 -0
- metadata +4 -4
data/Gemfile
CHANGED
data/lib/linux_admin/rpm.rb
CHANGED
data/lib/linux_admin/version.rb
CHANGED
data/linux_admin.gemspec
CHANGED
@@ -33,6 +33,6 @@ registration, updates, etc.
|
|
33
33
|
|
34
34
|
spec.add_dependency "activesupport", "< 4.0"
|
35
35
|
spec.add_dependency "inifile", "~> 2.0.2"
|
36
|
-
spec.add_dependency "more_core_extensions", "~> 1.1
|
36
|
+
spec.add_dependency "more_core_extensions", "~> 1.1"
|
37
37
|
spec.add_dependency "nokogiri"
|
38
38
|
end
|
data/spec/rpm_spec.rb
CHANGED
@@ -26,4 +26,9 @@ describe LinuxAdmin::Rpm do
|
|
26
26
|
"zlib-devel" =>"1.2.3-29.el6",
|
27
27
|
})
|
28
28
|
end
|
29
|
+
|
30
|
+
it ".upgrade" do
|
31
|
+
described_class.should_receive(:run).with("rpm -U", {:params=>{nil=>"abc"}}).and_return(CommandResult.new("", "", 0))
|
32
|
+
expect(described_class.upgrade("abc")).to be_true
|
33
|
+
end
|
29
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linux_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-10-
|
15
|
+
date: 2013-10-09 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bundler
|
@@ -117,7 +117,7 @@ dependencies:
|
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 1.1
|
120
|
+
version: '1.1'
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
123
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -125,7 +125,7 @@ dependencies:
|
|
125
125
|
requirements:
|
126
126
|
- - ~>
|
127
127
|
- !ruby/object:Gem::Version
|
128
|
-
version: 1.1
|
128
|
+
version: '1.1'
|
129
129
|
- !ruby/object:Gem::Dependency
|
130
130
|
name: nokogiri
|
131
131
|
requirement: !ruby/object:Gem::Requirement
|