Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rubygemsrecipe
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
rubygemsrecipe
Commits
635dc747
Commit
635dc747
authored
Nov 21, 2014
by
sirex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unicode decode error
https://bitbucket.org/sirex/rubygemsrecipe/issue/6/cannot-install-rubygems-020
parent
940aeb04
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
CHANGES.rst
CHANGES.rst
+5
-0
rubygems.py
rubygems.py
+1
-3
setup.py
setup.py
+1
-1
No files found.
CHANGES.rst
View file @
635dc747
Change History
Change History
**************
**************
0.2.1 (2014-11-21)
==================
- Fix: https://bitbucket.org/sirex/rubygemsrecipe/issue/6/cannot-install-rubygems-020
0.2.0 (2014-11-20)
0.2.0 (2014-11-20)
==================
==================
...
...
rubygems.py
View file @
635dc747
...
@@ -12,7 +12,6 @@ import subprocess
...
@@ -12,7 +12,6 @@ import subprocess
import
zc.buildout
import
zc.buildout
import
six.moves.urllib
as
urllib
import
six.moves.urllib
as
urllib
from
six
import
text_type
as
str
import
hexagonit.recipe.download
import
hexagonit.recipe.download
...
@@ -122,8 +121,7 @@ class Recipe(object):
...
@@ -122,8 +121,7 @@ class Recipe(object):
'rubygems-%s.zip'
%
self
.
version
,
self
.
version
)
'rubygems-%s.zip'
%
self
.
version
,
self
.
version
)
f
=
urllib
.
request
.
urlopen
(
'http://rubygems.org/pages/download'
)
f
=
urllib
.
request
.
urlopen
(
'http://rubygems.org/pages/download'
)
s
=
f
.
read
()
s
=
f
.
read
().
decode
(
'utf-8'
)
s
=
str
(
s
)
f
.
close
()
f
.
close
()
r
=
re
.
search
(
r'http://production.cf.rubygems.org/rubygems/'
r
=
re
.
search
(
r'http://production.cf.rubygems.org/rubygems/'
r'rubygems-([0-9.]+).zip'
,
s
)
r'rubygems-([0-9.]+).zip'
,
s
)
...
...
setup.py
View file @
635dc747
...
@@ -4,7 +4,7 @@ import os
...
@@ -4,7 +4,7 @@ import os
from
setuptools
import
setup
from
setuptools
import
setup
version
=
'0.2.
0
'
version
=
'0.2.
1
'
name
=
'rubygemsrecipe'
name
=
'rubygemsrecipe'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment