BookMD 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f7ef6758c0f38621e4cfda78b00367a808a9fb52b69ec01657035aeac0c6389
4
- data.tar.gz: c7e2745278510933bff3f9f1f401d7f8fe8ad241ac368a04da53d638e5ed3bb9
3
+ metadata.gz: 99159b01606d9c413640cf1823237697feb9c9e6c24f3d1d2d8aab0cfaacea7d
4
+ data.tar.gz: 5a4fe87801bce9f37eef8c4a9802e71e0f8d36651907fb2dbeec1aa37107a157
5
5
  SHA512:
6
- metadata.gz: 4111877e6b892ffe859793c269ce99ed4251e428d91c31e12300764378d8b55f2795fc475be1416535665f9623dee7ad2c95d4602795636609f8f754b035d4b8
7
- data.tar.gz: 3be138a48e2bc3832d1e7f53a0c7b912c730a69043a8bd46e5879c581ec318e06469415b49512892792a2aa54e7cb5053adaeb3c644a6ab7eb3143a8a2804695
6
+ metadata.gz: b570050921157953781cf2f0148f28f226a18a61f7c56a71fa31891187cf52631d1150c7026414364f43175972257599bb38bb4c94e0554181a5dc3f85050b38
7
+ data.tar.gz: c189e83e0dbf159225d84ef006e6922e84d4a316b1b1a44b764bdbaab86eb08ac877a1a39f4c5fdb936d2ffc8638b2fb86caca2b5dfc0e64da2287ef0b4bbd7c
data/.DS_Store CHANGED
Binary file
data/BookMD-0.1.5.gem ADDED
Binary file
data/BookMD.gemspec CHANGED
@@ -29,7 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency "tty-prompt", "~> 0.21.0"
30
30
  spec.add_dependency "tty-box", "~> 0.5.0"
31
31
  spec.add_dependency "tty-table", "~> 0.11.0"
32
- spec.add_dependency "artii", "~> 2.1.2"
33
32
  spec.add_dependency "jeweler", "~> 2.3.9"
34
33
  spec.add_dependency "simplecov", "~> 0.9.0"
35
34
  spec.add_dependency "rspec", "~> 3.1.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,131 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ BookMD (0.1.5)
5
+ artii (~> 2.1.2)
6
+ fileutils (~> 1.4.1)
7
+ jeweler (~> 2.3.9)
8
+ rspec (~> 3.1.0)
9
+ simplecov (~> 0.9.0)
10
+ tty-box (~> 0.5.0)
11
+ tty-prompt (~> 0.21.0)
12
+ tty-table (~> 0.11.0)
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ addressable (2.4.0)
18
+ artii (2.1.2)
19
+ builder (3.2.4)
20
+ descendants_tracker (0.0.4)
21
+ thread_safe (~> 0.3, >= 0.3.1)
22
+ diff-lcs (1.3)
23
+ docile (1.1.5)
24
+ equatable (0.6.1)
25
+ faraday (0.9.2)
26
+ multipart-post (>= 1.2, < 3)
27
+ fileutils (1.4.1)
28
+ git (1.6.0)
29
+ rchardet (~> 1.8)
30
+ github_api (0.16.0)
31
+ addressable (~> 2.4.0)
32
+ descendants_tracker (~> 0.0.4)
33
+ faraday (~> 0.8, < 0.10)
34
+ hashie (>= 3.4)
35
+ mime-types (>= 1.16, < 3.0)
36
+ oauth2 (~> 1.0)
37
+ hashie (4.1.0)
38
+ highline (2.0.3)
39
+ jeweler (2.3.9)
40
+ builder
41
+ bundler
42
+ git (>= 1.2.5)
43
+ github_api (~> 0.16.0)
44
+ highline (>= 1.6.15)
45
+ nokogiri (>= 1.5.10)
46
+ psych
47
+ rake
48
+ rdoc
49
+ semver2
50
+ jwt (2.2.1)
51
+ mime-types (2.99.3)
52
+ mini_portile2 (2.4.0)
53
+ multi_json (1.14.1)
54
+ multi_xml (0.6.0)
55
+ multipart-post (2.1.1)
56
+ necromancer (0.5.1)
57
+ nokogiri (1.10.9)
58
+ mini_portile2 (~> 2.4.0)
59
+ oauth2 (1.4.4)
60
+ faraday (>= 0.8, < 2.0)
61
+ jwt (>= 1.0, < 3.0)
62
+ multi_json (~> 1.3)
63
+ multi_xml (~> 0.5)
64
+ rack (>= 1.2, < 3)
65
+ pastel (0.7.3)
66
+ equatable (~> 0.6)
67
+ tty-color (~> 0.5)
68
+ psych (3.1.0)
69
+ rack (2.2.2)
70
+ rake (12.3.3)
71
+ rchardet (1.8.0)
72
+ rdoc (6.2.1)
73
+ rspec (3.1.0)
74
+ rspec-core (~> 3.1.0)
75
+ rspec-expectations (~> 3.1.0)
76
+ rspec-mocks (~> 3.1.0)
77
+ rspec-core (3.1.7)
78
+ rspec-support (~> 3.1.0)
79
+ rspec-expectations (3.1.2)
80
+ diff-lcs (>= 1.2.0, < 2.0)
81
+ rspec-support (~> 3.1.0)
82
+ rspec-mocks (3.1.3)
83
+ rspec-support (~> 3.1.0)
84
+ rspec-support (3.1.2)
85
+ semver2 (3.4.2)
86
+ simplecov (0.9.2)
87
+ docile (~> 1.1.0)
88
+ multi_json (~> 1.0)
89
+ simplecov-html (~> 0.9.0)
90
+ simplecov-html (0.9.0)
91
+ strings (0.1.8)
92
+ strings-ansi (~> 0.1)
93
+ unicode-display_width (~> 1.5)
94
+ unicode_utils (~> 1.4)
95
+ strings-ansi (0.2.0)
96
+ thread_safe (0.3.6)
97
+ tty-box (0.5.0)
98
+ pastel (~> 0.7.2)
99
+ strings (~> 0.1.6)
100
+ tty-cursor (~> 0.7)
101
+ tty-color (0.5.1)
102
+ tty-cursor (0.7.1)
103
+ tty-prompt (0.21.0)
104
+ necromancer (~> 0.5.0)
105
+ pastel (~> 0.7.0)
106
+ tty-reader (~> 0.7.0)
107
+ tty-reader (0.7.0)
108
+ tty-cursor (~> 0.7)
109
+ tty-screen (~> 0.7)
110
+ wisper (~> 2.0.0)
111
+ tty-screen (0.7.1)
112
+ tty-table (0.11.0)
113
+ equatable (~> 0.6)
114
+ necromancer (~> 0.5)
115
+ pastel (~> 0.7.2)
116
+ strings (~> 0.1.5)
117
+ tty-screen (~> 0.7)
118
+ unicode-display_width (1.7.0)
119
+ unicode_utils (1.4.0)
120
+ wisper (2.0.1)
121
+
122
+ PLATFORMS
123
+ ruby
124
+
125
+ DEPENDENCIES
126
+ BookMD!
127
+ rake (~> 12.0)
128
+ rspec (~> 3.0)
129
+
130
+ BUNDLED WITH
131
+ 2.1.4
data/appointments.txt ADDED
@@ -0,0 +1,4 @@
1
+ Dr: Dr. Gregor
2
+ Day: Monday
3
+ Time: ["\"8.30\""]
4
+
@@ -1,3 +1,3 @@
1
1
  module BookMD
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
data/lib/bookMD2.rb CHANGED
@@ -4,7 +4,6 @@ require 'tty-prompt'
4
4
  require 'tty-reader'
