prick 0.39.3 → 0.39.5

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: d7284658fc884c598ceaab22482671eaaabfac49a014ad52af9a5e5da266d12f
4
- data.tar.gz: bd7355b17aead0e95d971aa0235d64ebfea45bb0585dbafb2f33db3c70a1eb0f
3
+ metadata.gz: 01771a2a76d7f9c9350c6e05424cf29de726d8bc6702f21c3577cbb3b9a93b6c
4
+ data.tar.gz: b7a4e6895f8d80943ac7ccc364aeebbb24b73f61df072c2ff41f72a44c5e6e99
5
5
  SHA512:
6
- metadata.gz: 45433be3c8278c556c26be157a8dfd91eae168d6df7d71788ecce7f51a5a710193c24d33043d892a2492016d475e47b33745794c36cfbeae4171f792fa22e4df
7
- data.tar.gz: 28f1e47f5253678b69301b26fc797aafcc88dbe46832441fec670f4f9ec9bbee38c3a0c1f2b35703fd83752f3eb821a6cacc424f2ec7766a1c226cd5055049f4
6
+ metadata.gz: a027ffc3f0a0e19fea6bb1bca1f2afe4eb0adb3b9d171602b5512d358ca8ca4d6490f384e90ac88d0d68da935fd413c63531588377ea4c0c0953075e86f42f96
7
+ data.tar.gz: dca9bf4af5c6fc4cda593cb25f963a3d92f3360fa51b535fc43c3ffeddef313bdaa8e41719de9297f088deec5c1cc0876d91d8dc1593bac4c56b8f60736726f0
data/TODO CHANGED
@@ -1,3 +1,4 @@
1
+ o prefix sql scripts with 'set ON_ERROR_STOP on'
1
2
  o make it possible to build only one scheme
2
3
  o cleanup connection
3
4
  o make environment optional
@@ -135,13 +135,6 @@ module Prick
135
135
  analyze
136
136
  end
137
137
 
138
- def undent(s)
139
- s = s[1..] if s[0] == "\n"
140
- s =~ /^(\s*)\S$/m
141
- indent = $1
142
- s.gsub(/^#{indent}/m, "")
143
- end
144
-
145
138
  def bash_environment
146
139
 
147
140
  end
@@ -159,7 +152,7 @@ module Prick
159
152
 
160
153
  puts "### SCRIPT by #{File.basename(__FILE__)}"
161
154
 
162
- puts undent %(
155
+ puts %(
163
156
 
164
157
  ## STACK METHODS - ChatGPT
165
158
 
@@ -178,7 +171,7 @@ module Prick
178
171
  function super() {
179
172
  eval ${super_stack[-1]}
180
173
  }
181
- )
174
+ ).align
182
175
 
183
176
  puts "## ENVIRONMENT METHODS"
184
177
  puts
@@ -65,7 +65,7 @@ module Prick::SubCommand
65
65
  builder.pool.clear(:init, :decl, :term)
66
66
  end
67
67
 
68
- builder.group
68
+ # builder.group
69
69
  end
70
70
 
71
71
  case dump
data/lib/prick/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prick
4
- VERSION = "0.39.3"
4
+ VERSION = "0.39.5"
5
5
  end
data/lib/prick.rb CHANGED
@@ -3,12 +3,13 @@ require 'prick/version.rb'
3
3
  require 'pg_conn'
4
4
 
5
5
  require 'indented_io'
6
-
7
6
  require 'constrain'
8
- include Constrain
9
-
10
7
  require 'forward_to'
8
+ require 'string-text'
9
+
10
+ include Constrain
11
11
  include ForwardTo
12
+ include String::Text
12
13
 
13
14
  require 'fixture_fox'
14
15
 
data/prick.gemspec CHANGED
@@ -39,6 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_dependency "pg_graph"
40
40
  spec.add_dependency "shellopts"
41
41
  spec.add_dependency "dsort"
42
+ spec.add_dependency "string-text"
42
43
 
43
44
  spec.add_development_dependency "ruby-prof"
44
45
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.3
4
+ version: 0.39.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-05 00:00:00.000000000 Z
11
+ date: 2024-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: string-text
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: ruby-prof
155
169
  requirement: !ruby/object:Gem::Requirement