Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/puzzle/cryptopus
Browse files Browse the repository at this point in the history
  • Loading branch information
bihorco36 committed Jul 18, 2016
2 parents eadce68 + 20eba02 commit 3327d38
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 64 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'http://rubygems.org'

gem 'rails', '4.2.5.1'
gem 'rails', '4.2.6'

gem 'mysql2'
gem 'sqlite3'
Expand Down
82 changes: 43 additions & 39 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
GEM
remote: http://rubygems.org/
specs:
actionmailer (4.2.5.1)
actionpack (= 4.2.5.1)
actionview (= 4.2.5.1)
activejob (= 4.2.5.1)
actionmailer (4.2.6)
actionpack (= 4.2.6)
actionview (= 4.2.6)
activejob (= 4.2.6)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.5.1)
actionview (= 4.2.5.1)
activesupport (= 4.2.5.1)
actionpack (4.2.6)
actionview (= 4.2.6)
activesupport (= 4.2.6)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.5.1)
activesupport (= 4.2.5.1)
actionview (4.2.6)
activesupport (= 4.2.6)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
Expand All @@ -24,17 +24,17 @@ GEM
actionpack (>= 4.0)
activemodel (>= 4.0)
railties (>= 4.0)
activejob (4.2.5.1)
activesupport (= 4.2.5.1)
activejob (4.2.6)
activesupport (= 4.2.6)
globalid (>= 0.3.0)
activemodel (4.2.5.1)
activesupport (= 4.2.5.1)
activemodel (4.2.6)
activesupport (= 4.2.6)
builder (~> 3.1)
activerecord (4.2.5.1)
activemodel (= 4.2.5.1)
activesupport (= 4.2.5.1)
activerecord (4.2.6)
activemodel (= 4.2.6)
activesupport (= 4.2.6)
arel (~> 6.0)
activesupport (4.2.5.1)
activesupport (4.2.6)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
Expand Down Expand Up @@ -127,22 +127,26 @@ GEM
libv8 (3.16.14.13)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mail (2.6.4)
mime-types (>= 1.16, < 4)
metaclass (0.0.4)
method_source (0.8.2)
mime-types (2.99.1)
mini_portile2 (2.0.0)
minitest (5.8.4)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.9.0)
mocha (1.1.0)
metaclass (~> 0.0.1)
multi_json (1.11.2)
multi_json (1.12.1)
mysql2 (0.4.2)
net-ldap (0.12.1)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
nokogiri (1.6.8)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
parser (2.3.0.2)
ast (~> 2.2)
pkg-config (1.1.7)
power_assert (0.2.6)
powerpack (0.1.1)
pry (0.10.3)
Expand All @@ -155,16 +159,16 @@ GEM
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.5.1)
actionmailer (= 4.2.5.1)
actionpack (= 4.2.5.1)
actionview (= 4.2.5.1)
activejob (= 4.2.5.1)
activemodel (= 4.2.5.1)
activerecord (= 4.2.5.1)
activesupport (= 4.2.5.1)
rails (4.2.6)
actionmailer (= 4.2.6)
actionpack (= 4.2.6)
actionview (= 4.2.6)
activejob (= 4.2.6)
activemodel (= 4.2.6)
activerecord (= 4.2.6)
activesupport (= 4.2.6)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.5.1)
railties (= 4.2.6)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
Expand All @@ -179,13 +183,13 @@ GEM
ruby-graphviz (~> 1.2)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (4.2.5.1)
actionpack (= 4.2.5.1)
activesupport (= 4.2.5.1)
railties (4.2.6)
actionpack (= 4.2.6)
activesupport (= 4.2.6)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rainbow (2.1.0)
rake (10.5.0)
rake (11.2.2)
rb-fsevent (0.9.6)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
Expand Down Expand Up @@ -286,7 +290,7 @@ DEPENDENCIES
net-ldap
pry
pry-stack_explorer
rails (= 4.2.5.1)
rails (= 4.2.6)
rails-erd
rubocop
rubocop-checkstyle_formatter
Expand Down
5 changes: 2 additions & 3 deletions app/assets/javascripts/application.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
#= require jquery
#= require jquery_ujs
#= require jquery-ui
#= require clipboard.js
#= require twitter/bootstrap
#= require handlebars.runtime
#= require turbolinks
#= require_tree ./modules
#= require_tree ./templates
#= require turbolinks
#= require clipboard.js
#= require clipboard.min.js


# scope for global functions
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/modules/account.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class app.Account
showPassword(e)

$(document).on 'click', '.clip_button', (e) ->
app.Helper.showCopyMessage(e, '.clip_button')
app.AccountHelper.showCopyMessage(e, '.clip_button')

$(document).on 'click', '.result-username input', (e) ->
$(this).select()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
app = window.App ||= {}

class app.Helper
class app.AccountHelper

@showCopyMessage: (e, name) ->
parent = $(e.target.closest(name)).parent()
Expand All @@ -17,6 +17,3 @@ class app.Helper
$(div).find($('.copied')).remove()
return
), 2000


new Helper
2 changes: 1 addition & 1 deletion app/assets/javascripts/modules/search.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ class app.Search
showPassword(e)

$(document).on 'click', '.clip_button', (e) ->
app.Helper.showCopyMessage(e, '.clip_button')
app.AccountHelper.showCopyMessage(e, '.clip_button')

new Search
3 changes: 1 addition & 2 deletions app/assets/javascripts/modules/team_members.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ class app.TeamMembers
toggle_members()
load_members()

$(document).on 'click', '.members li #remove_member', (e) ->
$(document).on 'click', '.members li .remove_member', (e) ->
delete_member(e)

new TeamMembers

4 changes: 2 additions & 2 deletions app/assets/javascripts/templates/team_member_entry.hbs.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<li data-value='{"user_id": {{user_id}} }'>
{{label}}
{{#if admin}}
<img src="/assets/penguin.svg" id="penguin" alt="Remove"/>
<%= image_tag("penguin.svg", class: "admin", alt:"Admin" ) %>
{{/if}}

{{#if deletable}}
<a href="#">
<img src="/assets/remove.svg" id="remove_member" alt="Remove"/>
<%= image_tag("remove.svg", class: "remove_member", alt:"Remove" ) %>
</a>
{{/if}}
</li>
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/teammember.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
float: right;
}

li #penguin{
li .admin{
float: right;
}
11 changes: 2 additions & 9 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,5 @@ test:
database: <%= ENV['RAILS_DB_NAME'] || "#{Rails.root}/db/test.sqlite3" %>

production:
database: <%= ENV['RAILS_DB_NAME'] || "cryptopus_production" %>
adapter: <%= ENV['RAILS_DB_ADAPTER'] || 'mysql2' %>
host: <%= ENV['RAILS_DB_HOST'] || '127.0.0.1' %>
port: <%= ENV['RAILS_DB_PORT'] || 3306 %>
username: <%= ENV['RAILS_DB_USERNAME'] %>
password: <%= ENV['RAILS_DB_PASSWORD'] %>
pool: 5
timeout: 5000
encoding: utf8
<<: *generic
database: <%= ENV['RAILS_DB_NAME'] || "#{Rails.root}/db/development.sqlite3" %>
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
config.action_controller.perform_caching = true

# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_files = false
config.serve_static_files = true

# Compress JavaScripts and CSS
config.assets.compress = true
Expand Down

0 comments on commit 3327d38

Please sign in to comment.