wix-apps 0.0.2 → 0.0.3

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.
@@ -44,7 +44,8 @@ module Wix
44
44
 
45
45
  # Need to add Base64 padding.
46
46
  # (http://stackoverflow.com/questions/4987772/decoding-facebooks-signed-request-in-ruby-sinatra)
47
- padded_json = @encoded_json + ('=' * (4 - @encoded_json.length % 4))
47
+ padded_json = @encoded_json
48
+ padded_json += ('=' * (4 - @encoded_json.length % 4)) if padded_json.length % 4 != 0
48
49
 
49
50
  begin
50
51
  @json = Base64.urlsafe_decode64(padded_json)
@@ -62,4 +63,4 @@ module Wix
62
63
  end
63
64
  end
64
65
  end
65
- end
66
+ end
@@ -1,5 +1,5 @@
1
1
  module Wix
2
2
  module Apps
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wix-apps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -130,7 +130,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  segments:
132
132
  - 0
133
- hash: 3249941168280676654
133
+ hash: 1603105339168113252
134
134
  required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  none: false
136
136
  requirements:
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  version: '0'
140
140
  segments:
141
141
  - 0
142
- hash: 3249941168280676654
142
+ hash: 1603105339168113252
143
143
  requirements: []
144
144
  rubyforge_project:
145
145
  rubygems_version: 1.8.24