ztrening 0.0.1 → 0.0.2

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.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/bin/zt +7 -1
  3. data/lib/ztrening.rb +1 -1
  4. metadata +3 -3
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.0.2 2010-06-30
2
+
3
+ * resque file opening
4
+
1
5
  === 0.0.1 2010-06-30
2
6
 
3
7
  * 1 major enhancement:
data/bin/zt CHANGED
@@ -32,7 +32,13 @@ if ARGV[0] == 'refresh'
32
32
  elsif ARGV[0] == 'open' && ARGV[1]
33
33
  # TODO: maknuti gore const file regex
34
34
  z = Ztrening.new
35
- file = File.new(ARGV[1], 'r')
35
+ if File.exists? ARGV[1]
36
+ file = File.new(ARGV[1], 'r')
37
+ else
38
+ puts "Datoteka #{ARGV[1]} ne postoji!"
39
+ exit
40
+ end
41
+
36
42
  prvalin = file.gets
37
43
  if !prvalin.grep @imefromfile_regex
38
44
  puts "Prva linija ne sadrzi ime zadatka"
data/lib/ztrening.rb CHANGED
@@ -6,7 +6,7 @@ class Array
6
6
  end
7
7
 
8
8
  module ZtreningM
9
- VERSION = '0.0.1'
9
+ VERSION = '0.0.2'
10
10
 
11
11
  class Ztrening
12
12
  def initialize(*opts)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztrening
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - BKrsta