brownie 0.2.0 → 0.2.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: 5272fa1331a8f96bfbb00999011a2434a37339f7
4
- data.tar.gz: 640b647d7426a7b7c4c3f918badff18029e551bd
3
+ metadata.gz: d61a3cf1a79c73d7fdc2269cd35de0036df0ce48
4
+ data.tar.gz: 97bf0358fbd901242934d3bceea28d24f5119d46
5
5
  SHA512:
6
- metadata.gz: 30875b266eef846deb71d47104a2afbedfd38c26c6afe355e58da5403d549f183f969cad03fdbe6660e1d90c0cafcbdc95a3442feb930fd0ab9bc99c587c1403
7
- data.tar.gz: 888e25e2689fec4c31f8e557459802ae3881906d5802389c66a4060fb7766f88ca0a85f2c8ca8e06972875fac1cd533593e2043c74358879a21cabb3832bf612
6
+ metadata.gz: eebe220a91dfc21068b5bd78ed0ba9c511976c3e9ac26b0a3d63253d0d5322a5336484e1f453aee114e26c8fab6203968b4c06667d466d2dada07a93354d6f8b
7
+ data.tar.gz: c10d188f57c2e958de59fac2904c98798cdbea5f1b42db10d8c32a74134bdcc7867a87a16f2b3980320b5bdfd91afb1816f03131dc687b553a97205723e49c57
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/brownie.gemspec CHANGED
@@ -2,11 +2,11 @@
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: brownie 0.2.0 ruby lib
5
+ # stub: brownie 0.2.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "brownie"
9
- s.version = "0.2.0"
9
+ s.version = "0.2.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Michael Jaffe"]
@@ -1,17 +1,22 @@
1
1
  module Brownie
2
2
  class Common
3
3
  def self.domain
4
+
5
+ env = Object.const_defined?(:Rails) ? Rails.env : nil
4
6
  staging = "wwwcie.ups.com"
5
7
  production = "onlinetools.ups.com"
6
- return staging if ENV["RAILS_ENV"]
7
8
 
8
- if self.environment.nil?
9
- staging
10
- elsif self.environment == "production"
11
- production
12
- else
13
- staging
9
+ if !env.nil?
10
+ if !env.to_s.eql?("production")
11
+ return staging
12
+ end
13
+ end
14
+ if ENV["ENV"].nil?
15
+ return staging
14
16
  end
17
+
18
+ return staging unless ENV["ENV"].eql?("production")
19
+ return production
15
20
  end
16
21
 
17
22
  def self.template_to_hash(template,root="ShipmentConfirmRequest")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brownie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Jaffe