yaframework 0.2.1 → 0.2.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: 1023ffdf696fe0cca466c59e707504d1087fd4433d1cfaf44d17a0e7056d4196
4
- data.tar.gz: 93dd4318d8a209a8dd40fc5a1b2d9dc8e3d233a1fa92f4e3883f0ca74067e71e
3
+ metadata.gz: 2788a5ff60e8e0bc920bdc79f77a7b72173ea9e931796eca9c6133f052e94128
4
+ data.tar.gz: c407ba38d42abb056bef8adb8e237e46f6b536f93153646bf65f45aa4665c38d
5
5
  SHA512:
6
- metadata.gz: d3eab3431ab7170cfe6367a258b33b32404abcb97ac8f8853bf9a4959cd6528b92edfbe014ee9a8e14afe6b7a445fe76dd198787ff7b927162dc6217a4192886
7
- data.tar.gz: 0b5701763d06e37cb4f71ec494e38280998110ca698dd00ce9c1ea31373204a561028f9ee14dcdb6e7f604c28dbe76b17447c3306f025eeb2c56ee1e8d61e29c
6
+ metadata.gz: d8279ffce672f404395f175dc98a41caab4658e44b7eb6feb80b208d217cf923f35eed7fcde3910620465ee1cb0b1d0c4e8e0d44f4cee8339551ea5932d8e762
7
+ data.tar.gz: 48fcd44ddaa1db8dbda9da2817241627ab44264c946e9c9dfac68ab409f6b31d708bfea4ab39d50031531cca8548ba9a8836da7c7bbd85ffa69e6998ade94767
data/.gitignore CHANGED
@@ -12,4 +12,3 @@
12
12
  /tmp/
13
13
  *.gem
14
14
  *.rbc
15
- Gemfile.lock
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.4
2
+ TargetRubyVersion: 2.5
3
3
 
4
4
  Style/StringLiterals:
5
5
  Enabled: true
data/Gemfile CHANGED
@@ -6,4 +6,3 @@ gemspec
6
6
 
7
7
  gem "minitest", "~> 5.0"
8
8
  gem "rack", "~> 2.2", ">= 2.2.3"
