kryptonite 0.0.1 → 0.0.2

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.
Files changed (37) hide show
  1. data/PUBLIC_VERSION.yml +1 -1
  2. data/README.rdoc +6 -1
  3. data/Rakefile +2 -0
  4. data/app/controllers/kryptonite/kryptonite_controller.rb +27 -1
  5. data/app/controllers/kryptonite/password_resets_controller.rb +6 -6
  6. data/app/controllers/kryptonite/user_sessions_controller.rb +2 -2
  7. data/app/controllers/kryptonite/users_controller.rb +17 -17
  8. data/app/mailers/kryptonite/kryptonite_notification.rb +3 -3
  9. data/app/models/kryptonite/user.rb +2 -0
  10. data/app/views/kryptonite/kryptonite/blank.html.erb +1 -1
  11. data/app/views/kryptonite/kryptonite_notification/generate_new_password.erb +5 -5
  12. data/app/views/kryptonite/kryptonite_notification/new_user_information.erb +5 -5
  13. data/app/views/kryptonite/kryptonite_notification/password_reset_instructions.erb +4 -5
  14. data/app/views/kryptonite/password_resets/edit.html.erb +3 -3
  15. data/app/views/kryptonite/user_sessions/new.html.erb +7 -7
  16. data/app/views/kryptonite/users/index.html.erb +7 -7
  17. data/app/views/kryptonite/users/new.html.erb +6 -6
  18. data/app/views/kryptonite/users/show.html.erb +13 -13
  19. data/app/views/layouts/kryptonite_auth.html.erb +2 -3
  20. data/app/views/layouts/kryptonite_main.html.erb +4 -4
  21. data/config/locales/en.yml +81 -0
  22. data/lib/generators/kryptonite/install/templates/public/{casein → kryptonite}/javascripts/custom.js +0 -0
  23. data/lib/generators/kryptonite/install/templates/public/{casein → kryptonite}/stylesheets/custom.css +0 -0
  24. data/lib/generators/kryptonite/scaffold/scaffold_generator.rb +1 -0
  25. data/lib/generators/kryptonite/scaffold/templates/controller.rb +34 -18
  26. data/lib/generators/kryptonite/scaffold/templates/en.yml +7 -0
  27. data/lib/generators/kryptonite/scaffold/templates/views/_table.html.erb +1 -1
  28. data/lib/generators/kryptonite/scaffold/templates/views/index.html.erb +2 -2
  29. data/lib/generators/kryptonite/scaffold/templates/views/new.html.erb +4 -4
  30. data/lib/generators/kryptonite/scaffold/templates/views/show.html.erb +4 -4
  31. data/lib/generators/kryptonite/update/templates/public/kryptonite/images/kryptonite.png +0 -0
  32. data/lib/generators/kryptonite/update/templates/public/kryptonite/images/loading.gif +0 -0
  33. data/lib/generators/kryptonite/update/templates/public/kryptonite/javascripts/fileuploader.js +1247 -0
  34. data/lib/generators/kryptonite/update/templates/public/kryptonite/stylesheets/fileuploader.css +51 -0
  35. data/lib/generators/kryptonite/update/update_generator.rb +3 -0
  36. metadata +42 -5
  37. data/lib/generators/kryptonite/update/templates/public/kryptonite/images/casein.png +0 -0
