get_freaky 0.2.0 → 0.3.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: 47c57b669caf236bdfc64a796c895331b9629fb9
4
- data.tar.gz: f65a8e1c888d6f59f4ca31d7c889f8ff412bda21
3
+ metadata.gz: cd9a568627ed1bfc123b1379ef94ac04b27f35c4
4
+ data.tar.gz: 126773bf0a32042076d10ebc7994ae5e710fcd32
5
5
  SHA512:
6
- metadata.gz: ade9ef4ab79dc358e3ca4780357cf569a1c68a98eef6f27a66797e3aabda3af0445a95a285f77adbb38f8b1c2b4ac791245c19000107463a6200d891484788b2
7
- data.tar.gz: e7a9480ae2e64f88b452a20188c2499dd5e22739ffa55e3eeaccd45dc751dae14cfa61259e03494f04e694436dd10c57986202c6d76babad5df20a93dcaaf6b7
6
+ metadata.gz: fd8f6dad18d40da39937eab8b8dbfb8198afe4997e3498ec4763ee1a1e78777a71da77e874e1f3f57452f996fce60138d3b36fe8d8e657e8612976a80fc5e3f8
7
+ data.tar.gz: b4aa75f699b37ddc9209aa867377a19c58401c64750190ae3b2e64626b13673b722c8a6f401d48ba50e115e85ff142591a5b95ed52eeb77a8bed0b2c820c1e99
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # GetFreaky
2
2
 
3
- All around the world there are great conferences on software, programming languages, web development and more. But conferences are expensive! [Confreaks](confreaks.tv) is a website that posts videos from over two hundred conferences. ```get_freaky``` is a ruby gem that aims to provide a simple command-line interface to the confreaks api to make it easier to browse videos from confreaks.tv and download them for offline viewing.
3
+ All around the world there are great conferences on software, programming languages, web development and more. But conferences are expensive! [Confreaks](http://www.confreaks.tv) is a website that posts videos from over two hundred conferences. ```get_freaky``` is a ruby gem that aims to provide a simple command-line interface to the confreaks api to make it easier to browse videos from confreaks.tv and download them for offline viewing.
4
4
 
5
5
  ## Installation
6
6
 
@@ -10,17 +10,15 @@ Just install locally with rubygems:
10
10
 
11
11
  ## For the Impatient
12
12
 
13
- Just run
13
+ You can save time browsing around for videos and just check out what the featured video for today happens to be and download it if it sounds interesting. Just run:
14
14
 
15
15
  $ get_freaky featured
16
16
 
17
- You'll get the title and a short description of the current *featured video* and if you'd like, you can download it automatically. Not an interesting subject to you? Run the command again--the featured video changes each time. (I'm actually not sure how featured is chosen but just anecdotally they seem to be popular videos from more well-known speakers) so you can run the command again to get a look at a different video.
17
+ You'll get the title and a short description of the current *featured video* and you'll be asked if you'd like to download it. Not an interesting subject to you? Run the command again--the featured video changes each time. (I'm actually not sure how featured is chosen but just anecdotally they seem to be popular videos from more well-known speakers).
18
18
 
19
- And if you already know a video you want, you can start downloading a video right away:
19
+ Adding the ```--download``` option will download the video automatically without prompting. This can be nice for scripting purposes, like if you wanted to create a cron job to automatically download a conference video evey week.
20
20
 
21
- $ get_freaky download "The Future of Online Learning" railsberry2013
22
-
23
- passing in the name of the video and the event its from.
21
+ $ get_freaky featured --download
24
22
 
25
23
  ## Usage
26
24
 
@@ -28,19 +26,35 @@ The command for the executable is the same as the name of the gem: ```get_freaky
28
26
 
29
27
  $ get_freaky
30
28
 
31
- By itself shows you all the currently available commands and is generally more up to date than this readme.
29
+ …which is the same as
30
+
31
+ $ get_freaky --help
32
+
33
+ shows you all the currently available commands. It's close at hand and generally more up to date than this readme!
34
+
35
+ For any of these commands the ```--help``` flag will give you more usage details.
36
+
37
+ ### Browsing Conference Events
38
+ confreaks distinguishes from *conferences* and *events*. Conferences are the name of some regularly occurring conference whereas the event is the specific instance of that conference in a particular year. For instance RailsConf is a conference where RailsConf2015 is an event for rails conf.
39
+
40
+ You can browse all the events for a given conference with the conf command:
32
41
 
33
42
  $ get_freaky conf CONF_NAME
34
43
 
44
+ And you'll get a list of all the available events for the conference
45
+
46
+ ### Browsing conference videos for a specific event
47
+ Browse all the conference videos at a particular event with the ```event``` command:
48
+
35
49
  $ get_freaky event EVENT_NAME
36
50
 
37
- $ get_freaky download EVENT_NAME TALK_TITLE
51
+ This will give you a numbered list of all the videos at an event. You'll be prompted to select one of the numbered list for more information (just hit ctrl-c if you're not interested in any of them). When you do, you'll be given more information about that video and be asked if you'd like to download the video
38
52
 
39
- For any of these commands the ```--help``` flag will give you more usage details.
53
+ ### Downloading a specific conference video
40
54
 
41
- Adding the ```--download``` option will download the video automatically without prompting. This can be nice for scripting purposes, if you want to create a cron job to automatically download a conference video every week for example.
55
+ If you already know a video you want for some reason, you can use the ```download``` command and pass in the talk name and the event name to start downloading the video:
42
56
 
43
- $ get_freaky featured --download
57
+ $ get_freaky download "The Future of Online Learning" railsberry2013
44
58
 
45
59
  ## Development
46
60
 
data/bin/get_freaky CHANGED
@@ -33,6 +33,21 @@ command :conf do |c|
33
33
  end
34
34
  end
35
35
 
36
+ command :conf_all do |c|
37
+ c.syntax = 'get_freaky conf_all'
38
+ c.summary = 'Displays names of all conferences'
39
+ c.description = c.summary # Because we're lazy
40
+ c.example 'List names of all conferences', 'get_freaky conf_all'
41
+ c.action do |args|
42
+ if args[0]
43
+ puts `get_freaky conf_all --help`
44
+ else
45
+ conferences = Conference.all
46
+ puts conferences
47
+ end
48
+ end
49
+ end
50
+
36
51
  command :event do |c|
37
52
  c.syntax = 'get_freaky event NAME [options]'
38
53
  #c.summary = 'Displays information about an event (an instance of a conference in a particular year)'
@@ -30,6 +30,11 @@ class Conference
30
30
  end
31
31
  end
32
32
 
33
+ def self.all
34
+ conferences = get("/conferences.json")
35
+ conference_names = conferences.collect{|c| c["name"]}
36
+ end
37
+
33
38
  def event_list
34
39
  if events == "Not Found"
35
40
  "There was no conference found by that name."
@@ -1,4 +1,4 @@
1
1
  module GetFreaky
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  DATE = %q{2015-05-14}
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get_freaky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Mariano Cabrera
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  version: '0'
190
190
  requirements: []
191
191
  rubyforge_project:
192
- rubygems_version: 2.2.2
192
+ rubygems_version: 2.4.7
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: Get Freaky!