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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f81016147f4602231fda1758cc6064101872f31d56d65aa830d3917caef5fae
4
- data.tar.gz: 117244d96c1de48b808bcd8a68810d1582d39f60e26969e393057297cb711363
3
+ metadata.gz: 15146a85b29524ce8435963bbc25601017d72cafef5cf69331b920219bad4113
4
+ data.tar.gz: de9a21f5cb27508169c1fec64b60f7a2aeacbb0beaac0b3fa1392288ea5f7728
5
5
  SHA512:
6
- metadata.gz: c4eb18b51418ae6c2286f7091e18335e8d7f710bd405c36fa190ddf5ecbd0d3a55107e1e6ec25fc3dae5be46774e6531b692e2d1c207660a0aef4aa87eefc5f9
7
- data.tar.gz: 0fa8ecd03c0ac6d392c3e4555e0edc62dac602814707e781b6bc971f20ca85cf968937bddb281cb8d7716de521dc0673672852c51a49858ba48a3b31faa8548e
6
+ metadata.gz: 03d7d75d0b7c98d7ea7cfa74390fe9bd16ad8d0c02ee7d9e5cc61499b8f545fb90cbf0b8a0361851088b59066f91c0ca24f429747c084d9984ededdd233c5363
7
+ data.tar.gz: 9ec21c22c2f17b8943e546060fe872d08f43c38038970abdfdafb867eff1a7d134931069ae03eae832171ab280433bf236ca22635c3fa1c59d0bd76382dfa6c4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kangaru (0.1.1)
4
+ kangaru (0.1.2)
5
5
  colorize (~> 1.1)
6
6
  erb (~> 4.0)
7
7
  sequel (~> 5.72)
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.2.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
- matcher :render_template do |name|
32
- supports_block_expectations
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
- match do |action|
35
- renderer = instance_double(Kangaru::Renderer, render: nil)
36
- allow(Kangaru::Renderer).to receive(:new).and_return(renderer)
37
- expect(Kangaru::Renderer).not_to have_received(:new)
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
- action.call
40
+ action.call
40
41
 
41
- expect(Kangaru::Renderer)
42
- .to have_received(:new)
43
- .with(view_path(name))
44
- .once
42
+ expect(Kangaru::Renderer)
43
+ .to have_received(:new)
44
+ .with(view_path(name))
45
+ .once
45
46
 
46
- expect(renderer)
47
- .to have_received(:render)
48
- .once
47
+ expect(renderer)
48
+ .to have_received(:render)
49
+ .once
50
+ end
49
51
  end
50
52
  end
51
53
  end
@@ -1,3 +1,3 @@
1
1
  module Kangaru
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
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.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: