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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9950b1c6dfbf61bca27c372715a55215d305efe
4
- data.tar.gz: 1061bfb24a79a379f87d7574dc6d7bbe40030d90
3
+ metadata.gz: c53e06deb569acadbbc2787bc74c9bd277c6c52e
4
+ data.tar.gz: ffa906a4342a41d2deb04eadd8723705687fdf7d
5
5
  SHA512:
6
- metadata.gz: 8fd5efc88879058d0d3de821b90f20bd4a68b0ef5dfdf44329da00b2e4d2fca9e1b9767ed3d2327f4874b04362aa022071635af8d52ee0b41e77b6da414d589e
7
- data.tar.gz: a7f7a6bdc253e4ae3d2da37b74b8df65a9a37ea233d1513e09043b6991875ad9c3973fcb5bfd5dd0a1d43b3db923c6e6132a3b3efc915207383ca1a57efcd5f9
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.0
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