9
- gem "rake", "~> 13.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,46 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ yaframework (0.2.1)
5
+ rack (~> 2.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.2)
11
+ minitest (5.14.4)
12
+ parallel (1.20.1)
13
+ parser (3.0.2.0)
14
+ ast (~> 2.4.1)
15
+ rack (2.2.3)
16
+ rainbow (3.0.0)
17
+ rake (13.0.6)
18
+ regexp_parser (2.1.1)
19
+ rexml (3.2.5)
20
+ rubocop (1.18.4)
21
+ parallel (~> 1.10)
22
+ parser (>= 3.0.0.0)
23
+ rainbow (>= 2.2.2, < 4.0)
24
+ regexp_parser (>= 1.8, < 3.0)
25
+ rexml
26
+ rubocop-ast (>= 1.8.0, < 2.0)
27
+ ruby-progressbar (~> 1.7)
28
+ unicode-display_width (>= 1.4.0, < 3.0)
29
+ rubocop-ast (1.8.0)
30
+ parser (>= 3.0.1.1)
31
+ ruby-progressbar (1.11.0)
32
+ unicode-display_width (2.0.0)
33
+
34
+ PLATFORMS
35
+ ruby
36
+
37
+ DEPENDENCIES
38
+ bundler (~> 2.1.4)
39
+ minitest (~> 5.0)
40
+ rack (~> 2.2, >= 2.2.3)
41
+ rake (~> 13.0)
42
+ rubocop (~> 1.7)
43
+ yaframework!
44
+
45
+ BUNDLED WITH
46
+ 2.1.4
@@ -0,0 +1,10 @@
1
+ # Examples
2
+
3
+ Here are some examples of applications created with Yaframework:
4
+
5
+ 1. [**Hello World**](https://github.com/maxbarsukov/yaframework/tree/master/examples/hello-world)
6
+
7
+ A simple application that displays "Hello world" to you.
8
+
9
+
10
+ 2. Be soon...
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "yaframework"
@@ -0,0 +1,15 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ rack (2.2.3)
5
+ yaframework (0.2.0)
6
+ rack (~> 2.2)
7
+
8
+ PLATFORMS
9
+ ruby
10
+
11
+ DEPENDENCIES
12
+ yaframework
13
+
14
+ BUNDLED WITH
15
+ 2.1.4
@@ -0,0 +1,12 @@
1
+ # Hello world
2
+
3
+ A simple application that displays "Hello world" to you.
4
+
5
+ ## Installation
6
+
7
+ Clone this repo and go to this folder.
8
+ Then, run `bundle install` to install this gem.
9
+
10
+ ## Run
11
+
12
+ Run with `ruby app.rb` or `rackup` and view at http://localhost:4567
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "yaframework"
4
+ app = Yaframework::Application
5
+
6
+ app.get "/" do
7
+ "Hello world!"
8
+ end
9
+
10
+ app.listen(4567)
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "yaframework"
4
+ require "./app"
5
+
6
+ run app
data/lib/yaframework.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'yaframework/base'
3
+ require_relative "yaframework/base"
4
4
 
5
5
  module Yaframework
6
6
  end
@@ -4,7 +4,7 @@ require "rack"
4
4
 
5
5
  module Yaframework
6
6
  class Base
7
- attr_reader :routes, :request, :response, :params, :env
7
+ attr_reader :routes, :request, :response, :env
8
8
 
9
9
  def initialize
10
10
  @routes = {}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Yaframework
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
@@ -6,8 +6,4 @@ class YaframeworkTest < Minitest::Test
6
6
  def test_that_it_has_a_version_number
7
7
  refute_nil ::Yaframework::VERSION
8
8
  end
9
-
10
- def test_it_does_something_useful
11
- assert false
12
- end
13
9
  end
data/yaframework.gemspec CHANGED
@@ -13,14 +13,14 @@ Gem::Specification.new do |spec|
13
13
 
14
14
  spec.homepage = "https://rubygems.org/gems/yaframework"
15
15
  spec.license = "MIT"
16
- spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
16
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
17
17
 
18
18
  spec.metadata["homepage_uri"] = spec.homepage
19
19
  spec.metadata["source_code_uri"] = "https://github.com/maxbarsukov/yaframework"
20
20
  spec.metadata["changelog_uri"] = "https://github.com/maxbarsukov/yaframework/blob/master/CHANGELOG.md"
21
21
 
22
- spec.test_files = Dir['test/**/*.rb']
23
- spec.require_paths = ['lib']
22
+ spec.test_files = Dir["test/**/*.rb"]
23
+ spec.require_paths = ["lib"]
24
24
 
25
25
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
26
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
@@ -33,5 +33,5 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "rake", "~> 13.0"
34
34
  spec.add_development_dependency "rubocop", "~> 1.7"
35
35
 
36
- spec.add_runtime_dependency "rack", "~> 2.2"
36
+ spec.add_runtime_dependency "rack", "~> 2.2"
37
37
  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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - maxbarsukov
@@ -79,11 +79,18 @@ files:
79
79
  - CHANGELOG.md
80
80
  - CODE_OF_CONDUCT.md
81
81
  - Gemfile
82
+ - Gemfile.lock
82
83
  - LICENSE.txt
83
84
  - README.md
84
85
  - Rakefile
85
86
  - bin/console
86
87
  - bin/setup
88
+ - examples/README.md
89
+ - examples/hello-world/Gemfile
90
+ - examples/hello-world/Gemfile.lock
91
+ - examples/hello-world/README.md
92
+ - examples/hello-world/app.rb
93
+ - examples/hello-world/config.ru
87
94
  - lib/yaframework.rb
88
95
  - lib/yaframework/base.rb
89
96
  - lib/yaframework/version.rb
@@ -105,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
112
  requirements:
106
113
  - - ">="
107
114
  - !ruby/object:Gem::Version
108
- version: 2.4.0
115
+ version: 2.5.0
109
116
  required_rubygems_version: !ruby/object:Gem::Requirement
110
117
  requirements:
111
118
  - - ">="