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
- MmRkMzlmNjY2ZTBjYjUwOTM5YzE0ODgxMjM4ZGFmZDg3NzAwMzYxNg==
4
+ OGU2N2RhYzY0YzZjNWUyNWVjZTQ4YmVhMDk1MjY5NjQ3Y2FlOGU3OQ==
5
5
  data.tar.gz: !binary |-
6
- N2VhOGIxYjY4MTg0ZTY0Y2ZmMmYzODcxMmI4MGVkOTkxNjU4NjE5MA==
6
+ Yzg0YzE1MjFmM2FjMDM1NzQ5NDM1YWJjMWY3YzNiM2NiYTEyYjJiMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWJjY2VmNGNmM2NkZTVlNmE2YTNjYWQyYjUwOGViNWU3OTQ1ODA2OTc0MmVi
10
- NmE5YmU1ZmExZTM0M2M4MjJmMTlkY2JhZjZmNDQwYTAwZDFiOTBjYmQyN2M5
11
- OTExYmZhZjc2ZTNlM2JhY2JkN2E4NmE5MTcyNjMyNGFhODBiYzE=
9
+ NTUyNGIxNzgzMmRiNzRhYTI5N2ZmMjFlNmZkOTI4MDgxN2MwN2E4OTViYmEz
10
+ ZmVhOTEzMDE2ZWEzNTdlZWVmYjczZTEzNjc4YWE4NWI1OGYyZDM2N2RhN2Q2
11
+ Mjg1YjU2YjE3Yjk2YTQ2YWRhMGI2MjI4MTdiNDg3Mjk1NjA3MmY=
12
12
  data.tar.gz: !binary |-
13
- NzE3OTIwNmRhMjg4MmIxYTIyYzQ2YTMzNTUzZjQ5NjQ5NWUzYWNiYmUxNmJm
14
- MTRkMzQxMGIyYzZmYzE3Zjg0YjQ0NmI5MWI2ZWQ3MzY2MDBiMjEzYzI4M2Fl
15
- NTlhYzYwZWY4ZTc2NWEyMTEwZWUxYWE0ZGIzNzkyN2ZkY2EwZmY=
13
+ NmM5ZWJlZWFiM2E5ZDVlY2YxOWNiYzY1Yjk0OWZkY2FlNjk2NGZjZDgwMjkw
14
+ ZWUwMTQxYTMwMTU0YTNjZThmNTFiZjIyMDA3ZGM3OWJlNmI2MGFiMGVmMGRl
15
+ YjU1ODNkODgyZDllMjEyMjA0Nzg3Mzk4MGMwNTQxMzk4ZWI1ZWM=
data/config.yml CHANGED
@@ -1,4 +1,4 @@
1
- version: 0.1.48
1
+ version: 0.1.49
2
2
 
3
3
  author: Niek Bartholomeus
4
4
  email: niek.bartholomeus@gmail.com
@@ -89,18 +89,14 @@ class ModuleInstaller
89
89
  end
90
90
  end
91
91
 
92
- unless ENV["TRAVIS"] == "true" #TODO: make this work on the travisci server
93
- BrpmAuto.log "Uninstalling module #{module_name}#{module_version.nil? ? "" : " " + module_version}..."
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
- set_gem_home
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__)}../../../../config.yml"))
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")
@@ -2,9 +2,10 @@ require_relative "spec_helper"
2
2
 
3
3
  describe 'Module installer' do
4
4
  before(:all) do
5
+ setup_brpm_auto
6
+
5
7
  BrpmAuto.log "Creating ~/.brpm file..."
6
8
  create_brpm_file
7
- setup_brpm_auto
8
9
  end
9
10
 
10
11
  before(:each) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brpm_content
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.48
4
+ version: 0.1.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niek Bartholomeus