bin/septober in ric-0.12.2 vs bin/septober in ric-0.13.0

- old
+ new

@@ -1,7 +1,17 @@ #!/usr/bin/env ruby +#print "[DEB] ruby version: #{RUBY_VERSION}\n" + +# TESTED with ruby 2.5.1 +#if Integer(RUBY_VERSION.split('.')[0]) > 1 ; then +# print "Ruby to advanced for this shogram(version: #{RUBY_VERSION}): aborting" +# #fatal 42 "ruby too new" +#end + +#exit 1 + =begin ############################################################ @author: Riccardo Carlesso @email: riccardo.carlesso@gmail.com @url: http://github.com/palladius/septober @@ -18,11 +28,11 @@ API: add actions (done, toggle, ..., due <today|tomorrow|monday> ) ########################################################### =end - $PROG_VER = '1.0.0' +$PROG_VER = '1.0.1' =begin @history: 0.9.8 2011-02-10 Added timeout (works) and a broken prototype for :edit 0.9.7 2011-02-09 mini banner WITH version (not to get nuts again thru versions!). --conf now works! @@ -38,10 +48,11 @@ require 'optparse' require 'rubygems' require 'ric' #require 'active_resource' # not needed anymore, after ric gem v0.12.0 require 'socket' + require 'activeresource' include RubyClasses::Array $DEBUG = false @@ -98,11 +109,11 @@ $optparse.parse! RemoteTodo.import_config() end ################################################################################################################################################# - class RemoteTodo < ActiveResource::Base +class RemoteTodo < ActiveResource::Base # With a singleton u can define the accessors of the class (attr accessor for self!) #class << self # attr_accessor :description # = '-' #end self.site = "http://septober.example.com/" # uninitialized @@ -115,10 +126,10 @@ site: "http://localhost:3000/api/" # or http://septober.heroku.com/api/ user: guest password: guest description: My Rails 3 development (guest//guest shuld work for real This is NOT a random thing) RiccardoHeroku: &RICCARDO_HEROKU - site: "http://septober.heroku.com/api/" # or http://septober.heroku.com/api/ + site: "http://septober.palladi.us/api/" user: YOURUSERNAME password: YOURPASSWORD description: this server exists but is REALLY slow.. Your server: site: http://your_server.example.com/api/