config-file 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YzAzYmE5YmNmNWU0ZmVmNGQ3NmU1MGE2NjJlNWZhNTM3ZmIxMTIwMA==
5
- data.tar.gz: !binary |-
6
- ZTRjN2I4YWI2NTcxNGViM2EyNTM5MDlkNmZmYTNkNjZkMmIxZjY5Ng==
2
+ SHA1:
3
+ metadata.gz: afcd10b8ee5e413312dbc0c9b892872d4d95603a
4
+ data.tar.gz: d1ecc1d5c986192dcdbea8132390d4deff7b8ab9
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OTNiMTNlMTQzODU1MzRkYWM3NzY1ODQ4OWM0NDk0N2ZiNWM0MjZkOTA0MzFj
10
- ZWM3MGUxMDhiNDk0ZmQ5YjQ5MTcwN2JiNjRiOWNiNDE0OWJmNmY5Y2E1MjJj
11
- NzhkNWNiODUzZTE3ZWQ5MGVhOWE0ZGQwYTRmYTVkMjQ3NjdjMzY=
12
- data.tar.gz: !binary |-
13
- ZWUzMDc3YmNhZTYyOGQ2M2Q4NzVjNGFmZTY5ZWE3YjRjZDQ5ZjA0NzcwZDFk
14
- OWRkYTM1ZWRlODkyNzg2OTgwNjU0YzhjNDNiNTcxZGQ3MWMwZDE1NDU5YWYy
15
- YmFlMGIxYzM2YzI0ODMxNmMxOTg3ZmRhOGY4MzMxYjcxMmUxMDc=
6
+ metadata.gz: e902f7c3f783d3ebc9b74d03ccec754bb9baf59e31eb7fe63a803b52541bb7e11cbdc122666efaf955d5dc4b3698e32fb07cb5f3b909fa96c85974298cf1042c
7
+ data.tar.gz: 9343dbeef9af122582d6065208d46205130996b4de0a777b5d3aa0ac271501c9a416390d6b75cbf7d208e717669e5b5c4a09c68743a8495b336d59eb757b7f73
data/.idea/.name ADDED
@@ -0,0 +1 @@
1
+ config-file
@@ -9,20 +9,110 @@
9
9
  </configuration>
10
10
  </facet>
11
11
  </component>
12
+ <component name="ModuleRunConfigurationManager">
13
+ <configuration default="false" name="tut.double" type="ErlangApplicationRunConfiguration" factoryName="Erlang Application" temporary="true">
14
+ <module name="config-file" />
15
+ <option name="erlFlags" value="" />
16
+ <option name="moduleAndFunction" value="tut double" />
17
+ <option name="name" value="tut.double" />
18
+ <option name="params" value="" />
19
+ <option name="saveOutputToFile" value="false" />
20
+ <option name="showConsoleOnStdErr" value="false" />
21
+ <option name="showConsoleOnStdOut" value="false" />
22
+ <RunnerSettings RunnerId="ErlangRunner" />
23
+ <ConfigurationWrapper RunnerId="ErlangRunner" />
24
+ <method />
25
+ </configuration>
26
+ <configuration default="false" name="Run spec 'config_file_spec': config-file" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
27
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
28
+ <module name="config-file" />
29
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
30
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
31
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
32
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
33
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
34
+ <envs>
35
+ <env name="JRUBY_OPTS" value="-X+O" />
36
+ </envs>
37
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
38
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
39
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
40
+ <COVERAGE_PATTERN ENABLED="true">
41
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
42
+ </COVERAGE_PATTERN>
43
+ </EXTENSION>
44
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
45
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
46
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/config_file_spec.rb" />
47
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
48
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
49
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
50
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
51
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
52
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
53
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
54
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
55
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
56
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
57
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
58
+ <RunnerSettings RunnerId="RubyDebugRunner" />
59
+ <RunnerSettings RunnerId="RubyRunner" />
60
+ <ConfigurationWrapper RunnerId="RubyDebugRunner" />
61
+ <ConfigurationWrapper RunnerId="RubyRunner" />
62
+ <method />
63
+ </configuration>
64
+ <configuration default="false" name="ConfigFile raises exception for unsupported type: config-file" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
65
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
66
+ <module name="config-file" />
67
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
68
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
69
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
70
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
71
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
72
+ <envs>
73
+ <env name="JRUBY_OPTS" value="-X+O" />
74
+ </envs>
75
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
76
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
77
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
78
+ <COVERAGE_PATTERN ENABLED="true">
79
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
80
+ </COVERAGE_PATTERN>
81
+ </EXTENSION>
82
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
83
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
84
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/config_file_spec.rb" />
85
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
86
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
87
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ConfigFile raises exception for unsupported type" />
88
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
89
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
90
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
91
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
92
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
93
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
94
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
95
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
96
+ <RunnerSettings RunnerId="RubyDebugRunner" />
97
+ <ConfigurationWrapper RunnerId="RubyDebugRunner" />
98
+ <method />
99
+ </configuration>
100
+ </component>
12
101
  <component name="NewModuleRootManager">
13
102
  <content url="file://$MODULE_DIR$" />
14
- <orderEntry type="inheritedJdk" />
103
+ <orderEntry type="jdk" jdkName="RVM: ruby-2.1.4 [config_file]" jdkType="RUBY_SDK" />
15
104
  <orderEntry type="sourceFolder" forTests="false" />
16
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.4, RVM: ruby-1.9.3-p547) [gem]" level="application" />
17
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-1.9.3-p547) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-1.9.3-p547) [gem]" level="application" />
19
- <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.9.3-p547) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-1.9.3-p547) [gem]" level="application" />
21
- <orderEntry type="library" scope="PROVIDED" name="json (v1.8.1, RVM: ruby-1.9.3-p547) [gem]" level="application" />
22
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.1.0, RVM: ruby-1.9.3-p547) [gem]" level="application" />
23
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.1.7, RVM: ruby-1.9.3-p547) [gem]" level="application" />
24
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.1.2, RVM: ruby-1.9.3-p547) [gem]" level="application" />
25
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.1.3, RVM: ruby-1.9.3-p547) [gem]" level="application" />
26
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.1.2, RVM: ruby-1.9.3-p547) [gem]" level="application" />
105
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.4, RVM: ruby-2.1.4 [config_file]) [gem]" level="application" />
106
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.1.4 [config_file]) [gem]" level="application" />
107
+ <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-2.1.4 [config_file]) [gem]" level="application" />
108
+ <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-2.1.4 [config_file]) [gem]" level="application" />
109
+ <orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-2.1.4 [config_file]) [gem]" level="application" />
110
+ <orderEntry type="library" scope="PROVIDED" name="json (v1.8.1, RVM: ruby-2.1.4 [config_file]) [gem]" level="application" />
111
+ <orderEntry type="library" scope="PROVIDED" name="meta_methods (v1.3.0, RVM: ruby-2.1.4 [config_file]) [gem]" level="application" />
112
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.1.0, RVM: ruby-2.1.4 [config_file]) [gem]" level="application" />
113
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.1.7, RVM: ruby-2.1.4 [config_file]) [gem]" level="application" />
114
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.1.2, RVM: ruby-2.1.4 [config_file]) [gem]" level="application" />
115
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.1.3, RVM: ruby-2.1.4 [config_file]) [gem]" level="application" />
116
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.1.2, RVM: ruby-2.1.4 [config_file]) [gem]" level="application" />
27
117
  </component>
28
118
  </module>
data/.idea/emacs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="EmacsSettings">
4
+ <option name="emacsPath" value="/usr/bin/emacs" />
5
+ </component>
6
+ </project>
data/CHANGES CHANGED
@@ -3,3 +3,7 @@
3
3
  == Version 1.0.0
4
4
 
5
5
  * Initial release.
6
+
7
+ == Version 1.0.1
8
+
9
+ * Refactoring code.
data/README.md CHANGED
@@ -22,11 +22,11 @@ Or install it yourself as:
22
22
  ```ruby
23
23
  require 'config_file'
24
24
 
25
- configurator = ConfigFile.bew
25
+ config_file = ConfigFile.bew
26
26
 
27
- config1 = configurator.load "spec/config/test_config.yaml"
28
- config2 = configurator.load "spec/config/test_config.json"
29
- config3 = configurator.load "spec/config/test_config.rb"
27
+ config1 = config_file.load "spec/config/test_config.yaml"
28
+ config2 = config_file.load "spec/config/test_config.json"
29
+ config3 = config_file.load "spec/config/test_config.rb"
30
30
  ```
31
31
 
32
32
  ## Contributing
@@ -0,0 +1,26 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require File.expand_path(File.dirname(__FILE__) + '/lib/config_file/version')
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "config-file"
7
+ spec.summary = %q{Simple library for reading configuration from different sources.}
8
+ spec.description = %q{Description: Simple library for reading configuration from different sources.}
9
+ spec.email = "alexander.shvets@gmail.com"
10
+ spec.authors = ["Alexander Shvets"]
11
+ spec.homepage = "http://github.com/shvets/config_file"
12
+
13
+ spec.files = `git ls-files`.split($\)
14
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
+ spec.require_paths = ["lib"]
16
+ spec.version = ConfigFile::VERSION
17
+ spec.license = "MIT"
18
+
19
+
20
+ spec.add_runtime_dependency "meta_methods", [">= 0"]
21
+ spec.add_runtime_dependency "json", [">= 0"]
22
+ spec.add_development_dependency "gemspec_deps_gen", [">= 0"]
23
+ spec.add_development_dependency "gemcutter", [">= 0"]
24
+
25
+ end
26
+
@@ -1,36 +1,27 @@
1
- require 'meta_methods/core'
2
- require 'yaml'
3
- require 'json'
4
-
5
1
  class ConfigFile
6
- YAML_EXT = '.yaml'
7
- RUBY_EXT = '.rb'
8
- JSON_EXT = 'json'
2
+ @types = []
3
+
4
+ def self.register(type)
5
+ @types << type unless @types.include? type
6
+ end
7
+
8
+ def self.type(extension)
9
+ @types.detect { |type| type.extensions.include? extension }
10
+ end
9
11
 
10
12
  attr_reader :config
11
13
 
12
14
  def load file_name, ext=nil
13
15
  ext = File.extname(file_name) unless ext
14
16
 
15
- @config = case ext
16
- when YAML_EXT
17
- YAML.load_file(File.expand_path(file_name))
17
+ config_file_type = ConfigFile.type(ext)
18
18
 
19
- when RUBY_EXT
20
- content = File.open(file_name).read
19
+ if config_file_type
20
+ config_file = config_file_type.new
21
21
 
22
- MetaMethods::Core.instance.block_to_hash(content)
23
-
24
- when JSON_EXT
25
- content = File.open(file_name).read
26
-
27
- JSON.parse(content)
28
-
29
- else
30
- content = File.open(file_name).read
31
-
32
- JSON.parse(content)
22
+ @config = config_file.read file_name
23
+ else
24
+ raise ArgumentError, "Configuration from #{ext} is not supported"
33
25
  end
34
26
  end
35
-
36
27
  end
@@ -0,0 +1,47 @@
1
+ require 'meta_methods/core'
2
+ require 'yaml'
3
+ require 'json'
4
+
5
+ require 'config_file/config_file'
6
+
7
+ class ConfigType
8
+ class Yaml
9
+ ConfigFile.register(self)
10
+
11
+ def self.extensions
12
+ [".yaml"]
13
+ end
14
+
15
+ def read file_name
16
+ ::YAML.load_file(File.expand_path(file_name))
17
+ end
18
+ end
19
+
20
+ class Ruby
21
+ ConfigFile.register(self)
22
+
23
+ def self.extensions
24
+ [".rb"]
25
+ end
26
+
27
+ def read file_name
28
+ content = File.open(file_name).read
29
+
30
+ MetaMethods::Core.instance.block_to_hash(content)
31
+ end
32
+ end
33
+
34
+ class Json
35
+ ConfigFile.register(self)
36
+
37
+ def self.extensions
38
+ [".json"]
39
+ end
40
+
41
+ def read file_name
42
+ content = File.open(file_name).read
43
+
44
+ ::JSON.parse(content)
45
+ end
46
+ end
47
+ end
@@ -1,3 +1,3 @@
1
1
  class ConfigFile
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/config_file.rb CHANGED
@@ -1 +1,2 @@
1
- require 'config_file/config_file'
1
+ require 'config_file/config_file'
2
+ require 'config_file/config_type'
@@ -24,4 +24,10 @@ describe ConfigFile do
24
24
  expect(config[:property1]).to eq "value1"
25
25
  expect(config[:property2][:property21]).to eq "value21"
26
26
  end
27
+
28
+ it "raises exception for unsupported type" do
29
+ expect {
30
+ subject.load "spec/config/test_config.pdf"
31
+ }.to raise_exception(ArgumentError)
32
+ end
27
33
  end
metadata CHANGED
@@ -1,102 +1,106 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-07 00:00:00.000000000 Z
11
+ date: 2014-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: meta_methods
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gemspec_deps_gen
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: gemcutter
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: ! 'Description: Simple library for reading configuration from different
69
+ description: 'Description: Simple library for reading configuration from different
70
70
  sources.'
71
71
  email: alexander.shvets@gmail.com
72
72
  executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
77
- - .idea/.rakeTasks
78
- - .idea/config-file.iml
79
- - .idea/encodings.xml
80
- - .idea/misc.xml
81
- - .idea/modules.xml
82
- - .idea/scopes/scope_settings.xml
83
- - .idea/vcs.xml
84
- - .ruby-gemset
85
- - .ruby-version
76
+ - ".gitignore"
77
+ - ".idea/.name"
78
+ - ".idea/.rakeTasks"
79
+ - ".idea/config-file.iml"
80
+ - ".idea/emacs.xml"
81
+ - ".idea/encodings.xml"
82
+ - ".idea/misc.xml"
83
+ - ".idea/modules.xml"
84
+ - ".idea/scopes/scope_settings.xml"
85
+ - ".idea/vcs.xml"
86
+ - ".ruby-gemset"
87
+ - ".ruby-version"
86
88
  - CHANGES
87
89
  - Gemfile
88
90
  - Gemfile.lock
89
91
  - LICENSE
90
92
  - README.md
91
93
  - Rakefile
94
+ - config-file.gemspec
92
95
  - config-file.gemspec.erb
93
96
  - lib/config_file.rb
94
97
  - lib/config_file/config_file.rb
98
+ - lib/config_file/config_type.rb
95
99
  - lib/config_file/version.rb
96
100
  - spec/config/test_config.json
97
101
  - spec/config/test_config.rb
98
102
  - spec/config/test_config.yaml
99
- - spec/configurator_spec.rb
103
+ - spec/config_file_spec.rb
100
104
  - spec/spec_helper.rb
101
105
  homepage: http://github.com/shvets/config_file
102
106
  licenses:
@@ -108,17 +112,17 @@ require_paths:
108
112
  - lib
109
113
  required_ruby_version: !ruby/object:Gem::Requirement
110
114
  requirements:
111
- - - ! '>='
115
+ - - ">="
112
116
  - !ruby/object:Gem::Version
113
117
  version: '0'
114
118
  required_rubygems_version: !ruby/object:Gem::Requirement
115
119
  requirements:
116
- - - ! '>='
120
+ - - ">="
117
121
  - !ruby/object:Gem::Version
118
122
  version: '0'
119
123
  requirements: []
120
124
  rubyforge_project:
121
- rubygems_version: 2.2.2
125
+ rubygems_version: 2.4.2
122
126
  signing_key:
123
127
  specification_version: 4
124
128
  summary: Simple library for reading configuration from different sources.
@@ -126,5 +130,5 @@ test_files:
126
130
  - spec/config/test_config.json
127
131
  - spec/config/test_config.rb
128
132
  - spec/config/test_config.yaml
129
- - spec/configurator_spec.rb
133
+ - spec/config_file_spec.rb
130
134
  - spec/spec_helper.rb