pakyow-support 1.0.1 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -2
- data/lib/pakyow/support/configurable.rb +6 -1
- data/lib/pakyow/support/definable.rb +1 -1
- data/lib/pakyow/support/dependencies.rb +50 -14
- data/lib/pakyow/support/message_verifier.rb +1 -1
- data/lib/pakyow/support/pipeline.rb +3 -3
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f631fb45b71b87ce4e972dee5ebd6c8313084ddfafa5c61be74ceb362986a1b
|
4
|
+
data.tar.gz: 1fe598dfe97c8579e665f11c532e89b82b8cdfea868f0aee71db2053e8f33b03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ec92e0cf8654cbce65cdd165615fd6ee96811b8caf6803061e6d8f957c7ac5536f0f2eee35dd06f66b23f4c1f552c5aa0636510ecf442669c919de97c934519
|
7
|
+
data.tar.gz: e703e972a948716e6b3a202dc2ee41a5e4150bbc0a33cbef68ee90e6b648094b5f63e99eaa7fbb0ea3dc0e07536244095f49de8a20cf3c87006e6f0b4b762bcf
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,34 @@
|
|
1
|
-
#
|
1
|
+
# v1.0.2
|
2
2
|
|
3
|
-
|
3
|
+
* `fix` **Message verification no longer fails when the digest contains `--`.**
|
4
|
+
|
5
|
+
*Related links:*
|
6
|
+
- [Pull Request #316][pr-316]
|
7
|
+
|
8
|
+
* `fix` **Avoid including the initializer for configurable modules.**
|
9
|
+
|
10
|
+
*Related links:*
|
11
|
+
- [Pull Request #312][pr-312]
|
12
|
+
|
13
|
+
* `fix` **Methods defined an an app block are now defined in the correct context.**
|
14
|
+
|
15
|
+
*Related links:*
|
16
|
+
- [Commit 62112dc][62112dc]
|
17
|
+
- [Commit f7591d4][f7591d4]
|
18
|
+
|
19
|
+
* `fix` **Named actions can now share a name with a method on the pipelined object.**
|
20
|
+
|
21
|
+
*Related links:*
|
22
|
+
- [Pull Request #297][pr-297]
|
23
|
+
- [Commit fe1f554][fe1f554]
|
24
|
+
|
25
|
+
[pr-316]: https://github.com/pakyow/pakyow/pull/316/commits
|
26
|
+
[pr-312]: https://github.com/pakyow/pakyow/pull/312/commits
|
27
|
+
[pr-297]: https://github.com/pakyow/pakyow/pull/297/commits
|
28
|
+
[f7591d4]: https://github.com/pakyow/pakyow/commit/f7591d406fd87c04eee3ee036da6a780188971b6
|
29
|
+
[62112dc]: https://github.com/pakyow/pakyow/commit/62112dc1396e397fda73e92df780c4358e28a3fa
|
30
|
+
[fe1f554]: https://github.com/pakyow/pakyow/commit/fe1f554b56a4c22298f8c2b7809519a9b8eb220b
|
31
|
+
|
32
|
+
# v1.0.0
|
4
33
|
|
5
34
|
* Hello, Web
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "forwardable"
|
4
|
+
|
3
5
|
require "concurrent/hash"
|
4
6
|
|
5
7
|
require "pakyow/support/class_state"
|
@@ -46,7 +48,10 @@ module Pakyow
|
|
46
48
|
base.class_state :__config, default: Config.new(base), inheritable: true
|
47
49
|
base.class_state :__config_environments, default: Concurrent::Hash.new, inheritable: true
|
48
50
|
|
49
|
-
base.
|
51
|
+
unless base.instance_of?(Module)
|
52
|
+
base.prepend Initializer
|
53
|
+
end
|
54
|
+
|
50
55
|
base.include CommonMethods
|
51
56
|
base.extend ClassMethods, CommonMethods
|
52
57
|
end
|
@@ -6,21 +6,55 @@ module Pakyow
|
|
6
6
|
module Dependencies
|
7
7
|
extend self
|
8
8
|
|
9
|
-
|
9
|
+
def self.bundler_gem_path
|
10
|
+
@bundler_gem_path ||= Bundler.bundle_path.to_s + "/bundler/gems"
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.local_framework_path
|
14
|
+
@local_framework_path ||= File.expand_path("../../../../../", __FILE__)
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.ruby_gem_path
|
18
|
+
@ruby_gem_path ||= File.join(Gem.dir, "/gems")
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.regex_bundler
|
22
|
+
@regex_bundler ||= /^#{Dependencies.bundler_gem_path}\//
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.regex_local_framework
|
26
|
+
@regex_local_framework ||= /^#{Dependencies.local_framework_path}\//
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.regex_pakyow_lib
|
30
|
+
@regex_pakyow_lib ||= /^#{Pakyow.config.lib}\//
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.regex_pakyow_root
|
34
|
+
@regex_pakyow_root ||= /^#{Pakyow.config.root}\//
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.regex_ruby_gem
|
38
|
+
@regex_ruby_gem ||= /^#{Dependencies.ruby_gem_path}\//
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.regex_ruby
|
42
|
+
@regex_ruby ||= /^#{RbConfig::CONFIG["libdir"]}\//
|
43
|
+
end
|
10
44
|
|
11
45
|
def strip_path_prefix(line)
|
12
46
|
if line.start_with?(Pakyow.config.root)
|
13
|
-
line.gsub(
|
47
|
+
line.gsub(Dependencies.regex_pakyow_root, "")
|
14
48
|
elsif line.start_with?(Pakyow.config.lib)
|
15
|
-
line.gsub(
|
16
|
-
elsif line.start_with?(
|
17
|
-
line.gsub(
|
18
|
-
elsif line.start_with?(
|
19
|
-
line.gsub(
|
49
|
+
line.gsub(Dependencies.regex_pakyow_lib, "")
|
50
|
+
elsif line.start_with?(Dependencies.ruby_gem_path)
|
51
|
+
line.gsub(Dependencies.regex_ruby_gem, "")
|
52
|
+
elsif line.start_with?(Dependencies.bundler_gem_path)
|
53
|
+
line.gsub(Dependencies.regex_bundler, "")
|
20
54
|
elsif line.start_with?(RbConfig::CONFIG["libdir"])
|
21
|
-
line.gsub(
|
22
|
-
elsif line.start_with?(
|
23
|
-
line.gsub(
|
55
|
+
line.gsub(Dependencies.regex_ruby, "")
|
56
|
+
elsif line.start_with?(Dependencies.local_framework_path)
|
57
|
+
line.gsub(Dependencies.regex_local_framework, "")
|
24
58
|
else
|
25
59
|
line
|
26
60
|
end
|
@@ -28,8 +62,10 @@ module Pakyow
|
|
28
62
|
|
29
63
|
def library_name(line)
|
30
64
|
case library_type(line)
|
31
|
-
when :gem
|
65
|
+
when :gem
|
32
66
|
strip_path_prefix(line).split("/")[0].split("-")[0..-2].join("-")
|
67
|
+
when :bundler
|
68
|
+
strip_path_prefix(line).split("/")[1]
|
33
69
|
when :ruby
|
34
70
|
"ruby"
|
35
71
|
when :pakyow
|
@@ -42,13 +78,13 @@ module Pakyow
|
|
42
78
|
end
|
43
79
|
|
44
80
|
def library_type(line)
|
45
|
-
if line.start_with?(
|
81
|
+
if line.start_with?(Dependencies.ruby_gem_path)
|
46
82
|
:gem
|
47
|
-
elsif line.start_with?(
|
83
|
+
elsif line.start_with?(Dependencies.bundler_gem_path)
|
48
84
|
:bundler
|
49
85
|
elsif line.start_with?(RbConfig::CONFIG["libdir"])
|
50
86
|
:ruby
|
51
|
-
elsif line.start_with?(
|
87
|
+
elsif line.start_with?(Dependencies.local_framework_path)
|
52
88
|
:pakyow
|
53
89
|
elsif line.start_with?(Pakyow.config.lib)
|
54
90
|
:lib
|
@@ -183,11 +183,11 @@ module Pakyow
|
|
183
183
|
class Internal
|
184
184
|
attr_reader :actions
|
185
185
|
|
186
|
-
def initialize
|
186
|
+
def initialize(&block)
|
187
187
|
@actions = []
|
188
188
|
|
189
189
|
if block_given?
|
190
|
-
instance_exec(&
|
190
|
+
instance_exec(&block)
|
191
191
|
end
|
192
192
|
end
|
193
193
|
|
@@ -307,7 +307,7 @@ module Pakyow
|
|
307
307
|
else
|
308
308
|
@block
|
309
309
|
end
|
310
|
-
elsif @target.is_a?(Symbol) && context.respond_to?(@target, true)
|
310
|
+
elsif @target.is_a?(Symbol) && context.respond_to?(@target, true) && (options[0].nil? || !options[0].instance_methods(false).include?(:call))
|
311
311
|
if context
|
312
312
|
context.method(@target)
|
313
313
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pakyow-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Powell
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -30,56 +30,56 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.2.0
|
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:
|
40
|
+
version: 0.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pastel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.7.3
|
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:
|
54
|
+
version: 0.7.3
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: tty-command
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.9.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.9.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: tty-spinner
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 0.9.1
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 0.9.1
|
83
83
|
description: Supporting code for Pakyow
|
84
84
|
email: bryan@bryanp.org
|
85
85
|
executables: []
|
@@ -127,7 +127,7 @@ homepage: https://pakyow.com
|
|
127
127
|
licenses:
|
128
128
|
- LGPL-3.0
|
129
129
|
metadata: {}
|
130
|
-
post_install_message:
|
130
|
+
post_install_message:
|
131
131
|
rdoc_options: []
|
132
132
|
require_paths:
|
133
133
|
- lib
|
@@ -142,8 +142,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
|
-
rubygems_version: 3.
|
146
|
-
signing_key:
|
145
|
+
rubygems_version: 3.1.2
|
146
|
+
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: Pakyow Support
|
149
149
|
test_files: []
|