wlog 1.2.0 → 1.2.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: 71f501411d645d7b66bba721986ff8e913fa649c
4
- data.tar.gz: 50a272c8617ad7c0258d765f4dd52cb586224e3e
3
+ metadata.gz: 3b8af4a4bdef4d942ce3e0da56440ffd9e633c54
4
+ data.tar.gz: b3a0dc959da2586fb2b2b511ee729f5b262f61de
5
5
  SHA512:
6
- metadata.gz: ccca541ffc78b943ca4736db5c7bd1cc4c4024dee7a830cd431405e9536b5e1f0831f6ca8a9fb774ef67caa57f1c6bb89eff116fed6feb578f7e9871d28b38b7
7
- data.tar.gz: 9e0cc96690d82932c28ebb6a85f80c5413f23ef71fcbee516b3ae34bfc785c94b3bf51a5dc91fb2da94d91c39302f407b1bc7b4f2e420494fbe2cd253c8b6567
6
+ metadata.gz: d8212057e50030e791c0dddef5a35df96a44f80cefd96cacb095d13de12eba0c7daa3d0697a1f8deae287cc7ddc3844952302e9679d0f244ceb8c2af3474a1f6
7
+ data.tar.gz: 589a124eb21948703d5cd9847c2901f2586d38ca4cc627d62f79efd8462f82d98c0f2cefc9c708b6f8e9c74987b251adadab3d5230126347ad4aa01704218749
data/README.md CHANGED
@@ -269,7 +269,8 @@ internet to use as your own.
269
269
 
270
270
  Templates are set per database. So if you want to use different templates (1 at
271
271
  a time) per database, it's possible. You can take a look at an example template
272
- that exploits all the currently available template variables [here]().
272
+ that exploits all the currently available template variables
273
+ [here](https://gist.github.com/psyomn/790fd35f78d30d9d3604).
273
274
 
274
275
  ## Git Integration
275
276
 
@@ -61,7 +61,7 @@ private
61
61
  rescue ActiveRecord::RecordNotFound
62
62
  puts 'No such invoice'
63
63
  rescue => e
64
- puts e.message
64
+ puts e
65
65
  end
66
66
 
67
67
  def delete(rest)
@@ -83,11 +83,16 @@ private
83
83
  data = fh.read
84
84
  fh.close
85
85
 
86
- att = Attachment.new(:filename => loc.split('/').last, :data => data,
87
- :given_name => :name_alias)
86
+ att = Attachment.new
87
+ att.filename = loc.split('/').last
88
+ att.data = data
89
+ att.given_name = name_alias
90
+
88
91
  @issue.attachments << att
89
92
 
90
93
  puts 'Attached file.'
94
+ rescue Zlib::DataError
95
+ puts 'Problem attaching file due to wrong data'
91
96
  rescue
92
97
  puts 'You need to provide a proper path.'
93
98
  end
@@ -1,3 +1,3 @@
1
1
  module Wlog
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wlog
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
  - psyomn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-13 00:00:00.000000000 Z
11
+ date: 2014-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -223,7 +223,7 @@ rubyforge_project:
223
223
  rubygems_version: 2.0.14
224
224
  signing_key:
225
225
  specification_version: 4
226
- summary: 'A light ruby script to help track tasks and time commit: 83fbf5f'
226
+ summary: 'A light ruby script to help track tasks and time commit: 0c90fed'
227
227
  test_files:
228
228
  - spec/domain/attachment_spec.rb
229
229
  - spec/domain/commands/concat_desc_spec.rb