alet 0.1.0 → 0.1.2

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: dd98bfc5b916cdb44ed82a989ff245b3d9beb2d1a718b041daa04aec1c80d702
4
- data.tar.gz: 63022319f768a23d3b8a263510e76ed9e757d5108141a8fd0998fc1c50c8b52b
3
+ metadata.gz: 2cbf4ee403adc8ddacb9640214c603e822cb543da6ece81e162402bf5c72871e
4
+ data.tar.gz: 8d4ff7690e2222f8cc69d4d9a07edda96a4121a88edbb0d563d7006843fd6169
5
5
  SHA512:
6
- metadata.gz: eddff301a4933e57d9f319131926936fc7de7f6aef2cba066bc136d7233a43b34a49978ba8ef24729ccda52f0cdef96b954e8e381a3c17ae1e6c2639789d88d2
7
- data.tar.gz: b931f8e9185e58c9ea0a4dd6285af06ec2fb0c2f3e2ab24eaf1d080438dcadbb15540d42eab82bea764fdee7fb5966dff751f4b9567485f4558e6b7eef79062e
6
+ metadata.gz: 4ea239caeba3b419d73a20db668fa28b9485651c30b7be48b0550581b5deb19f9de03f2cf28a894874da2af38b60d951d06956d512af7b95612c51701c76e6e2
7
+ data.tar.gz: 00d775cd7160640640e47798d768ab170bf0f055f23ee861951654710ff367a49c05f673ea34e35ce5d78dee91d16fb8b0f8ddbb4b4e4c6b8073a36a85ada1e6
@@ -76,7 +76,8 @@ en:
76
76
  ## ARGUMENTS
77
77
  **command** - shell command
78
78
 
79
- If no command is specified, it starts interactive mode. To escape interactive mode, press CTRL-D
79
+ If no command is specified, it starts interactive mode.
80
+ To escape interactive mode, press CTRL-D (CTR-Z for Windows)
80
81
 
81
82
  ## EXAMPLE
82
83
  ```shell
@@ -77,7 +77,8 @@ ja:
77
77
  ## ARGUMENTS
78
78
  **command** - 実行するコマンドライン
79
79
 
80
- コマンドを指定せずにEnterを押すとインタラクティブモードに移行する。インタラクティブモードから抜けるにはCTR-Dを押す
80
+ コマンドを指定せずにEnterを押すとインタラクティブモードに移行する。
81
+ インタラクティブモードから抜けるにはCTR-Dを押す(WindowsはCTR-Z)
81
82
 
82
83
  ## EXAMPLE
83
84
  ```shell
@@ -9,7 +9,7 @@ class Export < IRB::Command::Base
9
9
  arg
10
10
  else
11
11
  object = eval(arg)
12
- object.to_soql if object&.instance_of? Yamori::QueryMethods::QueryCondition
12
+ object.to_soql if object&.instance_of? SObjectModel::QueryMethods::QueryCondition
13
13
  end
14
14
 
15
15
  return if soql.nil?
@@ -5,6 +5,6 @@ class GenerateModel < IRB::Command::Base
5
5
 
6
6
  def execute(arg)
7
7
  object_types = arg.split(' ').map{|s| s.tr(' ', '')}
8
- Yamori.generate(*object_types)
8
+ SObjectModel.generate(*object_types)
9
9
  end
10
10
  end
@@ -1,4 +1,4 @@
1
- require 'yamori/query_condition'
1
+ require 'sobject_model/query_condition'
2
2
 
3
3
  class Query < IRB::Command::Base
4
4
  category "Alet"
@@ -11,7 +11,7 @@ class Query < IRB::Command::Base
11
11
  arg
12
12
  else
13
13
  object = eval(arg)
14
- object.to_soql if object&.instance_of? Yamori::QueryMethods::QueryCondition
14
+ object.to_soql if object&.instance_of? SObjectModel::QueryMethods::QueryCondition
15
15
  end
16
16
 
17
17
  return if soql.nil?
data/lib/alet/irb.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'sf_cli'
2
- require 'yamori'
2
+ require 'sobject_model'
3
3
  require 'alet/config'
4
4
  require 'irb/command/base'
5
5
  require 'tty-markdown'
@@ -7,7 +7,7 @@ require 'tty-table'
7
7
  require 'pastel'
8
8
  require 'i18n'
9
9
 
10
- I18n.locale = IRB.conf[:LC_MESSAGES].lang.to_sym
10
+ I18n.locale = IRB.conf[:LC_MESSAGES].lang&.to_sym || :en
11
11
 
12
12
  #
13
13
  # load commands
@@ -40,7 +40,7 @@ Alet.config.connection = conn
40
40
 
41
41
  sf.org.login_web target_org: conn.alias, instance_url: conn.instance_url unless conn.connected?
42
42
 
43
- Yamori.connect(
43
+ SObjectModel.connect(
44
44
  :rest,
45
45
  instance_url: conn.instance_url,
46
46
  access_token: conn.access_token,
data/lib/alet/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Alet
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takanobu Maekawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-26 00:00:00.000000000 Z
11
+ date: 2024-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.21.5
19
+ version: 2.22.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.21.5
26
+ version: 2.22.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sf_cli
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.2'
33
+ version: 1.2.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.2'
40
+ version: 1.2.4
41
41
  - !ruby/object:Gem::Dependency
42
- name: yamori
42
+ name: sobjectmodel
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.1'
47
+ version: 0.1.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.1'
54
+ version: 0.1.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: tty-markdown
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 3.3.3
145
+ version: 3.3.4
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - ">="