kangaru 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/kangaru.gemspec +6 -0
- data/lib/kangaru/initialisers/rspec/request_helper.rb +18 -16
- data/lib/kangaru/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15146a85b29524ce8435963bbc25601017d72cafef5cf69331b920219bad4113
|
4
|
+
data.tar.gz: de9a21f5cb27508169c1fec64b60f7a2aeacbb0beaac0b3fa1392288ea5f7728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03d7d75d0b7c98d7ea7cfa74390fe9bd16ad8d0c02ee7d9e5cc61499b8f545fb90cbf0b8a0361851088b59066f91c0ca24f429747c084d9984ededdd233c5363
|
7
|
+
data.tar.gz: 9ec21c22c2f17b8943e546060fe872d08f43c38038970abdfdafb867eff1a7d134931069ae03eae832171ab280433bf236ca22635c3fa1c59d0bd76382dfa6c4
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Kangaru is an open-source framework written in Ruby for building powerful and efficient command line applications. This project aims to make it easier for developers to create complex CLI programs with minimal effort, by providing a set of useful tools and libraries in a configurable ecosystem.
|
4
4
|
|
5
|
-
> Note: This software is currently in beta mode, meaning it may contain bugs and be subject to changes. Please exercise caution when using this software and report any issues you encounter. The first production-ready release of Kangaru will be version 0.
|
5
|
+
> Note: This software is currently in beta mode, meaning it may contain bugs and be subject to changes. Please exercise caution when using this software and report any issues you encounter. The first production-ready release of Kangaru will be version 1.0.0.
|
6
6
|
|
7
7
|
## Features
|
8
8
|
|
data/kangaru.gemspec
CHANGED
@@ -7,6 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.email = ["71787007+apexatoll@users.noreply.github.com"]
|
8
8
|
|
9
9
|
spec.summary = "A lightweight framework for building command line interfaces"
|
10
|
+
spec.homepage = "https://github.com/apexatoll/kangaru"
|
10
11
|
spec.license = "MIT"
|
11
12
|
spec.required_ruby_version = ">= 3.2.0"
|
12
13
|
|
@@ -15,6 +16,11 @@ Gem::Specification.new do |spec|
|
|
15
16
|
f == __FILE__ || f.match?(/\A(bin|spec|\.git|\.github)/)
|
16
17
|
end
|
17
18
|
end
|
19
|
+
|
20
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
21
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
22
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/releases"
|
23
|
+
|
18
24
|
spec.bindir = "bin"
|
19
25
|
spec.executables = []
|
20
26
|
spec.require_paths = ["lib"]
|
@@ -2,8 +2,6 @@ module Kangaru
|
|
2
2
|
module Initialisers
|
3
3
|
module RSpec
|
4
4
|
module RequestHelper
|
5
|
-
extend ::RSpec::Matchers::DSL
|
6
|
-
|
7
5
|
attr_reader :request
|
8
6
|
|
9
7
|
def stub_output(&block)
|
@@ -28,24 +26,28 @@ module Kangaru
|
|
28
26
|
Kangaru.application!.view_path(described_class.path, name.to_s)
|
29
27
|
end
|
30
28
|
|
31
|
-
|
32
|
-
|
29
|
+
if Object.const_defined?(:RSpec)
|
30
|
+
extend ::RSpec::Matchers::DSL
|
31
|
+
|
32
|
+
matcher :render_template do |name|
|
33
|
+
supports_block_expectations
|
33
34
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
35
|
+
match do |action|
|
36
|
+
renderer = instance_double(Kangaru::Renderer, render: nil)
|
37
|
+
allow(Kangaru::Renderer).to receive(:new).and_return(renderer)
|
38
|
+
expect(Kangaru::Renderer).not_to have_received(:new)
|
38
39
|
|
39
|
-
|
40
|
+
action.call
|
40
41
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
42
|
+
expect(Kangaru::Renderer)
|
43
|
+
.to have_received(:new)
|
44
|
+
.with(view_path(name))
|
45
|
+
.once
|
45
46
|
|
46
|
-
|
47
|
-
|
48
|
-
|
47
|
+
expect(renderer)
|
48
|
+
.to have_received(:render)
|
49
|
+
.once
|
50
|
+
end
|
49
51
|
end
|
50
52
|
end
|
51
53
|
end
|
data/lib/kangaru/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kangaru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Welham
|
@@ -196,10 +196,13 @@ files:
|
|
196
196
|
- sig/kangaru/validation/error.rbs
|
197
197
|
- sig/kangaru/validators/required_validator.rbs
|
198
198
|
- sig/kangaru/validators/validator.rbs
|
199
|
-
homepage:
|
199
|
+
homepage: https://github.com/apexatoll/kangaru
|
200
200
|
licenses:
|
201
201
|
- MIT
|
202
|
-
metadata:
|
202
|
+
metadata:
|
203
|
+
homepage_uri: https://github.com/apexatoll/kangaru
|
204
|
+
source_code_uri: https://github.com/apexatoll/kangaru
|
205
|
+
changelog_uri: https://github.com/apexatoll/kangaru/releases
|
203
206
|
post_install_message:
|
204
207
|
rdoc_options: []
|
205
208
|
require_paths:
|