foreman_templates 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 73824f0d37e2a5ad0e90ffda239ad6f7aa712b4d
4
+ data.tar.gz: 4bcbc1c9c328850fc4a755c4f14a5d040d328b69
5
+ SHA512:
6
+ metadata.gz: eb908855a10ea071b475866103062a03bb2308bf921ef89f8d43d8aaa4f54c55c8a32b11ba7e44d3a85283685200949d1c8ea694d1cf2d0dd5dd0de2535413b2
7
+ data.tar.gz: 40d1e5175c74ada21a4ac49e33cd2a62ed8fe7a1d55c09fe007a790a1689a96ab79a5b8929ba922629a1ca2943bd61f004db038cbf7609cfbce7bd66f4b687dd
@@ -1,3 +1,3 @@
1
1
  module ForemanTemplates
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
data/lib/templates.rake CHANGED
@@ -32,7 +32,7 @@ def update_template
32
32
  raise NoKindError
33
33
  end
34
34
 
35
- db_template = ProvisioningTemplate.find_or_initialize_by_name(@name)
35
+ db_template = ProvisioningTemplate.where(:name => @name).first_or_initialize
36
36
  data = {
37
37
  :template => @text,
38
38
  :snippet => false,
@@ -64,7 +64,7 @@ def update_template
64
64
  end
65
65
 
66
66
  def update_ptable
67
- db_ptable = Ptable.find_or_initialize_by_name(@name)
67
+ db_ptable = Ptable.where(:name => @name).first_or_initialize
68
68
  data = { :layout => @text }
69
69
  string = db_ptable.new_record? ? "Created" : "Updated"
70
70
 
@@ -91,7 +91,7 @@ def update_ptable
91
91
  end
92
92
 
93
93
  def update_snippet
94
- db_snippet = ProvisioningTemplate.find_or_initialize_by_name(@name)
94
+ db_snippet = ProvisioningTemplate.where(:name => @name).first_or_initialize
95
95
  data = {
96
96
  :template => @text,
97
97
  :snippet => true
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
5
- prerelease:
4
+ version: 2.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Greg Sutcliffe
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-12-29 00:00:00.000000000 Z
11
+ date: 2016-01-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: diffy
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: git
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Engine to synchronise provisioning templates from GitHub
@@ -51,36 +46,35 @@ extra_rdoc_files:
51
46
  - LICENSE
52
47
  - README.md
53
48
  files:
54
- - lib/foreman_templates/version.rb
55
- - lib/foreman_templates/engine.rb
56
- - lib/templates.rake
57
- - lib/foreman_templates.rb
58
49
  - LICENSE
59
- - Rakefile
60
50
  - README.md
51
+ - Rakefile
52
+ - lib/foreman_templates.rb
53
+ - lib/foreman_templates/engine.rb
54
+ - lib/foreman_templates/version.rb
55
+ - lib/templates.rake
61
56
  homepage: http://github.com/theforeman/foreman_templates
62
57
  licenses:
63
58
  - GPL-3
59
+ metadata: {}
64
60
  post_install_message:
65
61
  rdoc_options: []
66
62
  require_paths:
67
63
  - lib
68
64
  required_ruby_version: !ruby/object:Gem::Requirement
69
- none: false
70
65
  requirements:
71
- - - ! '>='
66
+ - - ">="
72
67
  - !ruby/object:Gem::Version
73
68
  version: '0'
74
69
  required_rubygems_version: !ruby/object:Gem::Requirement
75
- none: false
76
70
  requirements:
77
- - - ! '>='
71
+ - - ">="
78
72
  - !ruby/object:Gem::Version
79
73
  version: '0'
80
74
  requirements: []
81
75
  rubyforge_project:
82
- rubygems_version: 1.8.23
76
+ rubygems_version: 2.4.5.1
83
77
  signing_key:
84
- specification_version: 3
78
+ specification_version: 4
85
79
  summary: Template-syncing engine for Foreman
86
80
  test_files: []