mince 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/mince/config.rb +16 -14
  2. data/lib/mince/version.rb +1 -1
  3. metadata +1 -1
@@ -1,24 +1,26 @@
1
1
  require 'active_support/core_ext/object/blank'
2
2
  require 'singleton'
3
3
 
4
- class Mince::Config
5
- include Singleton
4
+ module Mince
5
+ class Config
6
+ include Singleton
6
7
 
7
- attr_reader :database_name
8
+ attr_reader :database_name
8
9
 
9
- def initialize
10
- self.database_name = "mince"
11
- end
10
+ def initialize
11
+ self.database_name = "mince"
12
+ end
12
13
 
13
- def database_name=(val)
14
- @database_name = [val, ENV['TEST_ENV_NUMBER']].compact.join("-")
15
- end
14
+ def database_name=(val)
15
+ @database_name = [val, ENV['TEST_ENV_NUMBER']].compact.join("-")
16
+ end
16
17
 
17
- def self.database_name
18
- instance.database_name
19
- end
18
+ def self.database_name
19
+ instance.database_name
20
+ end
20
21
 
21
- def self.database_name=(val)
22
- instance.database_name = val
22
+ def self.database_name=(val)
23
+ instance.database_name = val
24
+ end
23
25
  end
24
26
  end
@@ -1,3 +1,3 @@
1
1
  module Mince
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mince
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: