hobby 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/hobby.gemspec +2 -2
- data/readme.adoc +0 -16
- data/spec/helper.rb +0 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2b39e55ddd774df20a8ba6ff04156303c99bccccb90c08f8915694615faefbe
|
4
|
+
data.tar.gz: 4c175492dc2b6edf91844b0b826657929d373c6f5985dce4aeb39ca041d70040
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 576536cd9c0e2269658a0d982a92cd2283ca553fa0e95e9725cb40067eda935f8d75753ec9c2ec21b98e0a64b6c3af983591edac6e0aded8a1a28216ec12dec0
|
7
|
+
data.tar.gz: 0f0e7bb9edde95240b69fcf8447a1d5421e807da3fa8bc8fb38878fc1e7d54d79819709fb18a160b8059f020843b99104bf35fae70fbc10fd27213f938f50228
|
data/Gemfile
CHANGED
data/hobby.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'hobby'
|
7
|
-
spec.version = '0.2.
|
7
|
+
spec.version = '0.2.1'
|
8
8
|
spec.authors = ['Anatoly Chernow']
|
9
9
|
spec.email = ['chertoly@gmail.com']
|
10
10
|
spec.summary = %q{A professional way to create Rack applications.}
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
|
-
spec.add_dependency 'rack', '
|
19
|
+
spec.add_dependency 'rack', '~> 2'
|
20
20
|
|
21
21
|
spec.required_ruby_version = '>= 2.6.6'
|
22
22
|
end
|
data/readme.adoc
CHANGED
@@ -29,15 +29,6 @@ $ gem install hobby
|
|
29
29
|
|
30
30
|
Hobby provides a Ruby DSL to create web applications. It is well suited both for standalone and inside-Rails use.
|
31
31
|
|
32
|
-
The DSL looks a lot like Sinatra, but Hobby applications are
|
33
|
-
|
34
|
-
* more reusable
|
35
|
-
* more reliable
|
36
|
-
+
|
37
|
-
The API and the codebase are much smaller and fully covered with specs. 100% mutation coverage is constantly maintained.
|
38
|
-
* https://github.com/luislavena/bench-micro#requestssec[more performant]
|
39
|
-
* https://github.com/luislavena/bench-micro#memory-allocationrequest[consume less resources]
|
40
|
-
|
41
32
|
To create a Hobby application, you create a class and include `Hobby` in it.
|
42
33
|
For example:
|
43
34
|
|
@@ -335,10 +326,3 @@ To run the specs:
|
|
335
326
|
----
|
336
327
|
bundle exec rspec
|
337
328
|
----
|
338
|
-
|
339
|
-
To perform mutation analysis:
|
340
|
-
|
341
|
-
[source,bash]
|
342
|
-
----
|
343
|
-
bundle exec mutant --use rspec 'Hobby*' --include lib --require hobby
|
344
|
-
----
|
data/spec/helper.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatoly Chernow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2'
|
27
27
|
description:
|