Skip to content

Commit bfc13a8

Browse files
committed
Rubocop -A
1 parent 37e5750 commit bfc13a8

File tree

1 file changed

+66
-66
lines changed

1 file changed

+66
-66
lines changed

lib/tasks/dev.rake

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ task({ sample_data: :environment }) do
1313
shop_owner = Haikunator.haikunate(0)
1414

1515
tokyo_convo = [
16-
{author: traveler, content: "Hello! I'm planning a trip to Tokyo next month. Any recommendations for must-visit places?"},
17-
{author: local_guide, content: "Welcome! Tokyo has so much to offer. You should definitely visit Shibuya Crossing, Tokyo Tower, and Senso-ji Temple."},
18-
{author: traveler, content: "Thanks! How many days would you recommend staying to see the main attractions?"},
19-
{author: local_guide, content: "I'd suggest at least 5 days to see the highlights without rushing. Tokyo is huge!"},
20-
{author: traveler, content: "That makes sense. What about transportation? Is the subway easy to navigate?"},
21-
{author: local_guide, content: "The subway system is extensive but very efficient. Get a Suica or Pasmo card to make travel easier. Google Maps works great here too."},
22-
{author: traveler, content: "Perfect. And what area would you recommend staying in?"},
23-
{author: local_guide, content: "Shinjuku or Shibuya are great for first-timers - central, lively, and well-connected by subway."},
24-
{author: traveler, content: "I've heard Tokyo can be expensive. Any budget-friendly tips?"},
25-
{author: local_guide, content: "Convenience stores like 7-Eleven have surprisingly good, affordable food. Also, many small ramen shops offer excellent meals for under 1000 yen."},
26-
{author: traveler, content: "Speaking of food, what dishes should I definitely try?"},
27-
{author: local_guide, content: "Besides sushi and ramen, try okonomiyaki, takoyaki, and don't miss a proper Japanese breakfast with grilled fish and miso soup."},
28-
{author: traveler, content: "Are there any local customs I should be aware of?"},
29-
{author: local_guide, content: "Don't tip - it's not expected. Remove shoes when entering homes and some restaurants. Bowing is customary but a slight nod is fine for tourists."},
30-
{author: traveler, content: "I'd love to buy some souvenirs. Where's good for shopping?"},
31-
{author: shop_owner, content: "If you're looking for traditional crafts, visit Asakusa area near Senso-ji. For electronics, Akihabara is the place to go."},
32-
{author: traveler, content: "What about day trips from Tokyo?"},
33-
{author: local_guide, content: "Kamakura, Nikko, and Hakone are all great day trips. Mt. Fuji is possible but better as an overnight stay."},
34-
{author: traveler, content: "Is it difficult to get by without speaking Japanese?"},
35-
{author: local_guide, content: "In tourist areas, you'll be fine with English. Having a translation app helps. Many signs are in English too, especially on the subway."},
36-
{author: traveler, content: "Thanks so much for all your help! I'm really excited about my trip now."}
16+
{ author: traveler, content: "Hello! I'm planning a trip to Tokyo next month. Any recommendations for must-visit places?" },
17+
{ author: local_guide, content: "Welcome! Tokyo has so much to offer. You should definitely visit Shibuya Crossing, Tokyo Tower, and Senso-ji Temple." },
18+
{ author: traveler, content: "Thanks! How many days would you recommend staying to see the main attractions?" },
19+
{ author: local_guide, content: "I'd suggest at least 5 days to see the highlights without rushing. Tokyo is huge!" },
20+
{ author: traveler, content: "That makes sense. What about transportation? Is the subway easy to navigate?" },
21+
{ author: local_guide, content: "The subway system is extensive but very efficient. Get a Suica or Pasmo card to make travel easier. Google Maps works great here too." },
22+
{ author: traveler, content: "Perfect. And what area would you recommend staying in?" },
23+
{ author: local_guide, content: "Shinjuku or Shibuya are great for first-timers - central, lively, and well-connected by subway." },
24+
{ author: traveler, content: "I've heard Tokyo can be expensive. Any budget-friendly tips?" },
25+
{ author: local_guide, content: "Convenience stores like 7-Eleven have surprisingly good, affordable food. Also, many small ramen shops offer excellent meals for under 1000 yen." },
26+
{ author: traveler, content: "Speaking of food, what dishes should I definitely try?" },
27+
{ author: local_guide, content: "Besides sushi and ramen, try okonomiyaki, takoyaki, and don't miss a proper Japanese breakfast with grilled fish and miso soup." },
28+
{ author: traveler, content: "Are there any local customs I should be aware of?" },
29+
{ author: local_guide, content: "Don't tip - it's not expected. Remove shoes when entering homes and some restaurants. Bowing is customary but a slight nod is fine for tourists." },
30+
{ author: traveler, content: "I'd love to buy some souvenirs. Where's good for shopping?" },
31+
{ author: shop_owner, content: "If you're looking for traditional crafts, visit Asakusa area near Senso-ji. For electronics, Akihabara is the place to go." },
32+
{ author: traveler, content: "What about day trips from Tokyo?" },
33+
{ author: local_guide, content: "Kamakura, Nikko, and Hakone are all great day trips. Mt. Fuji is possible but better as an overnight stay." },
34+
{ author: traveler, content: "Is it difficult to get by without speaking Japanese?" },
35+
{ author: local_guide, content: "In tourist areas, you'll be fine with English. Having a translation app helps. Many signs are in English too, especially on the subway." },
36+
{ author: traveler, content: "Thanks so much for all your help! I'm really excited about my trip now." }
3737
]
3838

3939
# Create Paris chat
@@ -43,27 +43,27 @@ task({ sample_data: :environment }) do
4343
taxi_driver = Haikunator.haikunate(0)
4444

4545
paris_convo = [
46-
{author: tourist, content: "Bonjour! I'm visiting Paris for the first time next week. What should I expect?"},
47-
{author: cafe_owner, content: "Bonjour! Paris is beautiful in spring. The cafés are filled with people enjoying the sunshine."},
48-
{author: tourist, content: "I'm excited! Is it true that Parisians don't like when tourists speak English?"},
49-
{author: cafe_owner, content: "It's a myth. Most appreciate if you start with 'Bonjour' and then try some basic French, but many speak English, especially in tourist areas."},
50-
{author: tourist, content: "That's reassuring. What's the best way to see the Eiffel Tower without long lines?"},
51-
{author: cafe_owner, content: "Book tickets online in advance, and consider going early morning or evening. The view at sunset is magical."},
52-
{author: tourist, content: "Should I stay near the Eiffel Tower or is there a better neighborhood?"},
53-
{author: cafe_owner, content: "Le Marais or Saint-Germain-des-Prés are more central and charming. You'll feel like you're in the real Paris."},
54-
{author: tourist, content: "What about getting around? Is the Metro easy to use?"},
55-
{author: taxi_driver, content: "The Metro is very efficient and goes everywhere. Buy a carnet of 10 tickets to save money. Avoid rush hours if possible."},
56-
{author: tourist, content: "Any restaurants you'd recommend for authentic French cuisine?"},
57-
{author: cafe_owner, content: "Avoid restaurants near major attractions. Try Bistrot Paul Bert or Au Petit Tonneau for authentic experiences without the tourist prices."},
58-
{author: tourist, content: "What's a typical French breakfast?"},
59-
{author: cafe_owner, content: "Croissant or pain au chocolat with café crème. French breakfast is light - we save room for lunch and dinner!"},
60-
{author: tourist, content: "Are there any hidden gems most tourists miss?"},
61-
{author: cafe_owner, content: "Visit Parc des Buttes-Chaumont or Canal Saint-Martin area. The covered passages like Galerie Vivienne are also beautiful and less crowded."},
62-
{author: tourist, content: "Is the Louvre worth it? I've heard it's overwhelming."},
63-
{author: cafe_owner, content: "It's massive! Unless you're a big art enthusiast, consider Musée d'Orsay or Musée de l'Orangerie instead. More manageable and equally impressive."},
64-
{author: tourist, content: "What about day trips from Paris?"},
65-
{author: taxi_driver, content: "Versailles is the classic choice. Giverny (Monet's garden) is beautiful in spring and summer. Reims for champagne tasting is excellent too."},
66-
{author: tourist, content: "Thank you both for all the advice! I feel much more prepared now."}
46+
{ author: tourist, content: "Bonjour! I'm visiting Paris for the first time next week. What should I expect?" },
47+
{ author: cafe_owner, content: "Bonjour! Paris is beautiful in spring. The cafés are filled with people enjoying the sunshine." },
48+
{ author: tourist, content: "I'm excited! Is it true that Parisians don't like when tourists speak English?" },
49+
{ author: cafe_owner, content: "It's a myth. Most appreciate if you start with 'Bonjour' and then try some basic French, but many speak English, especially in tourist areas." },
50+
{ author: tourist, content: "That's reassuring. What's the best way to see the Eiffel Tower without long lines?" },
51+
{ author: cafe_owner, content: "Book tickets online in advance, and consider going early morning or evening. The view at sunset is magical." },
52+
{ author: tourist, content: "Should I stay near the Eiffel Tower or is there a better neighborhood?" },
53+
{ author: cafe_owner, content: "Le Marais or Saint-Germain-des-Prés are more central and charming. You'll feel like you're in the real Paris." },
54+
{ author: tourist, content: "What about getting around? Is the Metro easy to use?" },
55+
{ author: taxi_driver, content: "The Metro is very efficient and goes everywhere. Buy a carnet of 10 tickets to save money. Avoid rush hours if possible." },
56+
{ author: tourist, content: "Any restaurants you'd recommend for authentic French cuisine?" },
57+
{ author: cafe_owner, content: "Avoid restaurants near major attractions. Try Bistrot Paul Bert or Au Petit Tonneau for authentic experiences without the tourist prices." },
58+
{ author: tourist, content: "What's a typical French breakfast?" },
59+
{ author: cafe_owner, content: "Croissant or pain au chocolat with café crème. French breakfast is light - we save room for lunch and dinner!" },
60+
{ author: tourist, content: "Are there any hidden gems most tourists miss?" },
61+
{ author: cafe_owner, content: "Visit Parc des Buttes-Chaumont or Canal Saint-Martin area. The covered passages like Galerie Vivienne are also beautiful and less crowded." },
62+
{ author: tourist, content: "Is the Louvre worth it? I've heard it's overwhelming." },
63+
{ author: cafe_owner, content: "It's massive! Unless you're a big art enthusiast, consider Musée d'Orsay or Musée de l'Orangerie instead. More manageable and equally impressive." },
64+
{ author: tourist, content: "What about day trips from Paris?" },
65+
{ author: taxi_driver, content: "Versailles is the classic choice. Giverny (Monet's garden) is beautiful in spring and summer. Reims for champagne tasting is excellent too." },
66+
{ author: tourist, content: "Thank you both for all the advice! I feel much more prepared now." }
6767
]
6868

