pubbee 0.0.1 → 0.0.2

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/pubbee.rb +3 -5
  3. data/pubbee.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -1,13 +1,11 @@
1
1
  module Pubbee
2
2
  require 'rubygems'
3
-
4
- class PubbeeFormat
5
3
 
6
- def book_titleize(book_name)
4
+ def self.book_titleize(params)
7
5
  articles = ['a', 'an', 'the', 'of', 'and']
8
6
  book_titleize = []
9
7
  begin
10
- book_name.split(/_| /).each_with_index do |n, ii|
8
+ params.split(/_| /).each_with_index do |n, ii|
11
9
  if articles.include?(n) && ii == 0
12
10
  book_titleize << n.capitalize + " "
13
11
  elsif articles.include?(n) && ii > 0
@@ -18,7 +16,7 @@ module Pubbee
18
16
  end
19
17
  book_titleize
20
18
  rescue
21
- book_name
19
+ params
22
20
  end
23
21
  end
24
22
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pubbee}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Beccio"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubbee
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Beccio