brcpfcnpj 2.1.11 → 2.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +18 -25
- data/lib/brcpfcnpj/version.rb +1 -1
- data/lib/brcpfcnpj.rb +1 -1
- metadata +5 -5
data/Rakefile
CHANGED
@@ -5,9 +5,7 @@ require 'rake/testtask'
|
|
5
5
|
require 'rake/rdoctask'
|
6
6
|
require 'rake/packagetask'
|
7
7
|
require 'rake/gempackagetask'
|
8
|
-
|
9
|
-
require 'spec'
|
10
|
-
require 'spec/rake/spectask'
|
8
|
+
|
11
9
|
require File.join(File.dirname(__FILE__), 'lib', 'brcpfcnpj', 'version')
|
12
10
|
|
13
11
|
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
|
@@ -20,16 +18,23 @@ RELEASE_NAME = "REL #{PKG_VERSION}"
|
|
20
18
|
RUBY_FORGE_PROJECT = "brcpfcnpj"
|
21
19
|
RUBY_FORGE_USER = "tapajos"
|
22
20
|
|
23
|
-
|
24
|
-
|
21
|
+
begin
|
22
|
+
require 'spec'
|
23
|
+
require 'spec/rake/spectask'
|
24
|
+
|
25
|
+
desc "Default Task"
|
26
|
+
task :default => [ :spec ]
|
25
27
|
|
26
|
-
desc "Run all specs"
|
27
|
-
Spec::Rake::SpecTask.new do |t|
|
28
|
-
|
29
|
-
end
|
28
|
+
desc "Run all specs"
|
29
|
+
Spec::Rake::SpecTask.new do |t|
|
30
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
31
|
+
end
|
30
32
|
|
31
|
-
task :test do
|
32
|
-
|
33
|
+
task :test do
|
34
|
+
system("rake spec")
|
35
|
+
end
|
36
|
+
rescue LoadError
|
37
|
+
puts "To execute tests for brcnpjcpf gem, you want to install spec gem before"
|
33
38
|
end
|
34
39
|
|
35
40
|
#Generate the RDoc documentation
|
@@ -58,7 +63,7 @@ spec = Gem::Specification.new do |s|
|
|
58
63
|
s.homepage = "http://www.improveit.com.br/software_livre/brazilian_rails"
|
59
64
|
|
60
65
|
s.add_dependency('actionpack', '>= 1.13.6')
|
61
|
-
s.add_dependency('
|
66
|
+
s.add_dependency('activesupport', '>= 1.4.2')
|
62
67
|
|
63
68
|
s.has_rdoc = true
|
64
69
|
s.requirements << 'none'
|
@@ -68,24 +73,12 @@ spec = Gem::Specification.new do |s|
|
|
68
73
|
s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
69
74
|
s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
70
75
|
end
|
71
|
-
|
76
|
+
|
72
77
|
Rake::GemPackageTask.new(spec) do |p|
|
73
78
|
p.gem_spec = spec
|
74
|
-
p.need_tar = true
|
75
|
-
p.need_zip = true
|
76
79
|
end
|
77
80
|
|
78
81
|
|
79
|
-
# desc "Publish the API documentation"
|
80
|
-
# task :pgem => [:package] do
|
81
|
-
# Rake::SshFilePublisher.new("wrath.rubyonrails.org", "public_html/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload
|
82
|
-
# end
|
83
|
-
#
|
84
|
-
# desc "Publish the API documentation"
|
85
|
-
# task :pdoc => [:rdoc] do
|
86
|
-
# Rake::SshDirPublisher.new("wrath.rubyonrails.org", "public_html/am", "doc").upload
|
87
|
-
# end
|
88
|
-
#
|
89
82
|
|
90
83
|
desc "Publish the release files to RubyForge."
|
91
84
|
task :release => [ :package ] do
|
data/lib/brcpfcnpj/version.rb
CHANGED
data/lib/brcpfcnpj.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
$:.unshift(File.dirname(__FILE__)) unless
|
2
2
|
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
|
-
|
3
|
+
|
4
4
|
%w(cpf_cnpj cnpj cpf cpf_cnpj_activerecord).each {|req| require File.dirname(__FILE__) + "/brcpfcnpj/#{req}"}
|
5
5
|
|
6
6
|
%w(rubygems active_record active_support).each {|req| require req }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brcpfcnpj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 2.1.
|
9
|
+
- 12
|
10
|
+
version: 2.1.12
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Marcos Tapaj\xC3\xB3s"
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2010-
|
22
|
+
date: 2010-07-01 00:00:00 -03:00
|
23
23
|
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
type: :runtime
|
40
40
|
version_requirements: *id001
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: activesupport
|
43
43
|
prerelease: false
|
44
44
|
requirement: &id002 !ruby/object:Gem::Requirement
|
45
45
|
none: false
|