6969
# Create New York chat
@@ -73,34 +73,34 @@ task({ sample_data: :environment }) do
7373
hotel_staff = Haikunator.haikunate(0)
7474

7575
nyc_convo = [
76-
{author: visitor, content: "Hi! I'm coming to New York for 5 days next week. It's my first visit!"},
77-
{author: local, content: "Awesome! NYC is incredible. What are you most interested in seeing?"},
78-
{author: visitor, content: "Definitely the main attractions - Statue of Liberty, Empire State Building, Central Park. Is that doable in 5 days?"},
79-
{author: local, content: "Absolutely! 5 days is perfect for a first visit. Add in Times Square, the High Line, and a museum or two."},
80-
{author: visitor, content: "Great! Where should I stay? Is Manhattan the best option?"},
81-
{author: hotel_staff, content: "Manhattan is convenient but expensive. Brooklyn (Williamsburg or Park Slope) offers better value and is just a short subway ride away."},
82-
{author: visitor, content: "Speaking of subways, are they safe? I've heard mixed things."},
83-
{author: local, content: "The subway is generally safe, especially during daytime and evening hours. It's also by far the best way to get around - traffic is terrible."},
84-
{author: visitor, content: "Do I need to get tickets for attractions in advance?"},
85-
{author: hotel_staff, content: "Definitely pre-book tickets for the Statue of Liberty, Empire State Building, and any Broadway shows you want to see."},
86-
{author: visitor, content: "What's a good area for restaurants? I love trying different foods."},
87-
{author: local, content: "NYC has amazing food everywhere! The East Village has great variety. Chinatown for authentic Asian, Little Italy for Italian, and don't miss the food halls like Chelsea Market."},
88-
{author: visitor, content: "Is it true that New Yorkers are rude?"},
89-
{author: local, content: "Not rude, just busy! We move quickly and value efficiency. Don't stop in the middle of the sidewalk, and you'll be fine."},
90-
{author: visitor, content: "How much should I budget per day for food and activities?"},
91-
{author: hotel_staff, content: "For a moderate budget, around $100-150 per day covers food and basic attractions. Add more if you want Broadway shows or fine dining."},
92-
{author: visitor, content: "Any neighborhoods I should avoid for safety reasons?"},
93-
{author: local, content: "Most tourist areas are quite safe. Just use common sense, especially late at night. The subway is fine but be aware of your surroundings."},
94-
{author: visitor, content: "What's something uniquely New York that I shouldn't miss?"},
95-
{author: local, content: "Walk across the Brooklyn Bridge at sunset, then enjoy the Manhattan skyline view from Brooklyn Bridge Park. Also, grab a bagel with lox for breakfast at least once!"},
96-
{author: visitor, content: "Thanks so much for all the tips! I'm so excited to experience New York."}
76+
{ author: visitor, content: "Hi! I'm coming to New York for 5 days next week. It's my first visit!" },
77+
{ author: local, content: "Awesome! NYC is incredible. What are you most interested in seeing?" },
78+
{ author: visitor, content: "Definitely the main attractions - Statue of Liberty, Empire State Building, Central Park. Is that doable in 5 days?" },
79+
{ author: local, content: "Absolutely! 5 days is perfect for a first visit. Add in Times Square, the High Line, and a museum or two." },
80+
{ author: visitor, content: "Great! Where should I stay? Is Manhattan the best option?" },
81+
{ author: hotel_staff, content: "Manhattan is convenient but expensive. Brooklyn (Williamsburg or Park Slope) offers better value and is just a short subway ride away." },
82+
{ author: visitor, content: "Speaking of subways, are they safe? I've heard mixed things." },
83+
{ author: local, content: "The subway is generally safe, especially during daytime and evening hours. It's also by far the best way to get around - traffic is terrible." },
84+
{ author: visitor, content: "Do I need to get tickets for attractions in advance?" },
85+
{ author: hotel_staff, content: "Definitely pre-book tickets for the Statue of Liberty, Empire State Building, and any Broadway shows you want to see." },
86+
{ author: visitor, content: "What's a good area for restaurants? I love trying different foods." },
87+
{ author: local, content: "NYC has amazing food everywhere! The East Village has great variety. Chinatown for authentic Asian, Little Italy for Italian, and don't miss the food halls like Chelsea Market." },
88+
{ author: visitor, content: "Is it true that New Yorkers are rude?" },
89+
{ author: local, content: "Not rude, just busy! We move quickly and value efficiency. Don't stop in the middle of the sidewalk, and you'll be fine." },
90+
{ author: visitor, content: "How much should I budget per day for food and activities?" },
91+
{ author: hotel_staff, content: "For a moderate budget, around $100-150 per day covers food and basic attractions. Add more if you want Broadway shows or fine dining." },
92+
{ author: visitor, content: "Any neighborhoods I should avoid for safety reasons?" },
93+
{ author: local, content: "Most tourist areas are quite safe. Just use common sense, especially late at night. The subway is fine but be aware of your surroundings." },
94+
{ author: visitor, content: "What's something uniquely New York that I shouldn't miss?" },
95+
{ author: local, content: "Walk across the Brooklyn Bridge at sunset, then enjoy the Manhattan skyline view from Brooklyn Bridge Park. Also, grab a bagel with lox for breakfast at least once!" },
96+
{ author: visitor, content: "Thanks so much for all the tips! I'm so excited to experience New York." }
9797
]
9898

9999
# Create messages with realistic timestamps
100100
[
101-
{chat: tokyo_chat, conversation: tokyo_convo},
102-
{chat: paris_chat, conversation: paris_convo},
103-
{chat: nyc_chat, conversation: nyc_convo}
101+
{ chat: tokyo_chat, conversation: tokyo_convo },
102+
{ chat: paris_chat, conversation: paris_convo },
103+
{ chat: nyc_chat, conversation: nyc_convo }
104104
].each do |chat_data|
105105
base_time = 3.days.ago
106106

0 commit comments

Comments
 (0)