saga 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +1 -1
  3. data/lib/saga/tokenizer.rb +6 -3
  4. metadata +42 -32
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 38356e29865ebb9af44b569de864956d01182da9
4
+ data.tar.gz: 6e664915105e63b8cb7be9966f7192407893b7bb
5
+ SHA512:
6
+ metadata.gz: 815fd18b76d8c6259239bb5a45399f6242cfb163d37f1958c4fb83293ed0acd97d80de02d1a349e189a30896bf43af8d0837f788fb69a57f418da52cb9ffe196
7
+ data.tar.gz: 188021827815024f59d477fef69b1a5ba66be5c12f3ad4dfb19273f3811473dfc2568149168204d09a979abaed6fb776b356345ed87ec251a661395e00a8404c
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'rake'
2
- require 'rake/rdoctask'
2
+ require 'rdoc/task'
3
3
 
4
4
  desc "Run all specs by default"
5
5
  task :default => [:spec]
@@ -14,7 +14,7 @@ module Saga
14
14
  %w(story stories).include?(@current_section.to_s)
15
15
  end
16
16
 
17
- def process_line(input)
17
+ def process_line(input, index=0)
18
18
  if input[0,2] == ' '
19
19
  @parser.handle_notes(input.strip)
20
20
  elsif input[0,3] == '| '
@@ -30,11 +30,14 @@ module Saga
30
30
  else
31
31
  @parser.handle_string(input)
32
32
  end
33
+ rescue Exception => exception
34
+ $stderr.write "On line #{index}: #{input.inspect}:"
35
+ raise
33
36
  end
34
37
 
35
38
  def process(input)
36
- input.split("\n").each do |line|
37
- process_line(line)
39
+ input.split("\n").each_with_index do |line, index|
40
+ process_line(line, index)
38
41
  end
39
42
  end
40
43
 
metadata CHANGED
@@ -1,60 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
5
- prerelease:
4
+ version: 0.11.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Manfred Stienstra
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-07-19 00:00:00.000000000 Z
11
+ date: 2015-07-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: erubis
16
- requirement: &70121805102580 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '2.6'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70121805102580
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '2.6'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: activesupport
27
- requirement: &70121805101940 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '2.3'
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *70121805101940
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '2.3'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: bacon
38
- requirement: &70121805101480 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - ">="
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *70121805101480
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: mocha-on-bacon
49
- requirement: &70121805100960 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ! '>='
59
+ - - ">="
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *70121805100960
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
58
69
  description: Saga is a tool to convert stories syntax to a nicely formatted document.
59
70
  email: manfred@fngtps.com
60
71
  executables:
@@ -68,41 +79,40 @@ files:
68
79
  - README.rdoc
69
80
  - Rakefile
70
81
  - VERSION
71
- - templates/default/document.erb
72
- - templates/default/helpers.rb
73
- - templates/requirements.txt.erb
74
- - templates/saga/document.erb
75
- - templates/saga/helpers.rb
82
+ - bin/saga
83
+ - lib/saga.rb
76
84
  - lib/saga/document.rb
77
85
  - lib/saga/formatter.rb
78
86
  - lib/saga/parser.rb
79
87
  - lib/saga/planning.rb
80
88
  - lib/saga/runner.rb
81
89
  - lib/saga/tokenizer.rb
82
- - lib/saga.rb
83
- - bin/saga
90
+ - templates/default/document.erb
91
+ - templates/default/helpers.rb
92
+ - templates/requirements.txt.erb
93
+ - templates/saga/document.erb
94
+ - templates/saga/helpers.rb
84
95
  homepage:
85
96
  licenses: []
97
+ metadata: {}
86
98
  post_install_message:
87
99
  rdoc_options: []
88
100
  require_paths:
89
101
  - lib
90
102
  required_ruby_version: !ruby/object:Gem::Requirement
91
- none: false
92
103
  requirements:
93
- - - ! '>='
104
+ - - ">="
94
105
  - !ruby/object:Gem::Version
95
106
  version: '0'
96
107
  required_rubygems_version: !ruby/object:Gem::Requirement
97
- none: false
98
108
  requirements:
99
- - - ! '>='
109
+ - - ">="
100
110
  - !ruby/object:Gem::Version
101
111
  version: '0'
102
112
  requirements: []
103
113
  rubyforge_project:
104
- rubygems_version: 1.8.11
114
+ rubygems_version: 2.2.2
105
115
  signing_key:
106
- specification_version: 3
116
+ specification_version: 4
107
117
  summary: Saga is a tool to convert stories syntax to a nicely formatted document.
108
118
  test_files: []