nsa_panel 0.0.6 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -8,8 +8,8 @@ users' data. Let's ~~destroy the right to privacy~~ fight terrorism together!
8
8
  Why?
9
9
 
10
10
  Well, the government wants to protect you and your users from those
11
- crazy guys that blow up everything. Everyone wants to be safe. No liberty
12
- should be superior to the safety and every government is good!
11
+ crazy guys who blow up everything. Everyone wants to be safe. No liberty
12
+ should be superior to safety, and the government is good!
13
13
 
14
14
  Besides, you and your users really have got **nothing to hide**, haven't you?
15
15
 
@@ -20,7 +20,7 @@ See sample app at `test/dummy`.
20
20
  1. `bundle install`
21
21
  2. `rake db:setup`
22
22
  3. `rails s`
23
- 4. visit [localhost:3000/nsa_panel](http://localhost:3000/nsa_panel).
23
+ 4. Visit [localhost:3000/nsa_panel](http://localhost:3000/nsa_panel).
24
24
  Use nsa/nsa as credentials.
25
25
 
26
26
  ## Install
@@ -59,31 +59,31 @@ NsaPanel.password = 'nsa' # ENV['NSA_PASSWORD']
59
59
 
60
60
  ~~Lie~~ Announce the following to your users:
61
61
 
62
- > Dear X users,
62
+ > Dear X users,
63
63
 
64
64
  > You may be aware of reports alleging that X and several other Internet
65
65
  > companies have joined a secret U.S. government program called PRISM to
66
66
  > give the National Security Agency direct access to our servers. We would
67
- > like to respond to the press reports, and give you the facts.
67
+ > like to respond to the press reports, and give you the facts.
68
68
 
69
69
  > X is not and has never been part of any program to give the US or any
70
70
  > other government direct access to our servers. We have never received a
71
71
  > blanket request or court order from any government agency asking for
72
72
  > information or metadata in bulk, like the one Verizon reportedly
73
- > received. We hadn't even heard of PRISM before yesterday.
73
+ > received. We hadn't even heard of PRISM before yesterday.
74
74
 
75
75
  > When governments ask X for data, we review each request carefully to
76
76
  > make sure they always follow the correct processes and all applicable
77
77
  > laws, and then only provide the information if is required by law. We
78
78
  > will continue fighting aggressively to keep your information safe and
79
- > secure. Any suggestion that X is disclosing information about our users
80
- > Internet activity on such a scale is completely false.
79
+ > secure. Any suggestion that X is disclosing information about our users'
80
+ > Internet activity on such a scale is completely false.
81
81
 
82
82
  > We strongly encourage all governments to be much more transparent about
83
83
  > all programs aimed at keeping the public safe. It's the only way to
84
84
  > protect everyone's civil liberties and create the safe and free society
85
85
  > we all want over the long term. We here at X understand that the U.S.
86
- > and other governments need to take action to protect their citizens
86
+ > and other governments need to take action to protect their citizens'
87
87
  > safety—including sometimes by using surveillance. But the level of
88
88
  > secrecy around the current legal procedures undermines the freedoms we
89
89
  > all cherish.
@@ -105,6 +105,7 @@ Easy, eh?
105
105
  ## Similar projects
106
106
 
107
107
  * [flask-nsa](https://github.com/plausibility/flask-nsa) by @plausibility.
108
+ * [django_nsa](https://github.com/lvm/django_nsa) by @lvm.
108
109
 
109
110
  ## License
110
111
 
data/Rakefile CHANGED
@@ -23,18 +23,4 @@ end
23
23
  APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24
24
  load 'rails/tasks/engine.rake'
25
25
 
26
-
27
-
28
26
  Bundler::GemHelper.install_tasks
29
-
30
- require 'rake/testtask'
31
-
32
- Rake::TestTask.new(:test) do |t|
33
- t.libs << 'lib'
34
- t.libs << 'test'
35
- t.pattern = 'test/**/*_test.rb'
36
- t.verbose = false
37
- end
38
-
39
-
40
- task :default => :test
@@ -1,4 +1,4 @@
1
1
  <h3>We want to make sure you are accessing this portal in accordance with the law</h3>
2
2
 
3
3
  <%= link_to 'I have received a FISA warrant', dashboard_proceed_path, method: :post, class: 'btn btn-large btn-block btn-success' %>
4
- <%= link_to 'I have not received a FISA warrant', '#', class: 'btn btn-large btn-block btn-danger', id: 'no-warrant-btn' %>
4
+ <%= link_to 'I have not received a FISA warrant', dashboard_proceed_path, method: :post, class: 'btn btn-large btn-block btn-danger', id: 'no-warrant-btn' %>
@@ -1,3 +1,3 @@
1
1
  module NsaPanel
2
- VERSION = '0.0.6'
2
+ VERSION = '0.1.0'
3
3
  end
@@ -0,0 +1,5 @@
1
+ Connecting to database specified by database.yml
2
+  (0.3ms) begin transaction
3
+  (0.1ms) rollback transaction
4
+  (0.0ms) begin transaction
5
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nsa_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-10 00:00:00.000000000 Z
12
+ date: 2013-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 3.2.12
22
+ - - <
23
+ - !ruby/object:Gem::Version
24
+ version: '5'
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  none: false
26
29
  requirements:
27
- - - ~>
30
+ - - ! '>='
28
31
  - !ruby/object:Gem::Version
29
32
  version: 3.2.12
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: '5'
30
36
  - !ruby/object:Gem::Dependency
31
37
  name: sqlite3
32
38
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +59,6 @@ files:
53
59
  - app/assets/images/nsa_panel/fuck_you.jpg
54
60
  - app/assets/images/nsa_panel/nsa-eagle-tiny.png
55
61
  - app/assets/javascripts/nsa_panel/application.js
56
- - app/assets/javascripts/nsa_panel/dashboard.js
57
62
  - app/assets/stylesheets/nsa_panel/application.css
58
63
  - app/assets/stylesheets/nsa_panel/bootstrap.css
59
64
  - app/controllers/nsa_panel/application_controller.rb
@@ -111,6 +116,7 @@ files:
111
116
  - test/dummy/db/test.sqlite3
112
117
  - test/dummy/log/development.log
113
118
  - test/dummy/log/production.log
119
+ - test/dummy/log/test.log
114
120
  - test/dummy/public/404.html
115
121
  - test/dummy/public/422.html
116
122
  - test/dummy/public/500.html
@@ -146,14 +152,6 @@ files:
146
152
  - test/dummy/tmp/cache/assets/D6E/BD0/sprockets%2F5089f0cbf8e7e71b070a98b22bc6e25b
147
153
  - test/dummy/tmp/cache/assets/E0B/F60/sprockets%2Fc2e14aeedcbfbc9e4fc16a818872598f
148
154
  - test/dummy/tmp/cache/assets/E2C/140/sprockets%2F7b29107426cecdbee365edf5adbace56
149
- - test/dummy/tmp/pids/server.pid
150
- - test/functional/nsa_panel/dashboard_controller_test.rb
151
- - test/functional/nsa_panel/data_controller_test.rb
152
- - test/integration/navigation_test.rb
153
- - test/nsa_panel_test.rb
154
- - test/test_helper.rb
155
- - test/unit/helpers/nsa_panel/dashboard_helper_test.rb
156
- - test/unit/helpers/nsa_panel/data_helper_test.rb
157
155
  homepage: http://github.com/goshakkk/nsa_panel
158
156
  licenses: []
159
157
  post_install_message:
@@ -168,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
168
166
  version: '0'
169
167
  segments:
170
168
  - 0
171
- hash: -2644699245799389696
169
+ hash: 2441921556261098919
172
170
  required_rubygems_version: !ruby/object:Gem::Requirement
173
171
  none: false
174
172
  requirements:
@@ -177,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
175
  version: '0'
178
176
  segments:
179
177
  - 0
180
- hash: -2644699245799389696
178
+ hash: 2441921556261098919
181
179
  requirements: []
182
180
  rubyforge_project:
183
181
  rubygems_version: 1.8.23
@@ -217,6 +215,7 @@ test_files:
217
215
  - test/dummy/db/test.sqlite3
218
216
  - test/dummy/log/development.log
219
217
  - test/dummy/log/production.log
218
+ - test/dummy/log/test.log
220
219
  - test/dummy/public/404.html
221
220
  - test/dummy/public/422.html
222
221
  - test/dummy/public/500.html
@@ -252,11 +251,3 @@ test_files:
252
251
  - test/dummy/tmp/cache/assets/D6E/BD0/sprockets%2F5089f0cbf8e7e71b070a98b22bc6e25b
253
252
  - test/dummy/tmp/cache/assets/E0B/F60/sprockets%2Fc2e14aeedcbfbc9e4fc16a818872598f
254
253
  - test/dummy/tmp/cache/assets/E2C/140/sprockets%2F7b29107426cecdbee365edf5adbace56
255
- - test/dummy/tmp/pids/server.pid
256
- - test/functional/nsa_panel/dashboard_controller_test.rb
257
- - test/functional/nsa_panel/data_controller_test.rb
258
- - test/integration/navigation_test.rb
259
- - test/nsa_panel_test.rb
260
- - test/test_helper.rb
261
- - test/unit/helpers/nsa_panel/dashboard_helper_test.rb
262
- - test/unit/helpers/nsa_panel/data_helper_test.rb
@@ -1,5 +0,0 @@
1
- $(function() {
2
- $('#no-warrant-btn').click(function() {
3
- alert('Wrong answer, officer.');
4
- });
5
- });
@@ -1 +0,0 @@
1
- 80362
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- module NsaPanel
4
- class DashboardControllerTest < ActionController::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
8
- end
9
- end
@@ -1,11 +0,0 @@
1
- require 'test_helper'
2
-
3
- module NsaPanel
4
- class DataControllerTest < ActionController::TestCase
5
- test "should get show" do
6
- get :show
7
- assert_response :success
8
- end
9
-
10
- end
11
- end
@@ -1,10 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NavigationTest < ActionDispatch::IntegrationTest
4
- fixtures :all
5
-
6
- # test "the truth" do
7
- # assert true
8
- # end
9
- end
10
-
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NsaPanelTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, NsaPanel
6
- end
7
- end
data/test/test_helper.rb DELETED
@@ -1,15 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
- end
@@ -1,6 +0,0 @@
1
- require 'test_helper'
2
-
3
- module NsaPanel
4
- class DashboardHelperTest < ActionView::TestCase
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- require 'test_helper'
2
-
3
- module NsaPanel
4
- class DataHelperTest < ActionView::TestCase
5
- end
6
- end