Skip to content

Commit 890b70b

Browse files
committed
Removing pre-1.9 hashrockets
1 parent 7eab52d commit 890b70b

File tree

225 files changed

+1259
-1262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+1259
-1262
lines changed

Gemfile.lock

+77-80
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actionmailer (4.1.7)
5-
actionpack (= 4.1.7)
6-
actionview (= 4.1.7)
4+
actionmailer (4.1.9)
5+
actionpack (= 4.1.9)
6+
actionview (= 4.1.9)
77
mail (~> 2.5, >= 2.5.4)
8-
actionpack (4.1.7)
9-
actionview (= 4.1.7)
10-
activesupport (= 4.1.7)
8+
actionpack (4.1.9)
9+
actionview (= 4.1.9)
10+
activesupport (= 4.1.9)
1111
rack (~> 1.5.2)
1212
rack-test (~> 0.6.2)
13-
actionview (4.1.7)
14-
activesupport (= 4.1.7)
13+
actionview (4.1.9)
14+
activesupport (= 4.1.9)
1515
builder (~> 3.1)
1616
erubis (~> 2.7.0)
17-
activemodel (4.1.7)
18-
activesupport (= 4.1.7)
17+
activemodel (4.1.9)
18+
activesupport (= 4.1.9)
1919
builder (~> 3.1)
20-
activerecord (4.1.7)
21-
activemodel (= 4.1.7)
22-
activesupport (= 4.1.7)
20+
activerecord (4.1.9)
21+
activemodel (= 4.1.9)
22+
activesupport (= 4.1.9)
2323
arel (~> 5.0.0)
24-
activesupport (4.1.7)
24+
activesupport (4.1.9)
2525
i18n (~> 0.6, >= 0.6.9)
2626
json (~> 1.7, >= 1.7.7)
2727
minitest (~> 5.1)
@@ -37,20 +37,20 @@ GEM
3737
addressable (>= 2.3.1)
3838
extlib (>= 0.9.15)
3939
multi_json (>= 1.0.0)
40-
bcrypt (3.1.7)
40+
bcrypt (3.1.9)
4141
bcrypt-ruby (3.1.5)
4242
bcrypt (>= 3.1.3)
43-
bootstrap-datepicker-rails (1.3.0.2)
43+
bootstrap-datepicker-rails (1.3.1.1)
4444
railties (>= 3.0)
4545
builder (3.2.2)
4646
bundler-audit (0.3.1)
4747
bundler (~> 1.2)
4848
thor (~> 0.18)
49-
cancancan (1.9.2)
50-
clockwork (1.0.0)
49+
cancancan (1.10.1)
50+
clockwork (1.1.0)
5151
activesupport
5252
tzinfo
53-
coffee-rails (4.0.1)
53+
coffee-rails (4.1.0)
5454
coffee-script (>= 2.2.0)
5555
railties (>= 4.0.0, < 5.0)
5656
coffee-script (2.3.0)
@@ -74,50 +74,47 @@ GEM
7474
concerto_weather (0.0.8)
7575
rails
7676
connection_pool (1.2.0)
77-
delayed_job (4.0.4)
78-
activesupport (>= 3.0, < 4.2)
79-
delayed_job_active_record (4.0.2)
80-
activerecord (>= 3.0, < 4.2)
77+
delayed_job (4.0.6)
78+
activesupport (>= 3.0, < 5.0)
79+
delayed_job_active_record (4.0.3)
80+
activerecord (>= 3.0, < 5.0)
8181
delayed_job (>= 3.0, < 4.1)
8282
devise (3.0.4)
8383
bcrypt-ruby (~> 3.0)
8484
orm_adapter (~> 0.1)
8585
railties (>= 3.2.6, < 5)
8686
warden (~> 1.2.3)
8787
docile (1.1.5)
88-
dotenv (0.11.1)
89-
dotenv-deployment (~> 0.0.2)
90-
dotenv-deployment (0.0.2)
88+
dotenv (1.0.2)
9189
easy_translate (0.5.0)
9290
json
9391
thread
9492
thread_safe
9593
erubis (2.7.0)
9694
execjs (2.2.2)
9795
extlib (0.9.16)
98-
faraday (0.9.0)
96+
faraday (0.9.1)
9997
multipart-post (>= 1.2, < 3)
100-
foreman (0.75.0)
101-
dotenv (~> 0.11.1)
98+
foreman (0.77.0)
99+
dotenv (~> 1.0.2)
102100
thor (~> 0.19.1)
103101
girl_friday (0.11.2)
104102
connection_pool (~> 1.0)
105103
rubinius-actor
106104
google-analytics-turbolinks (0.0.4)
107-
google-api-client (0.7.1)
108-
addressable (>= 2.3.2)
109-
autoparse (>= 0.3.3)
110-
extlib (>= 0.9.15)
111-
faraday (>= 0.9.0)
112-
jwt (>= 0.1.5)
113-
launchy (>= 2.1.1)
114-
multi_json (>= 1.0.0)
115-
retriable (>= 1.4)
116-
signet (>= 0.5.0)
117-
uuidtools (>= 2.1.0)
105+
google-api-client (0.8.2)
106+
activesupport (>= 3.2)
107+
addressable (~> 2.3)
108+
autoparse (~> 0.3)
109+
extlib (~> 0.9)
110+
faraday (~> 0.9)
111+
launchy (~> 2.4)
112+
multi_json (~> 1.10)
113+
retriable (~> 1.4)
114+
signet (~> 0.6)
118115
highline (1.6.21)
119116
hike (1.2.3)
120-
i18n (0.6.11)
117+
i18n (0.7.0)
121118
i18n-js (3.0.0.rc8)
122119
i18n (~> 0.6)
123120
i18n-tasks (0.7.10)
@@ -129,73 +126,74 @@ GEM
129126
slop (>= 3.5.0)
130127
term-ansicolor
131128
terminal-table
132-
icalendar (2.2.0)
129+
icalendar (2.2.2)
133130
jquery-rails (3.1.2)
134131
railties (>= 3.0, < 5.0)
135132
thor (>= 0.14, < 2.0)
136133
jquery-timepicker-rails (1.4.3)
137134
railties (>= 3.1.0)
138-
json (1.8.1)
139-
jwt (1.0.0)
135+
json (1.8.2)
136+
jwt (1.2.0)
140137
kaminari (0.16.1)
141138
actionpack (>= 3.0.0)
142139
activesupport (>= 3.0.0)
143-
launchy (2.4.2)
140+
launchy (2.4.3)
144141
addressable (~> 2.3)
145142
libv8 (3.16.14.7)
146-
mail (2.6.1)
143+
mail (2.6.3)
147144
mime-types (>= 1.16, < 3)
148145
mime-types (2.4.3)
149-
minitest (5.4.2)
146+
minitest (5.5.1)
150147
multi_json (1.10.1)
151148
multipart-post (2.0.0)
152-
mysql2 (0.3.16)
153-
nprogress-rails (0.1.6.3)
149+
nprogress-rails (0.1.6.5)
154150
orm_adapter (0.5.0)
155151
public_activity (1.4.2)
156152
actionpack (>= 3.0.0)
157153
activerecord (>= 3.0)
158154
i18n (>= 0.5.0)
159155
railties (>= 3.0.0)
160156
rack (1.5.2)
161-
rack-test (0.6.2)
157+
rack-test (0.6.3)
162158
rack (>= 1.0)
163-
rails (4.1.7)
164-
actionmailer (= 4.1.7)
165-
actionpack (= 4.1.7)
166-
actionview (= 4.1.7)
167-
activemodel (= 4.1.7)
168-
activerecord (= 4.1.7)
169-
activesupport (= 4.1.7)
159+
rails (4.1.9)
160+
actionmailer (= 4.1.9)
161+
actionpack (= 4.1.9)
162+
actionview (= 4.1.9)
163+
activemodel (= 4.1.9)
164+
activerecord (= 4.1.9)
165+
activesupport (= 4.1.9)
170166
bundler (>= 1.3.0, < 2.0)
171-
railties (= 4.1.7)
167+
railties (= 4.1.9)
172168
sprockets-rails (~> 2.0)
173-
railties (4.1.7)
174-
actionpack (= 4.1.7)
175-
activesupport (= 4.1.7)
169+
railties (4.1.9)
170+
actionpack (= 4.1.9)
171+
activesupport (= 4.1.9)
176172
rake (>= 0.8.7)
177173
thor (>= 0.18.1, < 2.0)
178-
rake (10.3.2)
179-
redcarpet (3.2.0)
174+
rake (10.4.2)
175+
redcarpet (3.2.2)
180176
ref (1.0.5)
181177
retriable (1.4.1)
182-
rmagick (2.13.3)
178+
rmagick (2.13.4)
183179
rubinius-actor (0.0.2)
184180
rubinius-core-api
185181
rubinius-core-api (0.0.1)
186182
ruby-xslt (0.9.9)
187183
rubyzip (1.1.6)
188-
sass (3.2.19)
189-
sass-rails (4.0.4)
184+
sass (3.4.9)
185+
sass-rails (5.0.1)
190186
railties (>= 4.0.0, < 5.0)
191-
sass (~> 3.2.2)
192-
sprockets (~> 2.8, < 2.12)
193-
sprockets-rails (~> 2.0)
194-
signet (0.5.1)
195-
addressable (>= 2.2.3)
196-
faraday (>= 0.9.0.rc5)
197-
jwt (>= 0.1.5)
198-
multi_json (>= 1.0.0)
187+
sass (~> 3.1)
188+
sprockets (>= 2.8, < 4.0)
189+
sprockets-rails (>= 2.0, < 4.0)
190+
tilt (~> 1.1)
191+
signet (0.6.0)
192+
addressable (~> 2.3)
193+
extlib (~> 0.9)
194+
faraday (~> 0.9)
195+
jwt (~> 1.0)
196+
multi_json (~> 1.10)
199197
simplecov (0.9.1)
200198
docile (~> 1.1.0)
201199
multi_json (~> 1.0)
@@ -207,11 +205,11 @@ GEM
207205
multi_json (~> 1.0)
208206
rack (~> 1.0)
209207
tilt (~> 1.1, != 1.3.0)
210-
sprockets-rails (2.2.0)
208+
sprockets-rails (2.2.2)
211209
actionpack (>= 3.0)
212210
activesupport (>= 3.0)
213211
sprockets (>= 2.8, < 4.0)
214-
sqlite3 (1.3.9)
212+
sqlite3 (1.3.10)
215213
term-ansicolor (1.3.0)
216214
tins (~> 1.0)
217215
terminal-table (1.4.5)
@@ -223,15 +221,14 @@ GEM
223221
thread_safe (0.3.4)
224222
tilt (1.4.1)
225223
tins (1.3.3)
226-
turbolinks (2.4.0)
224+
turbolinks (2.5.3)
227225
coffee-rails
228-
twitter-bootstrap-rails-confirm (1.0.3)
226+
twitter-bootstrap-rails-confirm (1.0.4)
229227
tzinfo (1.2.2)
230228
thread_safe (~> 0.1)
231-
uglifier (2.5.3)
229+
uglifier (2.7.0)
232230
execjs (>= 0.3.0)
233231
json (>= 1.8.0)
234-
uuidtools (2.1.5)
235232
warden (1.2.3)
236233
rack (>= 1.0)
237234

app/controllers/application_controller.rb

+7-7
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ def process_notification(ar_instance, pa_params, options = {})
212212
#make an effort to catch all mail-related exceptions after sending the mail - IOError will catch anything for sendmail, SMTP for the rest
213213
rescue IOError, Net::SMTPAuthenticationError, Net::SMTPServerBusy, Net::SMTPSyntaxError, Net::SMTPFatalError, Net::SMTPUnknownError => e
214214
Rails.logger.debug "Mail delivery failed at #{Time.now.to_s} for #{options[:recipient]}: #{e.message}"
215-
ConcertoConfig.first.create_activity :action => :system_notification, :params => {:message => t(:smtp_send_error)}
215+
ConcertoConfig.first.create_activity action: :system_notification, params: {message: t(:smtp_send_error)}
216216
rescue OpenSSL::SSL::SSLError => e
217217
Rails.logger.debug "Mail delivery failed at #{Time.now.to_s} for #{options[:recipient]}: #{e.message} -- might need to disable SSL Verification in settings"
218-
ConcertoConfig.first.create_activity :action => :system_notification, :params => {:message => t(:smtp_send_error_ssl)}
218+
ConcertoConfig.first.create_activity action: :system_notification, params: {message: t(:smtp_send_error_ssl)}
219219
end
220220
end
221221

@@ -261,10 +261,10 @@ def check_for_initial_install
261261
#Don't break for CanCan exceptions; send the user to the front page with a Flash error message
262262
rescue_from CanCan::AccessDenied do |exception|
263263
respond_to do |format|
264-
format.json { render :json => {:error=>true, :status=>403, :message => exception.message}, :status => :forbidden }
265-
format.xml{ render :xml => {:error=>true, :status=>403, :message => exception.message}, :status => :forbidden }
264+
format.json { render json: {error:true, status:403, message: exception.message}, status: :forbidden }
265+
format.xml{ render xml: {error:true, status:403, message: exception.message}, status: :forbidden }
266266
format.any {
267-
redirect_to main_app.root_url, :flash => { :notice => exception.message }
267+
redirect_to main_app.root_url, flash: { notice: exception.message }
268268
}
269269
end
270270
end
@@ -381,7 +381,7 @@ def extract_pagination_from_relation(relation)
381381
# applied before auth.
382382
relation.limit_value = nil
383383
relation.offset_value = [0,offset-(page-1)*per].max
384-
return {:page => page, :per => per}
384+
return {page: page, per: per}
385385
else
386386
# Not paginated, we don't need to do anything.
387387
return nil
@@ -426,7 +426,7 @@ def after_sign_in_path_for(resource)
426426
def process_notification_options(options = {})
427427
opts = {}
428428
opts[:params] = {
429-
:owner_name => current_user.name
429+
owner_name: current_user.name
430430
}
431431
opts[:owner] = current_user
432432
opts[:action] = action_name

app/controllers/concerto_config_controller.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def show
88

99
def initiate_restart
1010
restart_webserver()
11-
redirect_to :action => :show
11+
redirect_to action: :show
1212
end
1313

1414
def config_check
@@ -29,22 +29,22 @@ def config_check
2929
def update
3030
authorize! :update, ConcertoConfig
3131
params[:concerto_config].each do |k,v|
32-
config = ConcertoConfig.where(:key => k).first
32+
config = ConcertoConfig.where(key: k).first
3333
# since all they can change is the value, only create/update if it changed
3434
if config.nil? || config.value != v
3535
if config.nil?
36-
config = ConcertoConfig.new(:key => k, :value => v)
36+
config = ConcertoConfig.new(key: k, value: v)
3737
config.save
3838
else
3939
config.update_column(:value, v)
4040
end
41-
process_notification(config, {}, process_notification_options({:params => {:concerto_config_key => config.key}}))
41+
process_notification(config, {}, process_notification_options({params: {concerto_config_key: config.key}}))
4242
end
4343
end
4444

4545
ConcertoConfig.cache_expire
4646
flash[:notice] = t(:settings_saved)
47-
redirect_to :action => :show
47+
redirect_to action: :show
4848
end
4949

5050
end

0 commit comments

Comments
 (0)