russian_post 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- russian_post (0.1.0)
4
+ russian_post (0.1.2)
5
5
  chunky_png (~> 1.2)
6
6
  excon (~> 0.20)
7
7
  mechanize (~> 2.6.0)
data/README.md CHANGED
@@ -35,8 +35,8 @@ RussianPost::Tracking.new(tracking_code).track
35
35
  require 'russian_post'
36
36
 
37
37
  RussianPost::Captcha.for_url(captcha_url).text
38
- # => 96950
38
+ # => "96950"
39
39
 
40
40
  RussianPost::Captcha.for_data(png_blob).text
41
- # => 43455
41
+ # => "43455"
42
42
  ```
@@ -30,7 +30,7 @@ module RussianPost
30
30
  end
31
31
 
32
32
  def get_captcha_url(page)
33
- page.images.last.src
33
+ page.image_with(:id => 'captchaImage').src
34
34
  end
35
35
 
36
36
  def tracking_table(page)
@@ -1,3 +1,3 @@
1
1
  module RussianPost
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: russian_post
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-27 00:00:00.000000000 Z
12
+ date: 2013-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: excon