truncus 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 000e1e87cec8e267e81637a4cb1a08c9a4296d15
4
- data.tar.gz: 1888a6bdf9f0e190a61b8d6bcf42afbafc905f7f
3
+ metadata.gz: 779e566e2abe67f250965ee05a3edb347de300c2
4
+ data.tar.gz: ba990e36ed3522dd79a12013bb94cdb8ab4829f3
5
5
  SHA512:
6
- metadata.gz: 644c9c54ad6ddf5b0510768913306d560ac07ebbeac487077f86d4e93fa87f59b17e7863124b5d0a979c584eec24c8fa6f8cf04947217773abeda0d312fb4f37
7
- data.tar.gz: f70db148e8959b0e307f6ca44fef9376fb3000767fb863e89356a048d74fe90567de994ed3e19f819c9ee672314067b63fbc9d580eeed2c41d6b0ad80a422ed1
6
+ metadata.gz: 24ada3830f373c189f0fb176ccfa0caf52ec32c613d1c19ef55da00d602f5c97cda243d8b221260b5ae348e305e9799fa4a059aff766cef9425df4c2ff37da21
7
+ data.tar.gz: c82b6a8a21e6750647cecec93735f175f44e6ebf1af4f0425432e0f1433a4e53a2f5494d9b1280af044ccc4dc5e6ebcddaf975729b46503053a3e07b851bcbe0
@@ -1,6 +1,6 @@
1
1
  example_id | status | run_time |
2
2
  ----------------------------- | ------ | --------------- |
3
- ./spec/truncus_spec.rb[1:1] | passed | 0.0007 seconds |
4
- ./spec/truncus_spec.rb[1:2:1] | passed | 0.00525 seconds |
5
- ./spec/truncus_spec.rb[1:3:1] | passed | 0.00528 seconds |
6
- ./spec/truncus_spec.rb[1:4:1] | passed | 0.00356 seconds |
3
+ ./spec/truncus_spec.rb[1:1] | passed | 0.00267 seconds |
4
+ ./spec/truncus_spec.rb[1:2:1] | passed | 0.0128 seconds |
5
+ ./spec/truncus_spec.rb[1:3:1] | passed | 0.02836 seconds |
6
+ ./spec/truncus_spec.rb[1:4:1] | passed | 0.0035 seconds |
@@ -20,25 +20,23 @@ module Truncus
20
20
 
21
21
  # Convenience for instantiating a Client and retrieving a shortened url
22
22
  def self.expand_token(token)
23
- @client ||= new
24
- @client.expand_token(token)
23
+ new.expand_token(token)
25
24
  end
26
25
 
27
26
 
28
27
  # Convenience for instantiating a Client, shortening a url,
29
28
  # and returning the shortened token
30
29
  def self.get_token(url)
31
- @client ||= new
32
- @client.get_token(url)
30
+ new.get_token(url)
33
31
  end
34
32
 
35
33
 
36
34
  # Convenience for instantiating a Client, shortening a url,
37
35
  # and returning it as a full url to the shortened version.
38
36
  def self.get_url(url)
39
- @client ||= new
40
- token = @client.get_token(url)
41
- "http#{'s' if @client.use_ssl?}://#{@client.host}/#{token}"
37
+ client = new
38
+ token = client.get_token(url)
39
+ "http#{'s' if client.use_ssl?}://#{client.host}/#{token}"
42
40
  end
43
41
 
44
42
 
@@ -1,3 +1,3 @@
1
1
  module Truncus
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: truncus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Emminger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-15 00:00:00.000000000 Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json