auntie 0.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 +7 -0
 - data/Gemfile +3 -0
 - data/Gemfile.lock +49 -0
 - data/LICENSE +20 -0
 - data/README.md +39 -0
 - data/Rakefile +24 -0
 - data/bin/news +4 -0
 - data/bin/radio +51 -0
 - data/bin/sport +4 -0
 - data/bin/tv +45 -0
 - data/bin/weather +23 -0
 - data/features/location.feature +8 -0
 - data/features/news.feature +8 -0
 - data/features/radio.feature +8 -0
 - data/features/sport.feature +8 -0
 - data/features/step_definitions/location_steps.rb +7 -0
 - data/features/step_definitions/radio_steps.rb +1 -0
 - data/features/step_definitions/tv_steps.rb +1 -0
 - data/features/step_definitions/weather_steps.rb +6 -0
 - data/features/support/env.rb +15 -0
 - data/features/tv.feature +8 -0
 - data/features/weather.feature +8 -0
 - data/lib/auntie.rb +16 -0
 - data/lib/bbc/location.rb +44 -0
 - data/lib/bbc/news.rb +28 -0
 - data/lib/bbc/now_next.rb +93 -0
 - data/lib/bbc/schedule.rb +53 -0
 - data/lib/bbc/shell/characters.rb +68 -0
 - data/lib/bbc/shell/colors.rb +39 -0
 - data/lib/bbc/shell/describe_time.rb +20 -0
 - data/lib/bbc/sport.rb +33 -0
 - data/lib/bbc/version.rb +7 -0
 - data/lib/bbc/weather.rb +98 -0
 - data/scratch +9 -0
 - data/spec/bbc/location_spec.rb +45 -0
 - data/spec/bbc/news_spec.rb +43 -0
 - data/spec/bbc/now_next_spec.rb +53 -0
 - data/spec/bbc/schedule_spec.rb +56 -0
 - data/spec/bbc/sport_spec.rb +35 -0
 - data/spec/bbc/version_spec.rb +18 -0
 - data/spec/bbc/weather_spec.rb +41 -0
 - data/spec/fixtures/3dayforecast.json +149 -0
 - data/spec/fixtures/3hourlyforecast.json +265 -0
 - data/spec/fixtures/location.json +12 -0
 - data/spec/fixtures/news.json +31 -0
 - data/spec/fixtures/now_next_radio.json +7767 -0
 - data/spec/fixtures/now_next_tv.json +3471 -0
 - data/spec/fixtures/schedule_radio_today.json +939 -0
 - data/spec/fixtures/schedule_radio_tomorrow.json +941 -0
 - data/spec/fixtures/schedule_radio_yesterday.json +1118 -0
 - data/spec/fixtures/schedule_tv.json +1695 -0
 - data/spec/fixtures/sport.json +38 -0
 - data/spec/spec_helper.rb +13 -0
 - metadata +170 -0
 
| 
         @@ -0,0 +1,38 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            {
         
     | 
| 
      
 2 
     | 
    
         
            +
                "entries": [
         
     | 
| 
      
 3 
     | 
    
         
            +
                    {
         
     | 
| 
      
 4 
     | 
    
         
            +
                        "headline": "Norwegian slopestyle snowboarder Torstein Horgmo, a Sochi 2014 medal favourite, in hospital after training crash",
         
     | 
| 
      
 5 
     | 
    
         
            +
                        "isBreaking": "false",
         
     | 
| 
      
 6 
     | 
    
         
            +
                        "isLive": "false",
         
     | 
| 
      
 7 
     | 
    
         
            +
                        "mediaType": "Standard",
         
     | 
| 
      
 8 
     | 
    
         
            +
                        "prompt": "WINTER OLYMPICS"
         
     | 
| 
      
 9 
     | 
    
         
            +
                    },
         
     | 
| 
      
 10 
     | 
    
         
            +
                    {
         
     | 
| 
      
 11 
     | 
    
         
            +
                        "headline": "Leeds boss Brian McDermott will report as normal at the club's training ground on Monday despite appearing to be sacked on Friday",
         
     | 
| 
      
 12 
     | 
    
         
            +
                        "isBreaking": "false",
         
     | 
| 
      
 13 
     | 
    
         
            +
                        "isLive": "false",
         
     | 
| 
      
 14 
     | 
    
         
            +
                        "mediaType": "Standard",
         
     | 
| 
      
 15 
     | 
    
         
            +
                        "prompt": "FOOTBALL",
         
     | 
| 
      
 16 
     | 
    
         
            +
                        "url": "http://www.bbc.co.uk/sport/0/football/26014775"
         
     | 
| 
      
 17 
     | 
    
         
            +
                    },
         
     | 
| 
      
 18 
     | 
    
         
            +
                    {
         
     | 
| 
      
 19 
     | 
    
         
            +
                        "headline": "British Olympic gold medallist Zac Purchase announces his retirement from professional rowing",
         
     | 
| 
      
 20 
     | 
    
         
            +
                        "isBreaking": "false",
         
     | 
| 
      
 21 
     | 
    
         
            +
                        "isLive": "false",
         
     | 
| 
      
 22 
     | 
    
         
            +
                        "mediaType": "Standard",
         
     | 
| 
      
 23 
     | 
    
         
            +
                        "prompt": "ROWING",
         
     | 
| 
      
 24 
     | 
    
         
            +
                        "url": "http://www.bbc.co.uk/sport/0/rowing/26011763"
         
     | 
| 
      
 25 
     | 
    
         
            +
                    },
         
     | 
| 
      
 26 
     | 
    
         
            +
                    {
         
     | 
| 
      
 27 
     | 
    
         
            +
                        "headline": "The Seattle Seahawks thrash the Denver Broncos 43-8 in Super Bowl XLVIII to win their first NFL title",
         
     | 
| 
      
 28 
     | 
    
         
            +
                        "isBreaking": "false",
         
     | 
| 
      
 29 
     | 
    
         
            +
                        "isLive": "false",
         
     | 
| 
      
 30 
     | 
    
         
            +
                        "mediaType": "Standard",
         
     | 
| 
      
 31 
     | 
    
         
            +
                        "prompt": "AMERICAN FOOTBALL",
         
     | 
| 
      
 32 
     | 
    
         
            +
                        "url": "http://www.bbc.co.uk/sport/0/american-football/26011983"
         
     | 
| 
      
 33 
     | 
    
         
            +
                    }
         
     | 
| 
      
 34 
     | 
    
         
            +
                ],
         
     | 
| 
      
 35 
     | 
    
         
            +
                "name": "ticker",
         
     | 
| 
      
 36 
     | 
    
         
            +
                "published": "",
         
     | 
| 
      
 37 
     | 
    
         
            +
                "version": "0.1"
         
     | 
| 
      
 38 
     | 
    
         
            +
            }
         
     | 
    
        data/spec/spec_helper.rb
    ADDED
    
    
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,170 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: auntie
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.0
         
     | 
