ginatra 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +14 -3
- data/config.yml +0 -2
- data/lib/ginatra/repo_list.rb +6 -8
- data/lib/ginatra/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7486b2e308bef06b35966a5b283ed57583769b56
|
4
|
+
data.tar.gz: 595c3170a2f8cd8633a4bd036fe81bd599c8fd1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeef96eb4c2bc7ea2b6130dbd8000beb76d7ef70f7181787dcfdb98dd3cf5850b1281e224cb667e42d7ba7df522589c37548201c27ae4fc77f65be2b8aac8bf7
|
7
|
+
data.tar.gz: 16af836e42d6d06c25783311e1dc332a9a6ea4f4e3d60cc7a417fa0a4a31826347dbb988fe32327f43887e893a0a9ad68c42a6cfcaa3e1dfff06394005f98ff4
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
## master
|
2
|
+
|
3
|
+
* Your contribution here.
|
4
|
+
|
5
|
+
## 4.0.2 (2015-01-15)
|
6
|
+
|
7
|
+
* Ignore files in `git_dirs` by default and remove `ignored_files` setting.
|
8
|
+
* Allow non git directories inside `git_dirs`.
|
9
|
+
|
10
|
+
## 4.0.1 (2015-01-08)
|
11
|
+
|
12
|
+
* Fix `RACK_ENV` setting in CLI that prevented to properly start Ginatra in
|
13
|
+
production mode.
|
14
|
+
|
15
|
+
## 4.0.0 Aurora (2015-01-07)
|
16
|
+
|
17
|
+
initial release of 4.x version
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ It's recommended to install it as a ruby gem, unless you know what you're doing.
|
|
32
32
|
Run the following command to install Ginatra from RubyGems:
|
33
33
|
|
34
34
|
```sh
|
35
|
-
gem install ginatra
|
35
|
+
gem install ginatra -v 4.0.1
|
36
36
|
```
|
37
37
|
|
38
38
|
Create config file (see [Configuration](#configuration) section in README).
|
@@ -52,6 +52,7 @@ Run the following commands to install Ginatra from source:
|
|
52
52
|
```sh
|
53
53
|
git clone git://github.com/NARKOZ/ginatra.git
|
54
54
|
cd ginatra/
|
55
|
+
git checkout v4.0.1
|
55
56
|
bundle
|
56
57
|
```
|
57
58
|
|
@@ -73,8 +74,6 @@ Create `~/.ginatra/config.yml` file with your own settings. See
|
|
73
74
|
`git_dirs` - Ginatra will look into these folders for git repositories. It's
|
74
75
|
required to append `*` at the end of path. Example: `/home/Development/repos/*`
|
75
76
|
|
76
|
-
`ignored_files` - files to ignore in `git_dirs`
|
77
|
-
|
78
77
|
`description` - description of web interface. Used in index page.
|
79
78
|
|
80
79
|
`port` - port that Ginatra server will run at.
|
@@ -92,6 +91,18 @@ If you installed Ginatra as an app, you can change settings by editing
|
|
92
91
|
|
93
92
|
You need to restart web server after applying changes to config file.
|
94
93
|
|
94
|
+
## CLI
|
95
|
+
|
96
|
+
You can interact with Ginatra via CLI. The following commands are available:
|
97
|
+
|
98
|
+
```sh
|
99
|
+
ginatra run # Starts Ginatra server
|
100
|
+
ginatra stop # Stops Ginatra server
|
101
|
+
ginatra status # Checks status of the Ginatra server (running or not)
|
102
|
+
ginatra -v # Shows version of Ginatra
|
103
|
+
ginatra -h # Lists available commands and their options
|
104
|
+
```
|
105
|
+
|
95
106
|
## How to Contribute
|
96
107
|
|
97
108
|
Open issues are labeled per perceived difficulty. See [contributing
|
data/config.yml
CHANGED
data/lib/ginatra/repo_list.rb
CHANGED
@@ -28,17 +28,19 @@ module Ginatra
|
|
28
28
|
# and adds them if they're not already there.
|
29
29
|
def refresh
|
30
30
|
list.clear
|
31
|
-
Ginatra.config.git_dirs.map do |git_dir|
|
32
31
|
|
32
|
+
Ginatra.config.git_dirs.map do |git_dir|
|
33
33
|
if Dir.exist?(git_dir.chop)
|
34
|
-
|
34
|
+
dirs = Dir.glob(git_dir).sort
|
35
35
|
else
|
36
36
|
dir = File.expand_path("../../../#{git_dir}", __FILE__)
|
37
|
-
|
37
|
+
dirs = Dir.glob(dir).sort
|
38
38
|
end
|
39
39
|
|
40
|
-
|
40
|
+
dirs = dirs.select {|f| File.directory? f }
|
41
|
+
dirs.each {|d| add(d) }
|
41
42
|
end
|
43
|
+
|
42
44
|
list
|
43
45
|
end
|
44
46
|
|
@@ -53,10 +55,6 @@ module Ginatra
|
|
53
55
|
begin
|
54
56
|
list << Repo.new(path)
|
55
57
|
rescue Rugged::RepositoryError
|
56
|
-
# If the path is not a git repository, then this error is raised
|
57
|
-
# and causes an error page to result.
|
58
|
-
# Is it preferable to just log that the error happened and not show the error page?
|
59
|
-
raise Ginatra::Error, "Invalid git repository at #{path}. Did you create the directory and forget to run 'git init' inside that directory?"
|
60
58
|
end
|
61
59
|
end
|
62
60
|
list
|
data/lib/ginatra/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ginatra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nihad Abbasov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-01-
|
13
|
+
date: 2015-01-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sinatra
|
@@ -162,6 +162,7 @@ extra_rdoc_files: []
|
|
162
162
|
files:
|
163
163
|
- ".gitignore"
|
164
164
|
- ".travis.yml"
|
165
|
+
- CHANGELOG.md
|
165
166
|
- CONTRIBUTING.md
|
166
167
|
- Gemfile
|
167
168
|
- LICENSE.txt
|