brdata 2.1.14 → 2.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +22 -28
- data/lib/brdata/version.rb +1 -1
- metadata +29 -13
data/Rakefile
CHANGED
@@ -1,17 +1,15 @@
|
|
1
1
|
# encoding: UTF-8
|
2
|
-
require
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
6
|
-
require
|
7
|
-
require
|
2
|
+
require "rubygems"
|
3
|
+
require "rake"
|
4
|
+
require "rake/testtask"
|
5
|
+
require "rake/rdoctask"
|
6
|
+
require "rake/packagetask"
|
7
|
+
require "rake/gempackagetask"
|
8
8
|
|
9
|
+
require File.join(File.dirname(__FILE__), "lib", "brdata", "version")
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
|
14
|
-
PKG_NAME = 'brdata'
|
11
|
+
PKG_BUILD = ENV["PKG_BUILD"] ? "." + ENV["PKG_BUILD"] : ""
|
12
|
+
PKG_NAME = "brdata"
|
15
13
|
PKG_VERSION = BrData::VERSION::STRING + PKG_BUILD
|
16
14
|
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
17
15
|
|
@@ -26,24 +24,22 @@ task :default => [ :test ]
|
|
26
24
|
# Run the unit tests
|
27
25
|
Rake::TestTask.new { |t|
|
28
26
|
t.libs << "test"
|
29
|
-
t.pattern =
|
27
|
+
t.pattern = "test/*_test.rb"
|
30
28
|
t.verbose = true
|
31
29
|
t.warning = false
|
32
30
|
}
|
33
31
|
|
34
|
-
|
35
32
|
#Generate the RDoc documentation
|
36
33
|
Rake::RDocTask.new { |rdoc|
|
37
|
-
rdoc.rdoc_dir =
|
34
|
+
rdoc.rdoc_dir = "doc"
|
38
35
|
rdoc.title = "Brazilian Rails -- Data"
|
39
|
-
rdoc.options <<
|
40
|
-
rdoc.options <<
|
41
|
-
rdoc.template = "#{ENV[
|
42
|
-
rdoc.rdoc_files.include(
|
43
|
-
rdoc.rdoc_files.include(
|
36
|
+
rdoc.options << "--line-numbers" << "--inline-source" << "-A cattr_accessor=object"
|
37
|
+
rdoc.options << "--charset" << "utf-8"
|
38
|
+
rdoc.template = "#{ENV["template"]}.rb" if ENV["template"]
|
39
|
+
rdoc.rdoc_files.include("README", "CHANGELOG")
|
40
|
+
rdoc.rdoc_files.include("lib/**/*")
|
44
41
|
}
|
45
42
|
|
46
|
-
|
47
43
|
# Create compressed packages
|
48
44
|
spec = Gem::Specification.new do |s|
|
49
45
|
s.platform = Gem::Platform::RUBY
|
@@ -57,25 +53,23 @@ spec = Gem::Specification.new do |s|
|
|
57
53
|
s.rubyforge_project = "brdata"
|
58
54
|
s.homepage = "http://www.improveit.com.br/software_livre/brazilian_rails"
|
59
55
|
|
60
|
-
s.add_dependency(
|
61
|
-
s.add_dependency(
|
56
|
+
s.add_dependency("actionpack", ">= 2.3.2", "< 3.0.0")
|
57
|
+
s.add_dependency("activesupport", ">= 2.3.2", "< 3.0.0")
|
62
58
|
|
63
59
|
s.has_rdoc = true
|
64
|
-
s.requirements <<
|
65
|
-
s.require_path =
|
66
|
-
# s.autorequire =
|
60
|
+
s.requirements << "none"
|
61
|
+
s.require_path = "lib"
|
62
|
+
# s.autorequire = "brdata"
|
67
63
|
|
68
64
|
s.files = [ "Rakefile", "README", "CHANGELOG", "MIT-LICENSE" ]
|
69
65
|
s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
70
66
|
s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
71
67
|
end
|
72
|
-
|
68
|
+
|
73
69
|
Rake::GemPackageTask.new(spec) do |p|
|
74
70
|
p.gem_spec = spec
|
75
71
|
end
|
76
72
|
|
77
|
-
|
78
|
-
|
79
73
|
desc "Publish the release files to RubyForge."
|
80
74
|
task :release => [ :package ] do
|
81
75
|
`gem push pkg/#{PKG_NAME}-#{PKG_VERSION}.gem`
|
data/lib/brdata/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brdata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 2.1.
|
9
|
+
- 15
|
10
|
+
version: 2.1.15
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Marcos Tapaj\xC3\xB3s"
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2010-
|
21
|
+
date: 2010-11-05 00:00:00 -02:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
@@ -29,12 +29,20 @@ dependencies:
|
|
29
29
|
requirements:
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
hash:
|
32
|
+
hash: 7
|
33
33
|
segments:
|
34
|
-
-
|
35
|
-
-
|
36
|
-
-
|
37
|
-
version:
|
34
|
+
- 2
|
35
|
+
- 3
|
36
|
+
- 2
|
37
|
+
version: 2.3.2
|
38
|
+
- - <
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
hash: 7
|
41
|
+
segments:
|
42
|
+
- 3
|
43
|
+
- 0
|
44
|
+
- 0
|
45
|
+
version: 3.0.0
|
38
46
|
type: :runtime
|
39
47
|
version_requirements: *id001
|
40
48
|
- !ruby/object:Gem::Dependency
|
@@ -45,12 +53,20 @@ dependencies:
|
|
45
53
|
requirements:
|
46
54
|
- - ">="
|
47
55
|
- !ruby/object:Gem::Version
|
48
|
-
hash:
|
56
|
+
hash: 7
|
49
57
|
segments:
|
50
|
-
- 1
|
51
|
-
- 4
|
52
58
|
- 2
|
53
|
-
|
59
|
+
- 3
|
60
|
+
- 2
|
61
|
+
version: 2.3.2
|
62
|
+
- - <
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
hash: 7
|
65
|
+
segments:
|
66
|
+
- 3
|
67
|
+
- 0
|
68
|
+
- 0
|
69
|
+
version: 3.0.0
|
54
70
|
type: :runtime
|
55
71
|
version_requirements: *id002
|
56
72
|
description: "brdata \xC3\xA9 uma das gems que compoem o Brazilian Rails"
|