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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4601aca82d7b4e20ca7de0be13a4b5f3bc328eee
4
- data.tar.gz: e87071d55ee8ff46c2715753dee4c5aca53934ae
3
+ metadata.gz: 0e12638f49833634c4106b425e55f2afa2e3c2c5
4
+ data.tar.gz: f53195daee8c283fb707466feb0de113474919b1
5
5
  SHA512:
6
- metadata.gz: f7303884259d535ed74400f20b57cd9110419e22343f9f97f79a0b17876fd948144c89ca8035aaca03a036a7d961f218df009ccf669e1c155be4d449c7eb96b2
7
- data.tar.gz: 2b2a631baec969a1ae3e4c360d91f723e678530b6f4421310f04ecece9cb8263a3a4e8b54e45e607286981d6b26375bd7f49427f9c50ec4d3e25e555d9a7aa33
6
+ metadata.gz: 58289dedfee64b79296a0784221630460cfa65f153c295795917f1729eb9f2f2138a239d4ca9f9de766af2a4ba632ce8daf45705f080b6a892ce280ab1625bf9
7
+ data.tar.gz: 72f64853008c9e6701ed690b7863cc90f12ece8222254f16ef2f44b49e17416f27908d9629c0425a1006320768f70944646deb74eb33a86fdc7c2de85c2c3136
@@ -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.2
1
+ 0.1.3
@@ -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
@@ -1,7 +1,7 @@
1
1
  class Chronicler
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- TINY = 2
4
+ TINY = 3
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
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.2
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-03-14 00:00:00.000000000 Z
11
+ date: 2016-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor