dummy_files 0.0.7 → 0.0.8
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 +21 -2
- data/VERSION +1 -1
- data/dummy_files.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -15,7 +15,7 @@ Where number is the number of images to fetch (by default 100), keyword is the k
|
|
15
15
|
You can get a single image, too
|
16
16
|
DummyFiles::Image.get
|
17
17
|
Or with parameters
|
18
|
-
DummyFiles::
|
18
|
+
DummyFiles::Image.get(keyword, content)
|
19
19
|
|
20
20
|
= To get Files
|
21
21
|
DummyFiles::Files.get(filetype)
|
@@ -29,8 +29,27 @@ Single File
|
|
29
29
|
DummyFiles::File.get(filetype)
|
30
30
|
With parameters
|
31
31
|
DummyFiles::File.get(filetype, keyword)
|
32
|
+
|
33
|
+
= API
|
34
|
+
There's an API avalailable in my website, it returns the results as text/JSON. The calls are as follows:
|
32
35
|
|
33
|
-
|
36
|
+
Images
|
37
|
+
http://api.jordinl.com/dummy/images
|
38
|
+
Images with params
|
39
|
+
http://api.jordinl.com/dummy/images?number=[YOUR_NUMBER]&keyword=[YOUR_KEYWORD]&content=[YOUR_CONTENT]
|
40
|
+
Image
|
41
|
+
http://api.jordinl.com/dummy/image
|
42
|
+
Image with params
|
43
|
+
http://api.jordinl.com/dummy/image?keyword=[YOUR_KEYWORD]&content=[YOUR_CONTENT]
|
44
|
+
Files
|
45
|
+
http://api.jordinl.com/dummy/files?filetype=[YOUR_FILETYPE]
|
46
|
+
Files with params
|
47
|
+
http://api.jordinl.com/dummy/files?filetype=[YOUR_FILETYPE]&keyword=[YOUR_KEYWORD]&number=[YOUR_NUMBER]
|
48
|
+
File
|
49
|
+
http://api.jordinl.com/dummy/file?filetype=[YOUR_FILETYPE]
|
50
|
+
File with params
|
51
|
+
http://api.jordinl.com/dummy/file?filetype=[YOUR_FILETYPE]&keyword=[YOUR_KEYWORD]
|
52
|
+
|
34
53
|
== Note on Patches/Pull Requests
|
35
54
|
|
36
55
|
* Fork the project.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
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: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jordi Noguera
|