summary refs log blame commit diff stats
path: root/doc/howto-publish-a-release.txt
blob: 38cf07226c21b53ab1c27ee7aaf1fcd3a7fe33c9 (plain) (tree)


















                                                                     
                                                           






                                    
( ) test everything one last time:
( ) * make test
( ) * ./ranger.py [--clean]
( ) * ranger/ext/rifle.py
( ) * make install
( ) make a release commit:
( ) * update the number in the README
( ) * update the number in ranger/__init__.py
( ) * update the version number in ranger/ext/rifle.py
( ) * rebuild the man page with the updated number
( ) * write changelog entry
( ) * think of a witty commit message
( ) * change VERSION in ranger/__init__.py to something with "stable"
( ) * push the commit
( ) build .tar.gz with "make snapshot"
( ) make, make install and test the snapshot one last time
( ) update the website:
( ) * add the new version as ranger-stable.tar.gz
( ) * add the new version as ranger-X.Y.Z.tar.gz
( ) * update both signatures (gpg -u 0x00FB5CDF -sb <file>)
( ) * update the changelog
( ) * update the man page
( ) * rerun boobies.py
( ) announce the update
( ) * to the mailing list
( ) * in the arch linux forum
( ) * write a news entry on savannah
v0.2.1&id=b9d16fbfcc9032518cd464060276755a8d09caf4'>b9d16fb ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81







                       

                                

 
                                                             





                                                                        
                                               

                                                      




                                                                     

                                                           




                                                                     


                                                               

                                
 




                                                                     

                                                                 








                                                                     


                                                                 







                                                                     


                                                             








                                                                     

 
package main

import (
	"crypto/sha256"
	"fmt"
	"log"
	"net/http"
	"time"

	"github.com/gorilla/mux"
)

func apiBaseHandler(w http.ResponseWriter, r *http.Request) {
	timerfc3339, err := time.Now().MarshalText()
	if err != nil {
		log.Printf("Couldn't format time as RFC3339: %v\n", err)
	}
	etag := fmt.Sprintf("%x", sha256.Sum256(timerfc3339))
	w.Header().Set("ETag", etag)
	w.Header().Set("Content-Type", txtutf8)
	pathdata := []byte("\n\n" + r.URL.Path)
	timerfc3339 = append(timerfc3339, pathdata...)
	n, err := w.Write(timerfc3339)
	if err != nil || n == 0 {
		log.Printf("Error writing to HTTP stream: %v\n", err)
	}
}

func indexHandler(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", htmlutf8)
	n, err := w.Write([]byte(getwtxt))
	if err != nil || n == 0 {
		log.Printf("Error writing to HTTP stream: %v\n", err)
	}

}
func apiFormatHandler(w http.ResponseWriter, r *http.Request) {
	vars := mux.Vars(r)
	format := vars["format"]

	w.Header().Set("Content-Type", txtutf8)
	n, err := w.Write([]byte(format + "\n"))
	if err != nil || n == 0 {
		log.Printf("Error writing to HTTP stream: %v\n", err)
	}
}
func apiEndpointHandler(w http.ResponseWriter, r *http.Request) {
	vars := mux.Vars(r)
	format := vars["format"]
	endpoint := vars["endpoint"]

	w.Header().Set("Content-Type", htmlutf8)
	n, err := w.Write([]byte(format + "/" + endpoint))
	if err != nil || n == 0 {
		log.Printf("Error writing to HTTP stream: %v\n", err)
	}

}
func apiTagsBaseHandler(w http.ResponseWriter, r *http.Request) {
	vars := mux.Vars(r)
	format := vars["format"]

	w.Header().Set("Content-Type", htmlutf8)
	n, err := w.Write([]byte("api/" + format + "/tags"))
	if err != nil || n == 0 {
		log.Printf("Error writing to HTTP stream: %v\n", err)
	}

}
func apiTagsHandler(w http.ResponseWriter, r *http.Request) {
	vars := mux.Vars(r)
	format := vars["format"]
	tags := vars["tags"]

	w.Header().Set("Content-Type", htmlutf8)
	n, err := w.Write([]byte("api/" + format + "/" + tags))
	if err != nil || n == 0 {
		log.Printf("Error writing to HTTP stream: %v\n", err)
	}

}