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.
Files changed (4) hide show
  1. data/README.rdoc +21 -2
  2. data/VERSION +1 -1
  3. data/dummy_files.gemspec +1 -1
  4. metadata +3 -3
@@ -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::Images.get(keyword, content)
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.7
1
+ 0.0.8
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dummy_files}
8
- s.version = "0.0.7"
8
+ s.version = "0.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jordi Noguera"]
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: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jordi Noguera