quickapps_feedback 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quickapps_feedback/version.rb +1 -1
- data/lib/quickapps_feedback.rb +1 -4
- data/lib/views/layout.erb +4 -2
- data/quickapps_feedback.gemspec +0 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06e48b4c0f1859add0f9cc29f92a5db1b8708e2f
|
4
|
+
data.tar.gz: f0594b05a70ef46c7b2b6dd6904302c79112a9bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c319392d17aaf93c418696c36fa452ae1af01106f271c244e2687bc2ad2fb612cd1fb9a03a552edf0da805ac59868624724d4989d52fe9d0144e855a0405602
|
7
|
+
data.tar.gz: 1e54111fa7221cbf55b60c9b5ff6f38071feb8bb5529f1cfc77bde9f0fc4706b6d9d42f8093cdad0f7d15073c97c79f107e4f033227bff599de302bb1b0d56ad
|
data/lib/quickapps_feedback.rb
CHANGED
@@ -6,8 +6,6 @@ require 'sinatra/flash'
|
|
6
6
|
|
7
7
|
module QuickappsFeedback
|
8
8
|
class App < Sinatra::Base
|
9
|
-
register Sinatra::Flash
|
10
|
-
|
11
9
|
get '/feedback' do
|
12
10
|
erb :index
|
13
11
|
end
|
@@ -16,8 +14,7 @@ module QuickappsFeedback
|
|
16
14
|
feedback = Feedback.new(request.env['HTTP_X_MXIT_USERID_R'] || session[:uid],
|
17
15
|
params[:full_message],params[:support_type])
|
18
16
|
SendFeedbackToUservoice.new.perform(feedback)
|
19
|
-
|
20
|
-
redirect to('/feedback')
|
17
|
+
redirect to('/feedback?success=true')
|
21
18
|
end
|
22
19
|
|
23
20
|
get '/feedback/new' do
|
data/lib/views/layout.erb
CHANGED
@@ -7,8 +7,10 @@
|
|
7
7
|
<link href="/assets/application.css" media="all" rel="stylesheet" />
|
8
8
|
</head>
|
9
9
|
<body class="ui-page-active">
|
10
|
-
<% if
|
11
|
-
<div class="alert alert-info" style="color:#00008b;"
|
10
|
+
<% if params[:success] %>
|
11
|
+
<div class="alert alert-info" style="color:#00008b;">
|
12
|
+
thank you for your feedback
|
13
|
+
</div>
|
12
14
|
<% end %>
|
13
15
|
|
14
16
|
<%= yield %>
|
data/quickapps_feedback.gemspec
CHANGED
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_dependency 'sinatra', '~> 1.4'
|
22
22
|
spec.add_dependency 'uservoice-ruby', '~> 0.0.11'
|
23
23
|
spec.add_dependency 'excon', '>= 0.39.0'
|
24
|
-
spec.add_dependency 'sinatra-flash'
|
25
24
|
|
26
25
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
27
26
|
spec.add_development_dependency 'rake'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quickapps_feedback
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grant Speelman
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.39.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: sinatra-flash
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: bundler
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|