kpm 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d1fdc419b35322f8ba1e52f3a8068b1724d3305
4
- data.tar.gz: 0e6edb7470e7959d45bf6e45f0d2289d7f9b35f1
3
+ metadata.gz: 83d604648d401bdb735741c50d4785c94d2245db
4
+ data.tar.gz: 35b1dba157934ceb3e720897f27b56bdb61403d9
5
5
  SHA512:
6
- metadata.gz: 89dbc1ad4a55d8b71eaf5673f1b9794a6548e84e56adcfe8348829b7daa1e47b12467eaad670f006c5a7dfa742f978342b7739c3f4e8a952ab139eb4fea07fc5
7
- data.tar.gz: fddb3880b76c1d3bcb1553626f6733044d3f89eae349d889cd631d573b6540b595a3ace1be83431778a70c5a736e21fe4a35f64b27a9c25caf74d1d6f4c69065
6
+ metadata.gz: 57f88e496518b4e4051115b72d696255d0c14ee1d7fee375da0f573128b4d45bdc83ae21d0832d9f888ed7eca65bd9ad366063a75a83b47c8ebeb42678c5b5b2
7
+ data.tar.gz: 0a83e8150b25b5620fa5788effd62f23803b159fab117a31ebb22b4b13ee680b3017fdfe3f199061a0a02cb95f5aba6a1e08a65d13b6abdaa04eb203f031eba3
@@ -71,7 +71,7 @@ module KPM
71
71
  logger.info " Skipping installation of #{coordinates} to #{artifact_info[:file_path]}, file already exists"
72
72
 
73
73
  # We need to do a bit of magic to make sure that artifact_info[:bundle_dir] is correctly populated when we bail early
74
- if artifact_info[:is_tgz]
74
+ if artifact_info[:is_tgz] && coordinate_map[:artifact_id] != 'killbill-platform-osgi-bundles-defaultbundles'
75
75
  plugin_dir = File.split(artifact_info[:dir_name])[0]
76
76
  plugins_manager = PluginsManager.new(plugin_dir, logger)
77
77
  artifact_id = coordinates.split(':')[1]
@@ -90,8 +90,6 @@ module KPM
90
90
  return artifact_info
91
91
  end
92
92
 
93
-
94
-
95
93
  # Create the destination directory
96
94
  FileUtils.mkdir_p(artifact_info[:dir_name])
97
95
 
@@ -138,7 +136,6 @@ module KPM
138
136
  end
139
137
 
140
138
  def skip_if_exists(artifact_info, coordinates, sha1_file)
141
-
142
139
  # Unclear if this is even possible
143
140
  return false if artifact_info[:sha1].nil?
144
141
 
@@ -149,7 +146,7 @@ module KPM
149
146
  return true if local_sha1 == artifact_info[:sha1]
150
147
  end
151
148
 
152
- # If not using sha1_file mechanism, exit early if file_path odes not exist or is a directory
149
+ # If not using sha1_file mechanism, exit early if file_path does not exist or is a directory
153
150
  if !File.exists?(artifact_info[:file_path]) ||
154
151
  File.directory?(artifact_info[:file_path])
155
152
  return false
@@ -240,7 +237,6 @@ module KPM
240
237
  end
241
238
 
242
239
  def build_coordinates(coordinate_map)
243
-
244
240
  group_id = coordinate_map[:group_id]
245
241
  artifact_id = coordinate_map[:artifact_id]
246
242
  packaging = coordinate_map[:packaging]
@@ -16,8 +16,8 @@ module KPM
16
16
  end
17
17
 
18
18
  def initialize(raw_config, logger=nil)
19
- @config = raw_config['killbill'] || {}
20
- @kaui_config = raw_config['kaui'] || {}
19
+ @config = raw_config['killbill']
20
+ @kaui_config = raw_config['kaui']
21
21
 
22
22
  if logger.nil?
23
23
  logger = Logger.new(STDOUT)
@@ -63,7 +63,9 @@ module KPM
63
63
  # Update main config
64
64
  root_war_path = manager.setup
65
65
  @config['webapp_path'] = root_war_path
66
- @kaui_config['webapp_path'] = Pathname.new(File.dirname(root_war_path)).join('kaui.war').to_s
66
+ unless @kaui_config.nil?
67
+ @kaui_config['webapp_path'] = Pathname.new(File.dirname(root_war_path)).join('kaui.war').to_s
68
+ end
67
69
 
68
70
  # Help message
69
71
  manager.help
@@ -24,7 +24,7 @@
24
24
  :versions:
