brstring 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 +21 -29
- data/lib/brstring/version.rb +1 -1
- metadata +16 -8
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", "brstring", "version")
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
|
14
|
-
PKG_NAME = 'brstring'
|
11
|
+
PKG_BUILD = ENV["PKG_BUILD"] ? "." + ENV["PKG_BUILD"] : ""
|
12
|
+
PKG_NAME = "brstring"
|
15
13
|
PKG_VERSION = BrString::VERSION::STRING + PKG_BUILD
|
16
14
|
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
17
15
|
|
@@ -26,25 +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 -- String"
|
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
|
-
|
48
43
|
# Create compressed packages
|
49
44
|
spec = Gem::Specification.new do |s|
|
50
45
|
s.platform = Gem::Platform::RUBY
|
@@ -58,25 +53,22 @@ spec = Gem::Specification.new do |s|
|
|
58
53
|
s.rubyforge_project = "brstring"
|
59
54
|
s.homepage = "http://www.improveit.com.br/software_livre/brazilian_rails"
|
60
55
|
|
61
|
-
s.add_dependency(
|
62
|
-
|
56
|
+
s.add_dependency("activesupport", ">= 2.3.2", "< 3.0.0")
|
63
57
|
|
64
58
|
s.has_rdoc = true
|
65
|
-
s.requirements <<
|
66
|
-
s.require_path =
|
67
|
-
# s.autorequire =
|
59
|
+
s.requirements << "none"
|
60
|
+
s.require_path = "lib"
|
61
|
+
# s.autorequire = "brstring"
|
68
62
|
|
69
63
|
s.files = [ "Rakefile", "README", "CHANGELOG", "MIT-LICENSE" ]
|
70
64
|
s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
71
65
|
s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
72
66
|
end
|
73
|
-
|
67
|
+
|
74
68
|
Rake::GemPackageTask.new(spec) do |p|
|
75
69
|
p.gem_spec = spec
|
76
70
|
end
|
77
71
|
|
78
|
-
|
79
|
-
|
80
72
|
desc "Publish the release files to RubyForge."
|
81
73
|
task :release => [ :package ] do
|
82
74
|
`gem push pkg/#{PKG_NAME}-#{PKG_VERSION}.gem`
|
data/lib/brstring/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brstring
|
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
|
-
- 1
|
35
|
-
- 4
|
36
34
|
- 2
|
37
|
-
|
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
|
description: "brstring \xC3\xA9 uma das gems que compoem o Brazilian Rails"
|