concen 0.1

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 (67) hide show
  1. data/app/controllers/concen/application_controller.rb +25 -0
  2. data/app/controllers/concen/grid_files_controller.rb +75 -0
  3. data/app/controllers/concen/pages_controller.rb +95 -0
  4. data/app/controllers/concen/performances_controller.rb +35 -0
  5. data/app/controllers/concen/sessions_controller.rb +30 -0
  6. data/app/controllers/concen/statuses_controller.rb +63 -0
  7. data/app/controllers/concen/traffics_controller.rb +43 -0
  8. data/app/controllers/concen/users_controller.rb +118 -0
  9. data/app/controllers/concen/visits_controller.rb +38 -0
  10. data/app/helpers/concen/application_helper.rb +10 -0
  11. data/app/helpers/concen/pages_helper.rb +5 -0
  12. data/app/helpers/concen/visits_helper.rb +4 -0
  13. data/app/models/concen/grid_file.rb +67 -0
  14. data/app/models/concen/page.rb +342 -0
  15. data/app/models/concen/response.rb +45 -0
  16. data/app/models/concen/user.rb +88 -0
  17. data/app/models/concen/visit/page.rb +100 -0
  18. data/app/models/concen/visit/referral.rb +45 -0
  19. data/app/stylesheets/application.sass +445 -0
  20. data/app/stylesheets/config.rb +9 -0
  21. data/app/stylesheets/ie.sass +4 -0
  22. data/app/stylesheets/non_ios.sass +16 -0
  23. data/app/stylesheets/partials/_base.sass +92 -0
  24. data/app/stylesheets/partials/_fileuploader.sass +75 -0
  25. data/app/stylesheets/partials/_flot.sass +8 -0
  26. data/app/stylesheets/partials/_form.sass +74 -0
  27. data/app/stylesheets/partials/_mixins.sass +8 -0
  28. data/app/stylesheets/partials/_variables.sass +17 -0
  29. data/app/stylesheets/print.sass +4 -0
  30. data/app/views/concen/grid_files/_form.html.haml +15 -0
  31. data/app/views/concen/grid_files/edit.html.haml +9 -0
  32. data/app/views/concen/pages/_file_list.haml +7 -0
  33. data/app/views/concen/pages/_files.haml +24 -0
  34. data/app/views/concen/pages/_form.html.haml +18 -0
  35. data/app/views/concen/pages/_nested_list.html.haml +15 -0
  36. data/app/views/concen/pages/edit.html.haml +15 -0
  37. data/app/views/concen/pages/index.html.haml +9 -0
  38. data/app/views/concen/pages/new.html.haml +9 -0
  39. data/app/views/concen/performances/_runtimes.html.haml +5 -0
  40. data/app/views/concen/performances/show.html.haml +30 -0
  41. data/app/views/concen/sessions/new.html.haml +12 -0
  42. data/app/views/concen/statuses/_server.html.haml +19 -0
  43. data/app/views/concen/statuses/show.html.haml +18 -0
  44. data/app/views/concen/traffics/_pages.html.haml +5 -0
  45. data/app/views/concen/traffics/_referrals.html.haml +9 -0
  46. data/app/views/concen/traffics/show.html.haml +30 -0
  47. data/app/views/concen/users/_form.html.haml +29 -0
  48. data/app/views/concen/users/_password_reset.html.haml +0 -0
  49. data/app/views/concen/users/_settings.html.haml +15 -0
  50. data/app/views/concen/users/edit.html.haml +9 -0
  51. data/app/views/concen/users/index.html.haml +32 -0
  52. data/app/views/concen/users/new.html.haml +4 -0
  53. data/app/views/concen/users/new_invite.html.haml +15 -0
  54. data/app/views/concen/users/new_reset_password.html.haml +15 -0
  55. data/app/views/concen/visits/visit_recorder_js.erb +13 -0
  56. data/app/views/layouts/concen/_additional_header_links.haml +0 -0
  57. data/app/views/layouts/concen/_header.html.haml +18 -0
  58. data/app/views/layouts/concen/_iphone.html.haml +6 -0
  59. data/app/views/layouts/concen/application.html.haml +48 -0
  60. data/app/views/layouts/concen/maintenance.html.haml +0 -0
  61. data/config/routes.rb +64 -0
  62. data/lib/concen.rb +11 -0
  63. data/lib/concen/engine.rb +14 -0
  64. data/lib/concen/railties/page.rake +12 -0
  65. data/lib/concen/railties/setup.rake +23 -0
  66. data/lib/concen/version.rb +3 -0
  67. metadata +246 -0
