pesapal 1.2.2 → 1.3.0

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.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ v1.3.0
5
+ ------
6
+
7
+ * Make mode setting should be a bit more intuitive, default more to Rails.env
8
+
4
9
  v1.2.2
5
10
  ------
6
11
 
@@ -41,7 +41,7 @@ module Pesapal
41
41
  public
42
42
 
43
43
  # constructor
44
- def initialize(mode = :development, path_to_file = nil)
44
+ def initialize(mode = Rails.env, path_to_file = nil)
45
45
 
46
46
  # initialize
47
47
  @params = nil
@@ -139,10 +139,10 @@ module Pesapal
139
139
  end
140
140
 
141
141
  # set mode when called
142
- def set_mode(mode = :development)
142
+ def set_mode(mode = Rails.env)
143
143
 
144
144
  # convert symbol to string and downcase
145
- @mode = "#{mode.to_s.downcase}"
145
+ @mode = mode.to_s.downcase
146
146
 
147
147
  # set api endpoints depending on the mode
148
148
  set_endpoints
@@ -1,3 +1,3 @@
1
1
  module Pesapal
2
- VERSION = "1.2.2"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pesapal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-20 00:00:00.000000000 Z
12
+ date: 2014-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler