Skip to content

Commit 94053d0

Browse files
committed
Initial Commit of PasswordPusher.
0 parents  commit 94053d0

Some content is hidden

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

71 files changed

+1264
-0
lines changed

.gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile ~/.gitignore_global
6+
7+
# Ignore bundler config
8+
/.bundle
9+
10+
# Ignore the default SQLite database.
11+
/db/*.sqlite3
12+
13+
# Ignore all logfiles and tempfiles.
14+
/log/*.log
15+
/tmp

Gemfile

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
source 'http://rubygems.org'
2+
3+
gem 'rails', '3.1.2'
4+
gem 'pg'
5+
6+
group :development, :test do
7+
gem 'silent-postgres'
8+
gem "ruby-debug"
9+
gem "rspec-rails", ">= 2.0.1"
10+
gem "rspec"
11+
gem "rspec-core"
12+
gem "rspec-expectations"
13+
gem "rspec-mocks"
14+
gem "blueprints"
15+
gem "nifty-generators"
16+
gem 'ruby-debug'
17+
end
18+
19+
gem 'json'
20+
gem 'haml'
21+
gem 'haml-rails'
22+
gem 'ezcrypto'
23+
24+
# Gems used only for assets and not required
25+
# in production environments by default.
26+
group :assets do
27+
gem 'sass-rails', '~> 3.1.5.rc.2'
28+
gem 'coffee-rails', '~> 3.1.1'
29+
gem 'uglifier', '>= 1.0.3'
30+
end
31+
32+
gem 'jquery-rails'
33+
gem "delayed_job", :git => "git://github.com/collectiveidea/delayed_job.git"
34+
35+
36+
# To use ActiveModel has_secure_password
37+
# gem 'bcrypt-ruby', '~> 3.0.0'
38+
39+
# Use unicorn as the web server
40+
# gem 'unicorn'
41+
gem 'thin'
42+
gem 'capistrano'
43+
44+

Gemfile.lock

+194
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
GIT
2+
remote: git://github.com/collectiveidea/delayed_job.git
3+
revision: 0c6c564c65f4a023d8d40772cfd6e149fee3338c
4+
specs:
5+
delayed_job (3.0.0.pre4)
6+
activesupport (~> 3.0)
7+
daemons (= 1.0.10)
8+
9+
GEM
10+
remote: http://rubygems.org/
11+
specs:
12+
actionmailer (3.1.2)
13+
actionpack (= 3.1.2)
14+
mail (~> 2.3.0)
15+
actionpack (3.1.2)
16+
activemodel (= 3.1.2)
17+
activesupport (= 3.1.2)
18+
builder (~> 3.0.0)
19+
erubis (~> 2.7.0)
20+
i18n (~> 0.6)
21+
rack (~> 1.3.5)
22+
rack-cache (~> 1.1)
23+
rack-mount (~> 0.8.2)
24+
rack-test (~> 0.6.1)
25+
sprockets (~> 2.1.0)
26+
activemodel (3.1.2)
27+
activesupport (= 3.1.2)
28+
builder (~> 3.0.0)
29+
i18n (~> 0.6)
30+
activerecord (3.1.2)
31+
activemodel (= 3.1.2)
32+
activesupport (= 3.1.2)
33+
arel (~> 2.2.1)
34+
tzinfo (~> 0.3.29)
35+
activeresource (3.1.2)
36+
activemodel (= 3.1.2)
37+
activesupport (= 3.1.2)
38+
activesupport (3.1.2)
39+
multi_json (~> 1.0)
40+
arel (2.2.1)
41+
blueprints (1.0.0)
42+
activesupport (>= 2.3.0)
43+
database_cleaner (~> 0.6.1)
44+
builder (3.0.0)
45+
capistrano (2.9.0)
46+
highline
47+
net-scp (>= 1.0.0)
48+
net-sftp (>= 2.0.0)
49+
net-ssh (>= 2.0.14)
50+
net-ssh-gateway (>= 1.1.0)
51+
coffee-rails (3.1.1)
52+
coffee-script (>= 2.2.0)
53+
railties (~> 3.1.0)
54+
coffee-script (2.2.0)
55+
coffee-script-source
56+
execjs
57+
coffee-script-source (1.1.3)
58+
columnize (0.3.5)
59+
daemons (1.0.10)
60+
database_cleaner (0.6.7)
61+
diff-lcs (1.1.3)
62+
erubis (2.7.0)
63+
eventmachine (0.12.10)
64+
execjs (1.2.9)
65+
multi_json (~> 1.0)
66+
ezcrypto (0.7.2)
67+
haml (3.1.3)
68+
haml-rails (0.3.4)
69+
actionpack (~> 3.0)
70+
activesupport (~> 3.0)
71+
haml (~> 3.0)
72+
railties (~> 3.0)
73+
highline (1.6.8)
74+
hike (1.2.1)
75+
i18n (0.6.0)
76+
jquery-rails (1.0.19)
77+
railties (~> 3.0)
78+
thor (~> 0.14)
79+
json (1.6.2)
80+
linecache (0.46)
81+
rbx-require-relative (> 0.0.4)
82+
mail (2.3.0)
83+
i18n (>= 0.4.0)
84+
mime-types (~> 1.16)
85+
treetop (~> 1.4.8)
86+
mime-types (1.17.2)
87+
multi_json (1.0.4)
88+
net-scp (1.0.4)
89+
net-ssh (>= 1.99.1)
90+
net-sftp (2.0.5)
91+
net-ssh (>= 2.0.9)
92+
net-ssh (2.2.1)
93+
net-ssh-gateway (1.1.0)
94+
net-ssh (>= 1.99.1)
95+
nifty-generators (0.4.6)
96+
pg (0.11.0)
97+
polyglot (0.3.3)
98+
rack (1.3.5)
99+
rack-cache (1.1)
100+
rack (>= 0.4)
101+
rack-mount (0.8.3)
102+
rack (>= 1.0.0)
103+
rack-ssl (1.3.2)
104+
rack
105+
rack-test (0.6.1)
106+
rack (>= 1.0)
107+
rails (3.1.2)
108+
actionmailer (= 3.1.2)
109+
actionpack (= 3.1.2)
110+
activerecord (= 3.1.2)
111+
activeresource (= 3.1.2)
112+
activesupport (= 3.1.2)
113+
bundler (~> 1.0)
114+
railties (= 3.1.2)
115+
railties (3.1.2)
116+
actionpack (= 3.1.2)
117+
activesupport (= 3.1.2)
118+
rack-ssl (~> 1.3.2)
119+
rake (>= 0.8.7)
120+
rdoc (~> 3.4)
121+
thor (~> 0.14.6)
122+
rake (0.9.2.2)
123+
rbx-require-relative (0.0.5)
124+
rdoc (3.11)
125+
json (~> 1.4)
126+
rspec (2.7.0)
127+
rspec-core (~> 2.7.0)
128+
rspec-expectations (~> 2.7.0)
129+
rspec-mocks (~> 2.7.0)
130+
rspec-core (2.7.1)
131+
rspec-expectations (2.7.0)
132+
diff-lcs (~> 1.1.2)
133+
rspec-mocks (2.7.0)
134+
rspec-rails (2.7.0)
135+
actionpack (~> 3.0)
136+
activesupport (~> 3.0)
137+
railties (~> 3.0)
138+
rspec (~> 2.7.0)
139+
ruby-debug (0.10.4)
140+
columnize (>= 0.1)
141+
ruby-debug-base (~> 0.10.4.0)
142+
ruby-debug-base (0.10.4)
143+
linecache (>= 0.3)
144+
sass (3.1.10)
145+
sass-rails (3.1.5)
146+
actionpack (~> 3.1.0)
147+
railties (~> 3.1.0)
148+
sass (~> 3.1.10)
149+
tilt (~> 1.3.2)
150+
silent-postgres (0.1.1)
151+
sprockets (2.1.2)
152+
hike (~> 1.2)
153+
rack (~> 1.0)
154+
tilt (!= 1.3.0, ~> 1.1)
155+
thin (1.3.1)
156+
daemons (>= 1.0.9)
157+
eventmachine (>= 0.12.6)
158+
rack (>= 1.0.0)
159+
thor (0.14.6)
160+
tilt (1.3.3)
161+
treetop (1.4.10)
162+
polyglot
163+
polyglot (>= 0.3.1)
164+
tzinfo (0.3.31)
165+
uglifier (1.1.0)
166+
execjs (>= 0.3.0)
167+
multi_json (>= 1.0.2)
168+
169+
PLATFORMS
170+
ruby
171+
172+
DEPENDENCIES
173+
blueprints
174+
capistrano
175+
coffee-rails (~> 3.1.1)
176+
delayed_job!
177+
ezcrypto
178+
haml
179+
haml-rails
180+
jquery-rails
181+
json
182+
nifty-generators
183+
pg
184+
rails (= 3.1.2)
185+
rspec
186+
rspec-core
187+
rspec-expectations
188+
rspec-mocks
189+
rspec-rails (>= 2.0.1)
190+
ruby-debug
191+
sass-rails (~> 3.1.5.rc.2)
192+
silent-postgres
193+
thin
194+
uglifier (>= 1.0.3)

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## PasswordPusher
2+
3+
4+
Easy distribution of new passwords.
5+

Rakefile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env rake
2+
# Add your own tasks in files placed in lib/tasks ending in .rake,
3+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4+
5+
require File.expand_path('../config/application', __FILE__)
6+
7+
PasswordPusher::Application.load_tasks

app/assets/images/broken_noise.png

81.5 KB
Loading

app/assets/images/concrete_wall_3.png

60.8 KB
Loading

app/assets/images/rails.png

6.49 KB
Loading

app/assets/javascripts/application.js

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// This is a manifest file that'll be compiled into including all the files listed below.
2+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3+
// be included in the compiled file accessible from http://example.com/assets/application.js
4+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5+
// the compiled file.
6+
//
7+
//= require jquery
8+
//= require jquery_ujs
9+
//= require_tree .
10+
11+
function showDaysValue(newValue)
12+
{
13+
document.getElementById("daysrange").innerHTML=newValue + ' Days';
14+
}
15+
16+
function showViewsValue(newValue)
17+
{
18+
document.getElementById("viewsrange").innerHTML=newValue + ' Views';
19+
}
20+
21+
msg = "Enter the Password to be Shared"
22+
function prepareTextField(e) {
23+
if (e) {
24+
if (e.value == msg) {
25+
e.value = '';
26+
}
27+
}
28+
}
29+
30+
function revertTextField(e) {
31+
if (e)
32+
if (e.value == '') {
33+
e.value = msg;
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Place all the behaviors and hooks related to the matching controller here.
2+
# All this logic will automatically be available in application.js.
3+
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
4+
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
3+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4+
* the top of the compiled file, but it's generally better to create a new file per style scope.
5+
*= require_self
6+
*= require_tree .
7+
*/
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Place all the styles related to the passwords controller here.
2+
// They will automatically be included in application.css.
3+
// You can use Sass (SCSS) here: http://sass-lang.com/
4+
5+
body {
6+
margin: 0;
7+
text-align: center;
8+
background-image: image-url('concrete_wall_3.png');
9+
}
10+
11+
div.content {
12+
margin-top: 200px;
13+
}
14+
15+
input.password {
16+
border: 1px solid #bbb;
17+
width: 500px;
18+
height: 25px;
19+
text-align: center;
20+
color: grey;
21+
font-size: 1.5em;
22+
}
23+
24+
input.slider {
25+
width: 400px;
26+
}
27+
28+
p.slider_box, span#daysrange, span#viewsrange { vertical-align: top; }
29+
30+
div.title {
31+
margin: 5em;
32+
}
33+
34+
span.title {
35+
font-size: 4em;
36+
color: blue;
37+
}
38+
39+
p.notes { margin-top: 50px; }
40+
span.note, span.tip { color: grey; }
41+

0 commit comments

Comments
 (0)