lotus-validations 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  module Lotus
2
2
  module Validations
3
- VERSION = "0.0.0"
3
+ # @since 0.1.0
4
+ VERSION = '0.1.0'.freeze
4
5
  end
5
6
  end
@@ -4,20 +4,24 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'lotus/validations/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "lotus-validations"
7
+ spec.name = 'lotus-validations'
8
8
  spec.version = Lotus::Validations::VERSION
9
- spec.authors = ["Luca Guidi"]
10
- spec.email = ["me@lucaguidi.com"]
11
- spec.summary = %q{Validation mixin for Ruby objects}
12
- spec.description = %q{Validation mixin for Ruby objects}
13
- spec.homepage = "http://lotusrb.org"
14
- spec.license = "MIT"
9
+ spec.authors = ['Luca Guidi']
10
+ spec.email = ['me@lucaguidi.com']
11
+ spec.summary = %q{Validations for Lotus}
12
+ spec.description = %q{Validate attributes on a class and manage error messages accordingly}
13
+ spec.homepage = 'http://lotusrb.org'
14
+ spec.license = 'MIT'
15
15
 
16
- spec.files = `git ls-files -z`.split("\x0")
16
+ spec.files = `git ls-files -- lib/* LICENSE.md README.md lotus-validations.gemspec`.split($/)
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
19
+ spec.require_paths = ['lib']
20
+ spec.required_ruby_version = '>= 2.0.0'
20
21
 
21
- spec.add_development_dependency "bundler", "~> 1.6"
22
- spec.add_development_dependency "rake", "~> 10.0"
22
+ spec.add_dependency 'lotus-utils', '~> 0.3'
23
+
24
+ spec.add_development_dependency 'bundler', '~> 1.6'
25
+ spec.add_development_dependency 'minitest', '~> 5'
26
+ spec.add_development_dependency 'rake', '~> 10'
23
27
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lotus-validations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-08 00:00:00.000000000 Z
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: lotus-utils
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.3'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -24,33 +38,49 @@ dependencies:
24
38
  - - "~>"
25
39
  - !ruby/object:Gem::Version
26
40
  version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: rake
29
57
  requirement: !ruby/object:Gem::Requirement
30
58
  requirements:
31
59
  - - "~>"
32
60
  - !ruby/object:Gem::Version
33
- version: '10.0'
61
+ version: '10'
34
62
  type: :development
35
63
  prerelease: false
36
64
  version_requirements: !ruby/object:Gem::Requirement
37
65
  requirements:
38
66
  - - "~>"
39
67
  - !ruby/object:Gem::Version
40
- version: '10.0'
41
- description: Validation mixin for Ruby objects
68
+ version: '10'
69
+ description: Validate attributes on a class and manage error messages accordingly
42
70
  email:
43
71
  - me@lucaguidi.com
44
72
  executables: []
45
73
  extensions: []
46
74
  extra_rdoc_files: []
47
75
  files:
48
- - ".gitignore"
49
- - Gemfile
50
- - LICENSE.txt
76
+ - LICENSE.md
51
77
  - README.md
52
- - Rakefile
78
+ - lib/lotus-validations.rb
53
79
  - lib/lotus/validations.rb
80
+ - lib/lotus/validations/attribute_validator.rb
81
+ - lib/lotus/validations/coercions.rb
82
+ - lib/lotus/validations/error.rb
83
+ - lib/lotus/validations/errors.rb
54
84
  - lib/lotus/validations/version.rb
55
85
  - lotus-validations.gemspec
56
86
  homepage: http://lotusrb.org
@@ -65,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
95
  requirements:
66
96
  - - ">="
67
97
  - !ruby/object:Gem::Version
68
- version: '0'
98
+ version: 2.0.0
69
99
  required_rubygems_version: !ruby/object:Gem::Requirement
70
100
  requirements:
71
101
  - - ">="
@@ -76,6 +106,6 @@ rubyforge_project:
76
106
  rubygems_version: 2.2.2
77
107
  signing_key:
78
108
  specification_version: 4
79
- summary: Validation mixin for Ruby objects
109
+ summary: Validations for Lotus
80
110
  test_files: []
81
111
  has_rdoc:
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in lotus-validations.gemspec
4
- gemspec
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- require "bundler/gem_tasks"
2
-