sourcing 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sourcing +3 -1
- data/lib/sourcing/person.rb +1 -1
- data/lib/sourcing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f96dcf2490493766e64152af488208c5321f0e43
|
4
|
+
data.tar.gz: abf6a8c6a1e7df73efd01c2560e43cc8b8e7c10e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce907a3efa4fa64fc3ba5bfb0a55e3e41bb68b3e6bddb75c63e266840d67d927d0c85b301ae769d20db88f8994483212e3cda4aebb8dd792b85c300a615cd4da
|
7
|
+
data.tar.gz: ca7218cb6bdf255ac4ae0b17ae18dc7e47980d7bdcee7f37fd2cc2cc971a9fe08dfa86dcf6d17e79923d5f4d845ad725d19d00ee688d367004cb71583e466565
|
data/bin/sourcing
CHANGED
@@ -16,7 +16,7 @@ options = {}
|
|
16
16
|
values = {}
|
17
17
|
|
18
18
|
parser = OptionParser.new do |opts|
|
19
|
-
opts.banner = "Usage: sourcing
|
19
|
+
opts.banner = "Usage: sourcing SLUG [options]"
|
20
20
|
|
21
21
|
opts.on("--twitter HANDLE", String, "Twitter handle") do |v|
|
22
22
|
values[:twitter] = v
|
@@ -54,6 +54,8 @@ if values == {}
|
|
54
54
|
exit
|
55
55
|
end
|
56
56
|
|
57
|
+
Sourcing.api_key = options[:api_key]
|
58
|
+
|
57
59
|
person = Sourcing::Person.find(values, options)
|
58
60
|
|
59
61
|
if person
|
data/lib/sourcing/person.rb
CHANGED
@@ -20,7 +20,7 @@ module Sourcing
|
|
20
20
|
self.new(get(uri(:github, github), params, options))
|
21
21
|
|
22
22
|
elsif name = values[:name]
|
23
|
-
self.new(get(uri(:name, name), params, options))
|
23
|
+
self.new(get(uri(:name, URI.escape(name)), params, options))
|
24
24
|
|
25
25
|
elsif id = values[:id]
|
26
26
|
self.new(get(id, params, options))
|
data/lib/sourcing/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sourcing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex MacCaw
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|