multipassify 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +38 -0
  3. data/VERSION +1 -1
  4. data/multipassify.gemspec +4 -4
  5. metadata +3 -3
  6. data/README.rdoc +0 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fbc84bbf880d0536a16617884ebaac5a69f14af
4
- data.tar.gz: 952773a0ed94e75a4ae3a20b72d119b2db3a5c12
3
+ metadata.gz: 20df9608cc54f95dffb28bd167c469a4be4191cc
4
+ data.tar.gz: 3b2e8bcba2729d3cb7be408a23bd17c9b11c60af
5
5
  SHA512:
6
- metadata.gz: 7badd7f6c2c0be1df76b7502387d0687a931651702ae365ecfe2114a5d7b74675fc4d72984751bac80b0db910313a42081b63f5c97d25b676f7b8ff0189d9c7a
7
- data.tar.gz: 281618c0308e8e7d2a67721a6aad2ef793e43527b98b830e31a2474d706a956f951ae9edb376e31d058c023487bde737c472fb320def7f3942eef2a1f7881ef5
6
+ metadata.gz: 24fed9203e48f628b1c921edf816a4c2f3d29e886e99cf315d03cb49a8d24a6be18b4d9b5ff87788fc3276bdf7455cb3b833fb8ee50a7049840bdb3151df88e9
7
+ data.tar.gz: ac2f1d5685125275a6865d10d64bd85fd97b73cdc6ce5186e591c8819fd6fcfa08bae081edf14cc1ac3a1d6f6610f0b5a427ce8aba7c6e75c13da448060dfb41
data/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # Multipassify
2
+ Shopify Multipass module for Ruby
3
+
4
+ [Shopify](http://shopify.com) provides a mechanism for single sign-on known as Multipass. Multipass uses an AES encrypted JSON hash and multipassify provides functions for generating tokens
5
+
6
+ More details on Multipass with Shopify can be found [here](http://docs.shopify.com/api/tutorials/multipass-login).
7
+
8
+ ## Installation
9
+ <pre>
10
+ gem install multipassify
11
+ </pre>
12
+
13
+ ## Usage
14
+
15
+ To use Multipass an Enterprise / Plus plan is required. The Multipass secret can be found in your shop Admin (Settings > Checkout > Customer Accounts).
16
+ Make sure "Accounts are required" or "Accounts are optional" is selected and Multipass is enabled.
17
+
18
+ ``` ruby
19
+ require('multipassify');
20
+
21
+ # Construct the Multipassify encoder
22
+ multipassify = Multipassify.new("SHOPIFY MULTIPASS SECRET");
23
+
24
+ # Create your customer data hash
25
+ customer_data = { email: 'test@example.com', remote_ip:'USERS IP ADDRESS', return_to:"http://some.url"};
26
+
27
+ # Encode a Multipass token
28
+ token = multipassify.encode(customer_data);
29
+
30
+ # Generate a Shopify multipass URL to your shop
31
+ url = multipassify.generate_url(customer_data, "yourstorename.myshopify.com");
32
+
33
+ # Generates a URL like: https://yourstorename.myshopify.com/account/login/multipass/<MULTIPASS-TOKEN>
34
+ ```
35
+
36
+ ## Information & Credits
37
+ This is a Ruby Port from [GitHub - beaucoo/multipassify: Shopify Multipass module for Node.js](https://github.com/beaucoo/multipassify).
38
+ Credits to @beaucoo and Shopify Multipass documentation!
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
data/multipassify.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: multipassify 1.1.0 ruby lib
5
+ # stub: multipassify 1.1.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "multipassify".freeze
9
- s.version = "1.1.0"
9
+ s.version = "1.1.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
@@ -16,14 +16,14 @@ Gem::Specification.new do |s|
16
16
  s.email = "renatodex@gmail.com".freeze
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
- "README.rdoc"
19
+ "README.md"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
23
  "Gemfile",
24
24
  "Gemfile.lock",
25
25
  "LICENSE.txt",
26
- "README.rdoc",
26
+ "README.md",
27
27
  "Rakefile",
28
28
  "VERSION",
29
29
  "lib/multipassify.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multipassify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renato Alves
@@ -86,13 +86,13 @@ executables: []
86
86
  extensions: []
87
87
  extra_rdoc_files:
88
88
  - LICENSE.txt
89
- - README.rdoc
89
+ - README.md
90
90
  files:
91
91
  - ".document"
92
92
  - Gemfile
93
93
  - Gemfile.lock
94
94
  - LICENSE.txt
95
- - README.rdoc
95
+ - README.md
96
96
  - Rakefile
97
97
  - VERSION
98
98
  - lib/multipassify.rb
data/README.rdoc DELETED
@@ -1,18 +0,0 @@
1
- = multipassify
2
-
3
- Description goes here.
4
-
5
- == Contributing to multipassify
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2017 Renato Alves. See LICENSE.txt for
18
- further details.