smol 1.0.0 → 1.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5135b67f9f85d2de94e50d6909e98499d47405a2123ce3a2a980f350c7b70ec
4
- data.tar.gz: 2c00bffd406225c264c9599f7f0629648e1de6a6e7596e930267a19c8ff178e5
3
+ metadata.gz: 447914c906fe9c2dc02453bb64c85017bacc985fa2c9962590828b03afecb1ca
4
+ data.tar.gz: '09c26f5641b5df26bbe49ba45f459f362f22c24e4ab52dc7ab68e1c2f7723d9e'
5
5
  SHA512:
6
- metadata.gz: a4057e86b35110d3dbb88d132d34d40cd00c9678107ff633587d9cdc27e336dce92c505eabca2522a09a3d8eeff4fd650c9e16f208b067d758f1e60ea2486b16
7
- data.tar.gz: ca4895857b5729af92894a9d097db534fa13fd10c691ebd71d71d416e575040d3296a7fd1db229f5cfca91501265f2555a628618a263e7f4df401ee7efc29eb0
6
+ metadata.gz: c546903fecc7c62ebc909580adc2fe61a934759ab0097a2553585b6036f474db92b59801c7383abc7903b252995446505040b1e7c522006d1785a0011ce47792
7
+ data.tar.gz: 70ff0388f7cd4dfc300d6a1da9333ddbeaddd4a3c717223e6e938410d248a66e4604ee8979f344a601496ba640390b5485ee3d5f9afc2b1c3ad794598df7dc84
data/README.md CHANGED
@@ -171,7 +171,7 @@ end
171
171
 
172
172
  ### History file
173
173
 
174
- Command history saves to `~/.smol_{prompt}_history` by default. Override it:
174
+ Command history saves to `~/.smol_{app_name}_history` by default. Override it:
175
175
 
176
176
  ```ruby
177
177
  class App < Smol::App
data/lib/smol/repl.rb CHANGED
@@ -10,7 +10,7 @@ module Smol
10
10
  @app = app
11
11
  @prompt = prompt
12
12
  @history = history
13
- @history_file = history_file || File.expand_path("~/.smol_#{prompt}_history")
13
+ @history_file = history_file || File.expand_path("~/.smol_#{app.class.name.downcase}_history")
14
14
  @parent = parent
15
15
  end
16
16
 
data/lib/smol/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Smol
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smol
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Brody