summary 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,11 @@
1
+ v0.6.2. README review
2
+
1
3
  v0.6.1. README review
4
+
2
5
  v0.6.0. Code review, Removed ActiveSupport dependence
6
+
3
7
  v0.5.0. Added support for specific terminator (including html), Replaced the test units to Rspec specs, Now the summary method builds an object Summarize, Better support for versioning (MAJOR, TINY, PATCH constants)
8
+
4
9
  v0.2. Adding the support as Ruby on Rails plugin
5
- v0.1. First release!
10
+
11
+ v0.1. First release!
data/README.rdoc CHANGED
@@ -30,6 +30,10 @@ This is a simple gem that generates introduction text from a long text, it will
30
30
  === as Ruby on Rails plugin
31
31
 
32
32
  script/plugin install git://github.com/azisaka/summary.git
33
+
34
+ === as a Gem
35
+
36
+ gem install summary
33
37
 
34
38
  == Collaborators
35
39
 
data/Rakefile CHANGED
@@ -5,6 +5,6 @@ Echoe.new('summary') do |p|
5
5
  p.email = 'bruno [at] bubble [dot] com [dot] br'
6
6
  p.url = 'http://github.com/azisaka/summary'
7
7
  p.summary = 'This is a simple gem that generates introduction text from a long text, it will always break the text at the end of the last word near to the limit you informed as argument.'
8
- # p.docs_host = ''
8
+ p.docs_host = 'http://azisaka.github.com/summary/doc/'
9
9
  p.retain_gemspec = true
10
10
  end
data/lib/summary.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Summary
2
2
  MAJOR = '0'
3
3
  TINY = '6'
4
- PATCH = '1'
4
+ PATCH = '2'
5
5
  VERSION = [MAJOR, TINY, PATCH] * '.'
6
6
 
7
7
  module String
@@ -34,7 +34,7 @@ module Summary
34
34
  end
35
35
 
36
36
  # Checks the need of "summarize" the string. When it is needed, the string is splitted.
37
- # Then the last dot is removed and the separator and terminator are pushed into the resultant string.
37
+ # Then the last dot is removed and the terminator is pushed into the resultant string.
38
38
  def summary
39
39
  if pure.size > @size
40
40
  @text = pure[0...pure[0..(@size-backspace)].rindex(' ')]
data/spec/summary_spec.rb CHANGED
@@ -1,11 +1,5 @@
1
1
  require File.expand_path('spec_helper', File.dirname(__FILE__))
2
2
 
3
- describe Summary do
4
- it 'should be version 0.6.1' do
5
- subject::VERSION.should == '0.6.1'
6
- end
7
- end
8
-
9
3
  describe Summary, 'on plain text' do
10
4
  before do
11
5
  @text = 'Cras eleifend sodales sem. Ut nec metus. Nulla sed nisl. Praesent malesuada dui rhoncus quam. Aliquam ultricies. Praesent commodo. Nam nec pede. Pellentesque egestas, urna vel accumsan venenatis, mi metus sagittis augue, sed hendrerit nunc felis eget neque. Fusce vel massa. Quisque ligula enim, tempor sed, lacinia non, malesuada ac, enim. Curabitur at enim scelerisque neque egestas luctus. Mauris lacinia varius diam.'
data/summary.gemspec CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{summary}
5
- s.version = "0.6.1"
5
+ s.version = "0.6.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Bruno Azisaka Maciel"]
9
9
  s.cert_chain = ["/Users/Bruno/.certs/gem-public_cert.pem"]
10
- s.date = %q{2010-07-09}
10
+ s.date = %q{2010-08-07}
11
11
  s.description = %q{This is a simple gem that generates introduction text from a long text, it will always break the text at the end of the last word near to the limit you informed as argument.}
12
12
  s.email = %q{bruno [at] bubble [dot] com [dot] br}
13
13
  s.extra_rdoc_files = ["CHANGELOG", "README.rdoc", "lib/summary.rb"]
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: summary
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 2
10
+ version: 0.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bruno Azisaka Maciel
@@ -36,7 +36,7 @@ cert_chain:
36
36
  Qk3muzkQzffuq2/7M5zVVnmOi8M1z563OJCOKtDpzVoeXYNoVIZSpgY7
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2010-07-09 00:00:00 -03:00
39
+ date: 2010-08-07 00:00:00 -03:00
40
40
  default_executable:
41
41
  dependencies: []
42
42
 
metadata.gz.sig CHANGED
Binary file