grifter 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grifter.gemspec +3 -3
- data/lib/grifter/configuration.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c147f1bda18e9e788219a19449d6094959889454
|
4
|
+
data.tar.gz: 08d59ca5d7bf96fa7ccda4737b8a54021c511de2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0823e84f0b4b98db3e255b097310b93ace5e87ce06a6c9d41bc29eeccdc06010316efa61ebd33d01ac8ffe399a7b33b8b64933e0ecd3130ce704ac0c47e09c8
|
7
|
+
data.tar.gz: 14e853b139c27c560186befa39322509fa75706f48cb9499e61da9868ea68b2bd3bd75e7a164232a992ba212a61e9889a2fdd33f8a92a597fc6cd036eb909058
|
data/grifter.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: grifter 0.4.
|
5
|
+
# stub: grifter 0.4.6 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "grifter"
|
9
|
-
s.version = "0.4.
|
9
|
+
s.version = "0.4.6"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Robert Schultheis"]
|
14
|
-
s.date = "2016-06-
|
14
|
+
s.date = "2016-06-09"
|
15
15
|
s.description = "convention based approach to interfacing with an HTTP JSON API."
|
16
16
|
s.email = "rob@knewton.com"
|
17
17
|
s.executables = ["grift"]
|
@@ -109,6 +109,14 @@ class Grifter
|
|
109
109
|
service_overrides.merge!(get_service_config_from_url(service_overrides.delete(:url)))
|
110
110
|
config[:services][service_name].merge! service_overrides
|
111
111
|
end
|
112
|
+
|
113
|
+
# force the grifter environment variable to be the environment
|
114
|
+
# in some cases grifts may include other ruby code that needs to know
|
115
|
+
# the environment. It may be inconvenient to include Grifter::Helpers
|
116
|
+
# and use grifter_configuration to access that info
|
117
|
+
# Therefore, we force set this env var, so anything included in a grift
|
118
|
+
# can access the environment here if needed
|
119
|
+
ENV['GRIFTER_ENVIRONMENT']= config[:environment].to_s
|
112
120
|
else
|
113
121
|
config[:environment] = :undefined
|
114
122
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grifter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Schultheis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|