arpry 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/arpry.gemspec +2 -2
- data/lib/arpry/cli.rb +12 -1
- data/lib/arpry/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b756c0bc94d5881dcb733a9ba2338179849ff6726d02ec7612305a2595a89df
|
4
|
+
data.tar.gz: 371d11ca664e8ff0dc502c5cb16493104415d6877df44a9207ed5ad5c75c2053
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aef24925b4174e5ed3423f07fb61402bc2404c74e3c5d21736f5f676ee3d20985743218b7603d8965ee82b0aa8da7466b5f6b4fabfd13020715f552bff97af82
|
7
|
+
data.tar.gz: a3887a24f4907c1795428b0a3dba28620629898110f088bd019f60a01ab1d812640534f6a8fefe7866cc2cf1d8589af5a9d99df975c138e0d3d3f458571ec867
|
data/arpry.gemspec
CHANGED
@@ -34,9 +34,9 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.require_paths = ["lib"]
|
35
35
|
|
36
36
|
spec.add_runtime_dependency 'activerecord', '< 6', '>= 5'
|
37
|
-
spec.add_runtime_dependency 'pry'
|
37
|
+
spec.add_runtime_dependency 'pry', '>= 0.12.0'
|
38
38
|
|
39
|
-
spec.add_development_dependency "bundler", ">= 1", "
|
39
|
+
spec.add_development_dependency "bundler", ">= 1", "< 3"
|
40
40
|
spec.add_development_dependency "rake", "~> 12.0"
|
41
41
|
spec.add_development_dependency "minitest", ">= 5", '< 6'
|
42
42
|
spec.add_development_dependency "sqlite3"
|
data/lib/arpry/cli.rb
CHANGED
@@ -10,7 +10,18 @@ module Arpry
|
|
10
10
|
parse_options
|
11
11
|
|
12
12
|
namespace = ClassFactory.create(@params)
|
13
|
-
|
13
|
+
ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer = true if @params[:adapter] == 'sqlite3'
|
14
|
+
|
15
|
+
prompts = [
|
16
|
+
proc do |_obj, nest_level, pry|
|
17
|
+
"[#{pry.input_ring.size}] arpry#{":#{nest_level}" unless nest_level.zero?}> "
|
18
|
+
end,
|
19
|
+
proc do |_obj, nest_level, pry|
|
20
|
+
"[#{pry.input_ring.size}] arpry#{":#{nest_level}" unless nest_level.zero?}* "
|
21
|
+
end,
|
22
|
+
]
|
23
|
+
|
24
|
+
binding.pry(namespace, prompt: prompts)
|
14
25
|
|
15
26
|
return 0
|
16
27
|
end
|
data/lib/arpry/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arpry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masataka Pocke Kuwabara
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 0.12.0
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: 0.12.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -51,9 +51,9 @@ dependencies:
|
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '1'
|
54
|
-
- - "
|
54
|
+
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
56
|
+
version: '3'
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -61,9 +61,9 @@ dependencies:
|
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '1'
|
64
|
-
- - "
|
64
|
+
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
66
|
+
version: '3'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: rake
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
|
-
rubygems_version: 3.0.
|
158
|
+
rubygems_version: 3.0.2
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
161
|
summary: Explore database without Rails
|