riif 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ service_name: travis-ci
2
+
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## NEXT (unreleased)
4
4
 
5
+ ## 0.5.0
6
+
7
+ * #9 Implement TIMERHDR. [@ghiculescu](https://github.com/ghiculescu)
8
+
5
9
  ## 0.4.0
6
10
 
7
11
  * #7 Add missing paymeth to transaction type. [@jphpsf](https://github.com/jphpsf)
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Jun Lin
1
+ Copyright (c) 2013 Jun Lin
2
2
 
3
3
  MIT License
4
4
 
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -3,7 +3,10 @@
3
3
  A simple DSL to generate IIF file.
4
4
 
5
5
  [![Build Status](https://travis-ci.org/linjunpop/riif.png?branch=master)](https://travis-ci.org/linjunpop/riif)
6
- [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/linjunpop/riif)
6
+ [![Gem Version](https://badge.fury.io/rb/riif.png)](http://badge.fury.io/rb/riif)
7
+ [![Code Climate](https://codeclimate.com/github/linjunpop/riif.png)](https://codeclimate.com/github/linjunpop/riif)
8
+ [![Coverage Status](https://coveralls.io/repos/linjunpop/riif/badge.png?branch=master)](https://coveralls.io/r/linjunpop/riif)
9
+ [![endorse](http://api.coderwall.com/linjunpop/endorsecount.png)](http://coderwall.com/linjunpop)
7
10
 
8
11
  ## Installation
9
12
 
@@ -167,4 +170,4 @@ https://github.com/linjunpop/riif/graphs/contributors
167
170
 
168
171
  ## Changes
169
172
 
170
- See [CHANGELOG.md]()
173
+ See [CHANGELOG.md](CHANGELOG.md)
@@ -0,0 +1,14 @@
1
+ module Riif::DSL
2
+ class Timerhdr < Base
3
+ HEADER_COLUMNS = [
4
+ :ver,
5
+ :rel,
6
+ :companyname,
7
+ :importedbefore,
8
+ :fromtimer,
9
+ :companycreatetime
10
+ ]
11
+ START_COLUMN = 'TIMERHDR'
12
+ END_COLUMN = ''
13
+ end
14
+ end
@@ -16,6 +16,7 @@ require 'riif/dsl/shipmeth'
16
16
  require 'riif/dsl/spl'
17
17
  require 'riif/dsl/terms'
18
18
  require 'riif/dsl/timeact'
19
+ require 'riif/dsl/timerhdr'
19
20
  require 'riif/dsl/trns'
20
21
  require 'riif/dsl/vend'
21
22
  require 'riif/dsl/vtype'
@@ -1,3 +1,3 @@
1
1
  module Riif
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -24,4 +24,5 @@ Gem::Specification.new do |gem|
24
24
  gem.add_development_dependency 'awesome_print'
25
25
  gem.add_development_dependency 'combustion', '~> 0.3.1'
26
26
  gem.add_development_dependency 'fuubar'
27
+ gem.add_development_dependency 'coveralls'
27
28
  end
@@ -1,2 +1,4 @@
1
+ !TIMERHDR VER REL COMPANYNAME IMPORTEDBEFORE FROMTIMER COMPANYCREATETIME
2
+ TIMERHDR 8 0 Import Test Company N Y 1208544781
1
3
  !TIMEACT DATE JOB EMP ITEM PITEM DURATION PROJ NOTE BILLINGSTATUS
2
4
  TIMEACT 06/21/97 job 1 Jun item 1 13:40 klass 1 0
@@ -5,6 +5,16 @@ describe Riif::DSL::Timeact do
5
5
 
6
6
  let(:timeact) {
7
7
  Riif::IIF.new do
8
+ timerhdr do
9
+ row do
10
+ ver 8
11
+ rel 0
12
+ companyname 'Import Test Company'
13
+ importedbefore 'N'
14
+ fromtimer 'Y'
15
+ companycreatetime '1208544781'
16
+ end
17
+ end
8
18
  timeact do
9
19
  row do
10
20
  date '06/21/97'
@@ -1,6 +1,9 @@
1
1
  require 'bundler'
2
2
  Bundler.require(:development)
3
3
 
4
+ require 'coveralls'
5
+ Coveralls.wear!
6
+
4
7
  require 'riif'
5
8
 
6
9
  # This line has to before require 'rspec/rails'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riif
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-14 00:00:00.000000000 Z
12
+ date: 2013-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry
@@ -123,6 +123,22 @@ dependencies:
123
123
  - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: coveralls
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
126
142
  description: A simple DSL to generate QuickBooks IIF file
127
143
  email:
128
144
  - linjunpop@gmail.com
@@ -130,6 +146,7 @@ executables: []
130
146
  extensions: []
131
147
  extra_rdoc_files: []
132
148
  files:
149
+ - .coveralls.yml
133
150
  - .gitignore
134
151
  - .rspec
135
152
  - .travis.yml
@@ -155,6 +172,7 @@ files:
155
172
  - lib/riif/dsl/spl.rb
156
173
  - lib/riif/dsl/terms.rb
157
174
  - lib/riif/dsl/timeact.rb
175
+ - lib/riif/dsl/timerhdr.rb
158
176
  - lib/riif/dsl/trns.rb
159
177
  - lib/riif/dsl/vend.rb
160
178
  - lib/riif/dsl/vtype.rb
@@ -220,18 +238,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
238
  - - ! '>='
221
239
  - !ruby/object:Gem::Version
222
240
  version: '0'
223
- segments:
224
- - 0
225
- hash: -1928803554965971745
226
241
  required_rubygems_version: !ruby/object:Gem::Requirement
227
242
  none: false
228
243
  requirements:
229
244
  - - ! '>='
230
245
  - !ruby/object:Gem::Version
231
246
  version: '0'
232
- segments:
233
- - 0
234
- hash: -1928803554965971745
235
247
  requirements: []
236
248
  rubyforge_project:
237
249
  rubygems_version: 1.8.23