twitter_ebooks 2.0.9 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # twitter\_ebooks 2.0.9
1
+ # twitter\_ebooks 2.1.0
2
2
 
3
3
  Complete rewrite of twitter\_ebooks. Allows context-sensitive responsive bots via the Twitter streaming API, along with higher-quality ngram modeling. Still needs a bit of cleaning and documenting.
4
4
 
data/bin/ebooks CHANGED
@@ -5,29 +5,29 @@ require 'twitter_ebooks'
5
5
  module Ebooks
6
6
  APP_PATH = Dir.pwd # XXX do some recursive thing instead
7
7
 
8
- def self.new(target)
8
+ def self.new(reponame)
9
9
  usage = "Usage: ebooks new <reponame>"
10
10
 
11
- if target.nil?
11
+ if reponame.nil?
12
12
  log usage
13
13
  exit
14
14
  end
15
15
 
16
- target = "./#{reponame}"
16
+ reponame = "./#{reponame}"
17
17
 
18
- if File.exists?(target)
19
- log "#{target} already exists. Please remove if you want to recreate."
18
+ if File.exists?(reponame)
19
+ log "#{reponame} already exists. Please remove if you want to recreate."
20
20
  exit
21
21
  end
22
22
 
23
- FileUtils.cp_r(SKELETON_PATH, target)
23
+ FileUtils.cp_r(SKELETON_PATH, reponame)
24
24
 
25
- File.open(File.join(target, 'bots.rb'), 'w') do |f|
25
+ File.open(File.join(reponame, 'bots.rb'), 'w') do |f|
26
26
  template = File.read(File.join(SKELETON_PATH, 'bots.rb'))
27
27
  f.write(template.gsub("{{BOT_NAME}}", reponame))
28
28
  end
29
29
 
30
- log "New twitter_ebooks app created at #{target}"
30
+ log "New twitter_ebooks app created at #{reponame}"
31
31
  end
32
32
 
33
33
  def self.consume(pathes)
@@ -1,3 +1,3 @@
1
1
  module Ebooks
2
- VERSION = "2.0.9"
2
+ VERSION = "2.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter_ebooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-14 00:00:00.000000000 Z
12
+ date: 2013-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest