yahoo_weather 1.0.7 → 1.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ec45b4a14877f783fb1a8b539cb66b8c64f6ac2
4
- data.tar.gz: 4e1381664533e1e69ae30ca633861aaddf4604be
3
+ metadata.gz: 5aae68afc9d6e428f1299812135beabffbb9ea0e
4
+ data.tar.gz: 78ba751ee167362aec08907889eb5570db2f8207
5
5
  SHA512:
6
- metadata.gz: 1d672b20528094eb6200d183bf4c01f817f28c2bc6ec40c4d64eb75b310ef62e82ae173001837150346bbe2067dec0fcba9ee5e3f15e36814756d7776b6fecea
7
- data.tar.gz: 6324edf6b7d22e017bbe04e1c8c441eba474f9844edd10ff9ebf9d16674735dee6d6f9a077d61a6531ca6acf33a86f3b883a9313579f9ddc23884edeb9257a30
6
+ metadata.gz: f656a1e6d27e370be7a209a2bd991bf9cc21cdd06c702de1fa9263d69b8b8b42d029be3494fe1bfcf9c7795f519059ae0914ac78f8f4e63f4bfebae1ca1ad818
7
+ data.tar.gz: 9bd1bc0cfbca1790897f3a08a1af2f2e838f4855230abdd678b7f5a2240a6aa9d1df1ad7d1aac1d5c26fb76ed8e9f4efe1952b7f60f5ced469b1f2677da9349c
data/Gemfile.lock CHANGED
@@ -1,8 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yahoo_weather (1.0.7)
5
- nokogiri
4
+ yahoo_weather (1.1.0)
6
5
  rails (>= 3.1.0)
7
6
 
8
7
  GEM
@@ -43,11 +42,8 @@ GEM
43
42
  mime-types (~> 1.16)
44
43
  treetop (~> 1.4.8)
45
44
  mime-types (1.25)
46
- mini_portile (0.5.1)
47
45
  minitest (4.7.5)
48
46
  multi_json (1.8.0)
49
- nokogiri (1.6.0)
50
- mini_portile (~> 0.5.0)
51
47
  polyglot (0.3.3)
52
48
  rack (1.5.2)
53
49
  rack-test (0.6.2)
@@ -4,18 +4,26 @@ class YahooWeather::Client
4
4
  def fetch(woeid, units = YahooWeather::Units::FAHRENHEIT)
5
5
  @units = units
6
6
  @woeid = woeid
7
- doc = Nokogiri::XML(read_xml)
8
- YahooWeather::Response.new(doc)
7
+ doc = JSON(read_json)
8
+ if doc['query']['count'] > 0
9
+ YahooWeather::Response.new(doc)
10
+ else
11
+ nil
12
+ end
9
13
  end
10
14
 
11
15
  def fetch_by_location(location, units = YahooWeather::Units::FAHRENHEIT)
12
- woeid_cache_key = "woeid for #{location}"
16
+ woeid_cache_key = "yahoo_weather_woeid for #{location}"
13
17
  unless Rails.cache.exist? woeid_cache_key
14
- url = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20geo.placefinder%20where%20text%3D%22#{::CGI.escape(location)}%22%20and%20gflags%3D%22R%22"
15
- xml = fetch_xml(url)
16
- doc = Nokogiri::XML(xml)
17
- woeid = doc.at('woeid').children.text
18
- Rails.cache.write(woeid_cache_key, woeid)
18
+ url = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20geo.placefinder%20where%20text%3D%22#{::CGI.escape(location)}%22&format=json&callback="
19
+ json = fetch_json(url)
20
+ doc = JSON(json)
21
+ if doc['query']['count'] > 0
22
+ woeid = doc['query']['results']['Result']['woeid']
23
+ Rails.cache.write(woeid_cache_key, woeid)
24
+ else
25
+ return nil
26
+ end
19
27
  else
20
28
  woeid = Rails.cache.read woeid_cache_key
21
29
  end
@@ -26,15 +34,15 @@ class YahooWeather::Client
26
34
 
27
35
  private
28
36
  def get_url
29
- "http://weather.yahooapis.com/forecastrss?w=#{@woeid}&u=#{@units}"
37
+ "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%3D#{@woeid}%20and%20u%3D%22#{@units}%22&format=json&callback="
30
38
  end
31
39
 
32
- def read_xml
40
+ def read_json
33
41
  save_cache unless Rails.cache.exist? cache_key
34
42
  read_cache
35
43
  end
36
44
 
37
- def fetch_xml(url = get_url)
45
+ def fetch_json(url = get_url)
38
46
  begin
39
47
  response = open(url)
40
48
  rescue OpenURI::HTTPError => e
@@ -45,7 +53,7 @@ private
45
53
  end
46
54
 
47
55
  def save_cache
48
- Rails.cache.write(cache_key, fetch_xml, expires_in: 1.minute)
56
+ Rails.cache.write(cache_key, fetch_json, expires_in: 1.minute)
49
57
  end
50
58
 
51
59
  def read_cache
@@ -4,51 +4,46 @@ class YahooWeather::Response
4
4
  :lat, :long
5
5
 
6
6
  def initialize(doc)
7
- @doc = doc
8
- @title = get_text('item/title')
9
- @link = get_text('link')
10
- @description = get_text('description')
11
- @language = get_text('language')
12
- @last_build_date = Time.parse(get_text('lastBuildDate'))
13
- @ttl = get_text('ttl').to_i
14
- @lat = get_text('item/geo|lat').to_f
15
- @long = get_text('item/geo|long').to_f
7
+ @doc = doc['query']['results']['channel']
8
+ @title = @doc['item']['title']
9
+ @link = @doc['link']
10
+ @description = @doc['description']
11
+ @language = @doc['language']
12
+ @last_build_date = Time.parse(@doc['lastBuildDate'])
13
+ @ttl = @doc['ttl'].to_i
14
+ @lat = @doc['item']['lat'].to_f
15
+ @long = @doc['item']['long'].to_f
16
16
  end
17
17
 
18
18
  def location
19
- YahooWeather::Location.new(@doc.at('yweather|location'))
19
+ YahooWeather::Location.new(@doc['location'])
20
20
  end
21
21
 
22
22
  def units
23
- YahooWeather::Units.new(@doc.at('yweather|units'))
23
+ YahooWeather::Units.new(@doc['units'])
24
24
  end
25
25
 
26
26
  def astronomy
27
- YahooWeather::Astronomy.new(@doc.at('yweather|astronomy'))
27
+ YahooWeather::Astronomy.new(@doc['astronomy'])
28
28
  end
29
29
 
30
30
  def atmosphere
31
- YahooWeather::Atmosphere.new(@doc.at('yweather|atmosphere'))
31
+ YahooWeather::Atmosphere.new(@doc['atmosphere'])
32
32
  end
33
33
 
34
34
  def condition
35
- YahooWeather::Condition.new(@doc.at('item/yweather|condition'))
35
+ YahooWeather::Condition.new(@doc['item']['condition'])
36
36
  end
37
37
 
38
38
  def wind
39
- YahooWeather::Wind.new(@doc.at('yweather|wind'))
39
+ YahooWeather::Wind.new(@doc['wind'])
40
40
  end
41
41
 
42
42
  def forecasts
43
43
  forecasts = []
44
- @doc.search('item/yweather|forecast').each do |forecast|
44
+ @doc['item']['forecast'].each do |forecast|
45
45
  forecasts << YahooWeather::Forecast.new(forecast)
46
46
  end
47
47
  forecasts
48
48
  end
49
-
50
- private
51
- def get_text(tag_name)
52
- @doc.at(tag_name).children.text
53
- end
54
49
  end
@@ -1,3 +1,3 @@
1
1
  module YahooWeather
2
- VERSION = '1.0.7'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
data/lib/yahoo_weather.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'nokogiri'
1
+ require 'json'
2
2
  require 'open-uri'
3
3
 
4
4
  module YahooWeather
@@ -381,5 +381,460 @@ YahooWeatherTest: test_Units
381
381
   (0.0ms) begin transaction
382
382
  ---------------------------
383
383
  YahooWeatherTest: test_Wind
384
+ ---------------------------
385
+  (0.1ms) rollback transaction
386
+  (0.2ms) begin transaction
387
+ --------------------------------
388
+ YahooWeatherTest: test_Astronomy
389
+ --------------------------------
390
+  (0.1ms) rollback transaction
391
+  (0.1ms) begin transaction
392
+ ---------------------------------
393
+ YahooWeatherTest: test_Atmosphere
394
+ ---------------------------------
395
+  (0.0ms) rollback transaction
396
+  (0.0ms) begin transaction
397
+ --------------------------------
398
+ YahooWeatherTest: test_Condition
399
+ --------------------------------
400
+  (0.0ms) rollback transaction
401
+  (0.0ms) begin transaction
402
+ -------------------------------------
403
+ YahooWeatherTest: test_Fetch_by_WOEID
404
+ -------------------------------------
405
+  (0.0ms) rollback transaction
406
+  (0.1ms) begin transaction
407
+ --------------------------------------------------
408
+ YahooWeatherTest: test_Fetch_with_the_bad_response
409
+ --------------------------------------------------
410
+  (0.1ms) rollback transaction
411
+  (0.1ms) begin transaction
412
+ --------------------------------
413
+ YahooWeatherTest: test_Forecasts
414
+ --------------------------------
415
+  (0.1ms) rollback transaction
416
+  (0.1ms) begin transaction
417
+ ------------------------------
418
+ YahooWeatherTest: test_General
419
+ ------------------------------
420
+  (0.1ms) rollback transaction
421
+  (0.1ms) begin transaction
422
+ -------------------------------
423
+ YahooWeatherTest: test_Location
424
+ -------------------------------
425
+  (0.0ms) rollback transaction
426
+  (0.1ms) begin transaction
427
+ ---------------------------------------
428
+ YahooWeatherTest: test_Success_response
429
+ ---------------------------------------
430
+  (0.0ms) rollback transaction
431
+  (0.1ms) begin transaction
432
+ ----------------------------
433
+ YahooWeatherTest: test_Units
434
+ ----------------------------
435
+  (0.0ms) rollback transaction
436
+  (0.1ms) begin transaction
437
+ ---------------------------
438
+ YahooWeatherTest: test_Wind
439
+ ---------------------------
440
+  (0.0ms) rollback transaction
441
+  (0.2ms) begin transaction
442
+ --------------------------------
443
+ YahooWeatherTest: test_Astronomy
444
+ --------------------------------
445
+  (0.1ms) rollback transaction
446
+  (0.1ms) begin transaction
447
+ ---------------------------------
448
+ YahooWeatherTest: test_Atmosphere
449
+ ---------------------------------
450
+  (0.0ms) rollback transaction
451
+  (0.0ms) begin transaction
452
+ --------------------------------
453
+ YahooWeatherTest: test_Condition
454
+ --------------------------------
455
+  (0.0ms) rollback transaction
456
+  (0.0ms) begin transaction
457
+ -------------------------------------
458
+ YahooWeatherTest: test_Fetch_by_WOEID
459
+ -------------------------------------
460
+  (0.0ms) rollback transaction
461
+  (0.0ms) begin transaction
462
+ --------------------------------
463
+ YahooWeatherTest: test_Forecasts
464
+ --------------------------------
465
+  (0.1ms) rollback transaction
466
+  (0.0ms) begin transaction
467
+ ------------------------------
468
+ YahooWeatherTest: test_General
469
+ ------------------------------
470
+  (0.0ms) rollback transaction
471
+  (0.0ms) begin transaction
472
+ -------------------------------
473
+ YahooWeatherTest: test_Location
474
+ -------------------------------
475
+  (0.0ms) rollback transaction
476
+  (0.0ms) begin transaction
477
+ ---------------------------------------
478
+ YahooWeatherTest: test_Success_response
479
+ ---------------------------------------
480
+  (0.0ms) rollback transaction
481
+  (0.0ms) begin transaction
482
+ ----------------------------
483
+ YahooWeatherTest: test_Units
484
+ ----------------------------
485
+  (0.0ms) rollback transaction
486
+  (0.0ms) begin transaction
487
+ ---------------------------
488
+ YahooWeatherTest: test_Wind
489
+ ---------------------------
490
+  (0.0ms) rollback transaction
491
+  (0.2ms) begin transaction
492
+ --------------------------------
493
+ YahooWeatherTest: test_Astronomy
494
+ --------------------------------
495
+  (0.1ms) rollback transaction
496
+  (0.1ms) begin transaction
497
+ ---------------------------------
498
+ YahooWeatherTest: test_Atmosphere
499
+ ---------------------------------
500
+  (0.0ms) rollback transaction
501
+  (0.1ms) begin transaction
502
+ --------------------------------
503
+ YahooWeatherTest: test_Condition
504
+ --------------------------------
505
+  (0.0ms) rollback transaction
506
+  (0.1ms) begin transaction
507
+ -------------------------------------
508
+ YahooWeatherTest: test_Fetch_by_WOEID
509
+ -------------------------------------
510
+  (0.0ms) rollback transaction
511
+  (0.1ms) begin transaction
512
+ --------------------------------
513
+ YahooWeatherTest: test_Forecasts
514
+ --------------------------------
515
+  (0.1ms) rollback transaction
516
+  (0.1ms) begin transaction
517
+ ------------------------------
518
+ YahooWeatherTest: test_General
519
+ ------------------------------
520
+  (0.0ms) rollback transaction
521
+  (0.1ms) begin transaction
522
+ -------------------------------
523
+ YahooWeatherTest: test_Location
524
+ -------------------------------
525
+  (0.1ms) rollback transaction
526
+  (0.1ms) begin transaction
527
+ ---------------------------------------
528
+ YahooWeatherTest: test_Success_response
529
+ ---------------------------------------
530
+  (0.0ms) rollback transaction
531
+  (0.1ms) begin transaction
532
+ ----------------------------
533
+ YahooWeatherTest: test_Units
534
+ ----------------------------
535
+  (0.0ms) rollback transaction
536
+  (0.1ms) begin transaction
537
+ ---------------------------
538
+ YahooWeatherTest: test_Wind
539
+ ---------------------------
540
+  (0.0ms) rollback transaction
541
+  (0.3ms) begin transaction
542
+ --------------------------------
543
+ YahooWeatherTest: test_Astronomy
544
+ --------------------------------
545
+  (0.1ms) rollback transaction
546
+  (0.1ms) begin transaction
547
+ ---------------------------------
548
+ YahooWeatherTest: test_Atmosphere
549
+ ---------------------------------
550
+  (0.1ms) rollback transaction
551
+  (0.1ms) begin transaction
552
+ --------------------------------
553
+ YahooWeatherTest: test_Condition
554
+ --------------------------------
555
+  (0.1ms) rollback transaction
556
+  (0.1ms) begin transaction
557
+ -------------------------------------
558
+ YahooWeatherTest: test_Fetch_by_WOEID
559
+ -------------------------------------
560
+  (0.1ms) rollback transaction
561
+  (0.1ms) begin transaction
562
+ --------------------------------
563
+ YahooWeatherTest: test_Forecasts
564
+ --------------------------------
565
+  (0.1ms) rollback transaction
566
+  (0.1ms) begin transaction
567
+ ------------------------------
568
+ YahooWeatherTest: test_General
569
+ ------------------------------
570
+  (0.0ms) rollback transaction
571
+  (0.1ms) begin transaction
572
+ -------------------------------
573
+ YahooWeatherTest: test_Location
574
+ -------------------------------
575
+  (0.1ms) rollback transaction
576
+  (0.1ms) begin transaction
577
+ ---------------------------------------
578
+ YahooWeatherTest: test_Success_response
579
+ ---------------------------------------
580
+  (0.0ms) rollback transaction
581
+  (0.1ms) begin transaction
582
+ ----------------------------
583
+ YahooWeatherTest: test_Units
584
+ ----------------------------
585
+  (0.0ms) rollback transaction
586
+  (0.1ms) begin transaction
587
+ ---------------------------
588
+ YahooWeatherTest: test_Wind
589
+ ---------------------------
590
+  (0.0ms) rollback transaction
591
+  (0.2ms) begin transaction
592
+ --------------------------------
593
+ YahooWeatherTest: test_Astronomy
594
+ --------------------------------
595
+  (0.1ms) rollback transaction
596
+  (0.1ms) begin transaction
597
+ ---------------------------------
598
+ YahooWeatherTest: test_Atmosphere
599
+ ---------------------------------
600
+  (0.0ms) rollback transaction
601
+  (0.1ms) begin transaction
602
+ --------------------------------
603
+ YahooWeatherTest: test_Condition
604
+ --------------------------------
605
+  (0.0ms) rollback transaction
606
+  (0.1ms) begin transaction
607
+ -------------------------------------
608
+ YahooWeatherTest: test_Fetch_by_WOEID
609
+ -------------------------------------
610
+  (0.0ms) rollback transaction
611
+  (0.1ms) begin transaction
612
+ --------------------------------
613
+ YahooWeatherTest: test_Forecasts
614
+ --------------------------------
615
+  (0.1ms) rollback transaction
616
+  (0.1ms) begin transaction
617
+ ------------------------------
618
+ YahooWeatherTest: test_General
619
+ ------------------------------
620
+  (0.1ms) rollback transaction
621
+  (0.1ms) begin transaction
622
+ -------------------------------
623
+ YahooWeatherTest: test_Location
624
+ -------------------------------
625
+  (0.0ms) rollback transaction
626
+  (0.0ms) begin transaction
627
+ ---------------------------------------
628
+ YahooWeatherTest: test_Success_response
629
+ ---------------------------------------
630
+  (0.0ms) rollback transaction
631
+  (0.0ms) begin transaction
632
+ ----------------------------
633
+ YahooWeatherTest: test_Units
634
+ ----------------------------
635
+  (0.0ms) rollback transaction
636
+  (0.1ms) begin transaction
637
+ ---------------------------
638
+ YahooWeatherTest: test_Wind
639
+ ---------------------------
640
+  (0.0ms) rollback transaction
641
+  (0.2ms) begin transaction
642
+ --------------------------------
643
+ YahooWeatherTest: test_Astronomy
644
+ --------------------------------
645
+  (0.1ms) rollback transaction
646
+  (0.1ms) begin transaction
647
+ ---------------------------------
648
+ YahooWeatherTest: test_Atmosphere
649
+ ---------------------------------
650
+  (0.0ms) rollback transaction
651
+  (0.0ms) begin transaction
652
+ --------------------------------
653
+ YahooWeatherTest: test_Condition
654
+ --------------------------------
655
+  (0.0ms) rollback transaction
656
+  (0.0ms) begin transaction
657
+ -------------------------------------
658
+ YahooWeatherTest: test_Fetch_by_WOEID
659
+ -------------------------------------
660
+  (0.0ms) rollback transaction
661
+  (0.0ms) begin transaction
662
+ --------------------------------
663
+ YahooWeatherTest: test_Forecasts
664
+ --------------------------------
665
+  (0.1ms) rollback transaction
666
+  (0.0ms) begin transaction
667
+ ------------------------------
668
+ YahooWeatherTest: test_General
669
+ ------------------------------
670
+  (0.0ms) rollback transaction
671
+  (0.0ms) begin transaction
672
+ -------------------------------
673
+ YahooWeatherTest: test_Location
674
+ -------------------------------
675
+  (0.0ms) rollback transaction
676
+  (0.0ms) begin transaction
677
+ ---------------------------------------
678
+ YahooWeatherTest: test_Success_response
679
+ ---------------------------------------
680
+  (0.0ms) rollback transaction
681
+  (0.0ms) begin transaction
682
+ ----------------------------
683
+ YahooWeatherTest: test_Units
684
+ ----------------------------
685
+  (0.0ms) rollback transaction
686
+  (0.0ms) begin transaction
687
+ ---------------------------
688
+ YahooWeatherTest: test_Wind
689
+ ---------------------------
690
+  (0.0ms) rollback transaction
691
+  (0.2ms) begin transaction
692
+ --------------------------------
693
+ YahooWeatherTest: test_Astronomy
694
+ --------------------------------
695
+  (0.1ms) rollback transaction
696
+  (0.1ms) begin transaction
697
+ ---------------------------------
698
+ YahooWeatherTest: test_Atmosphere
699
+ ---------------------------------
700
+  (0.0ms) rollback transaction
701
+  (0.0ms) begin transaction
702
+ --------------------------------
703
+ YahooWeatherTest: test_Condition
704
+ --------------------------------
705
+  (0.0ms) rollback transaction
706
+  (0.0ms) begin transaction
707
+ -------------------------------------
708
+ YahooWeatherTest: test_Fetch_by_WOEID
709
+ -------------------------------------
710
+  (0.0ms) rollback transaction
711
+  (0.0ms) begin transaction
712
+ --------------------------------
713
+ YahooWeatherTest: test_Forecasts
714
+ --------------------------------
715
+  (0.1ms) rollback transaction
716
+  (0.0ms) begin transaction
717
+ ------------------------------
718
+ YahooWeatherTest: test_General
719
+ ------------------------------
720
+  (0.0ms) rollback transaction
721
+  (0.0ms) begin transaction
722
+ -------------------------------
723
+ YahooWeatherTest: test_Location
724
+ -------------------------------
725
+  (0.0ms) rollback transaction
726
+  (0.0ms) begin transaction
727
+ ---------------------------------------
728
+ YahooWeatherTest: test_Success_response
729
+ ---------------------------------------
730
+  (0.0ms) rollback transaction
731
+  (0.0ms) begin transaction
732
+ ----------------------------
733
+ YahooWeatherTest: test_Units
734
+ ----------------------------
735
+  (0.0ms) rollback transaction
736
+  (0.0ms) begin transaction
737
+ ---------------------------
738
+ YahooWeatherTest: test_Wind
739
+ ---------------------------
740
+  (0.0ms) rollback transaction
741
+  (0.2ms) begin transaction
742
+ --------------------------------
743
+ YahooWeatherTest: test_Astronomy
744
+ --------------------------------
745
+  (0.1ms) rollback transaction
746
+  (0.1ms) begin transaction
747
+ ---------------------------------
748
+ YahooWeatherTest: test_Atmosphere
749
+ ---------------------------------
750
+  (0.1ms) rollback transaction
751
+  (0.1ms) begin transaction
752
+ --------------------------------
753
+ YahooWeatherTest: test_Condition
754
+ --------------------------------
755
+  (0.1ms) rollback transaction
756
+  (0.1ms) begin transaction
757
+ -------------------------------------
758
+ YahooWeatherTest: test_Fetch_by_WOEID
759
+ -------------------------------------
760
+  (0.0ms) rollback transaction
761
+  (0.1ms) begin transaction
762
+ --------------------------------
763
+ YahooWeatherTest: test_Forecasts
764
+ --------------------------------
765
+  (0.1ms) rollback transaction
766
+  (0.1ms) begin transaction
767
+ ------------------------------
768
+ YahooWeatherTest: test_General
769
+ ------------------------------
770
+  (0.1ms) rollback transaction
771
+  (0.1ms) begin transaction
772
+ -------------------------------
773
+ YahooWeatherTest: test_Location
774
+ -------------------------------
775
+  (0.1ms) rollback transaction
776
+  (0.1ms) begin transaction
777
+ ---------------------------------------
778
+ YahooWeatherTest: test_Success_response
779
+ ---------------------------------------
780
+  (0.1ms) rollback transaction
781
+  (0.1ms) begin transaction
782
+ ----------------------------
783
+ YahooWeatherTest: test_Units
784
+ ----------------------------
785
+  (0.1ms) rollback transaction
786
+  (0.0ms) begin transaction
787
+ ---------------------------
788
+ YahooWeatherTest: test_Wind
789
+ ---------------------------
790
+  (0.1ms) rollback transaction
791
+  (0.2ms) begin transaction
792
+ --------------------------------
793
+ YahooWeatherTest: test_Astronomy
794
+ --------------------------------
795
+  (0.1ms) rollback transaction
796
+  (0.1ms) begin transaction
797
+ ---------------------------------
798
+ YahooWeatherTest: test_Atmosphere
799
+ ---------------------------------
800
+  (0.1ms) rollback transaction
801
+  (0.0ms) begin transaction
802
+ --------------------------------
803
+ YahooWeatherTest: test_Condition
804
+ --------------------------------
805
+  (0.1ms) rollback transaction
806
+  (0.0ms) begin transaction
807
+ -------------------------------------
808
+ YahooWeatherTest: test_Fetch_by_WOEID
809
+ -------------------------------------
810
+  (0.0ms) rollback transaction
811
+  (0.0ms) begin transaction
812
+ --------------------------------
813
+ YahooWeatherTest: test_Forecasts
814
+ --------------------------------
815
+  (0.1ms) rollback transaction
816
+  (0.0ms) begin transaction
817
+ ------------------------------
818
+ YahooWeatherTest: test_General
819
+ ------------------------------
820
+  (0.0ms) rollback transaction
821
+  (0.1ms) begin transaction
822
+ -------------------------------
823
+ YahooWeatherTest: test_Location
824
+ -------------------------------
825
+  (0.0ms) rollback transaction
826
+  (0.1ms) begin transaction
827
+ ---------------------------------------
828
+ YahooWeatherTest: test_Success_response
829
+ ---------------------------------------
830
+  (0.1ms) rollback transaction
831
+  (0.1ms) begin transaction
832
+ ----------------------------
833
+ YahooWeatherTest: test_Units
834
+ ----------------------------
835
+  (0.0ms) rollback transaction
836
+  (0.1ms) begin transaction
837
+ ---------------------------
838
+ YahooWeatherTest: test_Wind
384
839
  ---------------------------
385
840
   (0.1ms) rollback transaction
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI"
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI"4 {"query":{"count":1,"created":"2013-09-14T07:40:03Z","lang":"en-US","results":{"channel":{"title":"Yahoo! Weather - New York, NY","link":"http://us.rd.yahoo.com/dailynews/rss/weather/New_York__NY/*http://weather.yahoo.com/forecast/USNY0996_f.html","description":"Yahoo! Weather for New York, NY","language":"en-us","lastBuildDate":"Sat, 14 Sep 2013 2:49 am EDT","ttl":"60","location":{"city":"New York","country":"United States","region":"NY"},"units":{"distance":"mi","pressure":"in","speed":"mph","temperature":"F"},"wind":{"chill":"57","direction":"310","speed":"7"},"atmosphere":{"humidity":"64","pressure":"29.92","rising":"1","visibility":"10"},"astronomy":{"sunrise":"6:33 am","sunset":"7:06 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions for New York, NY at 2:49 am EDT","lat":"40.71","long":"-74.01","link":"http://us.rd.yahoo.com/dailynews/rss/weather/New_York__NY/*http://weather.yahoo.com/forecast/USNY0996_f.html","pubDate":"Sat, 14 Sep 2013 2:49 am EDT","condition":{"code":"33","date":"Sat, 14 Sep 2013 2:49 am EDT","temp":"57","text":"Fair"},"description":"\n<img src=\"http://l.yimg.com/a/i/us/we/52/33.gif\"/><br />\n<b>Current Conditions:</b><br />\nFair, 57 F<BR />\n<BR /><b>Forecast:</b><BR />\nSat - Mostly Sunny. High: 72 Low: 52<br />\nSun - Mostly Sunny. High: 75 Low: 61<br />\nMon - Showers. High: 71 Low: 53<br />\nTue - Sunny. High: 70 Low: 53<br />\nWed - Sunny. High: 73 Low: 57<br />\n<br />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/New_York__NY/*http://weather.yahoo.com/forecast/USNY0996_f.html\">Full Forecast at Yahoo! Weather</a><BR/><BR/>\n(provided by <a href=\"http://www.weather.com\" >The Weather Channel</a>)<br/>\n","forecast":[{"code":"34","date":"14 Sep 2013","day":"Sat","high":"72","low":"52","text":"Mostly Sunny"},{"code":"34","date":"15 Sep 2013","day":"Sun","high":"75","low":"61","text":"Mostly Sunny"},{"code":"11","date":"16 Sep 2013","day":"Mon","high":"71","low":"53","text":"Showers"},{"code":"32","date":"17 Sep 2013","day":"Tue","high":"70","low":"53","text":"Sunny"},{"code":"32","date":"18 Sep 2013","day":"Wed","high":"73","low":"57","text":"Sunny"}],"guid":{"isPermaLink":"false","content":"USNY0996_2013_09_18_7_00_EDT"}}}}}}:ET:@created_atf1379144406.273215:@expires_inf6e1
@@ -0,0 +1,56 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI"�
2
+ <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
3
+ <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
4
+ <channel>
5
+
6
+ <title>Yahoo! Weather - New York, NY</title>
7
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/New_York__NY/*http://weather.yahoo.com/forecast/USNY0996_f.html</link>
8
+ <description>Yahoo! Weather for New York, NY</description>
9
+ <language>en-us</language>
10
+ <lastBuildDate>Sat, 14 Sep 2013 1:49 am EDT</lastBuildDate>
11
+ <ttl>60</ttl>
12
+ <yweather:location city="New York" region="NY" country="United States"/>
13
+ <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
14
+ <yweather:wind chill="58" direction="0" speed="3" />
15
+ <yweather:atmosphere humidity="62" visibility="10" pressure="29.91" rising="1" />
16
+ <yweather:astronomy sunrise="6:33 am" sunset="7:06 pm"/>
17
+ <image>
18
+ <title>Yahoo! Weather</title>
19
+ <width>142</width>
20
+ <height>18</height>
21
+ <link>http://weather.yahoo.com</link>
22
+ <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
23
+ </image>
24
+ <item>
25
+ <title>Conditions for New York, NY at 1:49 am EDT</title>
26
+ <geo:lat>40.69</geo:lat>
27
+ <geo:long>-74.02</geo:long>
28
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/New_York__NY/*http://weather.yahoo.com/forecast/USNY0996_f.html</link>
29
+ <pubDate>Sat, 14 Sep 2013 1:49 am EDT</pubDate>
30
+ <yweather:condition text="Fair" code="33" temp="58" date="Sat, 14 Sep 2013 1:49 am EDT" />
31
+ <description><![CDATA[
32
+ <img src="http://l.yimg.com/a/i/us/we/52/33.gif"/><br />
33
+ <b>Current Conditions:</b><br />
34
+ Fair, 58 F<BR />
35
+ <BR /><b>Forecast:</b><BR />
36
+ Fri - Clear. High: 74 Low: 54<br />
37
+ Sat - Sunny. High: 72 Low: 52<br />
38
+ Sun - Partly Cloudy. High: 75 Low: 61<br />
39
+ Mon - Showers. High: 71 Low: 53<br />
40
+ Tue - Sunny. High: 70 Low: 53<br />
41
+ <br />
42
+ <a href="http://us.rd.yahoo.com/dailynews/rss/weather/New_York__NY/*http://weather.yahoo.com/forecast/USNY0996_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
43
+ (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
44
+ ]]></description>
45
+ <yweather:forecast day="Fri" date="13 Sep 2013" low="54" high="74" text="Clear" code="31" />
46
+ <yweather:forecast day="Sat" date="14 Sep 2013" low="52" high="72" text="Sunny" code="32" />
47
+ <yweather:forecast day="Sun" date="15 Sep 2013" low="61" high="75" text="Partly Cloudy" code="30" />
48
+ <yweather:forecast day="Mon" date="16 Sep 2013" low="53" high="71" text="Showers" code="11" />
49
+ <yweather:forecast day="Tue" date="17 Sep 2013" low="53" high="70" text="Sunny" code="32" />
50
+ <guid isPermaLink="false">USNY0996_2013_09_17_7_00_EDT</guid>
51
+ </item>
52
+ </channel>
53
+ </rss>
54
+
55
+ <!-- api5.weather.sg3.yahoo.com Sat Sep 14 06:33:40 PST 2013 -->
56
+ :ET:@created_atf1379140425.031191:@expires_inf6e1
@@ -0,0 +1,56 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI"�
2
+ <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
3
+ <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
4
+ <channel>
5
+
6
+ <title>Yahoo! Weather - Atherton, CA</title>
7
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/Atherton__CA/*http://weather.yahoo.com/forecast/USCA0050_f.html</link>
8
+ <description>Yahoo! Weather for Atherton, CA</description>
9
+ <language>en-us</language>
10
+ <lastBuildDate>Fri, 13 Sep 2013 8:46 pm PDT</lastBuildDate>
11
+ <ttl>60</ttl>
12
+ <yweather:location city="Atherton" region="CA" country="United States"/>
13
+ <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
14
+ <yweather:wind chill="61" direction="350" speed="10" />
15
+ <yweather:atmosphere humidity="88" visibility="10" pressure="29.8" rising="0" />
16
+ <yweather:astronomy sunrise="6:48 am" sunset="7:19 pm"/>
17
+ <image>
18
+ <title>Yahoo! Weather</title>
19
+ <width>142</width>
20
+ <height>18</height>
21
+ <link>http://weather.yahoo.com</link>
22
+ <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
23
+ </image>
24
+ <item>
25
+ <title>Conditions for Atherton, CA at 8:46 pm PDT</title>
26
+ <geo:lat>37.45</geo:lat>
27
+ <geo:long>-122.21</geo:long>
28
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/Atherton__CA/*http://weather.yahoo.com/forecast/USCA0050_f.html</link>
29
+ <pubDate>Fri, 13 Sep 2013 8:46 pm PDT</pubDate>
30
+ <yweather:condition text="Partly Cloudy" code="29" temp="61" date="Fri, 13 Sep 2013 8:46 pm PDT" />
31
+ <description><![CDATA[
32
+ <img src="http://l.yimg.com/a/i/us/we/52/29.gif"/><br />
33
+ <b>Current Conditions:</b><br />
34
+ Partly Cloudy, 61 F<BR />
35
+ <BR /><b>Forecast:</b><BR />
36
+ Fri - Mostly Cloudy. High: 74 Low: 56<br />
37
+ Sat - AM Clouds/PM Sun. High: 78 Low: 56<br />
38
+ Sun - AM Clouds/PM Sun. High: 78 Low: 56<br />
39
+ Mon - Sunny. High: 80 Low: 55<br />
40
+ Tue - Sunny. High: 80 Low: 55<br />
41
+ <br />
42
+ <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Atherton__CA/*http://weather.yahoo.com/forecast/USCA0050_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
43
+ (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
44
+ ]]></description>
45
+ <yweather:forecast day="Fri" date="13 Sep 2013" low="56" high="74" text="Mostly Cloudy" code="27" />
46
+ <yweather:forecast day="Sat" date="14 Sep 2013" low="56" high="78" text="AM Clouds/PM Sun" code="30" />
47
+ <yweather:forecast day="Sun" date="15 Sep 2013" low="56" high="78" text="AM Clouds/PM Sun" code="30" />
48
+ <yweather:forecast day="Mon" date="16 Sep 2013" low="55" high="80" text="Sunny" code="32" />
49
+ <yweather:forecast day="Tue" date="17 Sep 2013" low="55" high="80" text="Sunny" code="32" />
50
+ <guid isPermaLink="false">USCA0050_2013_09_17_7_00_PDT</guid>
51
+ </item>
52
+ </channel>
53
+ </rss>
54
+
55
+ <!-- api6.weather.gq1.yahoo.com Sat Sep 14 06:18:14 PST 2013 -->
56
+ :ET:@created_atf1379139499.611135:@expires_inf6e1
@@ -1,56 +1 @@
1
- o: ActiveSupport::Cache::Entry: @valueI"�
2
- <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
3
- <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
4
- <channel>
5
-
6
- <title>Yahoo! Weather - San Francisco, CA</title>
7
- <link>http://us.rd.yahoo.com/dailynews/rss/weather/San_Francisco__CA/*http://weather.yahoo.com/forecast/USCA0987_f.html</link>
8
- <description>Yahoo! Weather for San Francisco, CA</description>
9
- <language>en-us</language>
10
- <lastBuildDate>Fri, 13 Sep 2013 10:52 pm PDT</lastBuildDate>
11
- <ttl>60</ttl>
12
- <yweather:location city="San Francisco" region="CA" country="United States"/>
13
- <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
14
- <yweather:wind chill="59" direction="260" speed="13" />
15
- <yweather:atmosphere humidity="100" visibility="10" pressure="29.83" rising="1" />
16
- <yweather:astronomy sunrise="6:48 am" sunset="7:19 pm"/>
17
- <image>
18
- <title>Yahoo! Weather</title>
19
- <width>142</width>
20
- <height>18</height>
21
- <link>http://weather.yahoo.com</link>
22
- <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
23
- </image>
24
- <item>
25
- <title>Conditions for San Francisco, CA at 10:52 pm PDT</title>
26
- <geo:lat>37.78</geo:lat>
27
- <geo:long>-122.46</geo:long>
28
- <link>http://us.rd.yahoo.com/dailynews/rss/weather/San_Francisco__CA/*http://weather.yahoo.com/forecast/USCA0987_f.html</link>
29
- <pubDate>Fri, 13 Sep 2013 10:52 pm PDT</pubDate>
30
- <yweather:condition text="Cloudy" code="26" temp="59" date="Fri, 13 Sep 2013 10:52 pm PDT" />
31
- <description><![CDATA[
32
- <img src="http://l.yimg.com/a/i/us/we/52/26.gif"/><br />
33
- <b>Current Conditions:</b><br />
34
- Cloudy, 59 F<BR />
35
- <BR /><b>Forecast:</b><BR />
36
- Fri - Mostly Cloudy. High: 65 Low: 57<br />
37
- Sat - AM Clouds/PM Sun. High: 66 Low: 58<br />
38
- Sun - AM Clouds/PM Sun. High: 66 Low: 59<br />
39
- Mon - Partly Cloudy. High: 69 Low: 58<br />
40
- Tue - Sunny. High: 70 Low: 57<br />
41
- <br />
42
- <a href="http://us.rd.yahoo.com/dailynews/rss/weather/San_Francisco__CA/*http://weather.yahoo.com/forecast/USCA0987_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
43
- (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
44
- ]]></description>
45
- <yweather:forecast day="Fri" date="13 Sep 2013" low="57" high="65" text="Mostly Cloudy" code="27" />
46
- <yweather:forecast day="Sat" date="14 Sep 2013" low="58" high="66" text="AM Clouds/PM Sun" code="30" />
47
- <yweather:forecast day="Sun" date="15 Sep 2013" low="59" high="66" text="AM Clouds/PM Sun" code="30" />
48
- <yweather:forecast day="Mon" date="16 Sep 2013" low="58" high="69" text="Partly Cloudy" code="30" />
49
- <yweather:forecast day="Tue" date="17 Sep 2013" low="57" high="70" text="Sunny" code="32" />
50
- <guid isPermaLink="false">USCA0987_2013_09_17_7_00_PDT</guid>
51
- </item>
52
- </channel>
53
- </rss>
54
-
55
- <!-- api18.weather.gq1.yahoo.com Sat Sep 14 06:09:50 PST 2013 -->
56
- :ET:@created_atf1379139267.966285:@expires_inf6e1
1
+ o: ActiveSupport::Cache::Entry: @valueI"t {"query":{"count":1,"created":"2013-09-14T07:44:12Z","lang":"en-US","results":{"channel":{"title":"Yahoo! Weather - San Francisco, CA","link":"http://us.rd.yahoo.com/dailynews/rss/weather/San_Francisco__CA/*http://weather.yahoo.com/forecast/USCA0987_f.html","description":"Yahoo! Weather for San Francisco, CA","language":"en-us","lastBuildDate":"Fri, 13 Sep 2013 11:52 pm PDT","ttl":"60","location":{"city":"San Francisco","country":"United States","region":"CA"},"units":{"distance":"mi","pressure":"in","speed":"mph","temperature":"F"},"wind":{"chill":"59","direction":"280","speed":"13"},"atmosphere":{"humidity":"100","pressure":"29.82","rising":"2","visibility":"10"},"astronomy":{"sunrise":"6:48 am","sunset":"7:19 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions for San Francisco, CA at 11:52 pm PDT","lat":"37.78","long":"-122.46","link":"http://us.rd.yahoo.com/dailynews/rss/weather/San_Francisco__CA/*http://weather.yahoo.com/forecast/USCA0987_f.html","pubDate":"Fri, 13 Sep 2013 11:52 pm PDT","condition":{"code":"26","date":"Fri, 13 Sep 2013 11:52 pm PDT","temp":"59","text":"Cloudy"},"description":"\n<img src=\"http://l.yimg.com/a/i/us/we/52/26.gif\"/><br />\n<b>Current Conditions:</b><br />\nCloudy, 59 F<BR />\n<BR /><b>Forecast:</b><BR />\nFri - Cloudy. High: 65 Low: 56<br />\nSat - Partly Cloudy. High: 66 Low: 57<br />\nSun - Partly Cloudy. High: 68 Low: 59<br />\nMon - Partly Cloudy. High: 68 Low: 58<br />\nTue - Sunny. High: 70 Low: 57<br />\n<br />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/San_Francisco__CA/*http://weather.yahoo.com/forecast/USCA0987_f.html\">Full Forecast at Yahoo! Weather</a><BR/><BR/>\n(provided by <a href=\"http://www.weather.com\" >The Weather Channel</a>)<br/>\n","forecast":[{"code":"26","date":"13 Sep 2013","day":"Fri","high":"65","low":"56","text":"Cloudy"},{"code":"30","date":"14 Sep 2013","day":"Sat","high":"66","low":"57","text":"Partly Cloudy"},{"code":"30","date":"15 Sep 2013","day":"Sun","high":"68","low":"59","text":"Partly Cloudy"},{"code":"30","date":"16 Sep 2013","day":"Mon","high":"68","low":"58","text":"Partly Cloudy"},{"code":"32","date":"17 Sep 2013","day":"Tue","high":"70","low":"57","text":"Sunny"}],"guid":{"isPermaLink":"false","content":"USCA0987_2013_09_17_7_00_PDT"}}}}}}:ET:@created_atf1379144654.744537:@expires_inf6e1
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI"
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI" 2459115:ET:@created_atf1379144405.120568:@expires_in0
@@ -15,20 +15,6 @@ class YahooWeatherTest < ActiveSupport::TestCase
15
15
  'San Francisco', 'CA', 'United States')
16
16
  end
17
17
 
18
- test 'Fetch with the bad response' do
19
- client = YahooWeather::Client.new
20
- woeid_sf = '10001'
21
- FakeWeb.register_uri(
22
- :get,
23
- "http://weather.yahooapis.com/forecastrss?w=#{woeid_sf}&u=f",
24
- :body => "Nothing to be found 'round here",
25
- :status => ["404", "Not Found"]
26
- )
27
- problem = assert_raise(RuntimeError) {client.fetch(woeid_sf)}
28
- assert_equal "Failed to get xml. Got a bad status code 404 Not Found", problem.message
29
- FakeWeb.clean_registry
30
- end
31
-
32
18
  test 'Success response' do
33
19
  assert_instance_of YahooWeather::Condition, @response.condition
34
20
  assert_instance_of YahooWeather::Location, @response.location
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
16
16
  s.require_paths = ['lib']
17
17
  s.test_files = Dir['test/**/*']
