string_utility_belt 0.3.2 → 0.3.3

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.
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
- pkg/**/*
1
+ pkg/*
2
2
  nbproject/**/*
3
3
  *.swp
4
4
  coverage*
5
+ doc/*
@@ -0,0 +1,38 @@
1
+ # 0.3.3
2
+ ## Summary: Docs
3
+ * Criado change log para listar as principais alterações entre cada versão.
4
+ * Criado ROADMAP para informar os planos para a gem.
5
+ * Adicionado warnings para alertar quais métodos que estarão depreciados na próxima versão, abaix está a listagem deles:
6
+ StringUtilityBelt::RegexMe::Builders.regex_me_to_search_ruby will be deprecated in the next_version
7
+ StringUtilityBelt::RegexMe::Builders.regex_me_to_search_mysql will be deprecated in the next_version
8
+ StringUtilityBelt::General.have_this_words? will be deprecated in the next_version
9
+ StringUtilityBelt::General.not_have_this_words? will be deprecated in the next_version
10
+ StringUtilityBelt::MatchRank.total_frequency_by will be deprecated in the next_version
11
+ StringUtilityBelt::MatchRank.words_frequency_by will be deprecated in the next_version
12
+ StringUtilityBelt::MatchRank.match_and_score_by will be deprecated in the next_version
13
+ StringUtilityBelt::Entities.decode_entities_and_cleaner will be deprecated in the next_version
14
+
15
+ # 0.3.2
16
+ ## Summary: Refactory
17
+ * Finalizada a refatoração do módulo RegexMe transformando em uma lib a parte (No futuro será uma Gem independente).
18
+
19
+ # 0.3.1
20
+ ## Summary: Bug Fix
21
+ * Incluido a gem htmlentities (4.3.0) como dependencia de runtime ao gemspc
22
+ para instala-lá juntamente com o string_utility_belt
23
+
24
+ # 0.3.0
25
+ ## Summary: Refactory
26
+ * Todos os módulos foram refatorados
27
+ * Também foram criada classes internas para encapsular a lógica nas libs General e MatchRank (Começarm planos para serem uma gem a parte).
28
+
29
+ # > 0.2.5
30
+ ## Summary: Test coverage
31
+ * 100% de cobertura de teste
32
+ * E pequenas refatorações foram feitas ao longo do processo.
33
+
34
+ # <= 0.2.5
35
+ ## Summary: Self learning
36
+ * Minha intenção foi a de começar com open-source compartilhando bibliotecas que foram úteis para mim.
37
+ * 0% de cobertura de testes... (#fail)
38
+ * O código era muito ruim mas funcionava. :P
data/README.markdown CHANGED
@@ -6,6 +6,9 @@
6
6
 
7
7
  <a href="http://github.com/serradura/string_utility_belt">http://github.com/serradura/string_utility_belt</a>
8
8
 
9
+ ## Motivação
10
+ Em meus primeiros projetos em Ruby criei algumas bibliotecas para trabalhar com strings. Como estava começando com a linguagem comecei a explorar o ecossistema e então resolvi criar a minha primeira rubygem. Minha intenção foi a de aprender e compartilhar.
11
+
9
12
  ## Install
10
13
 
11
14
  gem install string_utility_belt
@@ -142,4 +145,4 @@ Dê um fork no projeto envie seus códigos e publicarei na GEM.
142
145
 
143
146
  Abraço,
144
147
  Serradura
145
-
148
+
data/ROADMAP.markdown ADDED
@@ -0,0 +1,15 @@
1
+ Aqui serão listados os planos para as próximas versões da gem...
2
+
3
+ # Versão: 1.0.0
4
+ * Tornar as libs General (alguns métodos), MatchRank, RegexMe em gems e incluí-las como dependências.
5
+ * Documentar 100% do código.
6
+
7
+ # Versão: 0.3.x
8
+ * Refatorar todo o código.
9
+ * Adicionar 100% de cobertura de testes.
10
+ * Criar classes para encapsular a lógica contida em alguns módulos (ex: lib General, MatchRank, RegexMe)
11
+
12
+ # Versão: 0.2.x
13
+ * Integrar o RegexMe (minha primeira lib que vi um diferencial) ao projeto e criar métodos que a utilizasse com o objetivo de exemplificar seu potencial/aplicação.
14
+ * Disponibilizar as bibliotecas que criei e foram úteis em projetos que participei.
15
+ * Criar minha primeira gem.
data/Rakefile CHANGED
@@ -17,10 +17,10 @@ rescue
17
17
  end
18
18
 
19
19
  Rake::RDocTask.new do |rdoc|
20
- files =['README', 'LICENSE', 'lib/**/*.rb']
20
+ files =['*.markdown', 'lib/**/*.rb']
21
21
  rdoc.rdoc_files.add(files)
