dropwallet 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.svn/all-wcprops ADDED
@@ -0,0 +1,45 @@
1
+ K 26
2
+ svn:wc:ra_dav:activity-url
3
+ V 28
4
+ /repos/dw_frontend/!svn/act/
5
+ K 25
6
+ svn:wc:ra_dav:version-url
7
+ V 51
8
+ /repos/dw_frontend/!svn/ver/371/trunk/dropwalletGem
9
+ END
10
+ dropwallet.gemspec
11
+ K 25
12
+ svn:wc:ra_dav:version-url
13
+ V 70
14
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/dropwallet.gemspec
15
+ END
16
+ LICENSE
17
+ K 25
18
+ svn:wc:ra_dav:version-url
19
+ V 59
20
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/LICENSE
21
+ END
22
+ Rakefile
23
+ K 25
24
+ svn:wc:ra_dav:version-url
25
+ V 60
26
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/Rakefile
27
+ END
28
+ .gitignore
29
+ K 25
30
+ svn:wc:ra_dav:version-url
31
+ V 62
32
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/.gitignore
33
+ END
34
+ Gemfile
35
+ K 25
36
+ svn:wc:ra_dav:version-url
37
+ V 59
38
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/Gemfile
39
+ END
40
+ README.md
41
+ K 25
42
+ svn:wc:ra_dav:version-url
43
+ V 61
44
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/README.md
45
+ END
@@ -0,0 +1,6 @@
1
+ K 10
2
+ svn:ignore
3
+ V 4
4
+ pkg
5
+
6
+ END
data/.svn/entries ADDED
@@ -0,0 +1,238 @@
1
+ 10
2
+
3
+ dir
4
+ 371
5
+ http://dev.icuetv.int/repos/dw_frontend/trunk/dropwalletGem
6
+ http://dev.icuetv.int/repos/dw_frontend
7
+
8
+
9
+
10
+ 2012-08-29T19:31:58.084937Z
11
+ 371
12
+ bcentinaro
13
+ has-props
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ c8b3cc07-65b3-46a0-822a-09fe5650c38a
28
+
29
+ dropwallet.gemspec
30
+ file
31
+ 370
32
+
33
+
34
+
35
+ 2012-08-29T14:21:45.000000Z
36
+ 504d29644edeb5f6a801fa6cb8ddd85f
37
+ 2012-08-29T19:02:08.854313Z
38
+ 370
39
+ bcentinaro
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+ 804
62
+
63
+ test
64
+ dir
65
+
66
+ LICENSE
67
+ file
68
+ 370
69
+
70
+
71
+
72
+ 2012-08-29T14:16:57.000000Z
73
+ 3d648da16fb1ecf3838d080f4b612bd1
74
+ 2012-08-29T19:02:08.854313Z
75
+ 370
76
+ bcentinaro
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ 1060
99
+
100
+ Rakefile
101
+ file
102
+ 370
103
+
104
+
105
+
106
+ 2012-08-29T14:23:02.000000Z
107
+ 0774ef8fabbe11937005793500ad15db
108
+ 2012-08-29T19:02:08.854313Z
109
+ 370
110
+ bcentinaro
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+ 162
133
+
134
+ .gitignore
135
+ file
136
+ 370
137
+
138
+
139
+
140
+ 2012-08-29T14:16:57.000000Z
141
+ 11f69a156e3c69025b9fc4efea25f31c
142
+ 2012-08-29T19:02:08.854313Z
143
+ 370
144
+ bcentinaro
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+ 154
167
+
168
+ lib
169
+ dir
170
+
171
+ Gemfile
172
+ file
173
+ 370
174
+
175
+
176
+
177
+ 2012-08-29T14:16:57.000000Z
178
+ d9a52a4287726896b02522bad68fd728
179
+ 2012-08-29T19:02:08.854313Z
180
+ 370
181
+ bcentinaro
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+ 95
204
+
205
+ README.md
206
+ file
207
+ 370
208
+
209
+
210
+
211
+ 2012-08-29T19:00:27.000000Z
212
+ 3803b466453dd2308cb6b14eac0d984a
213
+ 2012-08-29T19:02:08.854313Z
214
+ 370
215
+ bcentinaro
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+ 253
238
+
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in dropwallet.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Bill
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,19 @@
1
+ # Dropwallet
2
+
3
+ Project Gateway: The DropWallet API Bindings for Ruby
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'dropwallet'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install dropwallet
18
+
19
+ ## Usage
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+ require 'rake/testtask'
4
+
5
+ Rake::TestTask.new do |t|
6
+ t.libs << 'test'
7
+ end
8
+
9
+ desc "Run tests"
10
+ task :default => :test
@@ -0,0 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/dropwallet/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Bill"]
6
+ gem.email = ["bill@theresnobox.net"]
7
+ gem.description = %q{Dropwallet API Bindings for Ruby}
8
+ gem.summary = %q{Dropwallet API Bindings for Ruby}
9
+ gem.homepage = "http://www.dropwallet.net"
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "dropwallet"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Dropwallet::VERSION
17
+
18
+ #Dependencies
19
+ gem.add_development_dependency "rspec"
20
+
21
+ gem.add_dependency('rest-client')
22
+ gem.add_dependency('activemodel')
23
+ end
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in dropwallet.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Bill
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # Dropwallet
2
+
3
+ Project Gateway: The DropWallet API Bindings for Ruby
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'dropwallet'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install dropwallet
18
+
19
+ ## Usage
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+ require 'rake/testtask'
4
+
5
+ Rake::TestTask.new do |t|
6
+ t.libs << 'test'
7
+ end
8
+
9
+ desc "Run tests"
10
+ task :default => :test
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/dropwallet/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Bill"]
6
+ gem.email = ["bill@theresnobox.net"]
7
+ gem.description = %q{Dropwallet API Bindings for Ruby}
8
+ gem.summary = %q{Dropwallet API Bindings for Ruby}
9
+ gem.homepage = "http://www.dropwallet.net"
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "dropwallet"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Dropwallet::VERSION
17
+
18
+ #Dependencies
19
+ gem.add_development_dependency "rspec"
20
+
21
+ gem.add_dependency('rest-client')
22
+ gem.add_dependency('activemodel')
23
+ gem.add_dependency('json')
24
+ end
@@ -0,0 +1,11 @@
1
+ K 25
2
+ svn:wc:ra_dav:version-url
3
+ V 55
4
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/lib
5
+ END
6
+ dropwallet.rb
7
+ K 25
8
+ svn:wc:ra_dav:version-url
9
+ V 69
10
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/lib/dropwallet.rb
11
+ END
data/lib/.svn/entries ADDED
@@ -0,0 +1,65 @@
1
+ 10
2
+
3
+ dir
4
+ 370
5
+ http://dev.icuetv.int/repos/dw_frontend/trunk/dropwalletGem/lib
6
+ http://dev.icuetv.int/repos/dw_frontend
7
+
8
+
9
+
10
+ 2012-08-29T19:02:08.854313Z
11
+ 370
12
+ bcentinaro
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ c8b3cc07-65b3-46a0-822a-09fe5650c38a
28
+
29
+ dropwallet.rb
30
+ file
31
+
32
+
33
+
34
+
35
+ 2012-08-29T14:25:13.000000Z
36
+ 83032d0c1a6e4a9f754ec9d027d84c54
37
+ 2012-08-29T19:02:08.854313Z
38
+ 370
39
+ bcentinaro
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+ 82
62
+
63
+ dropwallet
64
+ dir
65
+
@@ -0,0 +1,4 @@
1
+ require "dropwallet/version"
2
+ require "dropwallet/model"
3
+
4
+ require "dropwallet/user"
data/lib/dropwallet.rb ADDED
@@ -0,0 +1,8 @@
1
+ require "dropwallet/version"
2
+
3
+ # Core Web Services
4
+ require "dropwallet/core/model"
5
+ require "dropwallet/core/user"
6
+
7
+ #CDN Web Services
8
+ require "dropwallet/cdn/file"
@@ -0,0 +1,23 @@
1
+ K 25
2
+ svn:wc:ra_dav:version-url
3
+ V 66
4
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/lib/dropwallet
5
+ END
6
+ user.rb
7
+ K 25
8
+ svn:wc:ra_dav:version-url
9
+ V 74
10
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/lib/dropwallet/user.rb
11
+ END
12
+ model.rb
13
+ K 25
14
+ svn:wc:ra_dav:version-url
15
+ V 75
16
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/lib/dropwallet/model.rb
17
+ END
18
+ version.rb
19
+ K 25
20
+ svn:wc:ra_dav:version-url
21
+ V 77
22
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/lib/dropwallet/version.rb
23
+ END
@@ -0,0 +1,130 @@
1
+ 10
2
+
3
+ dir
4
+ 370
5
+ http://dev.icuetv.int/repos/dw_frontend/trunk/dropwalletGem/lib/dropwallet
6
+ http://dev.icuetv.int/repos/dw_frontend
7
+
8
+
9
+
10
+ 2012-08-29T19:02:08.854313Z
11
+ 370
12
+ bcentinaro
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ c8b3cc07-65b3-46a0-822a-09fe5650c38a
28
+
29
+ user.rb
30
+ file
31
+
32
+
33
+
34
+
35
+ 2012-08-29T17:38:35.000000Z
36
+ 9b32a838305ec2ee3b23eb0ba5818147
37
+ 2012-08-29T19:02:08.854313Z
38
+ 370
39
+ bcentinaro
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+ 122
62
+
63
+ model.rb
64
+ file
65
+
66
+
67
+
68
+
69
+ 2012-08-29T17:46:48.000000Z
70
+ f8ee5f704a0419407e4279767aa77a0d
71
+ 2012-08-29T19:02:08.854313Z
72
+ 370
73
+ bcentinaro
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ 830
96
+
97
+ version.rb
98
+ file
99
+
100
+
101
+
102
+
103
+ 2012-08-29T14:16:57.000000Z
104
+ aad2bce7638b90af74319bb4415a0bfa
105
+ 2012-08-29T19:02:08.854313Z
106
+ 370
107
+ bcentinaro
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+ 42
130
+
@@ -0,0 +1,40 @@
1
+ require 'active_model'
2
+ module DropWallet
3
+ class Model
4
+ include ActiveModel::Serialization
5
+ include ActiveModel::Validations
6
+
7
+ #attr_accessor :attributes
8
+ def initialize(attributes = {})
9
+ @attributes = attributes
10
+ return @attributes
11
+ end
12
+
13
+ def self.create(attributes = {}, options = {})
14
+ model = self.new(attributes)
15
+ return model
16
+ end
17
+
18
+ def self.field(name, options = {})
19
+
20
+ define_method("#{name}=") do |value|
21
+ write_attribute(name, value)
22
+ end
23
+ define_method(name) do
24
+ read_attribute(name)
25
+ end
26
+ end
27
+
28
+ def read_attribute_for_validation(key)
29
+ return read_attribute(key)
30
+ end
31
+
32
+ def read_attribute(key)
33
+ @attributes[key]
34
+ end
35
+
36
+ def write_attribute(key, value)
37
+ @attributes[key] = value
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,5 @@
1
+ class Dropwallet::User < DropWallet::Model
2
+ validates_presence_of :email, :password
3
+ field :email
4
+ field :password
5
+ end
@@ -0,0 +1,3 @@
1
+ module Dropwallet
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,9 @@
1
+ require 'json'
2
+ require 'rest_client'
3
+ class Dropwallet::CDN::File
4
+ ServiceUrl = 'http://localhost:2000'
5
+
6
+ def self.upload(path)
7
+ return JSON.parse(RestClient.post("#{ServiceUrl}/files",:file => File.new(path)))
8
+ end
9
+ end
@@ -0,0 +1,39 @@
1
+ require 'active_model'
2
+ class Dropwallet::Core::Model
3
+ include ActiveModel::Serialization
4
+ include ActiveModel::Validations
5
+
6
+ #attr_accessor :attributes
7
+ def initialize(attributes = {})
8
+ @attributes = attributes
9
+ return @attributes
10
+ end
11
+
12
+ def self.create(attributes = {}, options = {})
13
+ model = self.new(attributes)
14
+ return model
15
+ end
16
+
17
+ def self.field(name, options = {})
18
+
19
+ define_method("#{name}=") do |value|
20
+ write_attribute(name, value)
21
+ end
22
+ define_method(name) do
23
+ read_attribute(name)
24
+ end
25
+ end
26
+
27
+ def read_attribute_for_validation(key)
28
+ return read_attribute(key)
29
+ end
30
+
31
+ def read_attribute(key)
32
+ @attributes[key]
33
+ end
34
+
35
+ def write_attribute(key, value)
36
+ @attributes[key] = value
37
+ end
38
+
39
+ end
@@ -0,0 +1,5 @@
1
+ class Dropwallet::Core::User < Dropwallet::Core::Model
2
+ validates_presence_of :email, :password
3
+ field :email
4
+ field :password
5
+ end
@@ -0,0 +1,7 @@
1
+ module Dropwallet
2
+ VERSION = "0.0.1"
3
+ module Core
4
+ end
5
+ module CDN
6
+ end
7
+ end
@@ -0,0 +1,17 @@
1
+ K 25
2
+ svn:wc:ra_dav:version-url
3
+ V 56
4
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/test
5
+ END
6
+ testUser.rb
7
+ K 25
8
+ svn:wc:ra_dav:version-url
9
+ V 68
10
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/test/testUser.rb
11
+ END
12
+ testVersion.rb
13
+ K 25
14
+ svn:wc:ra_dav:version-url
15
+ V 71
16
+ /repos/dw_frontend/!svn/ver/370/trunk/dropwalletGem/test/testVersion.rb
17
+ END
data/test/.svn/entries ADDED
@@ -0,0 +1,96 @@
1
+ 10
2
+
3
+ dir
4
+ 370
5
+ http://dev.icuetv.int/repos/dw_frontend/trunk/dropwalletGem/test
6
+ http://dev.icuetv.int/repos/dw_frontend
7
+
8
+
9
+
10
+ 2012-08-29T19:02:08.854313Z
11
+ 370
12
+ bcentinaro
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ c8b3cc07-65b3-46a0-822a-09fe5650c38a
28
+
29
+ testUser.rb
30
+ file
31
+
32
+
33
+
34
+
35
+ 2012-08-29T17:45:41.000000Z
36
+ 7bd9dbf67b14ee5200a896416f719242
37
+ 2012-08-29T19:02:08.854313Z
38
+ 370
39
+ bcentinaro
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+ 399
62
+
63
+ testVersion.rb
64
+ file
65
+
66
+
67
+
68
+
69
+ 2012-08-29T14:25:42.000000Z
70
+ d703fdd08b8fb253556881272bf3ec23
71
+ 2012-08-29T19:02:08.854313Z
72
+ 370
73
+ bcentinaro
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ 87
96
+
@@ -0,0 +1,14 @@
1
+ require 'test/unit'
2
+ require 'dropwallet'
3
+
4
+ class TestUser < Test::Unit::TestCase
5
+ def test_create
6
+ user = {:email=>'test@test.com', :password=>'password'}
7
+ dwUser = Dropwallet::User.create(user)
8
+ assert_equal user[:email], dwUser.email
9
+ assert_equal user[:password], dwUser.password
10
+ assert_equal dwUser.valid?, true
11
+
12
+ assert_equal Dropwallet::User.create().valid?, false
13
+ end
14
+ end
@@ -0,0 +1,6 @@
1
+ require 'test/unit'
2
+ require 'dropwallet'
3
+
4
+ class TestVersion < Test::Unit::TestCase
5
+
6
+ end
@@ -0,0 +1,11 @@
1
+ require 'test/unit'
2
+ require 'dropwallet'
3
+
4
+ class TestCdnFile < Test::Unit::TestCase
5
+ def testUpload
6
+ assert_nothing_raised do
7
+ Dropwallet::CDN::File.upload('/Users/bcentinaro/Desktop/RealSimple_DropWalletLogo.png')
8
+ end
9
+ end
10
+
11
+ end
data/test/testUser.rb ADDED
@@ -0,0 +1,13 @@
1
+ require 'test/unit'
2
+ require 'dropwallet'
3
+
4
+ class TestUser < Test::Unit::TestCase
5
+ def test_create
6
+ user = {:email=>'test@test.com', :password=>'password'}
7
+ dwUser = Dropwallet::Core::User.create(user)
8
+ assert_equal user[:email], dwUser.email
9
+ assert_equal user[:password], dwUser.password
10
+ assert_equal dwUser.valid?, true
11
+ assert_equal Dropwallet::Core::User.create().valid?, false
12
+ end
13
+ end
@@ -0,0 +1,6 @@
1
+ require 'test/unit'
2
+ require 'dropwallet'
3
+
4
+ class TestVersion < Test::Unit::TestCase
5
+
6
+ end
metadata ADDED
@@ -0,0 +1,151 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dropwallet
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Bill
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-30 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rest-client
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: activemodel
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: json
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ description: Dropwallet API Bindings for Ruby
79
+ email:
80
+ - bill@theresnobox.net
81
+ executables: []
82
+ extensions: []
83
+ extra_rdoc_files: []
84
+ files:
85
+ - .gitignore
86
+ - .svn/all-wcprops
87
+ - .svn/dir-prop-base
88
+ - .svn/entries
89
+ - .svn/text-base/.gitignore.svn-base
90
+ - .svn/text-base/Gemfile.svn-base
91
+ - .svn/text-base/LICENSE.svn-base
92
+ - .svn/text-base/README.md.svn-base
93
+ - .svn/text-base/Rakefile.svn-base
94
+ - .svn/text-base/dropwallet.gemspec.svn-base
95
+ - Gemfile
96
+ - LICENSE
97
+ - README.md
98
+ - Rakefile
99
+ - dropwallet.gemspec
100
+ - lib/.svn/all-wcprops
101
+ - lib/.svn/entries
102
+ - lib/.svn/text-base/dropwallet.rb.svn-base
103
+ - lib/dropwallet.rb
104
+ - lib/dropwallet/.svn/all-wcprops
105
+ - lib/dropwallet/.svn/entries
106
+ - lib/dropwallet/.svn/text-base/model.rb.svn-base
107
+ - lib/dropwallet/.svn/text-base/user.rb.svn-base
108
+ - lib/dropwallet/.svn/text-base/version.rb.svn-base
109
+ - lib/dropwallet/cdn/file.rb
110
+ - lib/dropwallet/core/model.rb
111
+ - lib/dropwallet/core/user.rb
112
+ - lib/dropwallet/version.rb
113
+ - test/.svn/all-wcprops
114
+ - test/.svn/entries
115
+ - test/.svn/text-base/testUser.rb.svn-base
116
+ - test/.svn/text-base/testVersion.rb.svn-base
117
+ - test/testCdnFile.rb
118
+ - test/testUser.rb
119
+ - test/testVersion.rb
120
+ homepage: http://www.dropwallet.net
121
+ licenses: []
122
+ post_install_message:
123
+ rdoc_options: []
124
+ require_paths:
125
+ - lib
126
+ required_ruby_version: !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ requirements: []
139
+ rubyforge_project:
140
+ rubygems_version: 1.8.24
141
+ signing_key:
142
+ specification_version: 3
143
+ summary: Dropwallet API Bindings for Ruby
144
+ test_files:
145
+ - test/.svn/all-wcprops
146
+ - test/.svn/entries
147
+ - test/.svn/text-base/testUser.rb.svn-base
148
+ - test/.svn/text-base/testVersion.rb.svn-base
149
+ - test/testCdnFile.rb
150
+ - test/testUser.rb
151
+ - test/testVersion.rb