Skip to content

Commit

Permalink
Add Faker::Marketing (faker-ruby#1460)
Browse files Browse the repository at this point in the history
* Begin development of marketing buzzwords

* Adds a few more phrases

* Adds a few more buzzwords, adds a yml and updates the documentation

* moved md to unreleased and updated it

* add module to unreleased_CONTENT.md

* Updates to be Marketing

Updates all related files to be a more generic Marketing so more
methods can be added in the future.

* Update marketing.md
  • Loading branch information
susiirwin authored and vbrazo committed Nov 5, 2018
1 parent 44a1e5f commit 695a0f5
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/unreleased/marketing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Faker::Marketing

```ruby
Faker::Marketing.buzzwords #=> "rubber meets the road", "sprint to the finish line"
```
13 changes: 13 additions & 0 deletions lib/faker/marketing.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

module Faker
class Marketing < Base
flexible :marketing

class << self
def buzzwords
fetch('marketing.buzzwords')
end
end
end
end
4 changes: 4 additions & 0 deletions lib/locales/en/marketing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
en:
faker:
marketing:
buzzwords: ["etc. etc.", "put a pin in it", "t-shirt sizes", "heavy lifting", "circle back", "two-way street", "data points", "out of the box", "get value out of the conversation", "penetrate the market", "plug and chug", "deep dive", "SWAG", "bucketize it", "sales funnel", "market share", "impact map", "growth unit", "tee it up", "make it actionable", "put a bow on it", "give you some time back", "bandwidth-constrained", "had to 'punt' on that", "home stretch", "get a pulse on", "value add", "expansion play", "rubber meets the road", "sprint to the finish line", "button up the loose ends", "heads down", "learnings", "ideate", "customer journey", "buying cycle", "synergy", "snackable content", "thought leader", "thought leadership", "immersive experience", "value proposition", "gamification", "agile marketing", "infographic", "granular", "streamline", "swim lane", "best practice", "bleeding edge", "out of pocket", "let's take this offline", "branding"]
13 changes: 13 additions & 0 deletions test/test_faker_marketing.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

require_relative 'test_helper'

class TestFakerMarketing < Test::Unit::TestCase
def setup
@tester = Faker::Marketing
end

def test_buzzwords
assert @tester.buzzwords.match(/\w+/)
end
end
1 change: 1 addition & 0 deletions unreleased_CONTENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Contents
- [Faker::LoremPixel](doc/unreleased/lorem_pixel.md)
- [Faker::Lovecraft](doc/unreleased/lovecraft.md)
- [Faker::Markdown](doc/unreleased/markdown.md)
- [Faker::Marketing](doc/unreleased/marketing.md)
- [Faker::Matz](doc/unreleased/matz.md)
- [Faker::Measurement](doc/unreleased/measurement.md)
- [Faker::MichaelScott](doc/unreleased/michael_scott.md)
Expand Down

0 comments on commit 695a0f5

Please sign in to comment.