ruser 3.0.0 → 3.0.1
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/README.md +3 -3
- data/lib/ruser/api.rb +1 -1
- data/lib/ruser/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 971f95166f96e02113e5253a605ae68abc2c5132
|
4
|
+
data.tar.gz: 814a8c186a337a045627de49ed13fc0718e6e924
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4314c1768a92f2ace28eb94c975084340d445033d12b92c5e25d1719ce369dec7d4fa90623028c8f1e707913a22500d3bc4b0eeb309d1ff8669613ad1c1b4bb2
|
7
|
+
data.tar.gz: 854ddc8aca9e1236a6884bebab6e21502b89a909cb6606c8d4fdbac2069b7682283265a0bc76dc6aed2786a8392391d1999e98f9c10f7fc290cc45dbfd3dff55
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
RUser is a simple Ruby Gem to communicate with the randomuser.me API.
|
4
4
|
|
5
|
-
[](https://travis-ci.org/jtkendall/ruser) [](https://codeclimate.com/github/jtkendall/ruser) [](https://badge.fury.io/rb/ruser) [](https://gemnasium.com/jtkendall/ruser)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -90,11 +90,11 @@ If you would like more than one user supply the `results:` key in the options ha
|
|
90
90
|
|
91
91
|
require 'ruser'
|
92
92
|
|
93
|
-
results = RUser.new( results:
|
93
|
+
results = RUser.new( results: 3 })
|
94
94
|
|
95
95
|
The maximum number of results is 2000. Any number larger than that will return only 2000, unless you have a [RandomAPI](http://randomapi.com) API key. With an API key you can return up to 10000 results per request, just pass your `key:` with your optinos. You can pass the `gender:` key along with results to return x number of male or female users:
|
96
96
|
|
97
|
-
results = RUser.new({ :
|
97
|
+
results = RUser.new({ results: 3, gender: 'female' })
|
98
98
|
|
99
99
|
|
100
100
|
## Contributing & Development
|
data/lib/ruser/api.rb
CHANGED
data/lib/ruser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Kendall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -125,4 +125,3 @@ signing_key:
|
|
125
125
|
specification_version: 4
|
126
126
|
summary: Random User Generator API
|
127
127
|
test_files: []
|
128
|
-
has_rdoc:
|