zipmark 0.0.1.beta.6 → 0.0.1.beta.7
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/README.md +6 -1
- data/lib/zipmark/callback.rb +10 -1
- data/lib/zipmark/util.rb +0 -8
- data/lib/zipmark/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
[](https://travis-ci.org/zipmark/zipmark-ruby)
|
2
|
+
[](https://gemnasium.com/zipmark/zipmark-ruby)
|
3
|
+
[](https://codeclimate.com/github/zipmark/zipmark-ruby)
|
4
|
+
|
5
|
+
|
1
6
|
# Zipmark Ruby Client
|
2
7
|
|
3
8
|
The Zipmark Ruby Client library is used to interact with Zipmark's [API](https://dev.zipmark.com).
|
@@ -25,7 +30,7 @@ client = Zipmark::Client.new(
|
|
25
30
|
)
|
26
31
|
```
|
27
32
|
|
28
|
-
Vendor Identifier, Application Identifier, Application Secret should be replaced with the
|
33
|
+
Vendor Identifier, Application Identifier, Application Secret should be replaced with the
|
29
34
|
values provided by Zipmark.
|
30
35
|
|
31
36
|
|
data/lib/zipmark/callback.rb
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
require'base64'
|
2
2
|
require 'openssl'
|
3
3
|
|
4
|
+
# Ruby 1.8 compatibility
|
5
|
+
unless Base64.respond_to?(:strict_encode64)
|
6
|
+
module Base64
|
7
|
+
def strict_encode64(bin)
|
8
|
+
[bin].pack("m0")
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
4
13
|
module Zipmark
|
5
14
|
class Callback
|
6
15
|
attr_accessor :request, :errors, :client
|
@@ -49,7 +58,7 @@ module Zipmark
|
|
49
58
|
end
|
50
59
|
|
51
60
|
def uri
|
52
|
-
@request.
|
61
|
+
@request.path
|
53
62
|
end
|
54
63
|
|
55
64
|
def date_within_range?
|
data/lib/zipmark/util.rb
CHANGED
data/lib/zipmark/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zipmark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.beta.
|
4
|
+
version: 0.0.1.beta.7
|
5
5
|
prerelease: 6
|
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: 2012-12-
|
12
|
+
date: 2012-12-06 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Simple Client Library to connect to the Zipmark API
|
15
15
|
email: jake@zipmark.com
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
version: 1.3.1
|
58
58
|
requirements: []
|
59
59
|
rubyforge_project:
|
60
|
-
rubygems_version: 1.8.
|
60
|
+
rubygems_version: 1.8.15
|
61
61
|
signing_key:
|
62
62
|
specification_version: 3
|
63
63
|
summary: Zipmark API Client Library
|