talos 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/talos.rb +1 -1
  3. data/talos.gemspec +2 -2
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a963d1d621605ff8c6bbc9fcd5a66ec02f63509c
4
- data.tar.gz: a16ebee4fbc780bf4911e6df1eeab33701f35e45
3
+ metadata.gz: 947940fb52ad4b05a7784b0db9dc4eabe23d16b0
4
+ data.tar.gz: a1c409622177a99443645cc8e7ccb17d20ce7983
5
5
  SHA512:
6
- metadata.gz: 32b2795e08276905aec04ee7918da2041a612424772df39c65fe86ae961bea50cc44a3a53ab76fba03e2eed92bb7cc8dc84962dd79a9c3d55374b87ef6e023b4
7
- data.tar.gz: c77f95c6f9c96a8cc25ba202548dda2be9d0495407106a307f380ce5edf484b1feb141dbb294981023011c4dcd447edabdf196df100baff91d8783f4bdf56303
6
+ metadata.gz: c4f563c63ef89f6c4d47df01f0ef7086ab6e6c2ac66b93a80f7218b5d358565691373649d444816c41a52fb8d0121186fe82846d074f54cc9df70d95e2dbfc31
7
+ data.tar.gz: fc88309b55b6ccea75c6f3028775c411235a10985dae52255f7835c0518fe2d7db137af1eafb5fb9b0730f5a74615261b8601841613b4d640370d4f6147268d0
data/lib/talos.rb CHANGED
@@ -52,7 +52,7 @@ class Talos < Sinatra::Base
52
52
 
53
53
  def absolute_datadir
54
54
  datadir = settings.hiera[:yaml][:datadir]
55
- datadir = File.join(File.dirname(__FILE__), '..', datadir) if Pathname.new(datadir).relative?
55
+ Pathname.new(datadir).relative? ? File.join(File.dirname(__FILE__), '..', datadir) : datadir
56
56
  end
57
57
 
58
58
  # Extracts scopes from FQDN using regexp with named captures
data/talos.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new do |s|
2
- s.version = '0.1.1'
2
+ s.version = '0.1.3'
3
3
  s.name = 'talos'
4
4
  s.authors = ['Alexey Lapitsky', 'Johan Haals']
5
5
  s.email = 'alexey@spotify.com'
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
14
14
  s.require_paths = ['lib']
15
15
 
16
- s.add_dependency 'rack'
16
+ s.add_dependency 'rack', '~>1.5'
17
17
  s.add_dependency 'sinatra'
18
18
  s.add_dependency 'hiera'
19
19
  s.add_dependency 'archive-tar-minitar'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Lapitsky
@@ -15,16 +15,16 @@ dependencies:
15
15
  name: rack
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: '1.5'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: '1.5'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: sinatra
30
30
  requirement: !ruby/object:Gem::Requirement