2.1.0 - Fix skeleton init
This commit is contained in:
		
							parent
							
								
									95e96ceef9
								
							
						
					
					
						commit
						c1d91d1693
					
				
					 3 changed files with 10 additions and 10 deletions
				
			
		|  | @ -1,4 +1,4 @@ | |||
| # twitter\_ebooks 2.0.9 | ||||
| # twitter\_ebooks 2.1.0 | ||||
| 
 | ||||
| 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. | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										16
									
								
								bin/ebooks
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								bin/ebooks
									
										
									
									
									
								
							|  | @ -5,29 +5,29 @@ require 'twitter_ebooks' | |||
| module Ebooks | ||||
|   APP_PATH = Dir.pwd # XXX do some recursive thing instead | ||||
| 
 | ||||
|   def self.new(target) | ||||
|   def self.new(reponame) | ||||
|     usage = "Usage: ebooks new <reponame>" | ||||
| 
 | ||||
|     if target.nil? | ||||
|     if reponame.nil? | ||||
|       log usage | ||||
|       exit | ||||
|     end | ||||
| 
 | ||||
|     target = "./#{reponame}" | ||||
|     reponame = "./#{reponame}" | ||||
| 
 | ||||
|     if File.exists?(target) | ||||
|       log "#{target} already exists. Please remove if you want to recreate." | ||||
|     if File.exists?(reponame) | ||||
|       log "#{reponame} already exists. Please remove if you want to recreate." | ||||
|       exit | ||||
|     end | ||||
| 
 | ||||
|     FileUtils.cp_r(SKELETON_PATH, target)  | ||||
|     FileUtils.cp_r(SKELETON_PATH, reponame)  | ||||
| 
 | ||||
|     File.open(File.join(target, 'bots.rb'), 'w') do |f| | ||||
|     File.open(File.join(reponame, 'bots.rb'), 'w') do |f| | ||||
|       template = File.read(File.join(SKELETON_PATH, 'bots.rb')) | ||||
|       f.write(template.gsub("{{BOT_NAME}}", reponame)) | ||||
|     end | ||||
| 
 | ||||
|     log "New twitter_ebooks app created at #{target}" | ||||
|     log "New twitter_ebooks app created at #{reponame}" | ||||
|   end | ||||
| 
 | ||||
|   def self.consume(pathes) | ||||
|  |  | |||
|  | @ -1,3 +1,3 @@ | |||
| module Ebooks | ||||
|   VERSION = "2.0.9" | ||||
|   VERSION = "2.1.0" | ||||
| end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mispy
						Mispy