fucko 0.1.0 → 0.1.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.
data/lib/fucko.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  require 'fucko/version'
2
- require 'fucko/name'
2
+ require 'fucko/name'
3
+ require 'fucko/company'
@@ -0,0 +1,11 @@
1
+ require 'fucko/name'
2
+
3
+ module Fucko
4
+ module Company
5
+ ENDINGS = ["%s and Co.", "%s Inc."]
6
+
7
+ def self.name
8
+ ENDINGS.sample % Fucko::Name.last_name
9
+ end
10
+ end
11
+ end
data/lib/fucko/name.rb CHANGED
@@ -4,7 +4,7 @@ module Fucko
4
4
  class Name
5
5
  attr_reader :first_name, :last_name
6
6
 
7
- ENDINGS = ["%sson", "von %s", "%sevich", "%sman", "%sowsky", "%s", "%sov", "%sworth", "Mac %s"]
7
+ ENDINGS = ["%sson", "von %s", "%sevich", "%sman", "%sowsky", "%s", "%sov", "%sworth", "Mc%s"]
8
8
 
9
9
  def self.first_name
10
10
  name.first_name
@@ -15,7 +15,7 @@ module Fucko
15
15
  end
16
16
 
17
17
  def self.name
18
- self.new(Dictionary.plural_noun.capitalize,
18
+ self.new(Dictionary.noun.capitalize,
19
19
  ENDINGS.sample % Dictionary.noun.capitalize)
20
20
  end
21
21
 
data/lib/fucko/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Fucko
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
4
4
 
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe Fucko::Company do
4
+ describe "when generating a company name" do
5
+ let(:name) { Fucko::Company.name }
6
+
7
+ it "has a first and last name" do
8
+ Fucko::Name.should_receive(:last_name).and_return("offensive")
9
+ Fucko::Company::ENDINGS.should_receive(:sample).and_return("%s and Co.")
10
+ name.should == "offensive and Co."
11
+ end
12
+ end
13
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fucko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -90,9 +90,11 @@ files:
90
90
  - README.md
91
91
  - fucko.gemspec
92
92
  - lib/fucko.rb
93
+ - lib/fucko/company.rb
93
94
  - lib/fucko/dictionary.rb
94
95
  - lib/fucko/name.rb
95
96
  - lib/fucko/version.rb
97
+ - spec/lib/fucko/company_spec.rb
96
98
  - spec/lib/fucko/dictionary_spec.rb
97
99
  - spec/lib/fucko/name_spec.rb
98
100
  - spec/spec_helper.rb
@@ -121,6 +123,7 @@ signing_key:
121
123
  specification_version: 3
122
124
  summary: Offensive string generation.
123
125
  test_files:
126
+ - spec/lib/fucko/company_spec.rb
124
127
  - spec/lib/fucko/dictionary_spec.rb
125
128
  - spec/lib/fucko/name_spec.rb
126
129
  - spec/spec_helper.rb