delivery_boy 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0764539427dbbb53a7fefaa79c63177c899e18e
4
- data.tar.gz: 6483a025b200c5e846d13ddb772bccaa656c945d
3
+ metadata.gz: a19c52f7ecd3f52631f6f8da1f0c8c7ac11bbfcc
4
+ data.tar.gz: fce6287fb747ab8ea364959e0ecd430f54871168
5
5
  SHA512:
6
- metadata.gz: 389af5e34963f8a97134939efa34b7b6519e20cc2f850b977c478982a60335635fdbf71974482bd2035218cf0369ea52fe3648fd088daf5d660e791d1ea9e267
7
- data.tar.gz: dca33d4f8545897c0b372c49cc1e66b0561e598973ec6e58c848795f1c6e5e45dc3bdc50a47f4fad4170ce820b691f927d06b130348a6ed312c5780d86f540e9
6
+ metadata.gz: 1e1ac8f245940ae11f884edd46f480120542f9b4798f9771a59bd5e6e842a7cb2a024b9b69065f1adc24ccd5edb980b619fb3f38738749517fecd589f24ca71d
7
+ data.tar.gz: a73bb0d6df9e5bb5bef5fd638673fab04774861c1fcaaca61a3ad353384a26aa8c58c680669c6a3058a09042d9c2f6b596928b9b4bb8960c12460a0a839f94b3
@@ -56,6 +56,14 @@ module DeliveryBoy
56
56
  loader.load_file(path, environment)
57
57
  end
58
58
 
59
+ def set(variable, value)
60
+ unless VARIABLES.include?(variable.to_s)
61
+ raise ConfigError, "unknown configuration variable #{variable}"
62
+ end
63
+
64
+ instance_variable_set("@#{variable}", value)
65
+ end
66
+
59
67
  private
60
68
 
61
69
  def load_config(config)
@@ -86,13 +94,5 @@ module DeliveryBoy
86
94
 
87
95
  loader.validate!
88
96
  end
89
-
90
- def set(variable, value)
91
- unless VARIABLES.include?(variable.to_s)
92
- raise ConfigError, "unknown configuration variable #{variable}"
93
- end
94
-
95
- instance_variable_set("@#{variable}", value)
96
- end
97
97
  end
98
98
  end
@@ -1,3 +1,3 @@
1
1
  module DeliveryBoy
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delivery_boy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck