fake_paymill 0.0.1 → 0.0.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: f148cafda94a04dab34c1ac622418ce917a7d9e9
4
- data.tar.gz: 3275d809aef09bc7b8f8863b61e4ffb9d4699249
3
+ metadata.gz: efedd4849f087cde4d532f0f19f86e749184098c
4
+ data.tar.gz: cc2ee525e0119c1c738ba1783caafe919521d032
5
5
  SHA512:
6
- metadata.gz: 90e51991259dc50e4a04029cc76f8ceb046bc85ead2da7deb4c152bb7ce26f9acc97cacaf070a9b713a1e534735428c284ed440d35af990a6d5c49c370b7499c
7
- data.tar.gz: 932f387344dc6daf70ac85b9c313c66997a5e881d90da94d8480bfaa92d50938597ea59f8fdb362f54e35ffa188a3a4bce90546085fd822ad3ff1ffd77d2d281
6
+ metadata.gz: a2fb4fccee1b5db661abce4faceb55250920675156a847d171234188cc94d42048f9bbd735a56866483bbe404b76014575a041258b18833a793229124d8fb87d
7
+ data.tar.gz: 9a15087566058075c4fb804a40d10f635ab3176d0b47c93e9ca591e929fb6788112cc2be4fae6e578121ea02c72acf19f6d65289c0634400c0dd82a9a3ee68bb
data/Gemfile CHANGED
@@ -2,3 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in fake-paymill.gemspec
4
4
  gemspec
5
+
6
+ # This is needed until my changes are merged
7
+ gem 'paymill', github: 'zamith/paymill-ruby'
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # FakePaymill
1
+ # FakePaymill
2
2
  [![Build Status](https://travis-ci.org/zamith/fake-paymill.png?branch=master)](https://travis-ci.org/zamith/fake-paymill)
3
3
 
4
4
  A Paymill fake so that you can avoid hitting Paymill's servers in tests
@@ -7,7 +7,7 @@ A Paymill fake so that you can avoid hitting Paymill's servers in tests
7
7
 
8
8
  Add this line to your application's Gemfile:
9
9
 
10
- gem 'fake_paymill'
10
+ gem 'fake_paymill', require: false, group: :test
11
11
 
12
12
  And then execute:
13
13
 
@@ -19,7 +19,33 @@ Or install it yourself as:
19
19
 
20
20
  ## Usage
21
21
 
22
- TODO: Write usage instructions here
22
+
23
+ Just require the library and you're good to go:
24
+
25
+ require 'fake_paymill'
26
+
27
+ `FakePaymill.clear!` will clear all data, which you almost certainly want to do
28
+ before each test.
29
+
30
+ Full example:
31
+
32
+ # spec/spec_helper.rb
33
+ require 'fake_paymill'
34
+
35
+ RSpec.configure do |c|
36
+ c.before do
37
+ FakePaymill.clear!
38
+ end
39
+ end
40
+
41
+ If you're using Cucumber, add this too:
42
+
43
+ # features/support/env.rb
44
+ require 'fake_paymill'
45
+
46
+ Before do
47
+ FakePaymill.clear!
48
+ end
23
49
 
24
50
  ## Contributing
25
51
 
data/fake_paymill.gemspec CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency 'activesupport'
22
22
  spec.add_dependency 'capybara'
23
+ spec.add_dependency 'paymill'
23
24
  spec.add_dependency 'sinatra'
24
25
  spec.add_dependency 'thin'
25
26
 
@@ -1,3 +1,3 @@
1
1
  module FakePaymill
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fake_paymill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zamith
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: paymill
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: sinatra
43
57
  requirement: !ruby/object:Gem::Requirement