18
18
  s.add_dependency 'rails', '>= 3.1.0'
19
- s.add_dependency 'nokogiri'
20
19
  s.add_development_dependency 'sqlite3'
21
20
  s.add_development_dependency 'fakeweb', '~> 1.3'
22
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yahoo_weather
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ildar Manzhikov
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.1.0
27
- - !ruby/object:Gem::Dependency
28
- name: nokogiri
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
- - - '>='
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: sqlite3
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -138,11 +124,18 @@ files:
138
124
  - test/yahoo_weather_test.rb
139
125
  - yahoo_weather.gemspec
140
126
  - test/dummy/log/test.log
127
+ - test/dummy/tmp/cache/4BA/650/woeid+for+94025
141
128
  - test/dummy/tmp/cache/62E/480/woeid+for+Moscow
129
+ - test/dummy/tmp/cache/786/890/yahoo_weather_10001_f
130
+ - test/dummy/tmp/cache/7FF/F00/yahoo_weather_2459115_f
142
131
  - test/dummy/tmp/cache/82F/B30/yahoo_weather_12794004_f
132
+ - test/dummy/tmp/cache/831/AD0/yahoo_weather_12761336_f
133
+ - test/dummy/tmp/cache/838/DA0/yahoo_weather_12797118_f
143
134
  - test/dummy/tmp/cache/839/E20/yahoo_weather_12788173_f
