camping 3.2.3 → 3.2.4

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: 3f5615f332dcf7362345f6d628b4d9d90adf93862cecddce4168b6609e684b87
4
- data.tar.gz: 0d6454ca641d2a2ff03d097c0c6b62df9971517ddde4b72fea2b18b108ca3f9a
3
+ metadata.gz: 6eb683f17e8a1026e536396b517135abfeae0597453b99202662a7ad92e055d5
4
+ data.tar.gz: 4f38e1736732750ff070e988863dd7de1410ec18e5f81a3176469ace840016d3
5
5
  SHA512:
6
- metadata.gz: 57eeda38ff38008fe71e9437bbd0484582c06bacd2d75cadc77134ec5e7cbd216cbd2ac25723a493c6a06268e5739e9942fdfef084055960241bc4b9f0db908e
7
- data.tar.gz: 19563aba78678ed871ee40cd004dbdfeff4039d30b515304dbeefc8bd33a070c0a982f8828ef4102f2fda8b441809b5457410a1ebf1241042e2164759db8812e
6
+ metadata.gz: d11e1328dd9c227b030bc5bf5594f5ce59b370ea850a2439d10c128cf472f7afc2b7f75bd8e49305b3944b2a28f128f6d719d936e3125249fb05376cdd60e70f
7
+ data.tar.gz: 6197f2e9a11a19a3f85a4b71c254ae055c85d61c98717d85aec5efb1d8005498750b68dd2291d284f454352ee10fa3b343dc05885232b6141996eab4cd4a851d
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![Build Status](https://github.com/camping/camping/actions/workflows/ruby.yml/badge.svg)
1
+ ![Build Status](https://github.com/camping/camping/actions/workflows/camping.yml/badge.svg) ![Build Status](https://github.com/camping/camping/actions/workflows/integration.yml/badge.svg)
2
2
 
3
3
  # Camping, a Microframework
4
4
 
data/Rakefile CHANGED
@@ -86,22 +86,12 @@ Rake::TestTask.new(:reloader) do |t|
86
86
  t.test_files = FileList['test/reload_*.rb']
87
87
  end
88
88
 
89
- ## Reloader Tests
89
+ ## Config Reloader Tests
90
90
  Rake::TestTask.new(:configreloader) do |t|
91
91
  t.libs << "test"
92
92
  t.test_files = FileList['test/config_*.rb']
93
93
  end
94
94
 
95
- Rake::TestTask.new(:integration) do |t|
96
- `gem build`
97
- gem = Dir.glob("camping*.gem").first
98
- exit if gem == nil
99
- `cd test/integration`
100
- `gem install ../../#{gem}`
101
- t.libs << "/"
102
- t.test_files = FileList['test/test_*.rb']
103
- end
104
-
105
95
  ## Diff
106
96
  desc "Compare camping and camping-unabridged"
107
97
  task :diff do
@@ -1,5 +1,5 @@
1
1
  module Camping
2
- VERSION = "3.2"
2
+ VERSION = "3.2.4"
3
3
  def self.version
4
4
  VERSION
5
5
  end
@@ -945,7 +945,8 @@ module Camping
945
945
  # setup parental data
946
946
  a.set :_meta, H[file: fl, line_number: ln, parent: self, root: (name != "Cam\ping" ? '/' + CampTools.to_snake(name) : '/')]
947
947
 
948
- # configure the app?
948
+ # configures the app, using the kuddly options and
949
+ # settings provided.
949
950
  C.configure(a)
950
951
  end
951
952
  end
@@ -1024,6 +1025,7 @@ module Camping
1024
1025
  pack Gear::Filters
1025
1026
  pack Gear::Nancy
1026
1027
  pack Gear::Kuddly
1028
+ pack Gear::Firewatch
1027
1029
 
1028
1030
  C
1029
1031
  end
data/lib/camping.rb CHANGED
@@ -74,8 +74,8 @@ k.send"#{i}=",v};k.service(*a)end
74
74
  def use*a,&b;m=a.shift.new(method(:call),*a,&b);meta_def(:call){|e|m.call(e)};m;end
75
75
  def pack*a,&b;G<< g=a.shift;include g;g.setup(self,*a,&b)end
76
76
  def gear;G end;def options;O;end;def set k,v;O[k]=v end
77
- def goes m,g=TOPLEVEL_BINDING;sp=caller[0].split('`')[0].split(":");fl,ln,pr=
78
- sp[0]+' <Cam\ping App> ',sp[1].to_i,nil;Apps<< a=eval(S.gsub(/Camping/,m.to_s),g,fl,1);caller[0]=~/:/
77
+ def goes m,g=TOPLEVEL_BINDING;sp=caller[0].split('`')[0].split(":");fl,ln=
78
+ sp[0]+' <Cam\ping App> ',sp[1].to_i;Apps<< a=eval(S.gsub(/Camping/,m.to_s),g,fl,1);caller[0]=~/:/
79
79
  IO.read(a.set:__FILE__,$`)=~/^__END__/&&(b=$'.split(/^@@\s*(.+?)\s*\r?\n/m)
80
80
  ).shift rescue nil;a.set :_t,H[*b||[]]
81
81
  a.set :_meta, H[file: fl, line_number: ln, parent: self,
@@ -83,4 +83,4 @@ root: (name != "Cam\ping" ? '/' + CampTools.to_snake(name) : '/')];C.configure(a
83
83
  module Views;include X,Helpers end;module Models
84
84
  Helpers.include(X,self) end;autoload:Mab,'camping/mab'
85
85
  autoload:Template,'camping/template';pack Gear::Inspection;pack Gear::Filters
86
- pack Gear::Nancy;pack Gear::Kuddly;C end
86
+ pack Gear::Nancy;pack Gear::Kuddly;pack Gear::Firewatch;C end
@@ -83,7 +83,7 @@ class Packing::Test < TestCase
83
83
 
84
84
  def test_gear_packed
85
85
  list = Packing::G
86
- assert (list.length == 5), "Proper number of Gear was not packed! Gear: #{list.length}"
86
+ assert (list.length == 6), "Proper number of Gear was not packed! Gear: #{list.length}"
87
87
  end
88
88
 
89
89
  def test_right_gear_packed
@@ -1,21 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
  source 'https://rubygems.org'
3
3
 
4
- gem 'camping'
5
- gem 'puma'
4
+ gem 'bundler'
6
5
  gem 'rake'
6
+ gem 'puma'
7
+ gem "camping", :path => "../../"
7
8
 
8
9
  group :production do
9
10
  gem 'rack-ssl-enforcer'
10
11
  end
11
12
 
12
- group :development do
13
- end
14
-
15
13
  group :test do
16
14
  gem 'minitest', '~> 5.0'
17
15
  gem 'minitest-reporters'
18
16
  gem 'rack-test'
19
17
  gem 'minitest-hooks'
20
18
  end
21
-
@@ -14,3 +14,31 @@ namespace 'test' do
14
14
  t.test_files = FileList['test/test_*.rb']
15
15
  end
16
16
  end
17
+
18
+ # def delete_file(filename="")
19
+ # return if !File.exist? filename
20
+ # begin
21
+ # f = File.open(filename, 'r')
22
+ # ensure
23
+ # f.close unless f.nil? or f.closed?
24
+ # File.delete(filename) if File.exist? filename
25
+ # end
26
+ # end
27
+
28
+ ## Integration Test
29
+ # desc "Perform an integration test"
30
+ # task :integration do
31
+ # `bundle install` # remove gems
32
+ # `bundle clean --force` # remove gems
33
+ # puts Dir.pwd
34
+ # # `gem install` # add bundler.
35
+ # `bundle install` # rewrites Gemfile.lock
36
+ # `bundle add camping --path=../../`
37
+ # # `bundle add camping puma`
38
+ # # `bundle add minitest -g=test`
39
+ # # `bundle add minitest-reporters -g=test`
40
+ # # `bundle add rack-test -g=test`
41
+ # # `bundle add minitest-hooks -g=test`
42
+ # # t.libs << "/"
43
+ # # t.test_files = FileList['test/test_*.rb']
44
+ # end
@@ -13,7 +13,7 @@ require 'rack/test'
13
13
  require "minitest/reporters"
14
14
  Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(:color => true)]
15
15
 
16
- class TestCase < MiniTest::Test
16
+ class TestCase < Minitest::Test
17
17
  include Rack::Test::Methods
18
18
 
19
19
  def self.inherited(mod)
@@ -53,4 +53,3 @@ class TestCase < MiniTest::Test
53
53
  def test_silly; end
54
54
 
55
55
  end
56
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camping
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3
4
+ version: 3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - why the lucky stiff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-10 00:00:00.000000000 Z
11
+ date: 2024-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -287,12 +287,10 @@ files:
287
287
  - test/config_reloader.rb
288
288
  - test/gear/gear_nancy.rb
289
289
  - test/integration/Gemfile
290
- - test/integration/Gemfile.lock
291
290
  - test/integration/README.md
292
291
  - test/integration/Rakefile
293
292
  - test/integration/camp.rb
294
293
  - test/integration/config.kdl
295
- - test/integration/test/test_helper.r
296
294
  - test/integration/test/test_helper.rb
297
295
  - test/reload_reloader.rb
298
296
  - test/test_helper.rb
@@ -323,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
323
321
  - !ruby/object:Gem::Version
324
322
  version: '0'
325
323
  requirements: []
326
- rubygems_version: 3.3.9
324
+ rubygems_version: 3.5.11
327
325
  signing_key:
328
326
  specification_version: 4
329
327
  summary: miniature rails for anyone
@@ -1,95 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- ansi (1.5.0)
5
- base64 (0.2.0)
6
- bigdecimal (3.1.8)
7
- builder (3.3.0)
8
- camping (3.2.2)
9
- dry-logger (~> 1.0.4)
10
- kdl (~> 1.0, >= 1.0.5)
11
- listen (~> 3.9.0, >= 3.9.0)
12
- mab (~> 0.0, >= 0.0.3)
13
- rack (~> 3.0, >= 3.0.4.1)
14
- rack-session (~> 2.0, >= 2.0.0)
15
- rackup (~> 2.1.0)
16
- rake (~> 13.2.1)
17
- tilt (~> 2.3.0)
18
- zeitwerk (~> 2.6.15, >= 2.6.15)
19
- dry-logger (1.0.4)
20
- ffi (1.17.0)
21
- ffi (1.17.0-aarch64-linux-gnu)
22
- ffi (1.17.0-aarch64-linux-musl)
23
- ffi (1.17.0-arm-linux-gnu)
24
- ffi (1.17.0-arm-linux-musl)
25
- ffi (1.17.0-arm64-darwin)
26
- ffi (1.17.0-x86-linux-gnu)
27
- ffi (1.17.0-x86-linux-musl)
28
- ffi (1.17.0-x86_64-darwin)
29
- ffi (1.17.0-x86_64-linux-gnu)
30
- ffi (1.17.0-x86_64-linux-musl)
31
- kdl (1.0.5)
32
- base64 (~> 0.2.0)
33
- bigdecimal (~> 3.1.6)
34
- racc (~> 1.5)
35
- simpleidn (~> 0.2.1)
36
- listen (3.9.0)
37
- rb-fsevent (~> 0.10, >= 0.10.3)
38
- rb-inotify (~> 0.9, >= 0.9.10)
39
- mab (0.0.3)
40
- minitest (5.23.1)
41
- minitest-hooks (1.5.1)
42
- minitest (> 5.3)
43
- minitest-reporters (1.6.1)
44
- ansi
45
- builder
46
- minitest (>= 5.0)
47
- ruby-progressbar
48
- nio4r (2.7.3)
49
- puma (6.4.2)
50
- nio4r (~> 2.0)
51
- racc (1.8.0)
52
- rack (3.0.11)
53
- rack-session (2.0.0)
54
- rack (>= 3.0.0)
55
- rack-ssl-enforcer (0.2.9)
56
- rack-test (2.1.0)
57
- rack (>= 1.3)
58
- rackup (2.1.0)
59
- rack (>= 3)
60
- webrick (~> 1.8)
61
- rake (13.2.1)
62
- rb-fsevent (0.11.2)
63
- rb-inotify (0.11.1)
64
- ffi (~> 1.0)
65
- ruby-progressbar (1.13.0)
66
- simpleidn (0.2.3)
67
- tilt (2.3.0)
68
- webrick (1.8.1)
69
- zeitwerk (2.6.15)
70
-
71
- PLATFORMS
72
- aarch64-linux-gnu
73
- aarch64-linux-musl
74
- arm-linux-gnu
75
- arm-linux-musl
76
- arm64-darwin
77
- ruby
78
- x86-linux-gnu
79
- x86-linux-musl
80
- x86_64-darwin
81
- x86_64-linux-gnu
82
- x86_64-linux-musl
83
-
84
- DEPENDENCIES
85
- camping
86
- minitest (~> 5.0)
87
- minitest-hooks
88
- minitest-reporters
89
- puma
90
- rack-ssl-enforcer
91
- rack-test
92
- rake
93
-
94
- BUNDLED WITH
95
- 2.5.11
@@ -1,64 +0,0 @@
1
- # Test Helper
2
- $:.unshift File.dirname(__FILE__) + '/../'
3
-
4
- begin
5
- require 'rubygems'
6
- rescue LoadError
7
- end
8
-
9
- require 'minitest/autorun'
10
- require 'rack/test'
11
- require 'minitest/reporters'
12
- require 'minitest/hooks'
13
- Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(:color => true)]
14
-
15
- # Default TestCase with some helpers.
16
- # The same stuff we use for Camping itself.
17
- class TestCase < MiniTest::Test
18
- include Rack::Test::Methods
19
- include Minitest::Hooks
20
-
21
- def self.inherited(mod)
22
- mod.app = Object.const_get(mod.to_s[/w+/])
23
- super
24
- end
25
-
26
- class << self
27
- attr_accessor :app
28
- end
29
-
30
- def setup
31
- super
32
- Camping.make_camp
33
- end
34
-
35
- def body() last_response.body end
36
- def app() self.class.app end
37
-
38
- def response_body() last_response.to_a end
39
-
40
- def assert_reverse
41
- begin
42
- yield
43
- rescue Exception
44
- else
45
- assert false, "Block didn't fail"
46
- end
47
- end
48
-
49
- def assert_body(str, message="")
50
- case str
51
- when Regexp
52
- assert_match(str, last_response.body.strip, message)
53
- else
54
- assert_equal(str.to_s, last_response.body.strip, message)
55
- end
56
- end
57
-
58
- def assert_status(code, message="")
59
- assert_equal(code, last_response.status, message)
60
- end
61
-
62
- def test_silly; end
63
- end
64
-