5
5
  require 'tty-table'
6
6
  require 'tty-box'
7
- require 'artii'
8
7
  require 'colorize'
9
8
  prompt = TTY::Prompt.new
10
9
 
data/lib/user.rb CHANGED
@@ -29,9 +29,9 @@ print "Name: "
29
29
  'Travel': @travel
30
30
  }
31
31
  end
32
- def printer #this method takes the patient from make_patient method and adds it to txt file
32
+ def printer
33
33
  separator = ' '
34
- File.open("patients.txt","a+") do |f| #flag
34
+ File.open("patients.txt","a+") do |f| #append flag
35
35
  f.puts(make_patient)
36
36
  f.puts(separator)
37
37
  # puts patients
@@ -53,7 +53,7 @@ appointments.store(:the_appointment,())
53
53
  @dr = dr_selection
54
54
  @day_choice = day_select
55
55
  @time_choice = mon_time_selection
56
- #TODO: if you are using symbols as hash keys then you don't need the quotation marks
56
+
57
57
  new_appointment = {
58
58
  dr: @dr,
59
59
  day_choice: @day_choice,
@@ -67,7 +67,7 @@ File.open("appointments.txt","a+") do |f| #flag
67
67
  f.puts("\n")
68
68
  end
69
69
  end
70
- #TODO: Modify this to print whatever you like - this will just read the file
70
+
71
71
  def appointment_printer
72
72
  puts("\n\n")
73
73
  puts "These are your upcoming appointments:\n"
data/patients.txt ADDED
@@ -0,0 +1,2 @@
1
+ {:Name=>"h", :Phone=>"h", :Email=>"h", :Travel=>"n"}
2
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: BookMD
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - GorginZ
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.11.0
55
- - !ruby/object:Gem::Dependency
56
- name: artii
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 2.1.2
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 2.1.2
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: jeweler
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -138,12 +124,15 @@ files:
138
124
  - BookMD-0.1.2.gem
139
125
  - BookMD-0.1.3.gem
140
126
  - BookMD-0.1.4.gem
127
+ - BookMD-0.1.5.gem
141
128
  - BookMD.gemspec
142
129
  - CODE_OF_CONDUCT.md
143
130
  - Gemfile
131
+ - Gemfile.lock
144
132
  - LICENSE.txt
145
133
  - README.md
146
134
  - Rakefile
135
+ - appointments.txt
147
136
  - bin/console
148
137
  - bin/setup
149
138
  - lib/.DS_Store
@@ -156,6 +145,7 @@ files:
156
145
  - lib/bookMD2.rb
157
146
  - lib/patients.txt
158
147
  - lib/user.rb
148
+ - patients.txt
159
149
  homepage: https://github.com/GorginZ/BookMD/tree/master/lib
160
150
  licenses:
161
151
  - MIT