yhara-tickets 0.1.0.1 → 0.1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/TODO CHANGED
@@ -1,3 +1,11 @@
1
+ = How to release
2
+
3
+ * (edit TODO)
4
+ * edit VERSION in bin/tickets-server
5
+ * rtask -> update version
6
+ * build gem test
7
+ * Then, push it!
8
+
1
9
  = before 1.x.x
2
10
 
3
11
  - write server tests
@@ -30,7 +38,6 @@
30
38
 
31
39
  = before 0.4.0
32
40
 
33
- - change orm to datamapper(or ActiveRecord?)
34
41
  - implement tags
35
42
  - different color
36
43
  - show certain tag only
@@ -38,6 +45,7 @@
38
45
 
39
46
  = before 0.3.0
40
47
 
48
+ - change orm to datamapper(or ActiveRecord?)
41
49
  - memorize date when a ticket is created
42
50
  - memorize date when a ticket is deleted
43
51
 
@@ -45,7 +53,17 @@
45
53
 
46
54
  - edit ticket body
47
55
 
48
- = before 0.1.0
56
+ = before 0.1.1
57
+
58
+ - stick to board edge
59
+
60
+ = before 0.1.0.2
61
+
62
+ - fix track?
63
+ + fix ticket position when generated
64
+ + fix move position
65
+
66
+ = 0.1.0.1
49
67
 
50
68
  + add Tickets::VERSION
51
69
 
@@ -4,7 +4,7 @@ require 'ramaze'
4
4
  require 'ramaze/setup'
5
5
 
6
6
  module Tickets
7
- VERSION = "0.1.0.1"
7
+ VERSION = "0.1.0.2"
8
8
  end
9
9
 
10
10
  # load config
@@ -17,11 +17,11 @@ module Tickets
17
17
  DB_PATH = File.expand_path("~/.tickets.db") unless defined?(DB_PATH)
18
18
  PORT = 7007 unless defined?(PORT)
19
19
 
20
- SHAKE_INTERVAL = 24 # hours
21
- SHAKE_DISTANCE = 8 # pixels
20
+ SHAKE_INTERVAL = 24 unless defined?(SHAKE_INTERVAL) # hours
21
+ SHAKE_DISTANCE = 8 unless defined?(SHAKE_DISTANCE) # pixels
22
22
 
23
- BOARD_WIDTH = 600 # pixels
24
- BOARD_HEIGHT = 600 # pixels
23
+ BOARD_WIDTH = 600 unless defined?(BOARD_WIDTH) # pixels
24
+ BOARD_HEIGHT = 600 unless defined?(BOARD_HEIGHT) # pixels
25
25
  end
26
26
  end
27
27
 
@@ -5,7 +5,7 @@
5
5
  (define (ticket-create)
6
6
  (let1 result (read-from-string (http-request "tickets/create"))
7
7
  (if (eq? (car result) 'id)
8
- (ticket-new! (cdr result) "" (/ *width* 2) (/ *height* 2))
8
+ (ticket-new! (cdr result) "" 0 0)
9
9
  (show-error "error: failed to create new ticket"))))
10
10
 
11
11
  (define (ticket-move id x y)
@@ -18,7 +18,7 @@
18
18
  (call-with-values
19
19
  (lambda () (get-position ticket-div))
20
20
  (lambda (x y)
21
- (ticket-move (js-ref ticket-div "ticket-id") x y))))
21
+ (ticket-move (js-ref ticket-div "ticket-id") (- x (/ *width* 2)) (- y (/ *height* 2))))))
22
22
 
23
23
  ; the ticket-div currently shown
24
24
  (define *current-ticket* #f)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{tickets}
5
- s.version = "0.1.0.1"
5
+ s.version = "0.1.0.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Yutaka HARA"]
@@ -2,7 +2,7 @@
2
2
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
5
- <title>Hello World</title>
5
+ <title>tickets</title>
6
6
  <style>
7
7
  div#field{
8
8
  border:1px solid black; float:left; margin:0.5em; padding:0.5em;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yhara-tickets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.1
4
+ version: 0.1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yutaka HARA