25
25
  :0.14: 1.0.3
26
26
  :0.15: 2.0.1
27
- :0.16: 3.0.0
27
+ :0.16: 3.0.1
28
28
  :stable_version: 2.0.2
29
29
  :avatax:
30
30
  :type: :java
@@ -147,7 +147,7 @@
147
147
  :versions:
148
148
  :0.14: 1.0.0
149
149
  :0.15: 2.0.0
150
- :0.16: 3.0.1
150
+ :0.16: 3.0.2
151
151
  :stable_version: 2.0.0
152
152
  :require:
153
153
  - :api_secret_key
@@ -1,3 +1,3 @@
1
1
  module KPM
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.6.21
20
- requirement: !ruby/object:Gem::Requirement
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
21
23
  requirements:
22
- - - ~>
24
+ - - "~>"
23
25
  - !ruby/object:Gem::Version
24
26
  version: 1.6.21
25
- prerelease: false
26
- type: :runtime
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nexus_cli
29
- version_requirements: !ruby/object:Gem::Requirement
29
+ requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 4.1.0
34
- requirement: !ruby/object:Gem::Requirement
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
35
37
  requirements:
36
- - - ~>
38
+ - - "~>"
37
39
  - !ruby/object:Gem::Version
38
40
  version: 4.1.0
39
- prerelease: false
40
- type: :runtime
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thor
43
- version_requirements: !ruby/object:Gem::Requirement
43
+ requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.19.1
48
- requirement: !ruby/object:Gem::Requirement
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
49
51
  requirements:
50
- - - ~>
52
+ - - "~>"
51
53
  - !ruby/object:Gem::Version
52
54
  version: 0.19.1
53
- prerelease: false
54
- type: :runtime
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
- version_requirements: !ruby/object:Gem::Requirement
57
+ requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 10.0.0
62
- requirement: !ruby/object:Gem::Requirement
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
63
65
  requirements:
64
- - - '>='
66
+ - - ">="
65
67
  - !ruby/object:Gem::Version
66
68
  version: 10.0.0
67
- prerelease: false
68
- type: :development
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
- version_requirements: !ruby/object:Gem::Requirement
71
+ requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 2.12.0
76
- requirement: !ruby/object:Gem::Requirement
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
77
79
  requirements:
78
- - - ~>
80
+ - - "~>"
79
81
  - !ruby/object:Gem::Version
80
82
  version: 2.12.0
81
- prerelease: false
82
- type: :development
83
83
  description: A package manager for Kill Bill.
84
84
  email: killbilling-users@googlegroups.com
85
85
  executables:
@@ -87,8 +87,8 @@ executables:
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - .gemrelease
91
- - .gitignore
90
+ - ".gemrelease"
91
+ - ".gitignore"
92
92
  - Gemfile
93
93
  - README.md
94
94
  - Rakefile
@@ -127,26 +127,38 @@ homepage: http://kill-bill.org
127
127
  licenses:
128
128
  - Apache License (2.0)
129
129
  metadata: {}
130
- post_install_message:
130
+ post_install_message:
131
131
  rdoc_options:
132
- - --exclude
133
- - .
132
+ - "--exclude"
133
+ - "."
134
134
  require_paths:
135
135
  - lib
136
136
  required_ruby_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - '>='
138
+ - - ">="
139
139
  - !ruby/object:Gem::Version
140
140
  version: 1.8.6
141
141
  required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubyforge_project:
148
- rubygems_version: 2.1.9
149
- signing_key:
147
+ rubyforge_project:
148
+ rubygems_version: 2.2.2
149
+ signing_key:
150
150
  specification_version: 4
151
151
  summary: Kill Bill package manager.
152
- test_files: []
152
+ test_files:
153
+ - spec/kpm/remote/base_artifact_spec.rb
154
+ - spec/kpm/remote/installer_spec.rb
155
+ - spec/kpm/remote/kaui_artifact_spec.rb
156
+ - spec/kpm/remote/killbill_plugin_artifact_spec.rb
157
+ - spec/kpm/remote/killbill_server_artifact_spec.rb
158
+ - spec/kpm/remote/tomcat_manager_spec.rb
159
+ - spec/kpm/unit/base_artifact_spec.rb
160
+ - spec/kpm/unit/plugins_directory_spec.rb
161
+ - spec/kpm/unit/plugins_manager_spec.rb
162
+ - spec/kpm/unit/sha1_checker_spec.rb
163
+ - spec/kpm/unit/sha1_test.yml
164
+ - spec/spec_helper.rb