authorize_net 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/authorize_net.rb +10 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78fec70e849d16c5ede26ebba40e14bf6f0af8d2
4
- data.tar.gz: e522029cf5da5c8ae60f0b6fd9b4d4af157439d0
3
+ metadata.gz: 61c03727b2b4ca4c5cf14196c5c19e63727ea86a
4
+ data.tar.gz: 02322a12b0f2ae84ba58d53a7ecfa32f98b55fb6
5
5
  SHA512:
6
- metadata.gz: 1cc13172b15a0445a9a2c0a938e6b299f52fbd62ee96459d85f2539ee5bb60e9ab37837e54ca8fc8294d69022eccc319003550b0ddaa35823aec925b842c897c
7
- data.tar.gz: 4a109395ff2e53be5db64b4951d8ec7d48df6766ea5c994bf8003f093540455fe641e5c817cb2f0ef81d31d914e78d80e0d9fa8d05a47abfd27fb7d491100cf5
6
+ metadata.gz: 0cd151c20ea0de92c4bab24e989ba8597ad8ce412753aca5c860bbbad3e117905a0869d7b11110b0204fbb39e9daf8bc50e25ceb4e998c85e3f155aad8c4daca
7
+ data.tar.gz: ba638b856acb17cb8db02dff6ac07268b8d0a07c420b2e899018bd10e23aa04c9cd0c943c6a3aad064b18ea2196334a035960bf2b61f6fdbad2ed7d2f85e04c2
data/lib/authorize_net.rb CHANGED
@@ -22,9 +22,15 @@ module AuthorizeNet
22
22
  end
23
23
 
24
24
  # require all authorize-net files
25
- Dir['lib/authorize_net/**/*.rb'].each do |filename|
26
- match = filename.match(/lib\/(authorize_net\/.*).rb/)
27
- if !match.nil?
28
- require match[1]
25
+ current_dir = __FILE__.match(/(.*)\/authorize_net.rb/)
26
+ if !current_dir.nil?
27
+ authorize_dir = current_dir[1] + "/authorize_net/**/*.rb"
28
+
29
+ Dir[authorize_dir].each do |filename|
30
+ require filename
29
31
  end
32
+
33
+ else
34
+ raise "Error loading authorize_net files"
30
35
  end
36
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authorize_net
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Avenir Interactive LLC