appfuel 0.4.0 → 0.4.1

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: 272469cb6b6176387cccd84e5b0dbfddd5008b5e
4
- data.tar.gz: 2dba20cdaafa5f307bf1ab53bada70134591b5d1
3
+ metadata.gz: 732d86de301715d6f43ebfb253c4a1df9e56f649
4
+ data.tar.gz: d835e53e395fa4773076775123e0d46327f34755
5
5
  SHA512:
6
- metadata.gz: b69ff2a0ebb4d5276d40c9f2b7d5aebccc090996ae9b6404e75839a8b40bcc3d9948366756c4137722d6f6d406e54edcc295d8e11e56ee819538d18a213f17e5
7
- data.tar.gz: d0e5af1cb92b21b0b36436ef76ab15f382b913cf82e0f3080734f873948693bd41432abe9a937004e2df29cfdb368638acdc368d4067d67c19ae454a92297714
6
+ metadata.gz: 02383a20c383e8b79b8974b4cbf7537f29685a6cd2d380e15580216a8e975009f931ad2cd2db59e8be03b19fb5202ca0c1d70dfe9b48421f0d210479cfeb6a1e
7
+ data.tar.gz: 4e64d3521f0302fccbbc5b4038e794dcdb10852629393a3ec4f2d7e5af9348aefb1fcfca2d3bc2cb830e217218c4723183ca573f8f5fa578f80494435acf77df
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. (Pending ap
5
5
 
6
6
 
7
7
  # Releases
8
+ ## [[0.4.1]](https://github.com/rsb/appfuel/releases/tag/0.4.1) 2017-06-21
9
+ ### Changed
10
+ - renamed `Appfuel::Configuration` to `Appfuel::Config`
11
+
8
12
  ## [[0.4.0]](https://github.com/rsb/appfuel/releases/tag/0.4.0) 2017-06-21
9
13
  ### Added
10
14
  - logging, db and `web_api` initializers have been added
@@ -1,5 +1,5 @@
1
1
  module Appfuel
2
- module Configuration
2
+ module Config
3
3
  # A configuration definition holds the methods that are exposed in
4
4
  # Config dsl. This definition allows you to define a given configuration
5
5
  # as it would exist in a hash. The dsl collects information like where
@@ -11,7 +11,7 @@ module Appfuel
11
11
  #
12
12
  # @example of dsl usage
13
13
  #
14
- # Appfuel::Configuration.define :foo do
14
+ # Appfuel::Config.define :foo do
15
15
  # file /etc/startplus/offers.yml
16
16
  # defaults bar: 'bif',
17
17
  # baz: 'biz'
@@ -1,5 +1,5 @@
1
1
  module Appfuel
2
- module Configuration
2
+ module Config
3
3
  # Handle loading files and parsing them correctly based on their type.
4
4
  # The file loader used for loading configuration data into a definition
5
5
  module FileLoader
@@ -1,5 +1,5 @@
1
1
  module Appfuel
2
- module Configuration
2
+ module Config
3
3
  module Populate
4
4
  # This converts a definition into a hash of configuation values. It does
5
5
  # this using the following steps
@@ -1,5 +1,5 @@
1
1
  module Appfuel
2
- module Configuration
2
+ module Config
3
3
  module Search
4
4
  # Allow you to access child definitions as if it were a hash.
5
5
  # If you add a space separated list of names this will traverse
@@ -0,0 +1,14 @@
1
+ require_relative 'config/file_loader'
2
+ require_relative 'config/search'
3
+ require_relative 'config/populate'
4
+ require_relative 'config/definition_dsl'
5
+
6
+ module Appfuel
7
+ module Config
8
+ def self.define(key, &block)
9
+ definition = DefinitionDsl.new(key)
10
+ definition.instance_eval(&block)
11
+ definition
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module Appfuel
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/lib/appfuel.rb CHANGED
@@ -10,7 +10,7 @@ require "appfuel/types"
10
10
  require "appfuel/errors"
11
11
  require "appfuel/run_error"
12
12
  require "appfuel/log_formatter"
13
- require "appfuel/configuration"
13
+ require "appfuel/config"
14
14
  require "appfuel/application"
15
15
  require "appfuel/initialize"
16
16
  require "appfuel/feature"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appfuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Scott-Buccleuch
@@ -290,11 +290,11 @@ files:
290
290
  - lib/appfuel/application/dispatcher.rb
291
291
  - lib/appfuel/application/root.rb
292
292
  - lib/appfuel/cli_msg_request.rb
293
- - lib/appfuel/configuration.rb
294
- - lib/appfuel/configuration/definition_dsl.rb
295
- - lib/appfuel/configuration/file_loader.rb
296
- - lib/appfuel/configuration/populate.rb
297
- - lib/appfuel/configuration/search.rb
293
+ - lib/appfuel/config.rb
294
+ - lib/appfuel/config/definition_dsl.rb
295
+ - lib/appfuel/config/file_loader.rb
296
+ - lib/appfuel/config/populate.rb
297
+ - lib/appfuel/config/search.rb
298
298
  - lib/appfuel/domain.rb
299
299
  - lib/appfuel/domain/criteria_builder.rb
300
300
  - lib/appfuel/domain/domain_name_parser.rb
@@ -1,14 +0,0 @@
1
- require_relative 'configuration/file_loader'
2
- require_relative 'configuration/search'
3
- require_relative 'configuration/populate'
4
- require_relative 'configuration/definition_dsl'
5
-
6
- module Appfuel
7
- module Configuration
8
- def self.define(key, &block)
9
- definition = DefinitionDsl.new(key)
10
- definition.instance_eval(&block)
11
- definition
12
- end
13
- end
14
- end