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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2c54da2e22c05f1fe1e54832443f49690ee3e65
4
- data.tar.gz: 6a73c714c0feaa35af907459f6c93b2ed7df5aaf
3
+ metadata.gz: c147f1bda18e9e788219a19449d6094959889454
4
+ data.tar.gz: 08d59ca5d7bf96fa7ccda4737b8a54021c511de2
5
5
  SHA512:
6
- metadata.gz: be801d6213e1e01cf3f773c9394b2d23cf83a6606672dc2479ffb4776a4f616df5a1d241673888091586d91644b172767b40b1944e9334a1b20cf998e8615db5
7
- data.tar.gz: 887376d1d89aaf420a80d4c5c1a9f7601c7a9d67a275b8ce4d5b1f0ac8e4edeb57d9d116d5d155ff6c86d9c38a7ca4f5567033745eb3bfad48588c6d701094e0
6
+ metadata.gz: d0823e84f0b4b98db3e255b097310b93ace5e87ce06a6c9d41bc29eeccdc06010316efa61ebd33d01ac8ffe399a7b33b8b64933e0ecd3130ce704ac0c47e09c8
7
+ data.tar.gz: 14e853b139c27c560186befa39322509fa75706f48cb9499e61da9868ea68b2bd3bd75e7a164232a992ba212a61e9889a2fdd33f8a92a597fc6cd036eb909058
@@ -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 ruby lib
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.5"
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-07"
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.5
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-07 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday