arql 0.1.27 → 0.1.28

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
  SHA256:
3
- metadata.gz: b7294d448effb453450c0af6a679d949918e23be34fa0323b570ac0e53f408e0
4
- data.tar.gz: b8efa518ebd003348f7d5da2659a126bf8d287ae5a6280efb35e0bf105b262ca
3
+ metadata.gz: a60cf3e7b24cf3967d9e566fbb89011ce12b727bd6ef9f4e6e7b83aa2ef58bfc
4
+ data.tar.gz: 06152be12dff3594db513cbca09e8f53d0250d634d05b4a4bf1e1532c593097a
5
5
  SHA512:
6
- metadata.gz: acc67b2f93e5321bb45748d356d3eb2c2d76c13134f27d9c9b1983cd9e1d53384e961371f6b859ff08613d1d87de3425202d9fcb3911e8b1a71a286c44a74e1e
7
- data.tar.gz: cd98b20c4da880b46c052de32f69fea7bb567524ad515ee23cd4000b3ebaeb38f5d75c975f4dd22e2f7c30be5f817cd5d6b94e1f244e2479f77e47923166c459
6
+ metadata.gz: b2a3f77a0119b6188437187fb23bc8da4d0129f038d325b2112dcc67eb4621484bed0c3cef28bcad6f7d2eb35957c3977ad923cdef667108b2ecfc15a4030296
7
+ data.tar.gz: 309d4f09b2b475625e006a66faea1cef2473368bab41933188de5f47cc75bd2b6a9ee47a6c86fa3096f84e118c1cce402be18b65605bf76564dee123c092364f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arql (0.1.27)
4
+ arql (0.1.28)
5
5
  activerecord (~> 6.0.3)
6
6
  activesupport (~> 6.0.3)
7
7
  mysql2 (~> 0.5.3)
@@ -4,7 +4,7 @@ module Arql
4
4
  class App
5
5
 
6
6
  class << self
7
- attr_accessor :log_io
7
+ attr_accessor :log_io, :env
8
8
 
9
9
  def config
10
10
  @@effective_config
@@ -17,6 +17,7 @@ module Arql
17
17
  require "arql/connection"
18
18
  require "arql/definition"
19
19
  @options = options
20
+ App.env = @options.env
20
21
  Connection.open(connect_options)
21
22
  @definition = Definition.new(effective_config)
22
23
  load_initializer!
@@ -31,7 +31,7 @@ module Arql
31
31
  else
32
32
  nest_level_prompt = "(#{obj}:#{nest_level})"
33
33
  end
34
- "%s#{nest_level_prompt} %s " % [Rainbow('ARQL').red, Rainbow('❯').green]
34
+ "%s#{Rainbow('@').green}%s#{nest_level_prompt} %s " % [Rainbow('ARQL').red, Rainbow(App.env).yellow, Rainbow('❯').green]
35
35
  end]
36
36
  end
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module Arql
2
- VERSION = "0.1.27"
2
+ VERSION = "0.1.28"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.27
4
+ version: 0.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Xiang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2020-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2