Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Faker::Marketing #1460

Merged
merged 7 commits into from
Nov 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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