bookingit 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +4 -0
- data/Gemfile.lock +7 -1
- data/README.rdoc +86 -37
- data/TODO.md +7 -0
- data/bin/bookingit +19 -58
- data/bookingit.gemspec +2 -0
- data/features/bookingit.feature +149 -16
- data/features/step_definitions/bookinggit_steps.rb +18 -0
- data/features/support/env.rb +5 -1
- data/lib/bookingit.rb +5 -0
- data/lib/bookingit/book.rb +94 -0
- data/lib/bookingit/code_block_interpreter.rb +114 -0
- data/lib/bookingit/config.rb +62 -28
- data/lib/bookingit/errors.rb +16 -0
- data/lib/bookingit/renderer.rb +173 -39
- data/lib/bookingit/shell_command.rb +30 -0
- data/lib/bookingit/version.rb +1 -1
- data/lib/bookingit/views.rb +8 -0
- data/lib/bookingit/views/base_view.rb +12 -0
- data/lib/bookingit/views/code_view.rb +16 -0
- data/lib/bookingit/views/footer_view.rb +14 -0
- data/lib/bookingit/views/header_view.rb +17 -0
- data/lib/bookingit/views/index_view.rb +20 -0
- data/templates/block_code.html.mustache +1 -0
- data/templates/footer.html.mustache +37 -0
- data/templates/header.html.mustache +16 -0
- data/templates/index.html.mustache +27 -0
- data/templates/stylesheets.html.mustache +3 -0
- data/templates/syntax_highlighting.html.mustache +3 -0
- data/test/book_test.rb +20 -0
- data/test/config_test.rb +43 -35
- data/test/renderer_test.rb +173 -23
- data/test/test_helper.rb +2 -0
- metadata +50 -2
data/test/test_helper.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'test/unit'
|
2
2
|
require 'clean_test/test_case'
|
3
3
|
require 'bookingit'
|
4
|
+
require "mocha/test_unit"
|
4
5
|
|
5
6
|
# Add test libraries you want to use here, e.g. mocha
|
6
7
|
|
@@ -12,3 +13,4 @@ class Test::Unit::TestCase
|
|
12
13
|
# Add global extensions to the test case class here
|
13
14
|
|
14
15
|
end
|
16
|
+
I18n.enforce_available_locales = false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bookingit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Copeland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: mocha
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: gli
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +108,20 @@ dependencies:
|
|
94
108
|
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: mustache
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
97
125
|
description:
|
98
126
|
email: davetron5000@gmail.com
|
99
127
|
executables:
|
@@ -105,19 +133,38 @@ files:
|
|
105
133
|
- ".gitignore"
|
106
134
|
- ".ruby-gemset"
|
107
135
|
- ".ruby-version"
|
136
|
+
- ".travis.yml"
|
108
137
|
- Gemfile
|
109
138
|
- Gemfile.lock
|
110
139
|
- README.rdoc
|
111
140
|
- Rakefile
|
141
|
+
- TODO.md
|
112
142
|
- bin/bookingit
|
113
143
|
- bookingit.gemspec
|
114
144
|
- features/bookingit.feature
|
115
145
|
- features/step_definitions/bookinggit_steps.rb
|
116
146
|
- features/support/env.rb
|
117
147
|
- lib/bookingit.rb
|
148
|
+
- lib/bookingit/book.rb
|
149
|
+
- lib/bookingit/code_block_interpreter.rb
|
118
150
|
- lib/bookingit/config.rb
|
151
|
+
- lib/bookingit/errors.rb
|
119
152
|
- lib/bookingit/renderer.rb
|
153
|
+
- lib/bookingit/shell_command.rb
|
120
154
|
- lib/bookingit/version.rb
|
155
|
+
- lib/bookingit/views.rb
|
156
|
+
- lib/bookingit/views/base_view.rb
|
157
|
+
- lib/bookingit/views/code_view.rb
|
158
|
+
- lib/bookingit/views/footer_view.rb
|
159
|
+
- lib/bookingit/views/header_view.rb
|
160
|
+
- lib/bookingit/views/index_view.rb
|
161
|
+
- templates/block_code.html.mustache
|
162
|
+
- templates/footer.html.mustache
|
163
|
+
- templates/header.html.mustache
|
164
|
+
- templates/index.html.mustache
|
165
|
+
- templates/stylesheets.html.mustache
|
166
|
+
- templates/syntax_highlighting.html.mustache
|
167
|
+
- test/book_test.rb
|
121
168
|
- test/config_test.rb
|
122
169
|
- test/renderer_test.rb
|
123
170
|
- test/test_helper.rb
|
@@ -154,6 +201,7 @@ test_files:
|
|
154
201
|
- features/bookingit.feature
|
155
202
|
- features/step_definitions/bookinggit_steps.rb
|
156
203
|
- features/support/env.rb
|
204
|
+
- test/book_test.rb
|
157
205
|
- test/config_test.rb
|
158
206
|
- test/renderer_test.rb
|
159
207
|
- test/test_helper.rb
|