dropwallet 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,6 +27,11 @@ class Dropwallet::Core::User < Dropwallet::Core::Model
27
27
  return Dropwallet::Core::Order.pages(options)
28
28
  end
29
29
 
30
+ def self.forgotPassword(account)
31
+ options = {:path => "#{Dropwallet::Core::Model.baseServiceUrl}/users/forgottenpassword"}
32
+ RestClient.post(options[:path], {:email=>account})
33
+ end
34
+
30
35
  def orderSearch(query, page = 1)
31
36
  options = {:path => "#{Dropwallet::Core::Model.baseServiceUrl}/users/#{id}/orders/search?query=#{query}&limit=95&page=#{page}"}
32
37
  doc = JSON.parse(RestClient.get(options[:path], {:accept => :json}))
@@ -1,5 +1,5 @@
1
1
  module Dropwallet
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
 
4
4
  def self.username
5
5
  @username
@@ -59,4 +59,12 @@ class TestUser < Test::Unit::TestCase
59
59
  end
60
60
  puts user1.orderSearch('tool')
61
61
  end
62
+ def testForgotPassword
63
+ puts '------- TEST USER FORGOTPASSWORD ---------'
64
+ RestClient.log = "stdout"
65
+ Dropwallet::username = 'dropwallet'
66
+ Dropwallet::password = 'icuetv789'
67
+ Dropwallet::apiUrl = 'http://10.0.1.41:8080/core/restful'
68
+ user1 = Dropwallet::Core::User.forgotPassword('customer0000@icuetv.com')
69
+ end
62
70
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropwallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-25 00:00:00.000000000 Z
13
+ date: 2012-09-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec