twentysix 0.1.0 → 0.1.1

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: 2baa5b520ae1f1b650a98ed50d936716c826a20b
4
- data.tar.gz: e438a8725d5b96575c8d822727e3d9448717e8a4
3
+ metadata.gz: efcb4fb21111a62f50c616fd3028af402e9fe666
4
+ data.tar.gz: b92009a8713564b05f840b85e8872c4882a51a9a
5
5
  SHA512:
6
- metadata.gz: 73057c13692592576436d061b77529837555684d33f609471ce400142f56a13c2a5f7b42a9e0f0983f3f320c779d91a00c33b319a00a59fd8abef41935a927da
7
- data.tar.gz: 0a8b0083c96a8b13aab2f213a97a8162c092d00e6cbf087eba3d68f4bc177fb30a668c49ca67a903fddf48a253c4d17fc71a0d01b0e54a2589e9bb95a9546ffa
6
+ metadata.gz: e8a3bd1ac546b538b5664c8a62b379d1b8dd1716c4640d52796e4e6f440c8b23fef0c5b05b5dc45eccb4664162736616b3a12f34cc298a4f4b29c17cd334c7e4
7
+ data.tar.gz: 570b7582dea66f54136141d492527663ee27dd50c3a8d97352a1abeec095cf3ce18f6228d97a521fee3ba54eaa2fb077fe7d5e079e146416ef211ccfffdd1ec1
data/README.md CHANGED
@@ -18,9 +18,18 @@ Or install it yourself as:
18
18
 
19
19
  $ gem install twentysix
20
20
 
21
+ ### Usage
22
+
23
+ ```ruby
24
+ require 'twentysix'
25
+
26
+ client = TwentySix::Core.authenticate(ENV["N26_USERNAME"], ENV["N26_PASSWORD"])
27
+ puts client.transactions(count: 3)
28
+ ```
29
+
21
30
  ## Contributing
22
31
 
23
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/twentysix. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
32
+ Bug reports and pull requests are welcome on GitHub at https://github.com/DanToml/twentysix. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
24
33
 
25
34
 
26
35
  ## License
@@ -104,8 +104,6 @@ module TwentySix
104
104
  get "/api/transactions/#{smartlink_id}/metadata"
105
105
  end
106
106
 
107
- # @TODO: Figure out what `SecurityContext` is to make this actually work.
108
- #
109
107
  def create_transfer(pin, name, iban, bic, amount, reference)
110
108
  post '/api/transactions', options: {
111
109
  body: {
@@ -1,3 +1,3 @@
1
1
  module TwentySix
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ['lib']
22
22
 
23
23
  spec.add_runtime_dependency 'deep_merge'
24
+ spec.add_runtime_dependency 'httparty'
24
25
 
25
26
  spec.add_development_dependency 'bundler', '~> 1.13.a'
26
27
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twentysix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danielle Tomlinson
@@ -14,56 +14,70 @@ dependencies:
14
14
  name: deep_merge
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: httparty
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
25
39
  - !ruby/object:Gem::Version
26
40
  version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - ~>
45
+ - - "~>"
32
46
  - !ruby/object:Gem::Version
33
47
  version: 1.13.a
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - ~>
52
+ - - "~>"
39
53
  - !ruby/object:Gem::Version
40
54
  version: 1.13.a
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ~>
59
+ - - "~>"
46
60
  - !ruby/object:Gem::Version
47
61
  version: '10.0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ~>
66
+ - - "~>"
53
67
  - !ruby/object:Gem::Version
54
68
  version: '10.0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rspec
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - ~>
73
+ - - "~>"
60
74
  - !ruby/object:Gem::Version
61
75
  version: '3.0'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - ~>
80
+ - - "~>"
67
81
  - !ruby/object:Gem::Version
68
82
  version: '3.0'
69
83
  description:
@@ -73,8 +87,8 @@ executables: []
73
87
  extensions: []
74
88
  extra_rdoc_files: []
75
89
  files:
76
- - .gitignore
77
- - .rspec
90
+ - ".gitignore"
91
+ - ".rspec"
78
92
  - CODE_OF_CONDUCT.md
79
93
  - Gemfile
80
94
  - LICENSE.txt
@@ -96,17 +110,17 @@ require_paths:
96
110
  - lib
97
111
  required_ruby_version: !ruby/object:Gem::Requirement
98
112
  requirements:
99
- - - '>='
113
+ - - ">="
100
114
  - !ruby/object:Gem::Version
101
115
  version: '0'
102
116
  required_rubygems_version: !ruby/object:Gem::Requirement
103
117
  requirements:
104
- - - '>='
118
+ - - ">="
105
119
  - !ruby/object:Gem::Version
106
120
  version: '0'
107
121
  requirements: []
108
122
  rubyforge_project:
109
- rubygems_version: 2.0.14.1
123
+ rubygems_version: 2.4.5.1
110
124
  signing_key:
111
125
  specification_version: 4
112
126
  summary: A small wrapper around the n26 Banking API.