bbc_redux 0.4.9.pre → 0.4.10.pre

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.
Files changed (3) hide show
  1. data/bin/bbc-redux +21 -28
  2. data/lib/bbc/redux/version.rb +1 -1
  3. metadata +3 -3
@@ -78,9 +78,27 @@ def parse_options( input )
78
78
  opts.on_tail( '-h', '--help', 'Show this message' ) do
79
79
  puts opts
80
80
 
81
- file = File.expand_path($0)
82
- data = File.read(file).split(/^__END__$/)[1]
83
- puts data
81
+ puts ""
82
+ puts "examples:"
83
+ puts ""
84
+ puts "You MUST set either of these environment variables:"
85
+ puts ""
86
+ puts " REDUX_TOKEN # A valid session token"
87
+ puts " REDUX_USERNAME & REDUX_PASSWORD # Your credentials"
88
+ puts ""
89
+ puts "You may then us the client, some examples below:"
90
+ puts ""
91
+ puts " # Listing channels"
92
+ puts " $: bbc-redux --list-channels"
93
+ puts ""
94
+ puts " # Downloading json metadata for an asset"
95
+ puts " $: bbc-redux --metadata --id 6008591816398520492"
96
+ puts ""
97
+ puts " # Downloading MP3 files for a week of The Archers"
98
+ puts " $: bbc-redux -p mp3 -q 'The Archers' -a 2014-W01 -b 2014-W02"
99
+ puts ""
100
+ puts " # Downloading TS files for a day of BBC One"
101
+ puts " $: bbc-redux -p ts -c bbcone -a 2014-01-01 -b 2014-01-02"
84
102
 
85
103
  exit
86
104
  end
@@ -301,28 +319,3 @@ runner = BBC::Redux::CLI.new( options.merge({
301
319
  }))
302
320
 
303
321
  runner.run
304
-
305
- ################################################################################
306
- # EXTENDED USAGE INFO
307
-
308
- __END__
309
- examples:
310
-
311
- To use the client you must have set one of these environment variables:
312
-
313
- REDUX_TOKEN # A valid session token
314
- REDUX_USERNAME & REDUX_PASSWORD # Your credentials
315
-
316
- You may then us the client, some examples below:
317
-
318
- # Listing channels
319
- $: bbc-redux --list-channels
320
-
321
- # Downloading json metadata for an asset
322
- $: bbc-redux --metadata --id 6008591816398520492
323
-
324
- # Downloading MP3 files for a week of The Archers
325
- $: bbc-redux -p mp3 -q 'The Archers' -a 2014-W01 -b 2014-W02
326
-
327
- # Downloading TS files for a day of BBC One
328
- $: bbc-redux -p ts -c bbcone -a 2014-01-01 -b 2014-01-02
@@ -2,7 +2,7 @@ module BBC
2
2
  module Redux
3
3
 
4
4
  # Library version
5
- VERSION = '0.4.9.pre'
5
+ VERSION = '0.4.10.pre'
6
6
 
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbc_redux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9.pre
5
- prerelease: 6
4
+ version: 0.4.10.pre
5
+ prerelease: 7
6
6
  platform: ruby
7
7
  authors:
8
8
  - JamesHarrison
@@ -218,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  segments:
220
220
  - 0
221
- hash: 2960852599503772287
221
+ hash: 4312385580106434838
222
222
  required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  none: false
224
224
  requirements: