rock-n-code-validations4r 0.0.1

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.
Files changed (6) hide show
  1. data/CHANGES +11 -0
  2. data/LICENSE +34 -0
  3. data/README +18 -0
  4. data/Rakefile +47 -0
  5. data/TODO +5 -0
  6. metadata +84 -0
data/CHANGES ADDED
@@ -0,0 +1,11 @@
1
+ ==== 0.0.2 ~ April 24, 2009
2
+ * Refactored the Install and Uninstall tasks.
3
+ * Added some attributes to the gem definition.
4
+ * Added the Cucumber and Validator dependencies to the gem definition.
5
+ * Deleted the gem definition redundancy within the Rakefile.
6
+ * Fixed some mispelled words within the project documentation.
7
+
8
+ ==== 0.0.1 ~ April 23, 2009
9
+ * Initial commit.
10
+ * Added the project documentation templates.
11
+ * Added the Rakefile and the gemspec files.
data/LICENSE ADDED
@@ -0,0 +1,34 @@
1
+ === Creative Commons GPL.
2
+
3
+ GNU General Public License, Free Software Foundation
4
+
5
+ The GNU General Public License is a Free Software license. Like any Free
6
+ Software license, it grants to you the four following freedoms:
7
+
8
+ 1. The freedom to run the program for any purpose.
9
+ 2. The freedom to study how the program works and adapt it to your needs.
10
+ 3. The freedom to redistribute copies so you can help your neighbor.
11
+ 4. The freedom to improve the program and release your improvements to the
12
+ public, so that the whole community benefits.
13
+
14
+ You may exercise the freedoms specified here provided that you comply with the
15
+ express conditions of this license. The principal conditions are:
16
+
17
+ - You must conspicuously and appropriately publish on each copy distributed an
18
+ appropriate copyright notice and disclaimer of warranty and keep intact all
19
+ the notices that refer to this License and to the absence of any warranty;
20
+ and give any other recipients of the Program a copy of the GNU General Public
21
+ License along with the Program. Any translation of the GNU General Public
22
+ License must be accompanied by the GNU General Public License.
23
+ - If you modify your copy or copies of the program or any portion of it, or
24
+ develop a program based upon it, you may distribute the resulting work
25
+ provided you do so under the GNU General Public License. Any translation of
26
+ the GNU General Public License must be accompanied by the GNU General Public
27
+ License.
28
+ - If you copy or distribute the program, you must accompany it with the complete
29
+ corresponding machine-readable source code or with a written offer, valid for
30
+ at least three years, to furnish the complete corresponding machine-readable
31
+ source code.
32
+
33
+ Any of the above conditions can be waived if you get permission from the
34
+ copyright holder.
data/README ADDED
@@ -0,0 +1,18 @@
1
+ == VALIDATIONS 4 RUBY
2
+
3
+ === Vision
4
+
5
+ Simple Ruby built-in validations.
6
+
7
+ === Purpose.
8
+
9
+ ...
10
+
11
+ === Concept.
12
+
13
+ ...
14
+
15
+ === Features.
16
+
17
+ The current version of this library implements these features:
18
+ - ...
data/Rakefile ADDED
@@ -0,0 +1,47 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'rake/clean'
4
+ require 'rake/gempackagetask'
5
+ require 'rake/rdoctask'
6
+ require 'cucumber/rake/task'
7
+
8
+ desc 'Load the GemSpec definition file.'
9
+ load 'validations4r.gemspec'
10
+
11
+ desc 'Package building.'
12
+ Rake::GemPackageTask.new(GEM) do |package|
13
+ package.gem_spec = GEM
14
+ package.need_tar = false
15
+ package.need_zip = false
16
+ end
17
+
18
+ desc 'Documentation generation.'
19
+ Rake::RDocTask.new do |documentation|
20
+ documentation.rdoc_files.add(%w(README LICENSE CHANGES TODO lib/**/*.rb))
21
+ documentation.main = 'README'
22
+ documentation.title = 'Validator Documentation'
23
+ documentation.rdoc_dir = 'doc/rdoc'
24
+ documentation.options << '--line-numbers' << '--inline-source'
25
+ end
26
+
27
+ desc 'Integration and acceptance testing with Cucumber.'
28
+ Cucumber::Rake::Task.new(:features) do |cucumber|
29
+ cucumber.cucumber_opts = 'features --format pretty'
30
+ end
31
+
32
+ desc 'Cleaning the generated packaging and documentation files.'
33
+ CLEAN.include %w(**/.*.sw? pkg lib/*.bundle lib/*.so *.gem doc .config coverage
34
+ cache spec/**/*.log .DS_Store)
35
+
36
+ desc 'Building and installing as a local gem.'
37
+ task :install => [:clean, :package] do
38
+ is_admin = RUBY_PLATFORM =~ /win32/ ? nil : 'sudo'
39
+ `#{is_admin} gem install pkg/#{GEM.name}-#{GEM.version}.gem`
40
+ end
41
+
42
+ desc 'Uninstalling the latest version of the created gem.'
43
+ task :uninstall => [:clean] do
44
+ is_admin = RUBY_PLATFORM =~ /win32/ ? nil : 'sudo'
45
+ `#{is_admin} gem uninstall #{GEM.name} -v #{GEM.version}`
46
+ end
47
+ end
data/TODO ADDED
@@ -0,0 +1,5 @@
1
+ === ToDo's
2
+ * Define the group for the class that will validate +NilClass+ instances.
3
+ * Write tests for the class that will validate +NilClass+ instances.
4
+ * Define the group and rules for the class that will validate +TrueClass+ and +FalseClass+ instances.
5
+ * Write tests for the class that will validate +TrueClass+ and +FalseClass+ instances.
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rock-n-code-validations4r
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Julio Javier Cicchelli
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-04-23 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: cucumber
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.3.0
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: validator
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.3.5
34
+ version:
35
+ description: An easy to use Ruby built-in type validations library.
36
+ email: javier@rock-n-code.com
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files:
42
+ - README
43
+ - LICENSE
44
+ - CHANGES
45
+ - TODO
46
+ files:
47
+ - LICENSE
48
+ - README
49
+ - CHANGES
50
+ - TODO
51
+ - Rakefile
52
+ has_rdoc: true
53
+ homepage: http://rock-n-code.com
54
+ post_install_message:
55
+ rdoc_options:
56
+ - --title
57
+ - Validations 4 Ruby documentation
58
+ - --main
59
+ - README
60
+ - --line-numbers
61
+ - --inline-source
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 1.8.6
69
+ version:
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: "0"
75
+ version:
76
+ requirements: []
77
+
78
+ rubyforge_project:
79
+ rubygems_version: 1.2.0
80
+ signing_key:
81
+ specification_version: 2
82
+ summary: Ruby built-in type validations library.
83
+ test_files: []
84
+