yaframework 0.4.0 → 0.4.1

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: 33b8bd38ee7fbf3d16bdef94f830384f979ad465ff674d085378caa6a46b6971
4
- data.tar.gz: 1da887439ec28a18fc4ee8a4812d9bf3d9f70be894636f181a6af98a965d0dd2
3
+ metadata.gz: 23a8af14273443627664b65feb652bc03336d5fbe829f672cae4ef9c8ca4604e
4
+ data.tar.gz: 848d0e46585695fe4756bf91b6c286b9cacb4ec684a535491e7a348f4a2c081a
5
5
  SHA512:
6
- metadata.gz: 6ff977d266bccebbc67aa17c7ff2116be8f51c057be070807afa4d2c6e6a090c1053f146434e3a9ed78defa9ee840dfaa08b760f4807b0976b7bef9a09b181db
7
- data.tar.gz: a62b06535d579d4b552aec2c1a0856514d5b27628aec77e267cfa4d98bc9b4b6185d00d6c919cae5fdf198a295870a7d0a8233eb4b3df08e39c967663791887f
6
+ metadata.gz: 35fa5d015af06f258f7b7fff290a14a3f60329aeb2e713b4cad172f86b55bde28a01d371a114ed89b77a48862146d78c53721fa21bcd86beaa155c0cec7a13f8
7
+ data.tar.gz: 47a8a7be5c253fb3a1bf788c6256613f85c9132725a328e456b8e7e27f82da322f5f2ff5691e8267dd3fce9139d0db13fcab6ca71e424436bdf1a1b165a88b3b
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  /tmp/
13
13
  *.gem
14
14
  *.rbc
15
+ /examples/**/Gemfile.lock
data/.rubocop.yml CHANGED
@@ -16,5 +16,11 @@ Style/Documentation:
16
16
  Metrics/MethodLength:
17
17
  Enabled: false
18
18
 
19
+ Metrics/AbcSize:
20
+ Max: 25
21
+
19
22
  Layout/LineLength:
20
23
  Max: 120
24
+
25
+ Style/SpecialGlobalVars:
26
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [0.4.1] - 2021-07-24
2
+
3
+ - A little fix. Fixed an error with the wrong order of declaring variables (lol)
4
+
5
+ ## [0.4.0] - 2021-07-24
6
+
7
+ - Global routing update and large-scale code base changes
8
+
9
+ ## [0.3.0] - 2021-07-24
10
+
11
+ - Added tools for interacting with the database
12
+
1
13
  ## [0.2.2] - 2021-07-23
2
14
 
3
15
  - Params fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yaframework (0.2.2)
4
+ yaframework (0.4.0)
5
5
  rack (~> 2.2)
6
6
 
7
7
  GEM
data/examples/README.md CHANGED
@@ -2,9 +2,16 @@
2
2
 
3
3
  Here are some examples of applications created with Yaframework:
4
4
 
5
- 1. [**Hello World**](https://github.com/maxbarsukov/yaframework/tree/master/examples/hello-world)
5
+ 1. ###[Hello World](https://github.com/maxbarsukov/yaframework/tree/master/examples/hello-world)
6
6
 
7
7
  A simple application that displays "Hello world" to you.
8
8
 
9
9
 
10
- 2. Be soon...
10
+ 2. ###[Params](https://github.com/maxbarsukov/yaframework/tree/master/examples/params)
11
+
12
+ Shows how the application parameters can be used
13
+
14
+
15
+ 3. ###[Halts and Redirects](https://github.com/maxbarsukov/yaframework/tree/master/examples/halts-and-redirects)
16
+
17
+ Shows how to use halts and redirects
@@ -7,8 +7,4 @@ app.get "/" do
7
7
  "Hello world!"
8
8
  end
9
9
 
10
- app.get "/hi/:name" do
11
- "Hello #{request.params[:name]}"
12
- end
13
-
14
10
  app.listen(4567)
@@ -17,9 +17,9 @@ module Yaframework
17
17
  end
18
18
 
19
19
  def call(env)
20
+ @env = env
20
21
  @request = Yaframework::Request.new @env
21
22
  @response = Yaframework::Response.new
22
- @env = env
23
23
  catch(:halt) { route_eval }
24
24
  end
25
25
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Yaframework
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaframework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - maxbarsukov
@@ -87,7 +87,6 @@ files:
87
87
  - bin/setup
88
88
  - examples/README.md
89
89
  - examples/hello-world/Gemfile
90
- - examples/hello-world/Gemfile.lock
91
90
  - examples/hello-world/README.md
92
91
  - examples/hello-world/app.rb
93
92
  - examples/hello-world/config.ru
@@ -1,15 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- rack (2.2.3)
5
- yaframework (0.2.2)
6
- rack (~> 2.2)
7
-
8
- PLATFORMS
9
- ruby
10
-
11
- DEPENDENCIES
12
- yaframework
13
-
14
- BUNDLED WITH
15
- 2.1.4