brpm_content 0.1.48 → 0.1.49
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGU2N2RhYzY0YzZjNWUyNWVjZTQ4YmVhMDk1MjY5NjQ3Y2FlOGU3OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Yzg0YzE1MjFmM2FjMDM1NzQ5NDM1YWJjMWY3YzNiM2NiYTEyYjJiMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTUyNGIxNzgzMmRiNzRhYTI5N2ZmMjFlNmZkOTI4MDgxN2MwN2E4OTViYmEz
|
10
|
+
ZmVhOTEzMDE2ZWEzNTdlZWVmYjczZTEzNjc4YWE4NWI1OGYyZDM2N2RhN2Q2
|
11
|
+
Mjg1YjU2YjE3Yjk2YTQ2YWRhMGI2MjI4MTdiNDg3Mjk1NjA3MmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmM5ZWJlZWFiM2E5ZDVlY2YxOWNiYzY1Yjk0OWZkY2FlNjk2NGZjZDgwMjkw
|
14
|
+
ZWUwMTQxYTMwMTU0YTNjZThmNTFiZjIyMDA3ZGM3OWJlNmI2MGFiMGVmMGRl
|
15
|
+
YjU1ODNkODgyZDllMjEyMjA0Nzg3Mzk4MGMwNTQxMzk4ZWI1ZWM=
|
data/config.yml
CHANGED
@@ -89,18 +89,14 @@ class ModuleInstaller
|
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
-
|
93
|
-
|
94
|
-
BrpmAuto.log `gem uninstall #{module_name}#{module_version.nil? ? "" : " -v " + module_version}`
|
95
|
-
end
|
92
|
+
BrpmAuto.log "Uninstalling gem #{module_name} #{module_version}..."
|
93
|
+
BrpmAuto.log `gem uninstall #{module_name} -v #{module_version} -q`
|
96
94
|
|
97
95
|
return true
|
98
96
|
end
|
99
97
|
|
100
|
-
def module_installed?(module_name)
|
101
|
-
|
102
|
-
|
103
|
-
Gem::Specification.find_all_by_name(module_name).size > 0
|
98
|
+
def module_installed?(module_name, module_version = nil)
|
99
|
+
Gem::Specification.find_by_name(module_name).size > 0
|
104
100
|
end
|
105
101
|
|
106
102
|
private
|
@@ -1,12 +1,8 @@
|
|
1
1
|
require_relative "spec_helper"
|
2
2
|
|
3
3
|
describe 'Gemspec' do
|
4
|
-
before(:each) do
|
5
|
-
cleanup_request_params
|
6
|
-
end
|
7
|
-
|
8
4
|
it 'should have the right license' do
|
9
|
-
config = YAML.load_file(File.expand_path("#{File.dirname(__FILE__)}
|
5
|
+
config = YAML.load_file(File.expand_path("#{File.dirname(__FILE__)}/../../../config.yml"))
|
10
6
|
|
11
7
|
expect(config).to have_key("license")
|
12
8
|
expect(config["license"].downcase).not_to include("gpl")
|