shnaider_code 2.0.1 → 2.0.3

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: 1e7944c0fb66d7ce5ffc5da0ae8f27590d90fd9fe4e00983d64f44d295f61b60
4
- data.tar.gz: f15a4a429ddb7d71d44e8867c23956ec7fd1aa77781a5bf4e5e9fa15a1fd27f7
3
+ metadata.gz: 9a92f3c48939d3261f5a9568e4618c0956e59997136397d7c2b381ebe8dc394c
4
+ data.tar.gz: 455effc951f3e87a4d66e1a70f77a85e4dded874d696734313729a55c5d5791c
5
5
  SHA512:
6
- metadata.gz: 27e403d2dbe4138fb7aa1bf04c0b64b86e3e17d0b9b74fdc7742450f2e60845038120870a1b5ac359db9579c4735ee348366ca6dcffdee5a7e363e4b581b5bde
7
- data.tar.gz: bc8fb225ba066038cdddb7c342d695e10bbdda16a14037c03ed09087b9228f5f79e09b319e350614345634d0f03403bc6606c50947f1e6d9a02c2d9c9447c876
6
+ metadata.gz: c4fd7232f149316a1baaf95876dc4336b84098df238bcb5d64c879c6fc0445da5e86dde06999b688f9ac0f904691615a6e1c7998eaba66692ea070552c856536
7
+ data.tar.gz: eed42efb63e756ae26b57676c98219239c7ba17f61910030b9e64f4f531db4253cf7d34c3a800a1dd8c863ab76f5694bafd8338e8ac2feca0c0d5aa2744749c7
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ShnaiderCode
4
- VERSION = "2.0.1"
4
+ VERSION = "2.0.3"
5
5
  end
@@ -1,4 +1,4 @@
1
- module McDelta
1
+ module ShnaiderCode
2
2
  class CreateStudentController
3
3
  attr_accessor :onCreate
4
4
 
@@ -1,4 +1,4 @@
1
- module McDelta
1
+ module ShnaiderCode
2
2
  class EditStudentController
3
3
  attr_accessor :onCreate
4
4
  attr_reader :edit_user_id
@@ -4,7 +4,7 @@ require 'source/controllers/edit_student_controller.rb'
4
4
  require 'source/attr_limited_regex_accessor.rb'
5
5
  require 'logger'
6
6
 
7
- module McDelta
7
+ module ShnaiderCode
8
8
  class ViewController
9
9
  attr_private_accessor :model
10
10
  attr_accessor :data_list
@@ -1,4 +1,4 @@
1
- module McDelta
1
+ module ShnaiderCode
2
2
  class DataConstructPattern
3
3
  def execute(values, attrs)
4
4
  raise 'Метод не реализован'
@@ -1,4 +1,4 @@
1
- module McDelta
1
+ module ShnaiderCode
2
2
  module DataListObserver
3
3
  def notify(data)
4
4
  raise 'not implemented'
@@ -1,7 +1,7 @@
1
1
  require 'source/data_list.rb'
2
2
  require 'source/data_table.rb'
3
3
 
4
- module McDelta
4
+ module ShnaiderCode
5
5
  class DataListStudentShort < DataList
6
6
 
7
7
  attr_private_accessor :data_constructor
@@ -1,4 +1,4 @@
1
- module McDelta
1
+ module ShnaiderCode
2
2
  class DataTable
3
3
  attr_private_accessor :data
4
4
 
@@ -1,12 +1,12 @@
1
1
  require 'mysql2'
2
2
 
3
- module McDelta
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,6 +1,6 @@
1
1
  require 'source/database/students_db.rb'
2
2
 
3
- module McDelta
3
+ module ShnaiderCode
4
4
  class StudentsListDB
5
5
  private_class_method :new
6
6
 
@@ -1,4 +1,4 @@
1
- module McDelta
1
+ module ShnaiderCode
2
2
  class AbstractStudent
3
3
  private_class_method :new
4
4
  attr_accessor :lastname, :firstname, :patronymic, :id
@@ -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 McDelta
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 McDelta
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}/'
@@ -1,4 +1,4 @@
1
- module McDelta
1
+ module ShnaiderCode
2
2
  class StudentListFormat
3
3
  attr_private_accessor :students
4
4
  attr_accessor :formater
@@ -1,6 +1,6 @@
1
1
  require "source/attr_limited_regex_accessor.rb"
2
2
 
3
- module McDelta
3
+ module ShnaiderCode
4
4
  class StudentsList
5
5
  attr_private_accessor :students_list_adapter
6
6
 
@@ -1,4 +1,4 @@
1
- module McDelta
1
+ module ShnaiderCode
2
2
  class StudentsListAdapter
3
3
  def get_student(id)
4
4
  end
@@ -1,7 +1,7 @@
1
1
  require 'json'
2
2
  require 'yaml'
3
3
 
4
- module McDelta
4
+ module ShnaiderCode
5
5
  class StudentsListFormatStrategy
6
6
  def read_from(filename)
7
7
  require 'method not implemented'
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.1
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: