zipmark 0.0.1.beta.6 → 0.0.1.beta.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,3 +1,8 @@
1
+ [![Build Status](https://secure.travis-ci.org/zipmark/zipmark-ruby.png?branch=master)](https://travis-ci.org/zipmark/zipmark-ruby)
2
+ [![Dependency Status](https://gemnasium.com/zipmark/zipmark-ruby.png)](https://gemnasium.com/zipmark/zipmark-ruby)
3
+ [![Code Climate](https://codeclimate.com/badge.png)](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
 
@@ -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.fullpath
61
+ @request.path
53
62
  end
54
63
 
55
64
  def date_within_range?
@@ -14,11 +14,3 @@ module Zipmark
14
14
  end
15
15
  end
16
16
  end
17
-
18
- unless Base64.respond_to?(:strict_encode64)
19
- module Base64
20
- def strict_encode64(bin)
21
- [bin].pack("m0")
22
- end
23
- end
24
- end
@@ -1,3 +1,3 @@
1
1
  module Zipmark
2
- VERSION = '0.0.1.beta.6'
2
+ VERSION = '0.0.1.beta.7'
3
3
  end
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.6
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-04 00:00:00.000000000 Z
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.24
60
+ rubygems_version: 1.8.15
61
61
  signing_key:
62
62
  specification_version: 3
63
63
  summary: Zipmark API Client Library