shoppe-stripe 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08f8f38e5bd7c52b3f57149ec46d6b71640a4a35
4
- data.tar.gz: 42ffb84822be3f45d177f397534e4a5fdfbc8b4a
3
+ metadata.gz: 799dd0224374522c7ea870976b4208fc51e540b8
4
+ data.tar.gz: 5c8c4f53d24a2fe44cb7dc5cde0fc62dfbd221b1
5
5
  SHA512:
6
- metadata.gz: 49ef76694bf16501dc9b88ff4af93341f39f6ba391b6bb279fe8a71eab2e2dc59399a4fbcab2a23f5ef43a725556c2c93671c3b549ad22cde56ec0be5cacd489
7
- data.tar.gz: 271370bfb461b2ffa2231926ec798d44b2426d625cc09e27d2f8a08b46fc71fb5bfff0f83333708ed7fc26de168db29e8dd23a0fac9a6ea3e4e1d5e5e253604a
6
+ metadata.gz: 26c420bf9427401922b43130f3e7b9b91d6dddc4ff816326a74b8ec894b00deef40fec1e12da59e38110fc75aad763191d5b7464b7090075b1c09f1d87f1862a
7
+ data.tar.gz: 90ff1d0645daa42a1e2bddc7f491d0fca935057f7f26b9d57d7a037c8358cb7d143c91acbe04057e970fc380f64354d9e86a7fc3bd915d16ba7c4cda882563d9
@@ -0,0 +1,21 @@
1
+ # Stripe Shoppe Module
2
+
3
+ This module helps with including Stripe within your Shoppe application. The
4
+ information below explains how to get this module installed within your Rails
5
+ application.
6
+
7
+ ## Getting Started
8
+
9
+ This document includes a short tutorial about how to set up this module within your
10
+ Shoppe store. If you have any questions, please just
11
+ [let me know](http://twitter.com/adamcooke).
12
+
13
+ ### Installing
14
+
15
+ To install the Shoppe Stripe module, just add it to your Gemfile and run `bundle`.
16
+
17
+ ```ruby
18
+ gem 'shoppe-stripe', :require => 'shoppe/stripe'
19
+ ```
20
+
21
+ For the latest up to date documentation, please see the [Shoppe tutorial page](http://tryshoppe.com/docs/tutorials/payment-gateways).
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -1,6 +1,9 @@
1
1
  require 'shoppe/stripe/version'
2
2
  require 'shoppe/stripe/engine'
3
3
 
4
+ require 'shoppe/stripe/order_extensions'
5
+ require 'shoppe/stripe/payment_extensions'
6
+
4
7
  module Shoppe
5
8
  module Stripe
6
9
 
@@ -21,13 +24,6 @@ module Shoppe
21
24
  # Require the external Stripe library
22
25
  require 'stripe'
23
26
 
24
- # Extend Shoppe Order & Payment classess
25
- require 'shoppe/stripe/order_extensions'
26
- Shoppe::Order.send :include, Shoppe::Stripe::OrderExtensions
27
-
28
- require 'shoppe/stripe/payment_extensions'
29
- Shoppe::Payment.send :include, Shoppe::Stripe::PaymentExtensions
30
-
31
27
  # When an order is confirmed, attempt to authorise the payment
32
28
  Shoppe::Order.before_confirmation do
33
29
  if self.properties['stripe_customer_token']
@@ -10,6 +10,11 @@ module Shoppe
10
10
  end
11
11
  end
12
12
 
13
+ config.to_prepare do
14
+ Shoppe::Order.send :include, Shoppe::Stripe::OrderExtensions
15
+ Shoppe::Payment.send :include, Shoppe::Stripe::PaymentExtensions
16
+ end
17
+
13
18
  end
14
19
  end
15
20
  end
@@ -1,5 +1,5 @@
1
1
  module Shoppe
2
2
  module Stripe
3
- VERSION = '1.2.1'
3
+ VERSION = '1.2.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,57 +1,63 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoppe-stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-12 00:00:00.000000000 Z
11
+ date: 2015-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoppe
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.0.9
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ~>
27
+ - - ">"
25
28
  - !ruby/object:Gem::Version
26
29
  version: 0.0.9
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: stripe
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - ~>
37
+ - - "~>"
32
38
  - !ruby/object:Gem::Version
33
39
  version: 1.8.7
34
40
  type: :runtime
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
- - - ~>
44
+ - - "~>"
39
45
  - !ruby/object:Gem::Version
40
46
  version: 1.8.7
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: coffee-rails
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - ~>
51
+ - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: 4.0.0
53
+ version: '4'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
- - - ~>
58
+ - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: 4.0.0
60
+ version: '4'
55
61
  description: A Stripe module to assist with the integration of Stripe.
56
62
  email:
57
63
  - adam@niftyware.io
@@ -59,14 +65,16 @@ executables: []
59
65
  extensions: []
60
66
  extra_rdoc_files: []
61
67
  files:
68
+ - MIT-LICENSE
69
+ - README.md
70
+ - Rakefile
71
+ - lib/shoppe/stripe.rb
62
72
  - lib/shoppe/stripe/engine.rb
63
73
  - lib/shoppe/stripe/order_extensions.rb
64
74
  - lib/shoppe/stripe/payment_extensions.rb
65
75
  - lib/shoppe/stripe/version.rb
66
76
  - lib/shoppe/stripe/view_helpers.rb
67
- - lib/shoppe/stripe.rb
68
77
  - vendor/assets/javascripts/shoppe/stripe/form_handler.coffee
69
- - MIT-LICENSE
70
78
  homepage: http://tryshoppe.com
71
79
  licenses: []
72
80
  metadata: {}
@@ -76,17 +84,17 @@ require_paths:
76
84
  - lib
77
85
  required_ruby_version: !ruby/object:Gem::Requirement
78
86
  requirements:
79
- - - '>='
87
+ - - ">="
80
88
  - !ruby/object:Gem::Version
81
89
  version: '0'
82
90
  required_rubygems_version: !ruby/object:Gem::Requirement
83
91
  requirements:
84
- - - '>='
92
+ - - ">="
85
93
  - !ruby/object:Gem::Version
86
94
  version: '0'
87
95
  requirements: []
88
96
  rubyforge_project:
89
- rubygems_version: 2.0.3
97
+ rubygems_version: 2.2.2
90
98
  signing_key:
91
99
  specification_version: 4
92
100
  summary: A Stripe module for Shoppe.