glman 0.1.1 → 0.1.2

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: db2e052cb6cd0508e6ad0e39fd2a08b250111938
4
- data.tar.gz: c6ffc9adf0121f7340ad88310f37e97ddd9e03d4
3
+ metadata.gz: 912abb2d82ee4c232280bed7a4d82aeb38218906
4
+ data.tar.gz: bde00d9abfe888c491ef81ef8bc5d38f3816f43c
5
5
  SHA512:
6
- metadata.gz: dea67b830c493f8cc0bb6bc1da890129b233fd79de8b0a15f9fb13db12eca86f400876b354456926541bd508d6855d3a5e00bb7212f405d17488459ae143109e
7
- data.tar.gz: 886f512b12db74668875a681e962aa342e4c6d52d6ed6e680990e2ab9ce8bb049eeb80aee35514d389dccf35ff3cda401ae062baf667caa807f9bad88b93db76
6
+ metadata.gz: 39ebf29a4224666ead5fafb8d13968dcfd4f8c7f1fd0905a1f14516e635032330588fa05cbdd3cec919d6cf061bc6bec713659b213cd1ac138c18bce4c05c40b
7
+ data.tar.gz: 8480325a9a272eca9d3cbfdd79877ae46f13430ba8c5d289606c848e4b28d4864bc070483a0ccec8a15e78cea25f110caedd89e740a89591d092f538878abc72
@@ -1,6 +1,6 @@
1
1
  require "glman/kernel"
2
2
  require "glman/version"
3
- require "activesupport/dependencies"
3
+ require "active_support/dependencies"
4
4
 
5
5
  module Glman
6
6
  extend ActiveSupport::Dependencies
@@ -12,7 +12,7 @@ module Glman
12
12
 
13
13
  def set(users={})
14
14
  raise UsersConfigurationError.new('incorrect data') unless users.kind_of? Hash
15
- hash = nil if hash.empty?
15
+ hash = nil if users.empty?
16
16
  config_manager.set(users: users)
17
17
  end
18
18
 
@@ -1,3 +1,3 @@
1
1
  module Glman
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -29,8 +29,8 @@ describe Glman::Commands::Configs::AliasesConfig do
29
29
  end
30
30
 
31
31
  let(:alias_to_delete) {'pn'}
32
- let(:get_aliases) {{aliases: {dj: 'damian@o2.pl', pn: 'pawel@o2.pl'}}}
33
- let(:set_aliases) {{dj: 'damian@o2.pl'}}
32
+ let(:get_aliases) {{aliases: {'dj' => 'damian@o2.pl', 'pn' => 'pawel@o2.pl'}}}
33
+ let(:set_aliases) {{'dj' => 'damian@o2.pl'}}
34
34
 
35
35
  it 'should delete alias from existings' do
36
36
  subject.delete(alias_to_delete)
@@ -33,7 +33,7 @@ describe Glman::Commands::Configs::UsersConfig do
33
33
 
34
34
  describe '#clear' do
35
35
  before(:each) {config_manager.should_receive(:set).with({ users: set_users })}
36
- let(:set_users) { nil }
36
+ let(:set_users) { Glman::Commands::Configs::UsersConfig::DEFAULT }
37
37
 
38
38
  it 'should set users to default' do
39
39
  subject.clear
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paweł Niemczyk