@@ -0,0 +1,51 @@
1
+ /* @override
2
+ http://localhost:3000/casein/stylesheets/fileuploader.css */
3
+
4
+ .tfUploadContainer{
5
+ width: 45%;
6
+ min-height: 60px;
7
+ float: left;
8
+ padding: 0 5% 12px 0;
9
+ }
10
+ #content .tfUploadContainer p{
11
+ margin: 0 0 5px 0;
12
+ }
13
+
14
+ .qq-uploader { position:relative; width: 100%;}
15
+
16
+
17
+
18
+ .qq-upload-button {
19
+ display:block; /* or inline-block */
20
+ width: 90%;
21
+ padding: 7px 5px 7px 25px;
22
+ text-align: left;
23
+ background: url(/kryptonite/images/icons/add.png) no-repeat 5px 50%;
24
+ border:1px solid #ddd;
25
+ }
26
+ .qq-upload-button-hover {border-color: #000;
27
+ }
28
+ .qq-upload-button-focus {outline:1px dotted black;}
29
+
30
+ .qq-upload-drop-area {
31
+ position:absolute; top:0; left:0; width:100%; height:100%; min-height: 70px; z-index:2;
32
+ background:#FF9797; text-align:center;
33
+ }
34
+ .qq-upload-drop-area span {
35
+ display:block; position:absolute; top: 50%; width:100%; margin-top:-8px; font-size:16px;
36
+ }
37
+ .qq-upload-drop-area-active {background:#FF7171;}
38
+
39
+ .qq-upload-list {margin:15px 25px; padding:0; list-style:disc ;
40
+ }
41
+ .qq-upload-list li { margin:0; padding:0; line-height:15px; font-size:12px;}
42
+ .qq-upload-file, .qq-upload-spinner, .qq-upload-size, .qq-upload-cancel, .qq-upload-failed-text {
43
+ margin-right: 7px;
44
+ }
45
+
46
+ .qq-upload-file {}
47
+ .qq-upload-spinner {display:inline-block; background: url("/kryptonite/images/loading.gif"); width:15px; height:15px; vertical-align:text-bottom;}
48
+ .qq-upload-size,.qq-upload-cancel {font-size:11px;}
49
+
50
+ .qq-upload-failed-text {display:none;}
51
+ .qq-upload-fail .qq-upload-failed-text {display:inline;}
@@ -10,12 +10,14 @@ module Kryptonite
10
10
  copy_file "public/kryptonite/stylesheets/screen.css", "public/kryptonite/stylesheets/screen.css"
11
11
  copy_file "public/kryptonite/stylesheets/elements.css", "public/kryptonite/stylesheets/elements.css"
12
12
  copy_file "public/kryptonite/stylesheets/login.css", "public/kryptonite/stylesheets/login.css"
13
+ copy_file "public/kryptonite/stylesheets/fileuploader.css", "public/kryptonite/stylesheets/fileuploader.css"
13
14
 
14
15
  #javascripts
15
16
  copy_file "public/kryptonite/javascripts/kryptonite.js", "public/kryptonite/javascripts/kryptonite.js"
16
17
  copy_file "public/kryptonite/javascripts/login.js", "public/kryptonite/javascripts/login.js"
17
18
  copy_file "public/kryptonite/javascripts/jquery.js", "public/kryptonite/javascripts/jquery.js"
18
19
  copy_file "public/kryptonite/javascripts/rails.js", "public/kryptonite/javascripts/rails.js"
20
+ copy_file "public/kryptonite/javascripts/fileuploader.js", "public/kryptonite/javascripts/fileuploader.js"
19
21
 
20
22
  #images
21
23
  copy_file "public/kryptonite/images/header.png", "public/kryptonite/images/header.png"
@@ -26,6 +28,7 @@ module Kryptonite
26
28
  copy_file "public/kryptonite/images/visitSiteNav.png", "public/kryptonite/images/visitSiteNav.png"
27
29
  copy_file "public/kryptonite/images/login/top.png", "public/kryptonite/images/login/top.png"
28
30
  copy_file "public/kryptonite/images/login/bottom.png", "public/kryptonite/images/login/bottom.png"
31
+ copy_file "public/kryptonite/images/loading.gif", "public/kryptonite/images/loading.gif"
29
32
 
30
33
  #icons
31
34
  all_icons = Dir.new(File.expand_path('../templates/public/kryptonite/images/icons/', __FILE__)).entries
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kryptonite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-28 00:00:00.000000000 Z
13
+ date: 2012-04-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: kryptonite
@@ -60,6 +60,38 @@ dependencies:
60
60
  - - '='
61
61
  - !ruby/object:Gem::Version
62
62
  version: 3.0.3
63
+ - !ruby/object:Gem::Dependency
64
+ name: best_in_place
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - '='
69
+ - !ruby/object:Gem::Version
70
+ version: 1.0.6
71
+ type: :runtime
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - '='
77
+ - !ruby/object:Gem::Version
78
+ version: 1.0.6
79
+ - !ruby/object:Gem::Dependency
80
+ name: paperclip
81
+ requirement: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - '='
85
+ - !ruby/object:Gem::Version
86
+ version: 3.0.1
87
+ type: :runtime
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - '='
93
+ - !ruby/object:Gem::Version
94
+ version: 3.0.1
63
95
  description: Kryptonite is an open-source CMS for Ruby on Rails, originally developed
64
96
  by Spoiled Milk. Extended by Alexander Feiglstorfer.
65
97
  email: delooks@gmail.com
@@ -92,6 +124,7 @@ files:
92
124
  - app/views/kryptonite/users/show.html.erb
93
125
  - app/views/layouts/kryptonite_auth.html.erb
94
126
  - app/views/layouts/kryptonite_main.html.erb
127
+ - config/locales/en.yml
95
128
  - config/routes.rb
96
129
  - lib/generators/kryptonite/install/USAGE
97
130
  - lib/generators/kryptonite/install/install_generator.rb
@@ -99,12 +132,13 @@ files:
99
132
  - lib/generators/kryptonite/install/templates/app/views/kryptonite/layouts/_left_navigation.html.erb
100
133
  - lib/generators/kryptonite/install/templates/app/views/kryptonite/layouts/_right_navigation.html.erb
101
134
  - lib/generators/kryptonite/install/templates/db/migrate/kryptonite_create_users.rb
102
- - lib/generators/kryptonite/install/templates/public/casein/javascripts/custom.js
103
- - lib/generators/kryptonite/install/templates/public/casein/stylesheets/custom.css
135
+ - lib/generators/kryptonite/install/templates/public/kryptonite/javascripts/custom.js
136
+ - lib/generators/kryptonite/install/templates/public/kryptonite/stylesheets/custom.css
104
137
  - lib/generators/kryptonite/install/templates/public/robots.txt
105
138
  - lib/generators/kryptonite/scaffold/USAGE
106
139
  - lib/generators/kryptonite/scaffold/scaffold_generator.rb
107
140
  - lib/generators/kryptonite/scaffold/templates/controller.rb
141
+ - lib/generators/kryptonite/scaffold/templates/en.yml
108
142
  - lib/generators/kryptonite/scaffold/templates/migration.rb
109
143
  - lib/generators/kryptonite/scaffold/templates/model.rb
110
144
  - lib/generators/kryptonite/scaffold/templates/views/_form.html.erb
@@ -113,11 +147,12 @@ files:
113
147
  - lib/generators/kryptonite/scaffold/templates/views/new.html.erb
114
148
  - lib/generators/kryptonite/scaffold/templates/views/show.html.erb
115
149
  - lib/generators/kryptonite/update/USAGE
116
- - lib/generators/kryptonite/update/templates/public/kryptonite/images/casein.png
117
150
  - lib/generators/kryptonite/update/templates/public/kryptonite/images/header.png
118
151
  - lib/generators/kryptonite/update/templates/public/kryptonite/images/icons/add.png
119
152
  - lib/generators/kryptonite/update/templates/public/kryptonite/images/icons/delete.png
120
153
  - lib/generators/kryptonite/update/templates/public/kryptonite/images/icons/table.png
154
+ - lib/generators/kryptonite/update/templates/public/kryptonite/images/kryptonite.png
155
+ - lib/generators/kryptonite/update/templates/public/kryptonite/images/loading.gif
121
156
  - lib/generators/kryptonite/update/templates/public/kryptonite/images/login/alertBg.png
122
157
  - lib/generators/kryptonite/update/templates/public/kryptonite/images/login/background.png
123
158
  - lib/generators/kryptonite/update/templates/public/kryptonite/images/login/bottom.png
@@ -131,11 +166,13 @@ files:
131
166
  - lib/generators/kryptonite/update/templates/public/kryptonite/images/rightNav.png
132
167
  - lib/generators/kryptonite/update/templates/public/kryptonite/images/rightNavButton.png
133
168
  - lib/generators/kryptonite/update/templates/public/kryptonite/images/visitSiteNav.png
169
+ - lib/generators/kryptonite/update/templates/public/kryptonite/javascripts/fileuploader.js
134
170
  - lib/generators/kryptonite/update/templates/public/kryptonite/javascripts/jquery.js
135
171
  - lib/generators/kryptonite/update/templates/public/kryptonite/javascripts/kryptonite.js
136
172
  - lib/generators/kryptonite/update/templates/public/kryptonite/javascripts/login.js
137
173
  - lib/generators/kryptonite/update/templates/public/kryptonite/javascripts/rails.js
138
174
  - lib/generators/kryptonite/update/templates/public/kryptonite/stylesheets/elements.css
175
+ - lib/generators/kryptonite/update/templates/public/kryptonite/stylesheets/fileuploader.css
139
176
  - lib/generators/kryptonite/update/templates/public/kryptonite/stylesheets/login.css
140
177
  - lib/generators/kryptonite/update/templates/public/kryptonite/stylesheets/screen.css
141
178
  - lib/generators/kryptonite/update/update_generator.rb