shadow_db_credentials 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.4.1
data/Gemfile CHANGED
@@ -1,16 +1,12 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  group :development do
4
- gem "gemspec_deps_gen"
5
- gem "gemcutter"
4
+ gem 'gemspec_deps_gen', '1.1.2'
5
+ gem 'gemcutter', '0.7.1'
6
+ gem 'thor', '0.19.4'
6
7
  end
7
8
 
8
9
  group :test do
9
- gem "rspec"
10
- gem "mocha"
11
- end
12
-
13
- group :debug do
14
- #gem "ruby-debug-base19x", "0.11.30.pre12"
15
- #gem "ruby-debug-ide", "0.4.17"
10
+ gem 'rspec'
11
+ gem 'mocha'
16
12
  end
@@ -1,3 +1,3 @@
1
1
  class ShadowDbCredentials
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
@@ -4,7 +4,7 @@ require File.expand_path(File.dirname(__FILE__) + '/lib/shadow_db_credentials/ve
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "shadow_db_credentials"
7
- spec.summary = %q{Class that helps to keep database credentials for rails application in private place}
7
+ spec.summary = %q{Class that helps to keep database credentials for rails application in private place.}
8
8
  spec.description = %q{Class that helps to keep database credentials for rails application in private place}
9
9
  spec.email = "alexander.shvets@gmail.com"
10
10
  spec.authors = ["Alexander Shvets"]
@@ -19,8 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.license = "MIT"
20
20
 
21
21
 
22
- spec.add_development_dependency "gemspec_deps_gen", [">= 0"]
23
- spec.add_development_dependency "gemcutter", [">= 0"]
22
+ spec.add_development_dependency "gemspec_deps_gen", ["= 1.1.2"]
23
+ spec.add_development_dependency "gemcutter", ["= 0.7.1"]
24
+ spec.add_development_dependency "thor", ["= 0.19.4"]
24
25
 
25
26
  end
26
27
 
@@ -4,7 +4,7 @@ require File.expand_path(File.dirname(__FILE__) + '/lib/shadow_db_credentials/ve
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "shadow_db_credentials"
7
- spec.summary = %q{Class that helps to keep database credentials for rails application in private place}
7
+ spec.summary = %q{Class that helps to keep database credentials for rails application in private place.}
8
8
  spec.description = %q{Class that helps to keep database credentials for rails application in private place}
9
9
  spec.email = "alexander.shvets@gmail.com"
10
10
  spec.authors = ["Alexander Shvets"]
@@ -10,7 +10,7 @@ describe ShadowDbCredentials do
10
10
  credentials_file_name = "#{@credentials_dir}/your_dev_db"
11
11
 
12
12
  YAML.expects(:load_file).with(credentials_file_name).returns(
13
- {url: "some_url", username: "username", password: "password"}
13
+ {url: 'some_url', username: 'username', password: 'password'}
14
14
  )
15
15
  File.expects(:exist? => true).with(credentials_file_name)
16
16
  end
@@ -19,24 +19,24 @@ describe ShadowDbCredentials do
19
19
  ShadowDbCredentials.new(@credentials_dir)
20
20
  end
21
21
 
22
- it "should process credentials attrubute" do
22
+ it 'processes credentials attrubute' do
23
23
  configurations = {production: { adapter: 'oracle_enhanced', credentials: 'your_dev_db'}}
24
24
 
25
25
  result = subject.process_configurations configurations
26
26
 
27
- result[:production][:url].should == 'some_url'
28
- result['production']['url'].should == 'some_url'
27
+ expect(result[:production][:url]).to eq 'some_url'
28
+ expect(result['production']['url']).to eq 'some_url'
29
29
  end
30
30
 
31
- it "should retrieve given configuration" do
31
+ it 'retrieves given configuration' do
32
32
  source = StringIO.new <<-TEXT
33
33
  development:
34
34
  adapter: postgresql
35
35
  credentials: your_dev_db
36
36
  TEXT
37
37
 
38
- result = subject.retrieve_configuration "development", source
38
+ result = subject.retrieve_configuration 'development', source
39
39
 
40
- result[:url].should == 'some_url'
40
+ expect(result[:url]).to eq 'some_url'
41
41
  end
42
42
  end
metadata CHANGED
@@ -1,43 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shadow_db_credentials
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-26 00:00:00.000000000 Z
11
+ date: 2017-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemspec_deps_gen
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.1.2
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 1.1.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gemcutter
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.7.1
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.7.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: thor
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 0.19.4
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 0.19.4
41
55
  description: Class that helps to keep database credentials for rails application in
42
56
  private place
43
57
  email: alexander.shvets@gmail.com
@@ -45,20 +59,20 @@ executables: []
45
59
  extensions: []
46
60
  extra_rdoc_files: []
47
61
  files:
48
- - .gitignore
49
- - .idea/.name
50
- - .idea/.rakeTasks
51
- - .idea/cssxfire.xml
52
- - .idea/encodings.xml
53
- - .idea/jenkinsSettings.xml
54
- - .idea/misc.xml
55
- - .idea/modules.xml
56
- - .idea/scopes/scope_settings.xml
57
- - .idea/shadow_db_credentials.iml
58
- - .idea/vcs.xml
59
- - .idea/workspace.xml
60
- - .ruby-gemset
61
- - .ruby-version
62
+ - ".gitignore"
63
+ - ".idea/.name"
64
+ - ".idea/.rakeTasks"
65
+ - ".idea/cssxfire.xml"
66
+ - ".idea/encodings.xml"
67
+ - ".idea/jenkinsSettings.xml"
68
+ - ".idea/misc.xml"
69
+ - ".idea/modules.xml"
70
+ - ".idea/scopes/scope_settings.xml"
71
+ - ".idea/shadow_db_credentials.iml"
72
+ - ".idea/vcs.xml"
73
+ - ".idea/workspace.xml"
74
+ - ".ruby-gemset"
75
+ - ".ruby-version"
62
76
  - CHANGES
63
77
  - Gemfile
64
78
  - LICENSE
@@ -84,21 +98,21 @@ require_paths:
84
98
  - lib
85
99
  required_ruby_version: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - '>='
101
+ - - ">="
88
102
  - !ruby/object:Gem::Version
89
103
  version: '0'
90
104
  required_rubygems_version: !ruby/object:Gem::Requirement
91
105
  requirements:
92
- - - '>='
106
+ - - ">="
93
107
  - !ruby/object:Gem::Version
94
108
  version: '0'
95
109
  requirements: []
96
110
  rubyforge_project:
97
- rubygems_version: 2.0.5
111
+ rubygems_version: 2.6.12
98
112
  signing_key:
99
113
  specification_version: 4
100
114
  summary: Class that helps to keep database credentials for rails application in private
101
- place
115
+ place.
102
116
  test_files:
103
117
  - spec/shadow_db_credentials_spec.rb
104
118
  - spec/spec_helper.rb