twitter_ebooks 2.0.9 → 2.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.
- data/README.md +1 -1
- data/bin/ebooks +8 -8
- data/lib/twitter_ebooks/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
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(
|
8
|
+
def self.new(reponame)
|
9
9
|
usage = "Usage: ebooks new <reponame>"
|
10
10
|
|
11
|
-
if
|
11
|
+
if reponame.nil?
|
12
12
|
log usage
|
13
13
|
exit
|
14
14
|
end
|
15
15
|
|
16
|
-
|
16
|
+
reponame = "./#{reponame}"
|
17
17
|
|
18
|
-
if File.exists?(
|
19
|
-
log "#{
|
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,
|
23
|
+
FileUtils.cp_r(SKELETON_PATH, reponame)
|
24
24
|
|
25
|
-
File.open(File.join(
|
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 #{
|
30
|
+
log "New twitter_ebooks app created at #{reponame}"
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.consume(pathes)
|
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
|
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-
|
12
|
+
date: 2013-11-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|