tag_formatter 0.0.1 → 0.0.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/HISTORY.md CHANGED
@@ -10,4 +10,8 @@ HISTORY
10
10
  * Full release commit
11
11
  * Removed pre identifier
12
12
  * Updated readme with new instructions
13
- * Updating gemspec with proper repo url and description
13
+ * Updating gemspec with proper repo url and description
14
+
15
+ 0.0.3 - May 01, 2012
16
+ --------------------
17
+ * Renamed tf#parse! to tf#parse
data/README.md CHANGED
@@ -36,12 +36,12 @@ Formatting a block of text using the default options:
36
36
 
37
37
  tf = TagFormatter.new text, tags: {firstname: "Mark", lastname: "Seymour", something: "listening to music"}
38
38
 
39
- puts tf.parse! #=> Hello, I am Mark Seymour.\nI like listening to music.
39
+ puts tf.parse #=> Hello, I am Mark Seymour.\nI like listening to music.
40
40
 
41
41
  Formatting a block of text using user-supplied options:
42
42
 
43
43
  tf = TagFormatter.new "I like to %verb% it, %verb% it!", tags: {verb: "move"}, tag_start: '%', tag_end: '%'
44
- puts tf.parse! #=> I like to move it, move it!
44
+ puts tf.parse #=> I like to move it, move it!
45
45
 
46
46
  Contribute
47
47
  ----------
@@ -44,10 +44,10 @@ module TagFormatter
44
44
  end
45
45
  end
46
46
 
47
- # Parses the supplied input and returned a decommented, tagified, cleaned string.
47
+ # Parses the supplied input and returned a decommented, tagified and cleaned string.
48
48
  #
49
49
  # @return A string with the parsed input.
50
- def parse!
50
+ def parse
51
51
  tagify(decommentify(@input)).strip
52
52
  end
53
53
 
@@ -13,7 +13,7 @@ module TagFormatter
13
13
 
14
14
  # @return [Integer]
15
15
  def self.patch
16
- 1
16
+ 3
17
17
  end
18
18
 
19
19
  # @return [String, NilClass]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tag_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  version: '0'
46
46
  requirements: []
47
47
  rubyforge_project:
48
- rubygems_version: 1.8.16
48
+ rubygems_version: 1.8.24
49
49
  signing_key:
50
50
  specification_version: 3
51
51
  summary: Tag Formatter