dummy_files 0.0.4 → 0.0.5
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/README.rdoc +19 -3
- data/VERSION +1 -1
- data/dummy_files.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
|
@@ -9,9 +9,25 @@ Pull urls of random images/files from google searches to generate sample data.
|
|
|
9
9
|
= To get Images
|
|
10
10
|
DummyFiles::Images.get
|
|
11
11
|
You can also call pass parameters
|
|
12
|
-
DummyFiles(number, keyword, content)
|
|
13
|
-
Where number is the number of images to fetch (by default 100), keyword is the keyword for the google search (by default "me") and content is the type of images, which can be "any" (ie, any image) or "face" (ie,
|
|
14
|
-
|
|
12
|
+
DummyFiles::Images.get(number, keyword, content)
|
|
13
|
+
Where number is the number of images to fetch (by default 100), keyword is the keyword for the google search (by default "me") and content is the type of images, which can be "any" (ie, any image) or "face" (ie, pictures of faces, this is the default value)
|
|
14
|
+
You can get a single image, too
|
|
15
|
+
DummyFiles::Image.get
|
|
16
|
+
Or with parameters
|
|
17
|
+
DummyFiles::Images.get(keyword, content)
|
|
18
|
+
|
|
19
|
+
= To get Files
|
|
20
|
+
DummyFiles::Files.get(filetype)
|
|
21
|
+
So you are gonna be searching for files whose file type is "filetype".
|
|
22
|
+
|
|
23
|
+
Call with parameters
|
|
24
|
+
DummyFiles::Files.get(filetype, number, keyword)
|
|
25
|
+
By default keyword is "".
|
|
26
|
+
|
|
27
|
+
Single File
|
|
28
|
+
DummyFiles::File.get(filetype)
|
|
29
|
+
With parameters
|
|
30
|
+
DummyFiles::File.get(filetype, keyword)
|
|
15
31
|
|
|
16
32
|
|
|
17
33
|
== Note on Patches/Pull Requests
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.5
|
data/dummy_files.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dummy_files
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.0.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Jordi Noguera
|