mosespa 1.2.0 → 1.2.1

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 +4 -4
  2. data/lib/mosespa.rb +8 -7
  3. data/mosespa.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9dd5323938a623f4a172c72c1abb11ffdeb66e5d
4
- data.tar.gz: 5dc78ede5463b4a86b981cd9f584d70891bca9a4
3
+ metadata.gz: 7ab9e50e834b09d2a822bbc34ac6cf4ace9f6649
4
+ data.tar.gz: 43447a48f053dc9920cef38746e71042ae243932
5
5
  SHA512:
6
- metadata.gz: 12b70d35f7478ee2b2abf7375ff82cd8747ea675783ce2d6ca28d17079cf7a89d3de8cc01f65b1ec5f5c1ca5a218c9fe9a0d0f1993fe68419736420ee1971c04
7
- data.tar.gz: fe835b345b691a89e1c1e6892dd2e3c4930828c2078ce761055c108277644dd5cc8be3968184aec8452804d2fe9cffdb03c3a647df251abd2ba81ce7ab1de0c6
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 = /^(?<task_type>\w+):(.*)/.match(summary)
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 "summary: #{summary}"
83
- puts "description: #{description}"
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
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "mosespa"
6
- s.version = '1.2.0'
6
+ s.version = '1.2.1'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Grégoire Seux"]
9
9
  s.license = "Apache License v2"
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2013-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jira-ruby