stagery 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stagery.rb +5 -0
- data/lib/stagery/test_helper.rb +13 -0
- data/lib/stagery/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6454bcc50b2856f4d8d8e69bfa4b32b8f5c6cdba672466319eca71cdacc0acd8
|
4
|
+
data.tar.gz: 75cebae60d7963a011e30d22eccb98bca88b1b5ca0015527da63ca57f6fd7970
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03b0537235f3e8177408e76adfbfc890e2da05a04ad0c9489913ffdee3ec21734d4637bed2cc11c2d31152806f41448975c8aecdd09847d0f547b479e60513b9
|
7
|
+
data.tar.gz: f6910ced7d65cdfdc4f2358cf586cdea74bfed0b7ca338aea769060248466fba5b0ba84affb706c48e98bfb3f71b11155e902b498ba360d9357f33f29c44a162
|
data/lib/stagery.rb
CHANGED
@@ -2,9 +2,14 @@
|
|
2
2
|
|
3
3
|
require 'active_support/string_inquirer'
|
4
4
|
require_relative 'stagery/version'
|
5
|
+
require_relative 'stagery/test_helper'
|
5
6
|
|
6
7
|
module Stagery
|
7
8
|
def self.stage
|
8
9
|
@_stage ||= ActiveSupport::StringInquirer.new(ENV["STAGERY_STAGE"] || "development")
|
9
10
|
end
|
11
|
+
|
12
|
+
def self.stage=(stage)
|
13
|
+
@_stage = ActiveSupport::StringInquirer.new(stage)
|
14
|
+
end
|
10
15
|
end
|
data/lib/stagery/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stagery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florent Beaurain
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- LICENSE
|
34
34
|
- README.md
|
35
35
|
- lib/stagery.rb
|
36
|
+
- lib/stagery/test_helper.rb
|
36
37
|
- lib/stagery/version.rb
|
37
38
|
homepage: https://github.com/beauraF/stagery
|
38
39
|
licenses:
|