@@ -0,0 +1,11 @@
1
+ require "concen/engine" if defined?(Rails)
2
+
3
+ module Concen
4
+ mattr_accessor :application_name, :typekit_id
5
+ @@application_name = nil
6
+ @@typekit_id = "qxq7sbk"
7
+
8
+ def self.setup
9
+ yield self
10
+ end
11
+ end
@@ -0,0 +1,14 @@
1
+ require "rails"
2
+ require "mongo/rails/instrumentation/railtie"
3
+
4
+ module Concen
5
+ class Engine < Rails::Engine
6
+ rake_tasks do
7
+ load "concen/railties/setup.rake"
8
+ load "concen/railties/page.rake"
9
+ end
10
+
11
+ # Add a load path for this specific Engine
12
+ # config.autoload_paths << File.expand_path("../markdown.rb", __FILE__)
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ namespace :concen do
2
+ namespace :page do
3
+ desc "Reset publish_month for all the pages. Should be used when time zone is changed."
4
+ task :reset_publish_month => :environment do
5
+ Time.zone = Rails::Application.config.time_zone
6
+ for page in Concen::Page.all
7
+ page.send(:set_publish_month)
8
+ page.save
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,23 @@
1
+ namespace :concen do
2
+ desc "Create initial setup for Control Center."
3
+ task :setup => [:environment, :copy_assets] do
4
+ end
5
+
6
+ desc "Copy assets for Control Center."
7
+ task :copy_assets => :environment do
8
+ origin = File.join(Concen::Engine.root, "public")
9
+ destination = File.join(Rails.root, "public")
10
+ if Dir.exist?("#{destination}/concen") || File.exist?("#{destination}/concen")
11
+ FileUtils.rm_r "#{destination}/concen"
12
+ end
13
+ FileUtils.cp_r "#{origin}/concen/", "#{destination}/"
14
+ end
15
+
16
+ desc "Symlink assets."
17
+ task :symlink_assets => :environment do
18
+ origin = File.join(Concen::Engine.root, "public")
19
+ destination = File.join(Rails.root, "public")
20
+ FileUtils.rm_r "#{destination}/concen" if File.directory?("#{destination}/concen")
21
+ FileUtils.ln_s "#{origin}/concen/", "#{destination}/"
22
+ end
23
+ end
@@ -0,0 +1,3 @@
1
+ module Concen
2
+ VERSION = "0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,246 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: concen
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Steve Randy Tantra
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-08-19 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: compass
16
+ requirement: &70304208396280 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
21
+ version: 0.11.5
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *70304208396280
25
+ - !ruby/object:Gem::Dependency
26
+ name: haml
27
+ requirement: &70304208395780 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 3.1.0
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70304208395780
36
+ - !ruby/object:Gem::Dependency
37
+ name: mustache
38
+ requirement: &70304208395320 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 0.99.4
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70304208395320
47
+ - !ruby/object:Gem::Dependency
48
+ name: redcarpet
49
+ requirement: &70304208394860 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.0.0b3
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *70304208394860
58
+ - !ruby/object:Gem::Dependency
59
+ name: mongoid
60
+ requirement: &70304208394400 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ~>
64
+ - !ruby/object:Gem::Version
65
+ version: 2.0.0
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *70304208394400
69
+ - !ruby/object:Gem::Dependency
70
+ name: mongo-rails-instrumentation
71
+ requirement: &70304208420560 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: 0.2.4
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: *70304208420560
80
+ - !ruby/object:Gem::Dependency
81
+ name: bson_ext
82
+ requirement: &70304208420100 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ version: 1.3.0
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: *70304208420100
91
+ - !ruby/object:Gem::Dependency
92
+ name: rack-gridfs
93
+ requirement: &70304208419640 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ~>
97
+ - !ruby/object:Gem::Version
98
+ version: 0.4.1
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: *70304208419640
102
+ - !ruby/object:Gem::Dependency
103
+ name: chronic
104
+ requirement: &70304208419180 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 0.4.3
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: *70304208419180
113
+ - !ruby/object:Gem::Dependency
114
+ name: mime-types
115
+ requirement: &70304208418720 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: '1.16'
121
+ type: :runtime
122
+ prerelease: false
123
+ version_requirements: *70304208418720
124
+ - !ruby/object:Gem::Dependency
125
+ name: bcrypt-ruby
126
+ requirement: &70304208418260 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: 2.1.4
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: *70304208418260
135
+ - !ruby/object:Gem::Dependency
136
+ name: domainatrix
137
+ requirement: &70304208417800 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ~>
141
+ - !ruby/object:Gem::Version
142
+ version: 0.0.10
143
+ type: :runtime
144
+ prerelease: false
145
+ version_requirements: *70304208417800
146
+ description: ! 'This gem provides a Rails engine for Rails application to control
147
+ and monitor the application from a web interface. It covers controlling content,
148
+ monitoring visitors, and monitoring application performance. The engine is flexible
149
+ in term of form and function. It can be styled and have custom functions. '
150
+ email:
151
+ - mail@steverandytantra.com
152
+ executables: []
153
+ extensions: []
154
+ extra_rdoc_files: []
155
+ files:
156
+ - config/routes.rb
157
+ - lib/concen/engine.rb
158
+ - lib/concen/railties/page.rake
159
+ - lib/concen/railties/setup.rake
160
+ - lib/concen/version.rb
161
+ - lib/concen.rb
162
+ - app/controllers/concen/application_controller.rb
163
+ - app/controllers/concen/grid_files_controller.rb
164
+ - app/controllers/concen/pages_controller.rb
165
+ - app/controllers/concen/performances_controller.rb
166
+ - app/controllers/concen/sessions_controller.rb
167
+ - app/controllers/concen/statuses_controller.rb
168
+ - app/controllers/concen/traffics_controller.rb
169
+ - app/controllers/concen/users_controller.rb
170
+ - app/controllers/concen/visits_controller.rb
171
+ - app/helpers/concen/application_helper.rb
172
+ - app/helpers/concen/pages_helper.rb
173
+ - app/helpers/concen/visits_helper.rb
174
+ - app/models/concen/grid_file.rb
175
+ - app/models/concen/page.rb
176
+ - app/models/concen/response.rb
177
+ - app/models/concen/user.rb
178
+ - app/models/concen/visit/page.rb
179
+ - app/models/concen/visit/referral.rb
180
+ - app/stylesheets/application.sass
181
+ - app/stylesheets/config.rb
182
+ - app/stylesheets/ie.sass
183
+ - app/stylesheets/non_ios.sass
184
+ - app/stylesheets/partials/_base.sass
185
+ - app/stylesheets/partials/_fileuploader.sass
186
+ - app/stylesheets/partials/_flot.sass
187
+ - app/stylesheets/partials/_form.sass
188
+ - app/stylesheets/partials/_mixins.sass
189
+ - app/stylesheets/partials/_variables.sass
190
+ - app/stylesheets/print.sass
191
+ - app/views/concen/grid_files/_form.html.haml
192
+ - app/views/concen/grid_files/edit.html.haml
193
+ - app/views/concen/pages/_file_list.haml
194
+ - app/views/concen/pages/_files.haml
195
+ - app/views/concen/pages/_form.html.haml
196
+ - app/views/concen/pages/_nested_list.html.haml
197
+ - app/views/concen/pages/edit.html.haml
198
+ - app/views/concen/pages/index.html.haml
199
+ - app/views/concen/pages/new.html.haml
200
+ - app/views/concen/performances/_runtimes.html.haml
201
+ - app/views/concen/performances/show.html.haml
202
+ - app/views/concen/sessions/new.html.haml
203
+ - app/views/concen/statuses/_server.html.haml
204
+ - app/views/concen/statuses/show.html.haml
205
+ - app/views/concen/traffics/_pages.html.haml
206
+ - app/views/concen/traffics/_referrals.html.haml
207
+ - app/views/concen/traffics/show.html.haml
208
+ - app/views/concen/users/_form.html.haml
209
+ - app/views/concen/users/_password_reset.html.haml
210
+ - app/views/concen/users/_settings.html.haml
211
+ - app/views/concen/users/edit.html.haml
212
+ - app/views/concen/users/index.html.haml
213
+ - app/views/concen/users/new.html.haml
214
+ - app/views/concen/users/new_invite.html.haml
215
+ - app/views/concen/users/new_reset_password.html.haml
216
+ - app/views/concen/visits/visit_recorder_js.erb
217
+ - app/views/layouts/concen/_additional_header_links.haml
218
+ - app/views/layouts/concen/_header.html.haml
219
+ - app/views/layouts/concen/_iphone.html.haml
220
+ - app/views/layouts/concen/application.html.haml
221
+ - app/views/layouts/concen/maintenance.html.haml
222
+ homepage: http://steverandytantra.com
223
+ licenses: []
224
+ post_install_message:
225
+ rdoc_options: []
226
+ require_paths:
227
+ - lib
228
+ required_ruby_version: !ruby/object:Gem::Requirement
229
+ none: false
230
+ requirements:
231
+ - - ! '>='
232
+ - !ruby/object:Gem::Version
233
+ version: '0'
234
+ required_rubygems_version: !ruby/object:Gem::Requirement
235
+ none: false
236
+ requirements:
237
+ - - ! '>='
238
+ - !ruby/object:Gem::Version
239
+ version: '0'
240
+ requirements: []
241
+ rubyforge_project:
242
+ rubygems_version: 1.8.8
243
+ signing_key:
244
+ specification_version: 3
245
+ summary: Control and monitor website.
246
+ test_files: []