22
- rdoc.main = "README" # page to start on
23
- rdoc.title = "serradura-string_utility_belt Docs"
22
+ rdoc.main = "README.markdown" # page to start on
23
+ rdoc.title = "serradura/string_utility_belt Docs"
24
24
  rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
25
25
  rdoc.options << '--line-numbers'
26
26
  end
@@ -12,6 +12,7 @@ module StringUtilityBelt
12
12
  CODER.decode(self)
13
13
  end
14
14
 
15
+ warn "StringUtilityBelt::Entities.decode_entities_and_cleaner will be deprecated in the next_version"
15
16
  def decode_entities_and_cleaner
16
17
  decode_entities.tag_cleaner
17
18
  end
@@ -54,19 +54,24 @@ module StringUtilityBelt
54
54
  self.scan(WORD_PATTERN)
55
55
  end
56
56
 
57
+
58
+ warn "StringUtilityBelt:General.simple_space will be deprecated in the next_version"
57
59
  def simple_space
58
60
  self.gsub(ANY_SPACE_PATTERN, SIMPLE_SPACE)
59
61
  end
60
62
 
63
+ warn "StringUtilityBelt:General.simple_space! will be deprecated in the next_version"
61
64
  def simple_space!
62
65
  self.gsub!(ANY_SPACE_PATTERN, SIMPLE_SPACE)
63
66
  end
64
67
 
68
+ warn "StringUtilityBelt::General.have_this_words? will be deprecated in the next_version"
65
69
  def have_this_words?(words_to_match, options = nil)
66
70
  i = GENERAL.new(self)
67
71
  i.have_this_words?(words_to_match, options)
68
72
  end
69
73
 
74
+ warn "StringUtilityBelt::General.not_have_this_words? will be deprecated in the next_version"
70
75
  def not_have_this_words?(words_to_match, options = nil)
71
76
  i = GENERAL.new(self)
72
77
  !i.have_this_words?(words_to_match, options)
@@ -81,14 +81,19 @@ module StringUtilityBelt
81
81
  end
82
82
  end
83
83
 
84
+
85
+ warn "StringUtilityBelt::MatchRank.total_frequency_by will be deprecated in the next_version"
84
86
  def total_frequency_by(words)
85
87
  measure.frequency(:template => :total, :search_words => words)
86
88
  end
87
89
 
90
+
91
+ warn "StringUtilityBelt::MatchRank.words_frequency_by will be deprecated in the next_version"
88
92
  def words_frequency_by(words)
89
93
  measure.frequency(:template => :grouped_words, :search_words => words)
90
94
  end
91
95
 
96
+ warn "StringUtilityBelt::MatchRank.match_and_score_by will be deprecated in the next_version"
92
97
  def match_and_score_by(words)
93
98
  measure.frequency(:template => :precision, :search_words => words)
94
99
  end
@@ -2,10 +2,14 @@ require File.dirname(__FILE__) + '/helper'
2
2
 
3
3
  module RegexMe
4
4
  module Builders
5
+
6
+ warn "StringUtilityBelt::RegexMe::Builders.regex_me_to_search_ruby will be deprecated in the next_version"
5
7
  def regex_me_to_search_ruby(options = {})
6
8
  regex_me_to_search(:ruby, options)
7
9
  end
8
10
 
11
+
12
+ warn "StringUtilityBelt::RegexMe::Builders.regex_me_to_search_mysql will be deprecated in the next_version"
9
13
  def regex_me_to_search_mysql(options = {})
10
14
  regex_me_to_search(:mysql, options)
11
15
  end
@@ -1,3 +1,3 @@
1
1
  module StringUtilityBelt
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_utility_belt
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rodrigo Serradura
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-13 00:00:00 Z
18
+ date: 2011-07-26 00:00:00 -03:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: htmlentities
@@ -44,9 +45,11 @@ extra_rdoc_files: []
44
45
 
45
46
  files:
46
47
  - .gitignore
48
+ - CHANGELOG.markdown
47
49
  - Gemfile
48
50
  - Gemfile.lock
49
51
  - README.markdown
52
+ - ROADMAP.markdown
50
53
  - Rakefile
51
54
  - lib/string_utility_belt.rb
52
55
  - lib/string_utility_belt/entities.rb
@@ -67,6 +70,7 @@ files:
67
70
  - test/string_utility_belt/regex_me/helper_test.rb
68
71
  - test/string_utility_belt/tags_test.rb
69
72
  - test/test_helper.rb
73
+ has_rdoc: true
70
74
  homepage: ""
71
75
  licenses: []
72
76
 
@@ -96,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
100
  requirements: []
97
101
 
98
102
  rubyforge_project: string_utility_belt
99
- rubygems_version: 1.8.2
103
+ rubygems_version: 1.6.2
100
104
  signing_key:
101
105
  specification_version: 3
102
106
  summary: Useful methods to handle strings