summarise 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/README.md +14 -4
- data/lib/summarise/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a17eca01a7ed32cd9f137b142cab4fee60ced64e
|
4
|
+
data.tar.gz: 655fdb30e18235bc103f1497bf87f508c369b983
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77b91fcfa1a2bc27830fa5278d2ea1e73bce820e97ae68f1aaf6197a32fcafc951168432049c7a55d1fa415e4603eb6a8e42c2ef136a111a098fd7b04755d208
|
7
|
+
data.tar.gz: 51990392dbd351d07412316b4f086d66fe335c9e66391e196f9419fe972e42e806a2e3b9f97f8f5a48385592bcf07522ed080aaed84b04a5c4672a80fda1d53e
|
data/README.md
CHANGED
@@ -1,6 +1,19 @@
|
|
1
1
|
# Summarise
|
2
2
|
|
3
|
-
|
3
|
+
Summarise is a small gem which extends String, allowing you to create summaries of strings while respecting word boundaries.
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
str = "Summarise is a small gem which extends String, allowing you to create summaries."
|
8
|
+
|
9
|
+
str.summarise 25
|
10
|
+
=> "Summarise is a small gem which"
|
11
|
+
|
12
|
+
str.summarise 25, :suffix => "..."
|
13
|
+
=> "Summarise is a small gem which..."
|
14
|
+
|
15
|
+
str.summarise 5000, :suffix => "..."
|
16
|
+
=> "Summarise is a small gem which extends String, allowing you to create summaries."
|
4
17
|
|
5
18
|
## Installation
|
6
19
|
|
@@ -16,9 +29,6 @@ Or install it yourself as:
|
|
16
29
|
|
17
30
|
$ gem install summarise
|
18
31
|
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
TODO: Write usage instructions here
|
22
32
|
|
23
33
|
## Contributing
|
24
34
|
|
data/lib/summarise/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: summarise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|