rock-n-code-validator 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +8 -22
- metadata +21 -7
data/Rakefile
CHANGED
@@ -5,28 +5,12 @@ require 'rake/gempackagetask'
|
|
5
5
|
require 'rake/rdoctask'
|
6
6
|
require 'spec/rake/spectask'
|
7
7
|
|
8
|
-
desc 'GemSpec definition.'
|
9
|
-
|
10
|
-
specification.name = 'validator'
|
11
|
-
specification.version = '0.3.4'
|
12
|
-
specification.date = '2009-04-23'
|
13
|
-
specification.author = 'Julio Javier Cicchelli'
|
14
|
-
specification.email = 'javier@rock-n-code.com'
|
15
|
-
specification.homepage = 'http://rock-n-code.com'
|
16
|
-
specification.summary = 'A DSL for validation libraries.'
|
17
|
-
specification.description = <<-DESCRIPTION
|
18
|
-
A Domain Specific Language for Validations written in pure Ruby.
|
19
|
-
DESCRIPTION
|
20
|
-
specification.files = %w(LICENSE README CHANGES TODO Rakefile) + \
|
21
|
-
Dir.glob('{lib,spec}/**/*')
|
22
|
-
specification.require_path = 'lib'
|
23
|
-
specification.has_rdoc = true
|
24
|
-
specification.extra_rdoc_files = %w(README LICENSE CHANGES TODO)
|
25
|
-
end
|
8
|
+
desc 'Load the GemSpec definition file.'
|
9
|
+
load 'validator.gemspec'
|
26
10
|
|
27
11
|
desc 'Package building.'
|
28
|
-
Rake::GemPackageTask.new(
|
29
|
-
package.gem_spec =
|
12
|
+
Rake::GemPackageTask.new(GEM) do |package|
|
13
|
+
package.gem_spec = GEM
|
30
14
|
package.need_tar = false
|
31
15
|
package.need_zip = false
|
32
16
|
end
|
@@ -51,10 +35,12 @@ CLEAN.include %w(**/.*.sw? pkg lib/*.bundle lib/*.so *.gem doc .config coverage
|
|
51
35
|
|
52
36
|
desc 'Building and installing as a local gem.'
|
53
37
|
task :install => [:clean, :package] do
|
54
|
-
|
38
|
+
is_admin = RUBY_PLATFORM =~ /win32/ ? nil : 'sudo'
|
39
|
+
`#{is_admin} gem install pkg/#{GEM.name}-#{GEM.version}.gem`
|
55
40
|
end
|
56
41
|
|
57
42
|
desc 'Uninstalling the latest version of the created gem.'
|
58
43
|
task :uninstall => [:clean] do
|
59
|
-
|
44
|
+
is_admin = RUBY_PLATFORM =~ /win32/ ? nil : 'sudo'
|
45
|
+
`#{is_admin} gem uninstall #{GEM.name} -v #{GEM.version}`
|
60
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rock-n-code-validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julio Javier Cicchelli
|
@@ -9,10 +9,19 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-04-
|
12
|
+
date: 2009-04-24 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rspec
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.2.4
|
24
|
+
version:
|
16
25
|
description: A Domain Specific Language for Validations written in pure Ruby.
|
17
26
|
email: javier@rock-n-code.com
|
18
27
|
executables: []
|
@@ -33,15 +42,20 @@ files:
|
|
33
42
|
has_rdoc: true
|
34
43
|
homepage: http://rock-n-code.com
|
35
44
|
post_install_message:
|
36
|
-
rdoc_options:
|
37
|
-
|
45
|
+
rdoc_options:
|
46
|
+
- --title
|
47
|
+
- Validator documentation
|
48
|
+
- --main
|
49
|
+
- README
|
50
|
+
- --line-numbers
|
51
|
+
- --inline-source
|
38
52
|
require_paths:
|
39
53
|
- lib
|
40
54
|
required_ruby_version: !ruby/object:Gem::Requirement
|
41
55
|
requirements:
|
42
56
|
- - ">="
|
43
57
|
- !ruby/object:Gem::Version
|
44
|
-
version:
|
58
|
+
version: 1.8.6
|
45
59
|
version:
|
46
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
61
|
requirements:
|