confire 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/confire/project_creator.rb +1 -0
- data/lib/confire/templates/README.txt +31 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c53e06deb569acadbbc2787bc74c9bd277c6c52e
|
4
|
+
data.tar.gz: ffa906a4342a41d2deb04eadd8723705687fdf7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8b40d058f593e397082d85d583418e8369b12f2ce2f53daa3d5affef028995d1f1923d62c73e8e8564afe47eb6e399d39243b7c765231d5e4431b80905d98a3
|
7
|
+
data.tar.gz: 147acb596b40d3a78c5afbfcc9e361eb4d2cc6bfda6f18672880e363723c86c81bdaae68e0b4279fdc008f37b7838b9c6cc1936df778f6aac1507312ce38550f
|
@@ -13,6 +13,7 @@ class Confire
|
|
13
13
|
FileUtils.cp_r(filename_with_path('lib/confire/templates/spec'), project_name)
|
14
14
|
FileUtils.cp(filename_with_path('lib/confire/templates/run.sh'), project_name)
|
15
15
|
FileUtils.cp(filename_with_path('lib/confire/templates/input_sample.txt'), project_name)
|
16
|
+
FileUtils.cp(filename_with_path('lib/confire/templates/README.txt'), project_name)
|
16
17
|
|
17
18
|
#copy_and_rename project_name, 'lib/confire/templates/config_sample.yml', 'config_sample.yml', 'config.yml'
|
18
19
|
#copy_and_rename project_name, 'lib/confire/templates/processor.rb', 'config_sample.yml', 'config.yml'
|
@@ -0,0 +1,31 @@
|
|
1
|
+
README
|
2
|
+
--------------------
|
3
|
+
This is a very quick readme to get you up and going quickly. For the full readme check out:
|
4
|
+
https://github.com/jkeam/confire
|
5
|
+
|
6
|
+
|
7
|
+
Usage
|
8
|
+
--------------------
|
9
|
+
1. If you got this far, I assume you ran:
|
10
|
+
confire [project_name]
|
11
|
+
|
12
|
+
2. Next we setup the config.yml
|
13
|
+
filename input filename
|
14
|
+
lines_per_test_case how many lines count as 1 test case
|
15
|
+
log_level the log level you want. right now only logs to console.
|
16
|
+
log_name optional name you want to see in the log. deleting this prop defaults it to 'application'
|
17
|
+
|
18
|
+
3. Implement custom_processor.rb
|
19
|
+
There are two methods you need to implement.
|
20
|
+
process_testcase put the logic of processing the test case here
|
21
|
+
process_line put the logic of formatting each line here
|
22
|
+
|
23
|
+
If you need, add 'binding.pry' to get gdb like debugging. Great cheatsheet:
|
24
|
+
https://gist.github.com/lfender6445/9919357
|
25
|
+
|
26
|
+
4. Write tests
|
27
|
+
Check out the stuff in the spec folder to see some examples. To run your tests run:
|
28
|
+
rake test
|
29
|
+
|
30
|
+
5. Run the program
|
31
|
+
./run.sh
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: confire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Keam
|
@@ -25,6 +25,7 @@ files:
|
|
25
25
|
- lib/confire/processor.rb
|
26
26
|
- lib/confire/project_creator.rb
|
27
27
|
- lib/confire/templates/Gemfile
|
28
|
+
- lib/confire/templates/README.txt
|
28
29
|
- lib/confire/templates/Rakefile
|
29
30
|
- lib/confire/templates/config.yml
|
30
31
|
- lib/confire/templates/custom_processor.rb
|