| 
      
 5 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 6 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 7 
     | 
    
         
            +
            - Simon Gregory
         
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 9 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 10 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2014-02-03 00:00:00.000000000 Z
         
     | 
| 
      
 12 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 13 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 14 
     | 
    
         
            +
              name: rake
         
     | 
| 
      
 15 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 16 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 17 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 18 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 19 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 20 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 21 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 22 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 23 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 24 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 25 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 26 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 27 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 28 
     | 
    
         
            +
              name: rspec
         
     | 
| 
      
 29 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 30 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 31 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 32 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 33 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 34 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 35 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 36 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 37 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 38 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 39 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 40 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 41 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 42 
     | 
    
         
            +
              name: rdoc
         
     | 
| 
      
 43 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 44 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 45 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 46 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 47 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 48 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 49 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 50 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 51 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 52 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 53 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 54 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 55 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 56 
     | 
    
         
            +
              name: aruba
         
     | 
| 
      
 57 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 58 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 59 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 60 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 61 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 62 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 63 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 64 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 65 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 66 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 67 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 68 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 69 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 70 
     | 
    
         
            +
              name: anticipate
         
     | 
| 
      
 71 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 72 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 73 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 74 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 75 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 76 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 77 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 78 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 79 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 80 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 81 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 82 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 83 
     | 
    
         
            +
            description: Command line access to BBC services
         
     | 
| 
      
 84 
     | 
    
         
            +
            email: simon.gregory@bbc.co.uk
         
     | 
| 
      
 85 
     | 
    
         
            +
            executables:
         
     | 
| 
      
 86 
     | 
    
         
            +
            - weather
         
     | 
| 
      
 87 
     | 
    
         
            +
            - tv
         
     | 
| 
      
 88 
     | 
    
         
            +
            - radio
         
     | 
| 
      
 89 
     | 
    
         
            +
            - news
         
     | 
| 
      
 90 
     | 
    
         
            +
            - sport
         
     | 
| 
      
 91 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 92 
     | 
    
         
            +
            extra_rdoc_files: []
         
     | 
| 
      
 93 
     | 
    
         
            +
            files:
         
     | 
| 
      
 94 
     | 
    
         
            +
            - bin/news
         
     | 
| 
      
 95 
     | 
    
         
            +
            - bin/radio
         
     | 
| 
      
 96 
     | 
    
         
            +
            - bin/sport
         
     | 
| 
      
 97 
     | 
    
         
            +
            - bin/tv
         
     | 
| 
      
 98 
     | 
    
         
            +
            - bin/weather
         
     | 
| 
      
 99 
     | 
    
         
            +
            - features/location.feature
         
     | 
| 
      
 100 
     | 
    
         
            +
            - features/news.feature
         
     | 
| 
      
 101 
     | 
    
         
            +
            - features/radio.feature
         
     | 
| 
      
 102 
     | 
    
         
            +
            - features/sport.feature
         
     | 
| 
      
 103 
     | 
    
         
            +
            - features/step_definitions/location_steps.rb
         
     | 
| 
      
 104 
     | 
    
         
            +
            - features/step_definitions/radio_steps.rb
         
     | 
| 
      
 105 
     | 
    
         
            +
            - features/step_definitions/tv_steps.rb
         
     | 
| 
      
 106 
     | 
    
         
            +
            - features/step_definitions/weather_steps.rb
         
     | 
| 
      
 107 
     | 
    
         
            +
            - features/support/env.rb
         
     | 
| 
      
 108 
     | 
    
         
            +
            - features/tv.feature
         
     | 
| 
      
 109 
     | 
    
         
            +
            - features/weather.feature
         
     | 
| 
      
 110 
     | 
    
         
            +
            - Gemfile
         
     | 
| 
      
 111 
     | 
    
         
            +
            - Gemfile.lock
         
     | 
| 
      
 112 
     | 
    
         
            +
            - lib/auntie.rb
         
     | 
| 
      
 113 
     | 
    
         
            +
            - lib/bbc/location.rb
         
     | 
| 
      
 114 
     | 
    
         
            +
            - lib/bbc/news.rb
         
     | 
| 
      
 115 
     | 
    
         
            +
            - lib/bbc/now_next.rb
         
     | 
| 
      
 116 
     | 
    
         
            +
            - lib/bbc/schedule.rb
         
     | 
| 
      
 117 
     | 
    
         
            +
            - lib/bbc/shell/characters.rb
         
     | 
| 
      
 118 
     | 
    
         
            +
            - lib/bbc/shell/colors.rb
         
     | 
| 
      
 119 
     | 
    
         
            +
            - lib/bbc/shell/describe_time.rb
         
     | 
| 
      
 120 
     | 
    
         
            +
            - lib/bbc/sport.rb
         
     | 
| 
      
 121 
     | 
    
         
            +
            - lib/bbc/version.rb
         
     | 
| 
      
 122 
     | 
    
         
            +
            - lib/bbc/weather.rb
         
     | 
| 
      
 123 
     | 
    
         
            +
            - LICENSE
         
     | 
| 
      
 124 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 125 
     | 
    
         
            +
            - README.md
         
     | 
| 
      
 126 
     | 
    
         
            +
            - scratch
         
     | 
| 
      
 127 
     | 
    
         
            +
            - spec/bbc/location_spec.rb
         
     | 
| 
      
 128 
     | 
    
         
            +
            - spec/bbc/news_spec.rb
         
     | 
| 
      
 129 
     | 
    
         
            +
            - spec/bbc/now_next_spec.rb
         
     | 
| 
      
 130 
     | 
    
         
            +
            - spec/bbc/schedule_spec.rb
         
     | 
| 
      
 131 
     | 
    
         
            +
            - spec/bbc/sport_spec.rb
         
     | 
| 
      
 132 
     | 
    
         
            +
            - spec/bbc/version_spec.rb
         
     | 
| 
      
 133 
     | 
    
         
            +
            - spec/bbc/weather_spec.rb
         
     | 
| 
      
 134 
     | 
    
         
            +
            - spec/fixtures/3dayforecast.json
         
     | 
| 
      
 135 
     | 
    
         
            +
            - spec/fixtures/3hourlyforecast.json
         
     | 
| 
      
 136 
     | 
    
         
            +
            - spec/fixtures/location.json
         
     | 
| 
      
 137 
     | 
    
         
            +
            - spec/fixtures/news.json
         
     | 
| 
      
 138 
     | 
    
         
            +
            - spec/fixtures/now_next_radio.json
         
     | 
| 
      
 139 
     | 
    
         
            +
            - spec/fixtures/now_next_tv.json
         
     | 
| 
      
 140 
     | 
    
         
            +
            - spec/fixtures/schedule_radio_today.json
         
     | 
| 
      
 141 
     | 
    
         
            +
            - spec/fixtures/schedule_radio_tomorrow.json
         
     | 
| 
      
 142 
     | 
    
         
            +
            - spec/fixtures/schedule_radio_yesterday.json
         
     | 
| 
      
 143 
     | 
    
         
            +
            - spec/fixtures/schedule_tv.json
         
     | 
| 
      
 144 
     | 
    
         
            +
            - spec/fixtures/sport.json
         
     | 
| 
      
 145 
     | 
    
         
            +
            - spec/spec_helper.rb
         
     | 
| 
      
 146 
     | 
    
         
            +
            homepage: http://www.bbc.co.uk
         
     | 
| 
      
 147 
     | 
    
         
            +
            licenses: []
         
     | 
| 
      
 148 
     | 
    
         
            +
            metadata: {}
         
     | 
| 
      
 149 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 150 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 151 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 152 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 153 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 154 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 155 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 156 
     | 
    
         
            +
              - - '>='
         
     | 
| 
      
 157 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 158 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 159 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 160 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 161 
     | 
    
         
            +
              - - '>='
         
     | 
| 
      
 162 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 163 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 164 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 165 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 166 
     | 
    
         
            +
            rubygems_version: 2.0.14
         
     | 
| 
      
 167 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 168 
     | 
    
         
            +
            specification_version: 4
         
     | 
| 
      
 169 
     | 
    
         
            +
            summary: BBC news, weather, sport, and tv & radio schedules right in your shell
         
     | 
| 
      
 170 
     | 
    
         
            +
            test_files: []
         
     |