hs-cli 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.hs.yml +2 -0
  4. data/.rspec +3 -0
  5. data/.rubocop.yml +8 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +5 -0
  8. data/Gemfile +8 -0
  9. data/Gemfile.lock +86 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +54 -0
  12. data/Rakefile +12 -0
  13. data/bin/console +14 -0
  14. data/bin/setup +8 -0
  15. data/hs.gemspec +41 -0
  16. data/lib/hs/chapter.rb +31 -0
  17. data/lib/hs/config.rb +40 -0
  18. data/lib/hs/course.rb +35 -0
  19. data/lib/hs/elements/br.rb +9 -0
  20. data/lib/hs/elements/code.rb +22 -0
  21. data/lib/hs/elements/dd.rb +9 -0
  22. data/lib/hs/elements/dl.rb +9 -0
  23. data/lib/hs/elements/dt.rb +9 -0
  24. data/lib/hs/elements/element.rb +46 -0
  25. data/lib/hs/elements/emphasize.rb +9 -0
  26. data/lib/hs/elements/header.rb +16 -0
  27. data/lib/hs/elements/image.rb +22 -0
  28. data/lib/hs/elements/intro.rb +9 -0
  29. data/lib/hs/elements/li.rb +9 -0
  30. data/lib/hs/elements/link.rb +21 -0
  31. data/lib/hs/elements/note.rb +9 -0
  32. data/lib/hs/elements/ol.rb +9 -0
  33. data/lib/hs/elements/original.rb +9 -0
  34. data/lib/hs/elements/paragraph.rb +9 -0
  35. data/lib/hs/elements/strong.rb +9 -0
  36. data/lib/hs/elements/table.rb +39 -0
  37. data/lib/hs/elements/text.rb +21 -0
  38. data/lib/hs/elements/ul.rb +9 -0
  39. data/lib/hs/loaders/chapter_loader.rb +38 -0
  40. data/lib/hs/loaders/course_loader.rb +36 -0
  41. data/lib/hs/loaders/element_loader.rb +127 -0
  42. data/lib/hs/loaders/xml_parser.rb +62 -0
  43. data/lib/hs/preview/chapter_preview.rb +49 -0
  44. data/lib/hs/preview/course_preview.rb +43 -0
  45. data/lib/hs/preview/element_preview.rb +45 -0
  46. data/lib/hs/preview/html_preview.rb +27 -0
  47. data/lib/hs/version.rb +5 -0
  48. data/lib/hs.rb +28 -0
  49. metadata +231 -0
metadata ADDED
@@ -0,0 +1,231 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hs-cli
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Dimitri Kurashvili
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-08-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">"
32
+ - !ruby/object:Gem::Version
33
+ version: '1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">"
39
+ - !ruby/object:Gem::Version
40
+ version: '1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.16'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.16'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.11'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.11'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec-collection_matchers
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.1'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec-its
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.2'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.2'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.58'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.58'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop-rspec
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.20'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.20'
153
+ description: Client for working on HackerSchool projects
154
+ email:
155
+ - dimitri@hackerschool.ge
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - ".gitignore"
161
+ - ".hs.yml"
162
+ - ".rspec"
163
+ - ".rubocop.yml"
164
+ - ".ruby-version"
165
+ - ".travis.yml"
166
+ - Gemfile
167
+ - Gemfile.lock
168
+ - LICENSE.txt
169
+ - README.md
170
+ - Rakefile
171
+ - bin/console
172
+ - bin/setup
173
+ - hs.gemspec
174
+ - lib/hs.rb
175
+ - lib/hs/chapter.rb
176
+ - lib/hs/config.rb
177
+ - lib/hs/course.rb
178
+ - lib/hs/elements/br.rb
179
+ - lib/hs/elements/code.rb
180
+ - lib/hs/elements/dd.rb
181
+ - lib/hs/elements/dl.rb
182
+ - lib/hs/elements/dt.rb
183
+ - lib/hs/elements/element.rb
184
+ - lib/hs/elements/emphasize.rb
185
+ - lib/hs/elements/header.rb
186
+ - lib/hs/elements/image.rb
187
+ - lib/hs/elements/intro.rb
188
+ - lib/hs/elements/li.rb
189
+ - lib/hs/elements/link.rb
190
+ - lib/hs/elements/note.rb
191
+ - lib/hs/elements/ol.rb
192
+ - lib/hs/elements/original.rb
193
+ - lib/hs/elements/paragraph.rb
194
+ - lib/hs/elements/strong.rb
195
+ - lib/hs/elements/table.rb
196
+ - lib/hs/elements/text.rb
197
+ - lib/hs/elements/ul.rb
198
+ - lib/hs/loaders/chapter_loader.rb
199
+ - lib/hs/loaders/course_loader.rb
200
+ - lib/hs/loaders/element_loader.rb
201
+ - lib/hs/loaders/xml_parser.rb
202
+ - lib/hs/preview/chapter_preview.rb
203
+ - lib/hs/preview/course_preview.rb
204
+ - lib/hs/preview/element_preview.rb
205
+ - lib/hs/preview/html_preview.rb
206
+ - lib/hs/version.rb
207
+ homepage: http://github.com/hackersrc/hs-cli
208
+ licenses:
209
+ - MIT
210
+ metadata: {}
211
+ post_install_message:
212
+ rdoc_options: []
213
+ require_paths:
214
+ - lib
215
+ required_ruby_version: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - ">="
218
+ - !ruby/object:Gem::Version
219
+ version: '0'
220
+ required_rubygems_version: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - ">="
223
+ - !ruby/object:Gem::Version
224
+ version: '0'
225
+ requirements: []
226
+ rubyforge_project:
227
+ rubygems_version: 2.7.6
228
+ signing_key:
229
+ specification_version: 4
230
+ summary: HackerSchool client
231
+ test_files: []