ric 0.11.10 → 0.11.11
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.yml +2 -0
- data/VERSION +1 -1
- data/bin/septober +10 -7
- data/ric.gemspec +2 -2
- metadata +4 -4
data/HISTORY.yml
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.11.
|
1
|
+
0.11.11
|
data/bin/septober
CHANGED
@@ -14,13 +14,14 @@
|
|
14
14
|
septober.heroku.com client to add and list todos!
|
15
15
|
|
16
16
|
@history:
|
17
|
+
0.9.5 2011-02-08 more concise 'add'
|
17
18
|
0.9.4 2011-02-04 added 'done' action (and 'delete' ?)
|
18
19
|
0.9.3 2011-02-04 better 'list'
|
19
20
|
0.9.2 2011-02-04 'add' operation succefully added!
|
20
21
|
0.9.1 2011-01-18 First version
|
21
22
|
############################################################
|
22
23
|
=end
|
23
|
-
$PROG_VER = '0.9.
|
24
|
+
$PROG_VER = '0.9.5'
|
24
25
|
|
25
26
|
require 'optparse'
|
26
27
|
require 'rubygems'
|
@@ -149,8 +150,13 @@
|
|
149
150
|
} if all
|
150
151
|
end
|
151
152
|
|
153
|
+
=begin
|
154
|
+
Adds a todo with just the subject, the server takes it and parses and does the magic
|
155
|
+
to assing the correct ptoject and stuff..
|
156
|
+
=end
|
152
157
|
def todo_add(words_from_argv)
|
153
158
|
puts bannerino( "Add(#{words_from_argv})" )
|
159
|
+
# TODO put this into begin/end/catch !!!
|
154
160
|
t = RemoteTodo.create(
|
155
161
|
:name => words_from_argv,
|
156
162
|
:description => "sent by CLI #{$0} v.#{$PROG_VER}, due tomorrow by test",
|
@@ -161,13 +167,10 @@
|
|
161
167
|
#:priority => 4
|
162
168
|
)
|
163
169
|
deb "DEB todo: #{t}"
|
164
|
-
ret = t.save
|
165
|
-
if t.errors
|
166
|
-
pred "Some errors: '#{t.errors.full_messages}'"
|
167
|
-
end
|
168
|
-
#puts "save returned: #{ret}"
|
170
|
+
ret = t.save
|
171
|
+
puts "Some errors: '#{red t.errors.full_messages.to_s}'" if t.errors and t.errors.to_s != ''
|
169
172
|
if ret
|
170
|
-
|
173
|
+
puts "Todo created successfully: ##{green t.id.to_s}" # just provides the Id
|
171
174
|
else
|
172
175
|
pred "Some error saving todo: #{t.inspect}"
|
173
176
|
end
|
data/ric.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{ric}
|
5
|
-
s.version = "0.11.
|
5
|
+
s.version = "0.11.11"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Riccardo Carlesso"]
|
9
|
-
s.date = %q{2011-02-
|
9
|
+
s.date = %q{2011-02-08}
|
10
10
|
s.description = %q{My first gem with various utilities (colors and tests now).
|
11
11
|
My name is Riccardo, hence 'ric' (ok I admit it, this was just ot prove Im able to build a sentence
|
12
12
|
with hence!)}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 37
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 11
|
9
|
-
-
|
10
|
-
version: 0.11.
|
9
|
+
- 11
|
10
|
+
version: 0.11.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Riccardo Carlesso
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-08 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|