Skip to content

Commit

Permalink
Merge branch 'master' into use_one_signal_instead_of_zeropush_for_ios…
Browse files Browse the repository at this point in the history
…_notifications
  • Loading branch information
phoet committed Feb 10, 2016
2 parents e8fb163 + 5614596 commit 38fd0fc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
3 changes: 0 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "on_ruby",
"scripts": {
"postdeploy": "bundle exec rake db:migrate"
},
"env": {
"ASIN_KEY": {
"required": true
Expand Down
7 changes: 1 addition & 6 deletions app/assets/stylesheets/application.sass
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ $ruby-red: #C81B47
@import "_base/elements"
@import "_modules/**/*"

#peek
position: fixed
bottom: 0
width: 100%

header
display: block
+phone
Expand Down Expand Up @@ -263,7 +258,7 @@ header
label
margin: 0em

input[type=text], input[type=email]
input[type=text], input[type=email], input[type=url]
width: 40em
+phone
width: 90%
Expand Down
4 changes: 2 additions & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def handle_twitter_attributes(hash)
self.twitter = hash['info']['nickname']
self.name = hash['info']['name']
self.image = hash['info']['image']
self.url = hash['info']['urls']['Website']
self.url = hash['info']['urls']['Website'] unless self.url
self.description = hash['info']['description'] unless self.description
self.location = hash['info']['location']
end
Expand All @@ -63,7 +63,7 @@ def handle_github_attributes(hash)
self.email = hash['info']['email'] unless self.email
self.name = hash['info']['name'].blank? ? hash['info']['nickname'] : hash['info']['name']
self.image = hash['info']['image']
self.url = hash['info']['urls']['Blog'] || hash['info']['urls']['GitHub']
self.url = hash['info']['urls']['Blog'] || hash['info']['urls']['GitHub'] unless self.url
self.description = hash['extra']['raw_info']['bio'] unless self.description
self.location = hash['extra']['raw_info']['location']
end
Expand Down
1 change: 1 addition & 0 deletions app/views/users/edit.slim
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ section
- unless user.with_provider? :github
= f.input :github, input_html: { placeholder: 'GitHub handle' }
= f.input :email
= f.input :url
= f.input :description, type: :text_area
.info== t("topic.markdown")
br
Expand Down

0 comments on commit 38fd0fc

Please sign in to comment.