brstring 2.1.15 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -13,11 +13,6 @@ PKG_NAME = "brstring"
13
13
  PKG_VERSION = BrString::VERSION::STRING + PKG_BUILD
14
14
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
15
15
 
16
- RELEASE_NAME = "REL #{PKG_VERSION}"
17
-
18
- RUBY_FORGE_PROJECT = "brstring"
19
- RUBY_FORGE_USER = "tapajos"
20
-
21
16
  desc "Default Task"
22
17
  task :default => [ :test ]
23
18
 
@@ -48,17 +43,18 @@ spec = Gem::Specification.new do |s|
48
43
  s.description = %q{brstring é uma das gems que compoem o Brazilian Rails}
49
44
  s.version = PKG_VERSION
50
45
 
51
- s.authors = ["Marcos Tapajós", "Celestino Gomes", "Andre Kupkosvki", "Vinícius Teles"]
52
- s.email = "tapajos@gmail.com"
46
+ s.authors = ["Marcos Tapajós", "Celestino Gomes", "Andre Kupkosvki", "Vinícius Teles", "Felipe Barreto", "Rafael Walter", "Cassio Marques"]
47
+ s.email = %w"tapajos@gmail.com tinorj@gmail.com kupkovski@gmail.com vinicius.m.teles@gmail.com felipebarreto@gmail.com rafawalter@gmail.com cassiommc@gmail.com"
53
48
  s.rubyforge_project = "brstring"
54
49
  s.homepage = "http://www.improveit.com.br/software_livre/brazilian_rails"
55
50
 
56
- s.add_dependency("activesupport", ">= 2.3.2", "< 3.0.0")
51
+ s.add_dependency("activesupport", ">= 3.0.0")
52
+
53
+ s.add_development_dependency "rake"
57
54
 
58
55
  s.has_rdoc = true
59
56
  s.requirements << "none"
60
57
  s.require_path = "lib"
61
- # s.autorequire = "brstring"
62
58
 
63
59
  s.files = [ "Rakefile", "README", "CHANGELOG", "MIT-LICENSE" ]
64
60
  s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
@@ -71,5 +67,5 @@ end
71
67
 
72
68
  desc "Publish the release files to RubyForge."
73
69
  task :release => [ :package ] do
74
- `gem push pkg/#{PKG_NAME}-#{PKG_VERSION}.gem`
70
+ `gem push pkg/#{PKG_FILE_NAME}.gem`
75
71
  end
@@ -69,7 +69,7 @@ class String
69
69
  # Exemplo:
70
70
  # String.upcase('texto com acentuação' ==> 'TEXTO COM ACENTUAÇÃO'
71
71
  def self.upcase(texto)
72
- return texto if texto.blank?
72
+ return texto if texto.nil? or texto.empty?
73
73
  texto.tr(MINUSCULAS, MAIUSCULAS)
74
74
  end
75
75
 
@@ -96,7 +96,7 @@ class String
96
96
  # Exemplo:
97
97
  # String.downcase('TEXTO COM ACENTUAÇÃO') ==> 'texto com acentuação'
98
98
  def self.downcase(texto)
99
- return texto if texto.blank?
99
+ return texto if texto.nil? or texto.empty?
100
100
  texto.tr(MAIUSCULAS, MINUSCULAS)
101
101
  end
102
102
 
@@ -123,7 +123,7 @@ class String
123
123
  # Exemplo:
124
124
  # String.titleize('o livro esta sobre a mesa!') ==> 'O Livro Esta Sobre A Mesa!'
125
125
  def self.titleize(texto)
126
- return texto if texto.blank?
126
+ return texto if texto.nil? or texto.empty?
127
127
  texto = texto.downcase
128
128
  texto = texto.downcase
129
129
  texto.mb_chars[0] = texto.mb_chars.first.upcase
@@ -148,6 +148,7 @@ class String
148
148
  def titleize!
149
149
  self.gsub!(/^.*$/, String.titleize(self)) if self
150
150
  end
151
-
151
+
152
152
 
153
153
  end
154
+
@@ -1,9 +1,10 @@
1
1
  module BrString
2
2
  module VERSION #:nodoc:
3
- MAJOR = 2
4
- MINOR = 1
5
- TINY = 15
3
+ MAJOR = 3
4
+ MINOR = 0
5
+ TINY = 0
6
6
 
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{TINY}"
8
8
  end
9
9
  end
10
+
data/lib/brstring.rb CHANGED
@@ -5,9 +5,11 @@ $KCODE = 'utf-8' if RUBY_VERSION < '1.9'
5
5
 
6
6
  require 'rubygems'
7
7
  require 'active_support'
8
+ require 'active_support/core_ext'
8
9
 
9
10
  %w(version
10
11
  string_portuguese).each {|req| require File.dirname(__FILE__) + "/brstring/#{req}"}
11
12
 
12
13
  module BrString
13
14
  end
15
+
metadata CHANGED
@@ -1,24 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brstring
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
- - 2
8
- - 1
9
- - 15
10
- version: 2.1.15
7
+ - 3
8
+ - 0
9
+ - 0
10
+ version: 3.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Marcos Tapaj\xC3\xB3s"
14
14
  - Celestino Gomes
15
15
  - Andre Kupkosvki
16
16
  - "Vin\xC3\xADcius Teles"
17
+ - Felipe Barreto
18
+ - Rafael Walter
19
+ - Cassio Marques
17
20
  autorequire:
18
21
  bindir: bin
19
22
  cert_chain: []
20
23
 
21
- date: 2010-11-05 00:00:00 -02:00
24
+ date: 2010-10-23 00:00:00 -02:00
22
25
  default_executable:
23
26
  dependencies:
24
27
  - !ruby/object:Gem::Dependency
@@ -28,14 +31,6 @@ dependencies:
28
31
  none: false
29
32
  requirements:
30
33
  - - ">="
31
- - !ruby/object:Gem::Version
32
- hash: 7
33
- segments:
34
- - 2
35
- - 3
36
- - 2
37
- version: 2.3.2
38
- - - <
39
34
  - !ruby/object:Gem::Version
40
35
  hash: 7
41
36
  segments:
@@ -45,8 +40,29 @@ dependencies:
45
40
  version: 3.0.0
46
41
  type: :runtime
47
42
  version_requirements: *id001
43
+ - !ruby/object:Gem::Dependency
44
+ name: rake
45
+ prerelease: false
46
+ requirement: &id002 !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ hash: 3
52
+ segments:
53
+ - 0
54
+ version: "0"
55
+ type: :development
56
+ version_requirements: *id002
48
57
  description: "brstring \xC3\xA9 uma das gems que compoem o Brazilian Rails"
49
- email: tapajos@gmail.com
58
+ email:
59
+ - tapajos@gmail.com
60
+ - tinorj@gmail.com
61
+ - kupkovski@gmail.com
62
+ - vinicius.m.teles@gmail.com
63
+ - felipebarreto@gmail.com
64
+ - rafawalter@gmail.com
65
+ - cassiommc@gmail.com
50
66
  executables: []
51
67
 
52
68
  extensions: []