foreman_setup 3.1.0 → 3.1.1

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: 55d3a6e2b424961beb37b9923cde0eb6929b0831
4
- data.tar.gz: b5550a47554c02dc11554e5c8d5b9a38631191a7
3
+ metadata.gz: 25978885e7b03804a5fe61ef826dec9066c6fe1c
4
+ data.tar.gz: 95eb1f06b591993cfb9b96054c134c6b6b2a4ea4
5
5
  SHA512:
6
- metadata.gz: deb5e04ada9ee911cd35b00cefec99066a7979c52e3513812fa45391d56e165c3a649d9f1c31fd5af7023efb358339e33e5b4f0c73bd73c5cb943147fb573eac
7
- data.tar.gz: 7620daaae6414fe3391393f7f5c929eebe1586cff44dcf57da0196ebe754b7f5e0ba3d356526734ccfd88f2b83cba28709f987f683ee4b23a8f8f5841ea72820
6
+ metadata.gz: a82ecf10b0453cc7f83101181b29cfdbab2b5e1a220a53c240839ee96bfb3bef7c8c48db0f32ce87f2b82455c4ebe2e77961747e714360390a3a920b75e86f84
7
+ data.tar.gz: 780002129da83831c4c1e62800fb19854ec8b6d4a709dd616c0b4189afeb2d77761ac1058b29a828f0206966da97d493db3b4c7223a0c6465585daecfc5efd64
data/CHANGES.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## v3.1.1
4
+ * update DB migration limits for Rails 4.2 change
5
+ * fix Rails 4.2 routing deprecation
6
+ * fix Foreman 1.11 registration deprecation
7
+ * fix tests against develop, catch test errors
8
+
3
9
  ## v3.1.0
4
10
  * add Catalan language, update translations
5
11
  * fix compatibility with Rails 4 for Foreman 1.11
data/config/routes.rb CHANGED
@@ -2,7 +2,7 @@ Rails.application.routes.draw do
2
2
  namespace :foreman_setup do
3
3
  resources :provisioners, :except => [:edit, :update] do
4
4
  member do
5
- get 'edit', :to => :step2
5
+ get 'edit', :action => :step2
6
6
  get 'step2'
7
7
  put 'step2_update'
8
8
  get 'step3'
@@ -3,9 +3,9 @@ class AddProvisioners < ActiveRecord::Migration
3
3
  create_table :setup_provisioners do |t|
4
4
  t.integer :host_id
5
5
  t.integer :smart_proxy_id
6
- t.string :provision_interface
6
+ t.string :provision_interface, :limit => 255
7
7
  t.integer :subnet_id
8
- t.string :timestamps
8
+ t.string :timestamps, :limit => 255
9
9
  end
10
10
  end
11
11
  end
@@ -14,7 +14,7 @@ module ForemanSetup
14
14
  end
15
15
  end
16
16
 
17
- initializer 'foreman_setup.register_plugin', :after=> :finisher_hook do |app|
17
+ initializer 'foreman_setup.register_plugin', :before => :finisher_hook do |app|
18
18
  Foreman::Plugin.register :foreman_setup do
19
19
  requires_foreman '>= 1.9.0'
20
20
 
@@ -1,3 +1,3 @@
1
1
  module ForemanSetup
2
- VERSION = '3.1.0'
2
+ VERSION = '3.1.1'
3
3
  end
@@ -16,6 +16,7 @@ namespace :test do
16
16
  t.libs << ['test', test_dir]
17
17
  t.pattern = "#{test_dir}/**/*_test.rb"
18
18
  t.verbose = true
19
+ t.warning = false
19
20
  end
20
21
  end
21
22
 
@@ -36,14 +37,9 @@ namespace :foreman_setup do
36
37
  end
37
38
  end
38
39
 
39
- Rake::Task[:test].enhance do
40
- Rake::Task['test:foreman_setup'].invoke
41
- end
40
+ Rake::Task[:test].enhance ['test:foreman_setup']
42
41
 
43
42
  load 'tasks/jenkins.rake'
44
43
  if Rake::Task.task_defined?(:'jenkins:unit')
45
- Rake::Task['jenkins:unit'].enhance do
46
- Rake::Task['test:foreman_setup'].invoke
47
- Rake::Task['foreman_setup:rubocop'].invoke
48
- end
44
+ Rake::Task['jenkins:unit'].enhance ['test:foreman_setup', 'foreman_setup:rubocop']
49
45
  end
@@ -28,7 +28,7 @@ FactoryGirl.define do
28
28
  step1
29
29
  hostgroup
30
30
  domain
31
- subnet
31
+ association :subnet, :factory => :subnet_ipv4
32
32
  after(:create) do |prov, evaluator|
33
33
  prov.subnet.domains << prov.domain
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-06 00:00:00.000000000 Z
11
+ date: 2016-06-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Plugin for Foreman that helps set up provisioning.
14
14
  email: dcleal@redhat.com
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.4.4
105
+ rubygems_version: 2.0.6
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Helps set up Foreman for provisioning