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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02a9e6742f210d4e468d56ef46ca8e90cf7bbfd3
4
- data.tar.gz: 7402475e08f997fcb9cb9c40314189af633ac7d2
3
+ metadata.gz: 06e48b4c0f1859add0f9cc29f92a5db1b8708e2f
4
+ data.tar.gz: f0594b05a70ef46c7b2b6dd6904302c79112a9bd
5
5
  SHA512:
6
- metadata.gz: 50daa4c964f046d7e7831f14f12bd53b4b2d0e29eaf2822b8531e99b16551d245551c895752771b436806db9c67fb961e6ac577a1e175ce73286baf5a9185e9f
7
- data.tar.gz: 029a9371ccbc4ab92ad49f2e08a0467cd4f8e26e8fd9329e8ddeed6721b1887ca511c490ee7f1828596eb2ae97e66f547f1998dbb197733ef0dca9e5051c0e28
6
+ metadata.gz: 2c319392d17aaf93c418696c36fa452ae1af01106f271c244e2687bc2ad2fb612cd1fb9a03a552edf0da805ac59868624724d4989d52fe9d0144e855a0405602
7
+ data.tar.gz: 1e54111fa7221cbf55b60c9b5ff6f38071feb8bb5529f1cfc77bde9f0fc4706b6d9d42f8093cdad0f7d15073c97c79f107e4f033227bff599de302bb1b0d56ad
@@ -1,3 +1,3 @@
1
1
  module QuickappsFeedback
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
@@ -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
- flash('feedback_flash')[:notice] = 'thank you for your feedback'
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 flash('feedback_flash')[:notice] %>
11
- <div class="alert alert-info" style="color:#00008b;"><%= flash('feedback_flash')[:notice] %></div>
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 %>
@@ -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.3
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