e_invoice 0.1.0 → 0.1.4
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/.codeclimate.yml +25 -0
- data/.rubocop.yml +1156 -0
- data/LICENSE.txt +1 -1
- data/README.md +17 -1
- data/codeclimate-config.patch +1191 -0
- data/e_invoice.gemspec +8 -1
- data/lib/e_invoice/configuration.rb +10 -0
- data/lib/e_invoice/duration.rb +28 -0
- data/lib/e_invoice/header.rb +33 -0
- data/lib/e_invoice/info.rb +33 -0
- data/lib/e_invoice/invoice.rb +25 -0
- data/lib/e_invoice/payload.rb +46 -0
- data/lib/e_invoice/result.rb +13 -0
- data/lib/e_invoice/version.rb +1 -1
- data/lib/e_invoice.rb +7 -4
- data/lib/generators/e_invoice_generator.rb +6 -0
- data/lib/generators/templates/e_invoice.rb +6 -0
- metadata +62 -8
data/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2016 JasonYCHuang
|
|
3
|
+
Copyright (c) 2016 JasonYCHuang / Lucas Yang(tilumi)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# EInvoice
|
|
2
2
|
|
|
3
|
+
[](https://codeclimate.com/github/JasonYCHuang/e_invoice)
|
|
4
|
+
[](https://coveralls.io/github/JasonYCHuang/e_invoice?branch=master)
|
|
5
|
+
[](https://codeclimate.com/github/JasonYCHuang/e_invoice)
|
|
6
|
+
[](https://travis-ci.org/JasonYCHuang/e_invoice)
|
|
7
|
+
[](https://gemnasium.com/JasonYCHuang/e_invoice)
|
|
8
|
+
|
|
9
|
+
|
|
3
10
|
With EASYCARD number and code, you can import electronic invoice from E-invoice platform, Ministry of Finance, Taiwan.
|
|
4
11
|
|
|
5
12
|
|
|
@@ -21,10 +28,19 @@ Or install it yourself as:
|
|
|
21
28
|
|
|
22
29
|
## Usage
|
|
23
30
|
|
|
24
|
-
|
|
31
|
+
Generate the initializer file.
|
|
32
|
+
|
|
33
|
+
```shell
|
|
34
|
+
$ rails generate e_invoice
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Update APPID & UUID in ```config/initailizers/e_invoice.rb```
|
|
38
|
+
|
|
25
39
|
|
|
26
40
|
## Development
|
|
27
41
|
|
|
42
|
+
TODO:
|
|
43
|
+
|
|
28
44
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
29
45
|
|
|
30
46
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|