chronicler 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/VERSION +1 -1
- data/lib/chronicler/cli.rb +13 -1
- data/lib/chronicler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e12638f49833634c4106b425e55f2afa2e3c2c5
|
4
|
+
data.tar.gz: f53195daee8c283fb707466feb0de113474919b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58289dedfee64b79296a0784221630460cfa65f153c295795917f1729eb9f2f2138a239d4ca9f9de766af2a4ba632ce8daf45705f080b6a892ce280ab1625bf9
|
7
|
+
data.tar.gz: 72f64853008c9e6701ed690b7863cc90f12ece8222254f16ef2f44b49e17416f27908d9629c0425a1006320768f70944646deb74eb33a86fdc7c2de85c2c3136
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## Chronicler CHANGELOG
|
2
2
|
|
3
|
+
### Version 0.1.3 (May 1, 2016)
|
4
|
+
|
5
|
+
* Added `switch`
|
6
|
+
* Corrected printing current repository before using another repository
|
7
|
+
* Added `crn -v` (also `crn --version`)
|
8
|
+
|
3
9
|
### Version 0.1.2 (March 14, 2016)
|
4
10
|
|
5
11
|
* Fixed creating gzipped database dumps
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/chronicler/cli.rb
CHANGED
@@ -26,7 +26,7 @@ class Chronicler
|
|
26
26
|
|
27
27
|
name ||= begin
|
28
28
|
no_repository_available! if repositories.empty?
|
29
|
-
postfix = " (on #{current})" if repositories.include?(current)
|
29
|
+
postfix = " (on #{current})" if Chronicler.repositories.include?(current)
|
30
30
|
repositories[Ask.list("Which repository do you want to use?#{postfix}", repositories)]
|
31
31
|
end
|
32
32
|
|
@@ -38,6 +38,12 @@ class Chronicler
|
|
38
38
|
config_use(name)
|
39
39
|
end
|
40
40
|
|
41
|
+
desc "switch [NAME]", "Use and load existing repository (NAME is optional)"
|
42
|
+
def switch(name = nil)
|
43
|
+
use(name)
|
44
|
+
load
|
45
|
+
end
|
46
|
+
|
41
47
|
desc "open", "Open current repository"
|
42
48
|
def open
|
43
49
|
repository.run "open ."
|
@@ -196,6 +202,12 @@ class Chronicler
|
|
196
202
|
end
|
197
203
|
end
|
198
204
|
|
205
|
+
desc "-v, [--version]", "Show Chronicler version number"
|
206
|
+
map %w(-v --version) => :__print_version
|
207
|
+
def __print_version
|
208
|
+
puts "Chronicler #{Chronicler::VERSION}"
|
209
|
+
end
|
210
|
+
|
199
211
|
private
|
200
212
|
|
201
213
|
def ensure_store
|
data/lib/chronicler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chronicler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Engel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|