faussaire 0.1.6 → 1.0.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -15
- data/LICENSE.txt +27 -13
- data/README.md +74 -66
- data/faussaire.gemspec +1 -1
- data/lib/faussaire/tv.rb +12 -0
- data/lib/faussaire/version.rb +1 -1
- data/locale/fr.yml +3657 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1eb436d18fc3136abaff8d38dae0c1053f1cb9752ca9c766e98070b5c8a6e34b
|
4
|
+
data.tar.gz: 6d2b5dda0f6a3982d53e7c4c422e62182f76ec17f9d4cccfb3d9ff2f67d8481e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c24c884ff5bd1dcfa97e4367a4c86efb6a6d6107b26618c22e17d977c90153a230db79d0214221f7b37637ed543648677581147930b8222cfec5b35b6b5fa21c
|
7
|
+
data.tar.gz: 40a83e42ed0c7871f1df5f0b0191ef98b9a0529746579e0f40ce769372dc3b1f53f20f0e781ebaa9d3f465605ce35e12de172084a51e8fb6dfeb83a754b56f5d
|
data/CHANGELOG.md
CHANGED
@@ -1,19 +1,5 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
-
## [0.1.0] - 2023-12-25
|
4
|
-
|
5
|
-
- Initial release
|
6
|
-
|
7
|
-
## [RELEASED]
|
8
|
-
|
9
|
-
## [0.1.1] - 2024-09-28
|
10
|
-
|
11
|
-
- First live version
|
12
|
-
|
13
|
-
## [0.1.4] - 2024-10-27
|
14
|
-
|
15
|
-
## [Unreleased]
|
16
|
-
|
17
3
|
## [0.1.0] - 2023-12-25
|
18
4
|
- Initial release
|
19
5
|
|
@@ -36,4 +22,23 @@
|
|
36
22
|
- Improved spec coverage:
|
37
23
|
- Tests for duplicate values in YAML data.
|
38
24
|
- Format validation for data entries.
|
39
|
-
- Tests to confirm that each method returns a unique and expected value.
|
25
|
+
- Tests to confirm that each method returns a unique and expected value.
|
26
|
+
|
27
|
+
## [1.0.0] - 2024-11-23
|
28
|
+
### Added
|
29
|
+
- **New `Faussaire::Tv.netflix` Method**:
|
30
|
+
- Generates a random Netflix Original title from a cleaned dataset of 1033 TV shows, movies, stand-up comedy specials, and more.
|
31
|
+
- Example: `Faussaire::Tv.netflix` => `"Squid Game"`
|
32
|
+
|
33
|
+
### Enhancements
|
34
|
+
- **Duplicate Check Refactoring**:
|
35
|
+
- Improved duplicate detection logic in YAML datasets for TV.
|
36
|
+
- Added `netflix` subset to duplicate-checking specs.
|
37
|
+
|
38
|
+
- **Readme Updates**:
|
39
|
+
- Added examples for the new `Faussaire::Tv.netflix` method.
|
40
|
+
- Updated documentation to reflect the expanded dataset.
|
41
|
+
|
42
|
+
- **Ruby Version Update**:
|
43
|
+
- Adjusted the required Ruby version to address a `rubocop` PR conflict issue.
|
44
|
+
- Standardized capitalization in the `license.txt` file.
|
data/LICENSE.txt
CHANGED
@@ -20,16 +20,30 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
21
|
THE SOFTWARE.
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
23
|
+
ADDITIONAL TERMS ON DATA OWNERSHIP AND USAGE:
|
24
|
+
|
25
|
+
The dataset included in this software, including but not limited to the `fr.yml`
|
26
|
+
file and other data files (the "Dataset"), is the property of the original creator
|
27
|
+
and is protected under applicable intellectual property laws. The following
|
28
|
+
additional terms apply specifically to the Dataset:
|
29
|
+
|
30
|
+
1. EDUCATIONAL USE ONLY:
|
31
|
+
The Dataset may be used, modified, and distributed for educational purposes only
|
32
|
+
as part of copies or substantial portions of the Software. Any other use of the
|
33
|
+
Dataset is strictly prohibited without prior written authorization from the
|
34
|
+
copyright holder.
|
35
|
+
|
36
|
+
2. RESTRICTED USE FOR OTHER PROJECTS:
|
37
|
+
The Dataset, including the `fr.yml` file, may not be extracted, used, or
|
38
|
+
incorporated into other projects or software without explicit prior authorization
|
39
|
+
from the copyright holder. This restriction applies regardless of whether the other
|
40
|
+
project is for commercial or non-commercial purposes.
|
41
|
+
|
42
|
+
3. AUTHORIZATION REQUIRED: For any use of the Dataset outside the scope of these terms,
|
43
|
+
including but not limited to commercial use or incorporation into other software, explicit
|
44
|
+
authorization must be obtained from the copyright holder.
|
45
|
+
Please contact [hello@ikramagix.com] for inquiries and permissions.
|
46
|
+
|
47
|
+
These additional terms do not modify the MIT License as it applies to the Software itself.
|
48
|
+
The Software remains available under the terms of the MIT License, while the Dataset is
|
49
|
+
subject to the above restrictions.
|
data/README.md
CHANGED
@@ -1,30 +1,28 @@
|
|
1
1
|
# FAUSSAIRE • Au revoir Lorem Ipsum
|
2
2
|
|
3
3
|
[](https://badge.fury.io/rb/faussaire)
|
4
|
+
<p align="left">
|
5
|
+
<a href="#english">
|
6
|
+
<img src="hello.png" alt="English" width="50" height="50">
|
7
|
+
</a>
|
8
|
+
<br>
|
9
|
+
<a href="#english">
|
10
|
+
Hey! You can also README in English!
|
11
|
+
</a>
|
12
|
+
</p>
|
4
13
|
|
5
14
|
### Des données authentiques, des apps réalistes, des seeds ludiques
|
6
15
|
|
7
16
|
**Faussaire** est une alternative made in France à la gem [Faker](https://github.com/faker-ruby/faker) en Ruby.
|
8
17
|
|
9
|
-
Conçue pour fournir des données plus précises et
|
10
|
-
|
11
|
-
> [!NOTE]
|
12
|
-
> <p align="center">
|
13
|
-
> <a href="#english">
|
14
|
-
> <img src="hello.png" alt="English" width="50" height="50">
|
15
|
-
> </a>
|
16
|
-
> <br>
|
17
|
-
> <a href="#english">
|
18
|
-
> Hey! You can also README in English!
|
19
|
-
> </a>
|
20
|
-
> </p>
|
18
|
+
Conçue pour fournir des données plus précises et plus diverses, elle dispose actuellement d'un set français exhaustif, réaliste et culturellement pertinent pour vos projets Ruby francophones.
|
21
19
|
|
22
20
|
## Table des matières
|
23
21
|
|
24
22
|
- [Pourquoi utiliser Faussaire ?](#pourquoi-utiliser-faussaire-)
|
23
|
+
- [Modules Disponibles](#modules-disponibles)
|
25
24
|
- [Installation](#installation)
|
26
25
|
- [Utilisation](#utilisation)
|
27
|
-
- [Modules Disponibles](#modules-disponibles-dans-faussaire)
|
28
26
|
- [Développement](#vous-voulez-participer-)
|
29
27
|
- [Licence](#licence)
|
30
28
|
- [Contribution](#il-manquerait-pas-un-petit-quelque-chose-)
|
@@ -49,53 +47,7 @@ C'est quand même plus drôle d'avoir une liste d'AOC, un générateur de phrase
|
|
49
47
|
|
50
48
|
- _Qualité des données:_ Proposer des options de génération de données soigneusement élaborés, précises et complètes, qu'il s'agisse de contextes professionnels ou de références culturelles.
|
51
49
|
|
52
|
-
##
|
53
|
-
|
54
|
-
Avant de commencer, vérifiez que Ruby et RubyGems sont bien installés sur votre machine. Vous pouvez utiliser les commandes suivantes :
|
55
|
-
|
56
|
-
_Pour Ruby :_
|
57
|
-
|
58
|
-
```bash
|
59
|
-
ruby -v
|
60
|
-
```
|
61
|
-
|
62
|
-
Cela affichera la version de Ruby installée, si Ruby est bien installé.
|
63
|
-
|
64
|
-
_Pour RubyGems :_
|
65
|
-
|
66
|
-
```bash
|
67
|
-
gem -v
|
68
|
-
```
|
69
|
-
|
70
|
-
Cela affichera la version de RubyGems installée, si RubyGems est bien installé.
|
71
|
-
|
72
|
-
Ensuite, vous pouvez installer **Faussaire** directement via RubyGems :
|
73
|
-
|
74
|
-
```bash
|
75
|
-
gem install faussaire
|
76
|
-
```
|
77
|
-
|
78
|
-
Vous pouvez également l'ajouter à votre Gemfile :
|
79
|
-
|
80
|
-
```ruby
|
81
|
-
gem 'faussaire'
|
82
|
-
```
|
83
|
-
|
84
|
-
et lancez la commande suivante pour l'installer :
|
85
|
-
|
86
|
-
```bash
|
87
|
-
bundle install
|
88
|
-
```
|
89
|
-
|
90
|
-
## Utilisation
|
91
|
-
|
92
|
-
Pour utiliser **Faussaire** dans vos applications Ruby, il suffit de charger la gem :
|
93
|
-
|
94
|
-
```ruby
|
95
|
-
require 'faussaire'
|
96
|
-
```
|
97
|
-
|
98
|
-
## Modules Disponibles dans Faussaire
|
50
|
+
## Modules Disponibles
|
99
51
|
|
100
52
|
<details>
|
101
53
|
<summary><strong>Faussaire::Ancien</strong></summary>
|
@@ -235,9 +187,7 @@ Faussaire::Cosmos.exploration
|
|
235
187
|
Le module `Faussaire::Creamerie` génère des données liées aux produits laitiers français, parfait pour des applications ou des démonstrations liées à l'alimentation.
|
236
188
|
|
237
189
|
```ruby
|
238
|
-
# Génère un type de lait
|
239
|
-
|
240
|
-
éatoire.
|
190
|
+
# Génère un type de lait aléatoire.
|
241
191
|
Faussaire::Creamerie.milk_type
|
242
192
|
# => "Lait de bufflonne"
|
243
193
|
|
@@ -366,6 +316,12 @@ Faussaire::Piraterie.potin
|
|
366
316
|
Le module `Faussaire::Tv` génère des données factices liées à la télévision, y compris des titres d'émissions, des influenceurs, des couples célèbres, des chaînes TV, ainsi que des détails spécifiques liés au Festival de Cannes.
|
367
317
|
|
368
318
|
```ruby
|
319
|
+
|
320
|
+
# Génère un titre de contenu Netflix Originals (séries, films, one-man show, etc...).
|
321
|
+
# Plus de 1033 propositions !
|
322
|
+
Faussaire::Tv.netflix
|
323
|
+
# => "Squid Game"
|
324
|
+
|
369
325
|
# Génère un titre d'émission de télévision aléatoire.
|
370
326
|
Faussaire::Tv.show
|
371
327
|
# => "Marjolaine et les Millionnaires"
|
@@ -376,7 +332,7 @@ Faussaire::Tv.influencer
|
|
376
332
|
|
377
333
|
# Génère un couple célèbre de la télévision aléatoire.
|
378
334
|
Faussaire::Tv.famous_couples
|
379
|
-
# => "
|
335
|
+
# => "Marilyn Monroe et Joe DiMaggio (1953)"
|
380
336
|
|
381
337
|
# Génère un nom de chaîne TV aléatoire.
|
382
338
|
Faussaire::Tv.channel
|
@@ -444,6 +400,52 @@ Faussaire::Wine.licocorico
|
|
444
400
|
```
|
445
401
|
</details>
|
446
402
|
|
403
|
+
## Installation
|
404
|
+
|
405
|
+
Avant de commencer, vérifiez que Ruby et RubyGems sont bien installés sur votre machine. Vous pouvez utiliser les commandes suivantes :
|
406
|
+
|
407
|
+
_Pour Ruby :_
|
408
|
+
|
409
|
+
```bash
|
410
|
+
ruby -v
|
411
|
+
```
|
412
|
+
|
413
|
+
Cela affichera la version de Ruby installée, si Ruby est bien installé.
|
414
|
+
|
415
|
+
_Pour RubyGems :_
|
416
|
+
|
417
|
+
```bash
|
418
|
+
gem -v
|
419
|
+
```
|
420
|
+
|
421
|
+
Cela affichera la version de RubyGems installée, si RubyGems est bien installé.
|
422
|
+
|
423
|
+
Ensuite, vous pouvez installer **Faussaire** directement via RubyGems :
|
424
|
+
|
425
|
+
```bash
|
426
|
+
gem install faussaire
|
427
|
+
```
|
428
|
+
|
429
|
+
Vous pouvez également l'ajouter à votre Gemfile :
|
430
|
+
|
431
|
+
```ruby
|
432
|
+
gem 'faussaire'
|
433
|
+
```
|
434
|
+
|
435
|
+
et lancez la commande suivante pour l'installer :
|
436
|
+
|
437
|
+
```bash
|
438
|
+
bundle install
|
439
|
+
```
|
440
|
+
|
441
|
+
## Utilisation
|
442
|
+
|
443
|
+
Pour utiliser **Faussaire** dans vos applications Ruby, il suffit de charger la gem :
|
444
|
+
|
445
|
+
```ruby
|
446
|
+
require 'faussaire'
|
447
|
+
```
|
448
|
+
|
447
449
|
## Vous voulez participer ?
|
448
450
|
|
449
451
|
Pour configurer l'environnement de développement pour **Faussaire** :
|
@@ -815,7 +817,13 @@ Faussaire::Name.name
|
|
815
817
|
The `Faussaire::Tv` module generates fake data related to television, including show titles, influencers, famous couples, TV channels, and specific details related to the Cannes Film Festival.
|
816
818
|
|
817
819
|
```ruby
|
818
|
-
|
820
|
+
|
821
|
+
# Generates a Netflix Originals title (TV shows, movies, stand-up comedies, etc.).
|
822
|
+
# Over 1,033 real possibilities
|
823
|
+
Faussaire::Tv.netflix
|
824
|
+
# => "Squid Game"
|
825
|
+
|
826
|
+
# Generates a random French reality TV show title.
|
819
827
|
Faussaire::Tv.show
|
820
828
|
# => "Marjolaine et les Millionnaires"
|
821
829
|
|
@@ -825,7 +833,7 @@ Faussaire::Tv.influencer
|
|
825
833
|
|
826
834
|
# Generates a random famous television couple.
|
827
835
|
Faussaire::Tv.famous_couples
|
828
|
-
# => "
|
836
|
+
# => "Marilyn Monroe et Joe DiMaggio (1953)"
|
829
837
|
|
830
838
|
# Generates a random TV channel name.
|
831
839
|
Faussaire::Tv.channel
|
data/faussaire.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = "Faussaire is a Ruby gem that allows you to effortlessly generate a diverse set of fake data in multiple languages, including French and Greek. Whether you're developing and testing applications or need placeholder content for design mockups, Faussaire provides a simple and flexible way to create realistic-looking data on demand."
|
13
13
|
spec.homepage = "https://github.com/ikramagix/faussaire"
|
14
14
|
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = ">= 2.
|
15
|
+
spec.required_ruby_version = ">= 2.7.0"
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
18
|
spec.metadata["source_code_uri"] = "https://github.com/ikramagix/faussaire"
|
data/lib/faussaire/tv.rb
CHANGED
@@ -169,5 +169,17 @@ module Faussaire
|
|
169
169
|
def self.channel
|
170
170
|
fetch('fr.faussaire.tv.channel')
|
171
171
|
end
|
172
|
+
|
173
|
+
##
|
174
|
+
# Produces a random Netflix program.
|
175
|
+
#
|
176
|
+
# @return [String]
|
177
|
+
#
|
178
|
+
# @example
|
179
|
+
# Faussaire::Tv.netflix #=> "Stranger Things"
|
180
|
+
#
|
181
|
+
def self.netflix
|
182
|
+
fetch('fr.faussaire.tv.netflix')
|
183
|
+
end
|
172
184
|
end
|
173
185
|
end
|
data/lib/faussaire/version.rb
CHANGED