hobos 0.0.1 → 0.0.2

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 (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -5
  3. data/bin/hobos +2 -12
  4. data/lib/hobos/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fcd82bde05ba3071e9b3ee0fecf930158bf222da
4
- data.tar.gz: 3cd8c9be86a793fbf8bb461f24b9ea0f450cc56d
3
+ metadata.gz: d6bf7694dc2bb293f060cb9226387ceee027430e
4
+ data.tar.gz: 3dc8eecd86050c1a169de44308fdac2897215042
5
5
  SHA512:
6
- metadata.gz: 1f5f32f4b7d5068b9e04318e96f98f44ca59b79dc602d55b2d467407552cf84b2acf2a1125931537ee067b1ec7969087eb57c0e1a1f944067413f49b5fcdc208
7
- data.tar.gz: 9347c8cbee5d96b4471ede29ebc5f21596ff7975a0429eef19780ca156a4c13354780cd2276e2f8dab1b55ba477623ffb280f746dbb57a3d5fe95fe5981a2420
6
+ metadata.gz: 49054ace192879e2a5892263b254f40007ded0c8b2b4887c36897d84b2b33a94d658fe2c9024963559f36b5e1d244a223f073fc6c8df84566b8123d166557997
7
+ data.tar.gz: 010d4a7a3dfe711e00b88be3efc7d741520d4b2838b88db593067af37c0623a4845939abebeab710188c5dd0c64f4fe0a61bf80f0551be0669d7328ad35f3b3a
data/README.md CHANGED
@@ -9,11 +9,7 @@ Fuck off and read a hobo name.
9
9
  ## Installation:
10
10
 
11
11
  ```BASH
12
- git clone 'https://www.github.com/rhgraysonii/hobo_api.git'
13
- cd hobo_api
14
- gem build hobo_api.gemspec
15
- gem install hobo_api.gem
16
- cd ..
12
+ gem install hobos
17
13
  ```
18
14
 
19
15
  And now you can simply look them up by id or at random.
data/bin/hobos CHANGED
@@ -3,21 +3,11 @@
3
3
  require 'hobos'
4
4
 
5
5
  api = Hobos::Api.new
6
-
7
-
8
6
  if ARGV[0]
7
+
9
8
  puts api.hobo ARGV[0]
10
9
  else
11
- found_hobo = false
12
- while !found_hobo
13
- resp = api.hobo rand(1..700)
14
- if resp != "{ 'error': { 'message': 'bad UID' } }"
15
- puts resp
16
- found_hobo = true
17
- else
18
- puts "searching...."
19
- end
20
- end
10
+ puts api.hobo [1..700].to_a.sample
21
11
  end
22
12
 
23
13
 
data/lib/hobos/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hobos
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert H Grayson II
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-04 00:00:00.000000000 Z
11
+ date: 2015-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler