appfuel 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/appfuel/{configuration → config}/definition_dsl.rb +2 -2
- data/lib/appfuel/{configuration → config}/file_loader.rb +1 -1
- data/lib/appfuel/{configuration → config}/populate.rb +1 -1
- data/lib/appfuel/{configuration → config}/search.rb +1 -1
- data/lib/appfuel/config.rb +14 -0
- data/lib/appfuel/version.rb +1 -1
- data/lib/appfuel.rb +1 -1
- metadata +6 -6
- data/lib/appfuel/configuration.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 732d86de301715d6f43ebfb253c4a1df9e56f649
|
4
|
+
data.tar.gz: d835e53e395fa4773076775123e0d46327f34755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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::
|
14
|
+
# Appfuel::Config.define :foo do
|
15
15
|
# file /etc/startplus/offers.yml
|
16
16
|
# defaults bar: 'bif',
|
17
17
|
# baz: 'biz'
|
@@ -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
|
data/lib/appfuel/version.rb
CHANGED
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/
|
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.
|
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/
|
294
|
-
- lib/appfuel/
|
295
|
-
- lib/appfuel/
|
296
|
-
- lib/appfuel/
|
297
|
-
- lib/appfuel/
|
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
|