nanopop 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: 994f18de251ad1a2a547b14c9ec968eb19a7b6c3
4
- data.tar.gz: c1d213f935d23d2ccc6ab4126fde9403f9f164b7
3
+ metadata.gz: 697cdf11aee0683d10014cc98dc7d56f973cfe76
4
+ data.tar.gz: 6cff167ba3919df8932e8eeb56c19734a278e44a
5
5
  SHA512:
6
- metadata.gz: ed6f7f13b5cc1835572db90602d9bb24542db556d8f3dacb2e5278071bc07baf1ff5f566189578b9154a15c6c9bf4d840810baa39baa7120b2e5a8b0b204a008
7
- data.tar.gz: cb9375d3e615926512c2329b84f4cd9e64fc5c25e296c6b45cc9f528db239076b6fff9a403a80925cac705f5a96009a4326ed8ca9a7ce87149697613f5590216
6
+ metadata.gz: fc11b4185b76159d9133270532d584db1a7cdc9a467f716560b25215a60bebf3b06e47b2cc54d715412b40911fb50233fa31533e9760d7f21f1b13616e761929
7
+ data.tar.gz: 4809c0ab6b286f352bcb8a0d1462ef4f5c57470dbaa7c68cd6f36b7c62cc23ed8aeaf6c8b89f98b9d067ca4b69ce4a46e9b306243d24487aa657585f809eaf87
@@ -14,7 +14,7 @@ class Nanopop::Picture
14
14
  end
15
15
 
16
16
  def url
17
- URL % [adjust(id), picture_filename]
17
+ URL % [adjust(task_id), picture_filename]
18
18
  end
19
19
 
20
20
  def avatar_url
@@ -22,10 +22,9 @@ class Nanopop::Picture
22
22
  end
23
23
 
24
24
  def self.latest qty
25
-
26
25
  raise Nanopop::UndefinedToken unless Nanopop.configuration.token
26
+
27
27
  response = fetch(:latest, numberOfPictures: qty)
28
- File.open("test.xml", "w"){|f| f.write response }
29
28
  doc = Nokogiri.XML(response)
30
29
 
31
30
  doc.search('PictureLatest').map do |item|
@@ -56,7 +55,7 @@ class Nanopop::Picture
56
55
  value.rjust(7, '0')
57
56
  end
58
57
 
59
- def method_missing method
58
+ def method_missing method, params={}
60
59
  @ats[method]
61
60
  end
62
61
 
@@ -1,3 +1,3 @@
1
1
  module Nanopop
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -29,7 +29,7 @@ describe Nanopop::Picture do
29
29
  end
30
30
 
31
31
  it "should have url" do
32
- subject.url.must_equal "https://nanopopapi.blob.core.windows.net/tasks/0009716/130719_ZO1DY.jpg"
32
+ subject.url.must_equal "https://nanopopapi.blob.core.windows.net/tasks/0000028/130719_ZO1DY.jpg"
33
33
  end
34
34
 
35
35
  it "should have user_name" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanopop
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
  - Maiz Lulkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-09 00:00:00.000000000 Z
11
+ date: 2013-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler