autoexpreso 1.0.0 → 1.0.1
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/Changelog.md +15 -5
- data/README.md +17 -6
- data/autoexpreso.gemspec +2 -2
- data/examples/api/Gemfile +6 -0
- data/examples/api/Procfile +1 -0
- data/examples/api/README.md +63 -0
- data/examples/api/app.json +15 -0
- data/examples/api/autoexpreso_api.rb +23 -0
- data/examples/api/config.ru +4 -0
- data/lib/autoexpreso/version.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- metadata +31 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14658fb71c68bd56b505faa7f50526b729dbbe01
|
|
4
|
+
data.tar.gz: 3043b6b2dec945b5b054c46d0f6d2af5a6dbb53e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad72715243927f3c13f3a9765259a0b388e9eafd7384415d2fe948faa804ca85f920d955d55d4496599a2cdb96b5662c4084609076a2451270b620e76e93d949
|
|
7
|
+
data.tar.gz: 721fc1e2f8c678bb9f3c13c7742b77f0c7f2b8b3b2bba7e2dd177d1319e7012e36c7073cc21005674ca16fec922d65e1b9a4e1dde8dee469c618c0f30a9551c5
|
data/Changelog.md
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
# AutoExpreso Changelog
|
|
2
2
|
|
|
3
|
+
### 1.0.1
|
|
4
|
+
Released November 28, 2014 ([1.0.1](https://github.com/jonahoffline/autoexpreso-cli/tree/v1.0.1)).
|
|
5
|
+
|
|
6
|
+
* Move repo from [riveralabs](https://github.com/jonahoffline/autoexpreso-cli) to [jonahoffline](https://github.com/jonahoffline/autoexpreso-cli)
|
|
7
|
+
* Update README, Changelog links to reflect repo change.
|
|
8
|
+
* Update `homepage` in gemspec to new repo home.
|
|
9
|
+
* Update `spec` from 2.14.0 to 3.1.0.
|
|
10
|
+
* Fix RSpec deprecation warning.
|
|
11
|
+
* Bump release version.
|
|
12
|
+
|
|
3
13
|
### 1.0.0
|
|
4
|
-
Released November 27, 2014 ([1.0.0](https://github.com/
|
|
14
|
+
Released November 27, 2014 ([1.0.0](https://github.com/jonahoffline/autoexpreso-cli/tree/v1.0.0)).
|
|
5
15
|
|
|
6
16
|
* Fix issue preventing data from being returned.
|
|
7
17
|
* Add #account_details method to delegate printing (Hash or JSON).
|
|
@@ -13,19 +23,19 @@ Released November 27, 2014 ([1.0.0](https://github.com/riveralabs/autoexpreso-cl
|
|
|
13
23
|
* Bump release version.
|
|
14
24
|
|
|
15
25
|
### 0.0.4
|
|
16
|
-
Released November 4, 2013 ([0.0.4](https://github.com/
|
|
26
|
+
Released November 4, 2013 ([0.0.4](https://github.com/jonahoffline/autoexpreso-cli/tree/v0.0.4)).
|
|
17
27
|
|
|
18
28
|
* Update gemspec's dependency of awesome_print to 1.2.0
|
|
19
29
|
|
|
20
30
|
### 0.0.3
|
|
21
|
-
Released September 11, 2013 ([0.0.3](https://github.com/
|
|
31
|
+
Released September 11, 2013 ([0.0.3](https://github.com/jonahoffline/autoexpreso-cli/tree/v0.0.3)).
|
|
22
32
|
|
|
23
33
|
* Fix typo in AutoExpreso::CLI's banner option.
|
|
24
34
|
* Add Gemnasium dependency status badge to README.
|
|
25
35
|
|
|
26
36
|
## 0.0.2
|
|
27
37
|
|
|
28
|
-
Released Aug 9, 2013 ([0.0.2](https://github.com/
|
|
38
|
+
Released Aug 9, 2013 ([0.0.2](https://github.com/jonahoffline/autoexpreso-cli/tree/v0.0.2)).
|
|
29
39
|
|
|
30
40
|
* Fix issue with command-line application not showing help when called without arguments.
|
|
31
41
|
* Update documentation in README.
|
|
@@ -37,6 +47,6 @@ Released Aug 9, 2013 ([0.0.2](https://github.com/riveralabs/autoexpreso-cli/tree
|
|
|
37
47
|
|
|
38
48
|
## 0.0.1
|
|
39
49
|
|
|
40
|
-
Released Aug 8, 2013 ([0.0.1](https://github.com/
|
|
50
|
+
Released Aug 8, 2013 ([0.0.1](https://github.com/jonahoffline/autoexpreso-cli/tree/v0.0.1)).
|
|
41
51
|
|
|
42
52
|
* Initial Release.
|
data/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
## Autoexpreso
|
|
2
|
-
[](https://travis-ci.org/jonahoffline/autoexpreso-cli)
|
|
3
3
|
[](http://badge.fury.io/rb/autoexpreso)
|
|
4
|
-
[](https://gemnasium.com/jonahoffline/autoexpreso-cli)
|
|
5
|
+
[](https://codeclimate.com/github/jonahoffline/autoexpreso-cli)
|
|
6
6
|
|
|
7
7
|
A Ruby Gem and Command-Line App for getting your account status from autoexpreso.com
|
|
8
8
|
|
|
@@ -10,6 +10,12 @@ A Ruby Gem and Command-Line App for getting your account status from autoexpreso
|
|
|
10
10
|
* Gets your basic account info
|
|
11
11
|
* Gets the latest 20 transactions (JSON or Ruby hash)
|
|
12
12
|
|
|
13
|
+
### Demo API
|
|
14
|
+
|
|
15
|
+
There is a Demo API built with this gem available at [http://autoexpreso-api.herokuapp.com/account_details](http://autoexpreso-api.herokuapp.com/account_details)
|
|
16
|
+
|
|
17
|
+
For more information visit the [examples/api](https://github.com/jonahoffline/autoexpreso-cli/tree/master/examples/api) folder of this repository.
|
|
18
|
+
|
|
13
19
|
|
|
14
20
|
### Installation
|
|
15
21
|
$ gem install autoexpreso
|
|
@@ -27,8 +33,8 @@ ae.account_details
|
|
|
27
33
|
```
|
|
28
34
|
|
|
29
35
|
In your terminal:
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
```console
|
|
37
|
+
$ autoexpreso --login
|
|
32
38
|
**************************************************
|
|
33
39
|
AutoExpreso
|
|
34
40
|
**************************************************
|
|
@@ -58,6 +64,7 @@ In your terminal:
|
|
|
58
64
|
}
|
|
59
65
|
]
|
|
60
66
|
}
|
|
67
|
+
```
|
|
61
68
|
|
|
62
69
|
### Command-Line Options
|
|
63
70
|
|
|
@@ -66,6 +73,10 @@ In your terminal:
|
|
|
66
73
|
* -h, --help - Print help message
|
|
67
74
|
* -v, --version - Display the version of AutoExpreso and exit
|
|
68
75
|
|
|
76
|
+
### Examples
|
|
77
|
+
|
|
78
|
+
Examples are available at [examples/api](https://github.com/jonahoffline/autoexpreso-cli/tree/master/examples/api)
|
|
79
|
+
|
|
69
80
|
|
|
70
81
|
## Authors
|
|
71
82
|
* [Axel Rivera](http://riveralabs.com)
|
|
@@ -74,7 +85,7 @@ In your terminal:
|
|
|
74
85
|
|
|
75
86
|
### TODO
|
|
76
87
|
* Persistence
|
|
77
|
-
* Examples for integrating with
|
|
88
|
+
* ~~Examples for integrating with Sinatra~~
|
|
78
89
|
* ~~JSON Formatter~~
|
|
79
90
|
* Better test coverage
|
|
80
91
|
|
data/autoexpreso.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ['axel@riveralabs.com','jonah@pixelhipsters.com']
|
|
11
11
|
spec.description = %q{Scrape autoexpreso.com for your account status}
|
|
12
12
|
spec.summary = %q{Scrape autoexpreso.com for your account status and last transactions.}
|
|
13
|
-
spec.homepage = 'https://www.github.com/
|
|
13
|
+
spec.homepage = 'https://www.github.com/jonahoffline/autoexpreso-cli'
|
|
14
14
|
spec.license = 'MIT'
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
|
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
|
26
26
|
spec.add_development_dependency 'rake'
|
|
27
|
-
spec.add_development_dependency 'rspec', '~>
|
|
27
|
+
spec.add_development_dependency 'rspec', '~> 3.1.0'
|
|
28
28
|
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
web: bundle exec rackup config.ru -p $PORT
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# AutoExpreso::API
|
|
2
|
+
|
|
3
|
+
This is an example API server to illustrate possible use.
|
|
4
|
+
|
|
5
|
+
## Demo version
|
|
6
|
+
The demo version of this API is available at [http://autoexpreso-api.herokuapp.com/account_details](http://autoexpreso-api.herokuapp.com/account_details)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Running the server
|
|
10
|
+
|
|
11
|
+
```console
|
|
12
|
+
$ bundle install
|
|
13
|
+
$ rackup config.ru
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Usage example
|
|
18
|
+
|
|
19
|
+
Posting to `/account_details`
|
|
20
|
+
|
|
21
|
+
`curl -X POST -H "Content-Type: application/json" -d '{"username":"tavi_pumarejo","password":"tututuah-tuah"}' http://autoexpreso-api.herokuapp.com/account_details`
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## Deploying to Heroku
|
|
25
|
+
|
|
26
|
+
```console
|
|
27
|
+
git clone https://github.com/jonahoffline/autoexpreso-cli.git
|
|
28
|
+
cp -R autoexpreso-cli/examples/api api/
|
|
29
|
+
cd api/
|
|
30
|
+
|
|
31
|
+
git init
|
|
32
|
+
git add .
|
|
33
|
+
git commit -m "Initial commit"
|
|
34
|
+
|
|
35
|
+
heroku create
|
|
36
|
+
git push heroku master
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Author
|
|
40
|
+
* [Jonah Ruiz](http://www.pixelhipsters.com)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
The MIT License (MIT)
|
|
45
|
+
|
|
46
|
+
Copyright (c) 2014 Jonah Ruiz
|
|
47
|
+
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
49
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
50
|
+
the Software without restriction, including without limitation the rights to
|
|
51
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
52
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
53
|
+
subject to the following conditions:
|
|
54
|
+
|
|
55
|
+
The above copyright notice and this permission notice shall be included in all
|
|
56
|
+
copies or substantial portions of the Software.
|
|
57
|
+
|
|
58
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
59
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
60
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
61
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
62
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
63
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "AutoExpreso API",
|
|
3
|
+
"description": "A simple AutoExpreso API server to return your Account Details and Usage.",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"autoexpreso",
|
|
6
|
+
"api",
|
|
7
|
+
"sinatra",
|
|
8
|
+
"heroku",
|
|
9
|
+
"cedar",
|
|
10
|
+
"puerto rico"
|
|
11
|
+
],
|
|
12
|
+
"repository": "https://github.com/riveralabs/autoexpreso-cli/blob/master/examples/api",
|
|
13
|
+
"addons": [],
|
|
14
|
+
"env": {}
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require 'sinatra/base'
|
|
2
|
+
require 'sinatra/json'
|
|
3
|
+
require 'autoexpreso'
|
|
4
|
+
|
|
5
|
+
module AutoExpreso
|
|
6
|
+
class API < Sinatra::Base
|
|
7
|
+
|
|
8
|
+
before do
|
|
9
|
+
content_type :json
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
post '/account_details' do
|
|
13
|
+
request.body.rewind
|
|
14
|
+
data = JSON.parse(request.body.read)
|
|
15
|
+
|
|
16
|
+
ae = AutoExpreso::Client.new
|
|
17
|
+
ae.login(data['username'], data['password'])
|
|
18
|
+
|
|
19
|
+
json ae.account_details
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
end
|
data/lib/autoexpreso/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: autoexpreso
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Axel Rivera
|
|
@@ -15,86 +15,86 @@ dependencies:
|
|
|
15
15
|
name: awesome_print
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
requirements:
|
|
18
|
-
- -
|
|
18
|
+
- - ~>
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
20
|
version: 1.2.0
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
|
-
- -
|
|
25
|
+
- - ~>
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
27
|
version: 1.2.0
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: highline
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
31
31
|
requirements:
|
|
32
|
-
- -
|
|
32
|
+
- - ~>
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
34
|
version: 1.6.19
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
|
-
- -
|
|
39
|
+
- - ~>
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
41
|
version: 1.6.19
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: mechanize
|
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
|
45
45
|
requirements:
|
|
46
|
-
- -
|
|
46
|
+
- - ~>
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
48
|
version: 2.7.1
|
|
49
49
|
type: :runtime
|
|
50
50
|
prerelease: false
|
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
|
52
52
|
requirements:
|
|
53
|
-
- -
|
|
53
|
+
- - ~>
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: 2.7.1
|
|
56
56
|
- !ruby/object:Gem::Dependency
|
|
57
57
|
name: bundler
|
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
|
-
- -
|
|
60
|
+
- - ~>
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
62
|
version: '1.3'
|
|
63
63
|
type: :development
|
|
64
64
|
prerelease: false
|
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
|
67
|
-
- -
|
|
67
|
+
- - ~>
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
69
|
version: '1.3'
|
|
70
70
|
- !ruby/object:Gem::Dependency
|
|
71
71
|
name: rake
|
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
|
73
73
|
requirements:
|
|
74
|
-
- -
|
|
74
|
+
- - '>='
|
|
75
75
|
- !ruby/object:Gem::Version
|
|
76
76
|
version: '0'
|
|
77
77
|
type: :development
|
|
78
78
|
prerelease: false
|
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
|
80
80
|
requirements:
|
|
81
|
-
- -
|
|
81
|
+
- - '>='
|
|
82
82
|
- !ruby/object:Gem::Version
|
|
83
83
|
version: '0'
|
|
84
84
|
- !ruby/object:Gem::Dependency
|
|
85
85
|
name: rspec
|
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
|
87
87
|
requirements:
|
|
88
|
-
- -
|
|
88
|
+
- - ~>
|
|
89
89
|
- !ruby/object:Gem::Version
|
|
90
|
-
version:
|
|
90
|
+
version: 3.1.0
|
|
91
91
|
type: :development
|
|
92
92
|
prerelease: false
|
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
|
94
94
|
requirements:
|
|
95
|
-
- -
|
|
95
|
+
- - ~>
|
|
96
96
|
- !ruby/object:Gem::Version
|
|
97
|
-
version:
|
|
97
|
+
version: 3.1.0
|
|
98
98
|
description: Scrape autoexpreso.com for your account status
|
|
99
99
|
email:
|
|
100
100
|
- axel@riveralabs.com
|
|
@@ -104,11 +104,11 @@ executables:
|
|
|
104
104
|
extensions: []
|
|
105
105
|
extra_rdoc_files: []
|
|
106
106
|
files:
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
107
|
+
- .gitignore
|
|
108
|
+
- .rspec
|
|
109
|
+
- .ruby-gemset
|
|
110
|
+
- .ruby-version
|
|
111
|
+
- .travis.yml
|
|
112
112
|
- Changelog.md
|
|
113
113
|
- Gemfile
|
|
114
114
|
- LICENSE
|
|
@@ -116,6 +116,13 @@ files:
|
|
|
116
116
|
- Rakefile
|
|
117
117
|
- autoexpreso.gemspec
|
|
118
118
|
- bin/autoexpreso
|
|
119
|
+
- examples/api/Gemfile
|
|
120
|
+
- examples/api/Gemfile.lock
|
|
121
|
+
- examples/api/Procfile
|
|
122
|
+
- examples/api/README.md
|
|
123
|
+
- examples/api/app.json
|
|
124
|
+
- examples/api/autoexpreso_api.rb
|
|
125
|
+
- examples/api/config.ru
|
|
119
126
|
- lib/autoexpreso.rb
|
|
120
127
|
- lib/autoexpreso/cli.rb
|
|
121
128
|
- lib/autoexpreso/data_utils.rb
|
|
@@ -124,7 +131,7 @@ files:
|
|
|
124
131
|
- spec/data_utils_spec.rb
|
|
125
132
|
- spec/spec_helper.rb
|
|
126
133
|
- wercker.yml
|
|
127
|
-
homepage: https://www.github.com/
|
|
134
|
+
homepage: https://www.github.com/jonahoffline/autoexpreso-cli
|
|
128
135
|
licenses:
|
|
129
136
|
- MIT
|
|
130
137
|
metadata: {}
|
|
@@ -134,17 +141,17 @@ require_paths:
|
|
|
134
141
|
- lib
|
|
135
142
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
143
|
requirements:
|
|
137
|
-
- -
|
|
144
|
+
- - '>='
|
|
138
145
|
- !ruby/object:Gem::Version
|
|
139
146
|
version: '0'
|
|
140
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
148
|
requirements:
|
|
142
|
-
- -
|
|
149
|
+
- - '>='
|
|
143
150
|
- !ruby/object:Gem::Version
|
|
144
151
|
version: '0'
|
|
145
152
|
requirements: []
|
|
146
153
|
rubyforge_project:
|
|
147
|
-
rubygems_version: 2.
|
|
154
|
+
rubygems_version: 2.2.2
|
|
148
155
|
signing_key:
|
|
149
156
|
specification_version: 4
|
|
150
157
|
summary: Scrape autoexpreso.com for your account status and last transactions.
|