mosespa 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mosespa.rb +8 -7
- data/mosespa.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ab9e50e834b09d2a822bbc34ac6cf4ace9f6649
|
|
4
|
+
data.tar.gz: 43447a48f053dc9920cef38746e71042ae243932
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6da23a9675d6a222ee66f4fdf7aa8e92c2e56bcb1a319195fd7997fd3374d9c9959cf5a5c44a842d8c9b515acae9cb013b5bebb32ce9890c4f7bcec71ed34b4
|
|
7
|
+
data.tar.gz: 22d6896338e4b0b8deee5201fc930aee7d7461f0db3e2b5952682d81f03eb6403d5bde09ece0db45305da147086a2aa9a948ac0031be2cbe1ba7cbb646b24479
|
data/lib/mosespa.rb
CHANGED
|
@@ -64,10 +64,10 @@ module Mosespa
|
|
|
64
64
|
file.write("# Line starting with a # will be ignored\n")
|
|
65
65
|
file.write("# The format is the same as a git commit\n")
|
|
66
66
|
file.write("\n")
|
|
67
|
-
file.write("Summary line follows this template : [TaskType]: [Title]\n")
|
|
68
|
-
file.write("This means that if you write: Story: Create a prototype of SOA\n")
|
|
69
|
-
file.write("You'll get a new story about creating a SOA prototype")
|
|
70
|
-
file.write("The summary line is always followed by an empty line and may be followed by a description")
|
|
67
|
+
file.write("# Summary line follows this template : [TaskType]: [Title]\n")
|
|
68
|
+
file.write("# This means that if you write: Story: Create a prototype of SOA\n")
|
|
69
|
+
file.write("# You'll get a new story about creating a SOA prototype")
|
|
70
|
+
file.write("# The summary line is always followed by an empty line and may be followed by a description")
|
|
71
71
|
file.write("\n\n")
|
|
72
72
|
file.write("# /* vim: set filetype=gitcommit : */")
|
|
73
73
|
file.close #need to flush
|
|
@@ -75,12 +75,13 @@ module Mosespa
|
|
|
75
75
|
system "$EDITOR #{file.path}"
|
|
76
76
|
all = file.read.lines.reject {|l| l.start_with? "#"}.map {|l| l.chop}
|
|
77
77
|
summary = all[0]
|
|
78
|
-
m = /^(
|
|
78
|
+
m = /^(\w+):(.*)/.match(summary)
|
|
79
79
|
task_type, summary = m.to_a.drop(1) if m
|
|
80
80
|
|
|
81
81
|
description = all.drop(2).join("\n")
|
|
82
|
-
puts "
|
|
83
|
-
puts "
|
|
82
|
+
$stderr.puts "Type: #{task_type}"
|
|
83
|
+
$stderr.puts "summary: #{summary}"
|
|
84
|
+
$stderr.puts "description: #{description}"
|
|
84
85
|
file.close
|
|
85
86
|
[task_type, summary, description]
|
|
86
87
|
end
|
data/mosespa.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mosespa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Grégoire Seux
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-10-
|
|
11
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jira-ruby
|