foreman_packages 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,8 +5,10 @@ class ForemanPackages::Sypackage < ActiveRecord::Base
5
5
  mount_uploader :filename, ForemanPackages::AttachmentUploader
6
6
  after_create :create_dir
7
7
  after_update :create_dir
8
-
9
- validates :filename, :name #, :contract_id, :presence => true
8
+
9
+ #validates :filename, :name , :ensure, :presence => true
10
+ validate :filename
11
+ validates :name, :uniqueness => true
10
12
  #after_destory :destory_dir
11
13
  def create_dir
12
14
  #目前用 "/home/stdtnt/app/"代替 "/etc/puppet/environments/production/modules/packages"
@@ -1,3 +1,3 @@
1
1
  module ForemanPackages
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_packages
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: