kosmas58-pickler 0.1.0 → 0.1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,6 +52,7 @@ class Pickler
52
52
  def pull(default = nil)
53
53
  filename = filename() || pickler.features_path("#{default||id}.feature")
54
54
  story = story() # force the read into local_body before File.open below blows it away
55
+ story.language = pickler.lang
55
56
  File.open(filename,'w') {|f| f.puts story.to_s(pickler.format)}
56
57
  @filename = filename
57
58
  end
@@ -8,7 +8,7 @@ class Pickler
8
8
  attr_reader :project, :labels
9
9
  reader :url
10
10
  date_reader :created_at, :accepted_at, :deadline
11
- accessor :current_state, :name, :description, :owned_by, :requested_by, :story_type
11
+ accessor :current_state, :name, :description, :owned_by, :requested_by, :story_type, :language
12
12
 
13
13
  def initialize(project, attributes = {})
14
14
  @project = project
@@ -92,7 +92,7 @@ class Pickler
92
92
  when :tag
93
93
  "@#{url}#{labels.map {|l| " @#{l.tr('_,',' _')}"}.join}"
94
94
  else
95
- "# #{url}"
95
+ "# language: #{language}\n# #{url}"
96
96
  end
97
97
  end
98
98
 
data/lib/pickler.rb CHANGED
@@ -21,7 +21,7 @@ class Pickler
21
21
  Runner.new(argv).run
22
22
  end
23
23
 
24
- attr_reader :directory
24
+ attr_reader :directory, :lang
25
25
  attr_writer :lang, :trace
26
26
 
27
27
  def initialize(path = '.')
data/pickler.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "pickler"
3
- s.version = "0.1.0"
3
+ s.version = "0.1.0.1"
4
4
  s.summary = "PIvotal traCKer Liaison to cucumbER"
5
5
  s.description = "Synchronize between Cucumber and Pivotal Tracker"
6
6
  s.authors = ["Tim Pope", "Liam Morley", "Kamal Fariz Mahyuddin", "Kosmas Schuetz"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kosmas58-pickler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Pope