shnaider_code 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/shnaider_code/version.rb +1 -1
- data/lib/source/controllers/create_student_controller.rb +1 -1
- data/lib/source/controllers/edit_student_controller.rb +1 -1
- data/lib/source/controllers/view_controller.rb +1 -1
- data/lib/source/data_construct_pattern/data_construct_pattarn.rb +1 -1
- data/lib/source/data_list.rb +1 -1
- data/lib/source/data_list_student_short.rb +1 -1
- data/lib/source/data_table.rb +1 -1
- data/lib/source/database/students_db.rb +2 -2
- data/lib/source/database/students_list_db.rb +1 -1
- data/lib/source/student/abstract_student.rb +1 -1
- data/lib/source/student/student.rb +1 -1
- data/lib/source/student/student_short.rb +1 -1
- data/lib/source/student_list_format.rb +1 -1
- data/lib/source/students_list.rb +1 -1
- data/lib/source/students_list_adapter.rb +1 -1
- data/lib/source/students_list_format_strategy.rb +1 -1
- data/shnaider_code-2.0.1.gem +0 -0
- data/shnaider_code-2.0.2.gem +0 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a92f3c48939d3261f5a9568e4618c0956e59997136397d7c2b381ebe8dc394c
|
4
|
+
data.tar.gz: 455effc951f3e87a4d66e1a70f77a85e4dded874d696734313729a55c5d5791c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4fd7232f149316a1baaf95876dc4336b84098df238bcb5d64c879c6fc0445da5e86dde06999b688f9ac0f904691615a6e1c7998eaba66692ea070552c856536
|
7
|
+
data.tar.gz: eed42efb63e756ae26b57676c98219239c7ba17f61910030b9e64f4f531db4253cf7d34c3a800a1dd8c863ab76f5694bafd8338e8ac2feca0c0d5aa2744749c7
|
data/lib/source/data_list.rb
CHANGED
data/lib/source/data_table.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
require 'mysql2'
|
2
2
|
|
3
|
-
module
|
3
|
+
module ShnaiderCode
|
4
4
|
|
5
5
|
class StudentsDB
|
6
6
|
attr_private_accessor :db_connection
|
7
7
|
|
8
8
|
def initialize()
|
9
|
-
self.db_connection = Mysql2::Client.new(:host => "localhost", :username => "root")
|
9
|
+
self.db_connection = Mysql2::Client.new(:host => "localhost", :username => "root", :password => "root")
|
10
10
|
self.db_connection.query('CREATE DATABASE IF NOT EXISTS my_db')
|
11
11
|
self.db_connection.query('USE my_db')
|
12
12
|
self.db_connection.query('DROP TABLE IF EXISTS student')
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "source/attr_limited_regex_accessor.rb"
|
2
2
|
require "source/student/abstract_student.rb"
|
3
3
|
|
4
|
-
module
|
4
|
+
module ShnaiderCode
|
5
5
|
class Student < AbstractStudent
|
6
6
|
attr_limited_regex_accessor :phone, '/\d-\d{3}-\d{3}-\d{2}-\d{2}/'
|
7
7
|
attr_limited_regex_accessor :email, '/\w*@\w*.\w{2,3}/'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "source/attr_limited_regex_accessor.rb"
|
2
2
|
require "source/student/abstract_student.rb"
|
3
3
|
|
4
|
-
module
|
4
|
+
module ShnaiderCode
|
5
5
|
class StudentShort < AbstractStudent
|
6
6
|
attr_private_limited_regex_accessor :git, '/@\w*/'
|
7
7
|
attr_private_limited_regex_accessor :email, '/\w*@\w*.\w{2,3}/'
|
data/lib/source/students_list.rb
CHANGED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shnaider_code
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iya
|
@@ -53,6 +53,8 @@ files:
|
|
53
53
|
- lib/source/students_list_adapter.rb
|
54
54
|
- lib/source/students_list_format_strategy.rb
|
55
55
|
- shnaider_code-2.0.0.gem
|
56
|
+
- shnaider_code-2.0.1.gem
|
57
|
+
- shnaider_code-2.0.2.gem
|
56
58
|
- shnaider_code.gemspec
|
57
59
|
homepage: https://github.com/bushmrz/learning-patterns-with-ruby
|
58
60
|
licenses:
|