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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0517c77156d6396617ed213c57cce5adc0bab3f5
4
- data.tar.gz: bd6849923cfdf38395c993df93f74bbc8f74fec4
3
+ metadata.gz: f96dcf2490493766e64152af488208c5321f0e43
4
+ data.tar.gz: abf6a8c6a1e7df73efd01c2560e43cc8b8e7c10e
5
5
  SHA512:
6
- metadata.gz: 023c5edfaec8e3ce70a55d0697a2923e01a8a67fef96164ca62ee3232cd726e8b86973cfd6802448477ad512f98106f7d98e44fd6ba9f9d63d7e76cd6e191835
7
- data.tar.gz: e6b9ef0d50f0532607864587e665e356a687fd1ad3c6118cae679264d0f7c28bafae22bd645a79c34f26cb06c7c45f5ef9c943aeb7e5e1269ebf9d2c40b0cd9c
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 EMAIL [options]"
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
@@ -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))
@@ -1,3 +1,3 @@
1
1
  module Sourcing
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
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-22 00:00:00.000000000 Z
11
+ date: 2014-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler