rateless_bot 0.3.2 → 0.3.3

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: 6e0cef5ee4dad023b92369f90d375fa5b3ebb50b
4
- data.tar.gz: 4934a189779b1bb984420b632a8091fb47e1f01e
3
+ metadata.gz: 085eca275d6a70d8b2ed764c0497b023e2821424
4
+ data.tar.gz: 8d614d3e2f0d3abaefe3345b36ee35fb139220eb
5
5
  SHA512:
6
- metadata.gz: 9cc86e469814384f1d547383f6bcfeb848c9648338b123ed92ca12ff84da5e6656b3879e86323e9a58fe180cca766ea61e05231781eb6499518c7195e582cde3
7
- data.tar.gz: 48981a9d9c651b8b90f508a61d2394dc14086ac22e756ba75651884d92218cf5bb0b7421f4235f1aca3b89633eb0dec534e7b9864bef5b14b45e1bb8aea8e86c
6
+ metadata.gz: 74f8ed2847c31701fce86959b109c9cf7e3e14873f44795bcf307514c2f0bab239d69b08fa2afd8992134faf47c386bac2dc8f1ba58e00580318c3c03eee773b
7
+ data.tar.gz: 801af26a80b9a7a86646e0876d3d7459106a64cf23b3a59c967ea636a254688bd43568a5cde69e46002338bb1a31f9f24ab60fc5e805cc90fdb9db790681bc46
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in rateless_bot.gemspec
4
4
  gemspec
5
+
6
+ gem 'video_info', git: 'https://github.com/vheuken/video_info.git', branch: 'youtube-scraper'
data/Gemfile.lock CHANGED
@@ -1,10 +1,22 @@
1
+ GIT
2
+ remote: https://github.com/vheuken/video_info.git
3
+ revision: 177c86440e931acfb6f0b0359da9b4ae51c4c104
4
+ branch: youtube-scraper
5
+ specs:
6
+ video_info (2.4.2)
7
+ addressable
8
+ htmlentities
9
+ iso8601
10
+ multi_json (~> 1.11)
11
+ oga
12
+ open_uri_redirections
13
+
1
14
  PATH
2
15
  remote: .
3
16
  specs:
4
- rateless_bot (0.2.0)
17
+ rateless_bot (0.3.2)
5
18
  cinch
6
19
  lastfm
7
- video_info
8
20
 
9
21
  GEM
10
22
  remote: https://rubygems.org/
@@ -15,29 +27,35 @@ GEM
15
27
  minitest (~> 5.1)
16
28
  thread_safe (~> 0.3, >= 0.3.4)
17
29
  tzinfo (~> 1.1)
18
- addressable (2.3.7)
19
- cinch (2.2.4)
30
+ addressable (2.3.8)
31
+ ansi (1.5.0)
32
+ ast (2.0.0)
33
+ cinch (2.2.5)
20
34
  htmlentities (4.3.3)
21
- httparty (0.13.3)
35
+ httparty (0.13.5)
22
36
  json (~> 1.8)
23
37
  multi_xml (>= 0.5.2)
24
38
  i18n (0.7.0)
25
- json (1.8.2)
39
+ iso8601 (0.8.6)
40
+ json (1.8.3)
26
41
  lastfm (1.26.0)
27
42
  activesupport (>= 3.2.0)
28
43
  httparty
29
44
  xml-simple
30
- minitest (5.5.1)
45
+ minitest (5.7.0)
31
46
  multi_json (1.11.0)
32
47
  multi_xml (0.5.5)
48
+ oga (1.0.1)
49
+ ast
50
+ ruby-ll (~> 2.1)
51
+ open_uri_redirections (0.2.1)
33
52
  rake (10.4.2)
53
+ ruby-ll (2.1.1)
54
+ ansi
55
+ ast
34
56
  thread_safe (0.3.5)
35
57
  tzinfo (1.2.2)
36
58
  thread_safe (~> 0.1)
37
- video_info (2.4.2)
38
- addressable
39
- htmlentities
40
- multi_json
41
59
  xml-simple (1.1.5)
42
60
 
43
61
  PLATFORMS
@@ -47,3 +65,7 @@ DEPENDENCIES
47
65
  bundler (~> 1.9)
48
66
  rake (~> 10.0)
49
67
  rateless_bot!
68
+ video_info!
69
+
70
+ BUNDLED WITH
71
+ 1.10.2
data/README.md CHANGED
@@ -11,9 +11,26 @@ Once you have RubyGems, simply install it like so:
11
11
  $ gem install rateless_bot
12
12
 
13
13
  ## Usage
14
-
15
- TODO: Write usage instructions here
16
-
14
+ Launch Options:
15
+
16
+ $ rateless_bot -h
17
+ Usage: rateless_bot [options]
18
+ --nick NICK Bot's nick (required)
19
+ --server SERVER IRC server (required)
20
+ --channel CHANNEL IRC channel (required)
21
+ --lastfm-api-key KEY LastFM API key
22
+ --lastfm-api-secret SECRET LastFM secret API key
23
+ -h, --help Prints this help
24
+
25
+ Interacting with the bot:
26
+
27
+ <vheuken> !help
28
+ -Rateless-Bot- List of commands:
29
+ -Rateless-Bot- !flipcoin - flips a coin
30
+ -Rateless-Bot- !roll XdY - rolls dice (replace X with number of dice and Y with number of sides)
31
+ -Rateless-Bot- !lastfm USERNAME - gets the most recently listened-to track for a given user
32
+ -Rateless-Bot- !8ball - Magic Eight Ball
33
+
17
34
  ## Development
18
35
 
19
36
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
data/bin/console CHANGED
File without changes
data/bin/setup CHANGED
File without changes
@@ -1,13 +1,17 @@
1
1
  require 'cinch'
2
2
 
3
3
  class Help
4
+ def help
5
+ '!help - shows this help message'
6
+ end
7
+
4
8
  include Cinch::Plugin
5
9
 
6
10
  match "help"
7
11
 
8
12
  def execute(m)
9
13
  m.user.notice("List of commands:")
10
-
14
+
11
15
  bot.plugins.each do |p|
12
16
  if p.respond_to? :help
13
17
  m.user.notice(p.help)
@@ -1,3 +1,3 @@
1
1
  module RatelessBot
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
data/rateless_bot.gemspec CHANGED
@@ -23,6 +23,5 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
 
25
25
  spec.add_dependency "cinch"
26
- spec.add_dependency "video_info"
27
26
  spec.add_dependency "lastfm"
28
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rateless_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Heuken
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-03-25 00:00:00.000000000 Z
11
+ date: 2015-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: video_info
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: lastfm
71
57
  requirement: !ruby/object:Gem::Requirement