Skip to content

Commit b7b5a91

Browse files
committed
Merge pull request #41 from josuebrunel/dev
fix #40 JSON file changes to YAML after OAuth request
2 parents 526a5c3 + b55f856 commit b7b5a91

File tree

6 files changed

+35
-30
lines changed

6 files changed

+35
-30
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
sudo: false
12
language: python
23
python:
34
- '2.7'
@@ -12,7 +13,7 @@ install:
1213
script:
1314
- coverage run --source=yahoo_oauth -m pytest -v tests.py
1415
before_install:
15-
- openssl aes-256-cbc -K $encrypted_6d515aab85d8_key -iv $encrypted_6d515aab85d8_iv
16+
- openssl aes-256-cbc -K $encrypted_177fac13197a_key -iv $encrypted_177fac13197a_iv
1617
-in secrets.tar.enc -out secrets.tar -d
1718
- tar xvf secrets.tar
1819
after_success:

dev_requirements.txt

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1-
Jinja2=>2.8
2-
Markdown=>2.6.2
3-
MarkupSafe=>0.23
4-
PyYAML=>3.11
5-
certifi=>2015.9.6.2
6-
click=>5.1
7-
coverage=>4.0
8-
coveralls=>1.0
9-
docopt=>0.6.2
10-
ghp-import=>0.4.1
11-
livereload=>2.4.0
12-
mkdocs=>0.14.0
13-
myql=>1.2.7
14-
oauthlib=>1.0.3
15-
pluggy=>0.3.1
16-
py=>1.4.30
17-
pytest=>2.8.2
18-
rauth=>0.7.1
19-
requests=>2.8.0
20-
requests-oauthlib=>0.5.0
21-
six=>1.10.0
22-
tornado=>4.2.1
23-
tox=>2.1.1
24-
virtualenv=>13.1.2
25-
yahoo-oauth=>0.1.7
1+
Jinja2>=2.8
2+
Markdown>=2.6.2
3+
MarkupSafe>=0.23
4+
PyYAML>=3.11
5+
argparse>=1.2.1
6+
backports.ssl-match-hostname>=3.4.0.2
7+
certifi>=2015.09.06.2
8+
click>=5.1
9+
coverage>=4.0
10+
coveralls>=1.0
11+
distribute>=0.6.24
12+
docopt>=0.6.2
13+
ghp-import>=0.4.1
14+
livereload>=2.4.0
15+
mkdocs>=0.14.0
16+
myql>=1.2.7
17+
oauthlib>=1.0.3
18+
pluggy>=0.3.1
19+
py>=1.4.30
20+
pytest>=2.8.2
21+
rauth>=0.7.1
22+
requests>=2.8.0
23+
requests-oauthlib>=0.5.0
24+
six>=1.10.0
25+
tornado>=4.2.1
26+
tox>=2.1.1
27+
virtualenv>=13.1.2
28+
wsgiref>=0.1.2
29+
yahoo-oauth>=0.1.7

secrets.tar.enc

0 Bytes
Binary file not shown.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
__author__ = 'Josue Kouka'
55
__email__ = 'josuebrunel@gmail.com'
6-
__version__ = '0.1.8'
6+
__version__ = '0.1.9'
77

88
#requirements.txt
99
with open('requirements.txt') as f:

yahoo_oauth/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
__author__ = 'Josue Kouka'
44
__email__ = 'josuebrunel@gmail.com'
5-
__version__ = "0.1.8"
5+
__version__ = "0.1.9"
66

77

88
from yahoo_oauth.yahoo_oauth import OAuth1, OAuth2

yahoo_oauth/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ def get_file_extension(filename):
2929
def get_data(filename):
3030
"""Calls right function according to file extension
3131
"""
32-
ext = get_file_extension(filename)
32+
name, ext = get_file_extension(filename)
3333
func = json_get_data if ext == '.json' else yaml_get_data
3434
return func(filename)
3535

3636
def write_data(data, filename):
3737
"""Call right func to save data according to file extension
3838
"""
39-
ext = get_file_extension(filename)
39+
name, ext = get_file_extension(filename)
4040
func = json_write_data if ext == '.json' else yaml_write_data
4141
return func(data, filename)
4242

0 commit comments

Comments
 (0)