yhara-tickets 0.1.0.1 → 0.1.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.
- data/TODO +20 -2
- data/bin/tickets-server +5 -5
- data/public/scm/ticket.scm +2 -2
- data/tickets.gemspec +1 -1
- data/view/index.xhtml +1 -1
- metadata +1 -1
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.
|
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
|
|
data/bin/tickets-server
CHANGED
@@ -4,7 +4,7 @@ require 'ramaze'
|
|
4
4
|
require 'ramaze/setup'
|
5
5
|
|
6
6
|
module Tickets
|
7
|
-
VERSION = "0.1.0.
|
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
|
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
|
|
data/public/scm/ticket.scm
CHANGED
@@ -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) ""
|
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)
|
data/tickets.gemspec
CHANGED
data/view/index.xhtml
CHANGED
@@ -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>
|
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;
|