run_cl 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4ad3d74ae9892cecd2bd107c6b0678cb6ad01ec3
4
+ data.tar.gz: 14db5327ddfa9c81c42b7f306e7778760f4fa9a6
5
+ SHA512:
6
+ metadata.gz: 3ff72553841e2e823afa451cd2bee403f632890c3a16fd2ac27d878ac7bd09b1ae74928cfe3e136d14f2bea5fe8841728675322b12cb93b9e950410d76afe31d
7
+ data.tar.gz: 8023736dfc29e89f0f0d2868d520d25a4e0f5f96f75cba22acf62ff2ba41576f8b5c3bbbb974a46bf52b4fca8e4092ac7023239474ae4b19c3d2e225e72bbf49
@@ -15,16 +15,16 @@ module RunCl
15
15
  module ClassMethods
16
16
  # include InstanceMethods
17
17
  def has_run_cl(name, options = {})
18
- if not options[:run].presence or options[:run]
19
- if options[:on].presence
18
+ if options[:run].nil? or options[:run]
19
+ if options[:on].present?
20
20
  validates name, run: true, on: options[:on]
21
21
  else
22
22
  validates name, run: true
23
23
  end
24
24
  end
25
25
 
26
- if not options[:uniq_run].presence or options[:uniq_run]
27
- if options[:on].presence
26
+ if options[:uniq_run].nil? or options[:uniq_run]
27
+ if options[:on].present?
28
28
  validates name, uniq_run: true, on: options[:on]
29
29
  else
30
30
  validates name, uniq_run: true
@@ -1,3 +1,3 @@
1
1
  module RunCl
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: run_cl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
5
- prerelease:
4
+ version: 1.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - mespina
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-19 00:00:00.000000000 Z
11
+ date: 2014-04-30 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Formateador/Desformateador, Generador, Validador de Rut Chilenos
15
14
  email:
@@ -31,26 +30,25 @@ files:
31
30
  - run_cl.gemspec
32
31
  homepage: https://bitbucket.org/mespina/run
33
32
  licenses: []
33
+ metadata: {}
34
34
  post_install_message:
35
35
  rdoc_options: []
36
36
  require_paths:
37
37
  - lib
38
38
  required_ruby_version: !ruby/object:Gem::Requirement
39
- none: false
40
39
  requirements:
41
- - - ! '>='
40
+ - - '>='
42
41
  - !ruby/object:Gem::Version
43
42
  version: '0'
44
43
  required_rubygems_version: !ruby/object:Gem::Requirement
45
- none: false
46
44
  requirements:
47
- - - ! '>='
45
+ - - '>='
48
46
  - !ruby/object:Gem::Version
49
47
  version: '0'
50
48
  requirements: []
51
49
  rubyforge_project:
52
- rubygems_version: 1.8.25
50
+ rubygems_version: 2.2.0
53
51
  signing_key:
54
- specification_version: 3
52
+ specification_version: 4
55
53
  summary: Rut Chilenos
56
54
  test_files: []