144
135
  - test/dummy/tmp/cache/839/F10/yahoo_weather_29391445_f
145
136
  - test/dummy/tmp/cache/83D/EE0/yahoo_weather_12797168_f
137
+ - test/dummy/tmp/cache/A79/3C0/yahoo_weather_woeid+for+10004
138
+ - test/dummy/tmp/cache/C7E/C30/yahoo_weather_woeid+for+New+York
146
139
  homepage: http://github.com/manzhikov/yahoo_weather
147
140
  licenses:
148
141
  - MIT
@@ -202,10 +195,17 @@ test_files:
202
195
  - test/dummy/public/favicon.ico
203
196
  - test/dummy/Rakefile
204
197
  - test/dummy/README.rdoc
198
+ - test/dummy/tmp/cache/4BA/650/woeid+for+94025
205
199
  - test/dummy/tmp/cache/62E/480/woeid+for+Moscow
200
+ - test/dummy/tmp/cache/786/890/yahoo_weather_10001_f
201
+ - test/dummy/tmp/cache/7FF/F00/yahoo_weather_2459115_f
206
202
  - test/dummy/tmp/cache/82F/B30/yahoo_weather_12794004_f
203
+ - test/dummy/tmp/cache/831/AD0/yahoo_weather_12761336_f
204
+ - test/dummy/tmp/cache/838/DA0/yahoo_weather_12797118_f
207
205
  - test/dummy/tmp/cache/839/E20/yahoo_weather_12788173_f
208
206
  - test/dummy/tmp/cache/839/F10/yahoo_weather_29391445_f
209
207
  - test/dummy/tmp/cache/83D/EE0/yahoo_weather_12797168_f
208
+ - test/dummy/tmp/cache/A79/3C0/yahoo_weather_woeid+for+10004
209
+ - test/dummy/tmp/cache/C7E/C30/yahoo_weather_woeid+for+New+York
210
210
  - test/test_helper.rb
211
211
  - test/yahoo_weather_test.rb