pesapal 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +0 -71
- data/lib/pesapal.rb +1 -0
- data/lib/pesapal/railtie.rb +6 -1
- data/lib/pesapal/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -3,66 +3,12 @@ PATH
|
|
3
3
|
specs:
|
4
4
|
pesapal (1.5.0)
|
5
5
|
htmlentities
|
6
|
-
rails
|
7
6
|
|
8
7
|
GEM
|
9
8
|
remote: https://rubygems.org/
|
10
9
|
specs:
|
11
|
-
actionmailer (4.0.2)
|
12
|
-
actionpack (= 4.0.2)
|
13
|
-
mail (~> 2.5.4)
|
14
|
-
actionpack (4.0.2)
|
15
|
-
activesupport (= 4.0.2)
|
16
|
-
builder (~> 3.1.0)
|
17
|
-
erubis (~> 2.7.0)
|
18
|
-
rack (~> 1.5.2)
|
19
|
-
rack-test (~> 0.6.2)
|
20
|
-
activemodel (4.0.2)
|
21
|
-
activesupport (= 4.0.2)
|
22
|
-
builder (~> 3.1.0)
|
23
|
-
activerecord (4.0.2)
|
24
|
-
activemodel (= 4.0.2)
|
25
|
-
activerecord-deprecated_finders (~> 1.0.2)
|
26
|
-
activesupport (= 4.0.2)
|
27
|
-
arel (~> 4.0.0)
|
28
|
-
activerecord-deprecated_finders (1.0.3)
|
29
|
-
activesupport (4.0.2)
|
30
|
-
i18n (~> 0.6, >= 0.6.4)
|
31
|
-
minitest (~> 4.2)
|
32
|
-
multi_json (~> 1.3)
|
33
|
-
thread_safe (~> 0.1)
|
34
|
-
tzinfo (~> 0.3.37)
|
35
|
-
arel (4.0.1)
|
36
|
-
atomic (1.1.14)
|
37
|
-
builder (3.1.4)
|
38
10
|
diff-lcs (1.2.5)
|
39
|
-
erubis (2.7.0)
|
40
|
-
hike (1.2.3)
|
41
11
|
htmlentities (4.3.1)
|
42
|
-
i18n (0.6.9)
|
43
|
-
mail (2.5.4)
|
44
|
-
mime-types (~> 1.16)
|
45
|
-
treetop (~> 1.4.8)
|
46
|
-
mime-types (1.25.1)
|
47
|
-
minitest (4.7.5)
|
48
|
-
multi_json (1.8.2)
|
49
|
-
polyglot (0.3.3)
|
50
|
-
rack (1.5.2)
|
51
|
-
rack-test (0.6.2)
|
52
|
-
rack (>= 1.0)
|
53
|
-
rails (4.0.2)
|
54
|
-
actionmailer (= 4.0.2)
|
55
|
-
actionpack (= 4.0.2)
|
56
|
-
activerecord (= 4.0.2)
|
57
|
-
activesupport (= 4.0.2)
|
58
|
-
bundler (>= 1.3.0, < 2.0)
|
59
|
-
railties (= 4.0.2)
|
60
|
-
sprockets-rails (~> 2.0.0)
|
61
|
-
railties (4.0.2)
|
62
|
-
actionpack (= 4.0.2)
|
63
|
-
activesupport (= 4.0.2)
|
64
|
-
rake (>= 0.8.7)
|
65
|
-
thor (>= 0.18.1, < 2.0)
|
66
12
|
rake (10.1.0)
|
67
13
|
rspec (2.14.1)
|
68
14
|
rspec-core (~> 2.14.0)
|
@@ -72,23 +18,6 @@ GEM
|
|
72
18
|
rspec-expectations (2.14.4)
|
73
19
|
diff-lcs (>= 1.1.3, < 2.0)
|
74
20
|
rspec-mocks (2.14.4)
|
75
|
-
sprockets (2.10.1)
|
76
|
-
hike (~> 1.2)
|
77
|
-
multi_json (~> 1.0)
|
78
|
-
rack (~> 1.0)
|
79
|
-
tilt (~> 1.1, != 1.3.0)
|
80
|
-
sprockets-rails (2.0.1)
|
81
|
-
actionpack (>= 3.0)
|
82
|
-
activesupport (>= 3.0)
|
83
|
-
sprockets (~> 2.8)
|
84
|
-
thor (0.18.1)
|
85
|
-
thread_safe (0.1.3)
|
86
|
-
atomic
|
87
|
-
tilt (1.4.1)
|
88
|
-
treetop (1.4.15)
|
89
|
-
polyglot
|
90
|
-
polyglot (>= 0.3.1)
|
91
|
-
tzinfo (0.3.38)
|
92
21
|
|
93
22
|
PLATFORMS
|
94
23
|
ruby
|
data/lib/pesapal.rb
CHANGED
data/lib/pesapal/railtie.rb
CHANGED
@@ -9,10 +9,15 @@ module Pesapal
|
|
9
9
|
begin
|
10
10
|
config.pesapal_credentials = YAML::load(IO.read(path_to_yaml))[Rails.env]
|
11
11
|
rescue Errno::ENOENT
|
12
|
-
logger.info('YAML configuration file couldn\'t be found.
|
12
|
+
logger.info('YAML configuration file couldn\'t be found.'); return
|
13
13
|
rescue Psych::SyntaxError
|
14
14
|
logger.info('YAML configuration file contains invalid syntax. Will use using defaults.'); return
|
15
15
|
end
|
16
|
+
else
|
17
|
+
config.pesapal_credentials = { :callback_url => 'http://0.0.0.0:3000/pesapal/callback',
|
18
|
+
:consumer_key => '<YOUR_CONSUMER_KEY>',
|
19
|
+
:consumer_secret => '<YOUR_CONSUMER_SECRET>'
|
20
|
+
}
|
16
21
|
end
|
17
22
|
end
|
18
23
|
end
|
data/lib/pesapal/version.rb
CHANGED