cybele 0.6.0 → 0.7.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32003045eebb360f0c90d67476343d7fc081bfec
4
- data.tar.gz: 7d97ebb04a03d9ab9adea79f9edf3ef386653451
3
+ metadata.gz: d2144e5c64d4233319d077fe2794e0f3d6a1d6ef
4
+ data.tar.gz: 9923e8d953a61d5cdd3107fc4c7b3a712d7ca3cb
5
5
  SHA512:
6
- metadata.gz: 9e244a461af2bdceb6b8a5b7fab3fa92015e27f8b75bdeb7744d0338c0ab59565d81928748ca7d5eed6b107e09163db1ab2b48971d11298b3a5b241bf91213ae
7
- data.tar.gz: 249907433a0922ad005dbc0763e583177d6601916fa1cbb7dfac02f1c0614d9f3015de31403789d96ac1d704855d548bfb81dbc53530c5f7d33a9446a3abc6dd
6
+ metadata.gz: 71736fc937b5a01100784e053ccb863627dcc3868e71371f5be4cc58f0b95d3c1fe60daa958a96bffa2ae180f602754d4fd9bd27db2d2ded53a8fbea1d20da5f
7
+ data.tar.gz: 4d3b9bfb2c3829552cd6f015d2153cea79d7fae84e1499d093a9dfb1646dd85973e90ad1d5d12e228053a68fee7fb108a8b468a182bc9f078a21eb2a666aacc0
@@ -0,0 +1,102 @@
1
+
2
+ #### [Current]
3
+ * [e038328](e038328) typo fix __(Muhammet DİLEK)__
4
+ * [b67bed5](b67bed5) #48 #49 hq namespace added __(Muhammet DİLEK)__
5
+ * [9800524](9800524) #63 add tr.yml __(Onur Ozgur OZKAN)__
6
+ * [50d52ba](50d52ba) #63 add simple_form.tr.yml __(Onur Ozgur OZKAN)__
7
+ * [bea7012](bea7012) #63 remove devise.en.yml __(Onur Ozgur OZKAN)__
8
+ * [3d53fb6](3d53fb6) #39 setup timezone __(Onur Ozgur OZKAN)__
9
+ * [35ea960](35ea960) typo fixed __(Onur Ozgur OZKAN)__
10
+ * [1db5ebd](1db5ebd) #39 set time_zone __(Onur Ozgur OZKAN)__
11
+ * [b7e6c6c](b7e6c6c) typo fixed. __(Onur Ozgur OZKAN)__
12
+ * [104e1aa](104e1aa) add gem version to README.md __(Onur Ozgur OZKAN)__
13
+ * [92d196c](92d196c) #60 add katip gem __(Onur Ozgur OZKAN)__
14
+ * [a514a58](a514a58) #50 Add devise-i18n gem __(Onur Ozgur OZKAN)__
15
+ * [7773e3c](7773e3c) Merge remote-tracking branch 'origin/develop' into develop __(Onur Ozgur OZKAN)__
16
+ * [9cab0cc](9cab0cc) #58 add changelog.md __(Onur Ozgur OZKAN)__
17
+ * [37c8bef](37c8bef) #58 add changelog.md __(Onur Ozgur OZKAN)__
18
+ * [1c9cc61](1c9cc61) #53 welcome page added __(Muhammet DİLEK)__
19
+ * [e656995](e656995) Merge pull request #54 from sbagdat/patch-1 __(Onur Özgür ÖZKAN)__
20
+ * [9d80dbf](9d80dbf) Update cybele_gitignore __(Sıtkı Bağdat)__
21
+ * [6d6c585](6d6c585) Remove unnecessary lines for ignoring mac files __(Sıtkı Bağdat)__
22
+ * [72fdaca](72fdaca) typo fixed __(Onur Özgür ÖZKAN)__
23
+ * [016dd44](016dd44) typo fixed __(Onur Ozgur OZKAN)__
24
+
25
+ #### 0.6.0
26
+ * [98b604b](98b604b) update readme.md __(Onur Ozgur OZKAN)__
27
+ * [89ae9a1](89ae9a1) bump version 0.6.0 __(Onur Ozgur OZKAN)__
28
+ * [24a4f23](24a4f23) #52 update gem versions __(Onur Ozgur OZKAN)__
29
+ * [b49bfbe](b49bfbe) #13 remove unused method __(Onur Ozgur OZKAN)__
30
+ * [efe0121](efe0121) #51 compass-rails added and application.css configuration __(Muhammet DİLEK)__
31
+ * [0baf6fb](0baf6fb) #2 devise views converted erb to haml __(Muhammet DİLEK)__
32
+ * [40fd639](40fd639) #2 devise and user model made mandatory __(Muhammet DİLEK)__
33
+ * [9f8a199](9f8a199) #13 add version number to gems __(Onur Özgür ÖZKAN)__
34
+ * [31b3693](31b3693) #13 remove github repository option from exception_notification __(Murat Kemal BAYGÜN)__
35
+ * [8c9007d](8c9007d) #2 devise added __(Muhammet DİLEK)__
36
+ * [93ccbfe](93ccbfe) #8 add rails config __(Muhammet DİLEK)__
37
+
38
+ #### 0.5.0
39
+ * [a8048e0](a8048e0) bump version 0.5.0 __(Onur Özgür ÖZKAN)__
40
+ * [699fd57](699fd57) #46 change gem path and description __(Onur Özgür ÖZKAN)__
41
+ * [d03cb23](d03cb23) #13 add exception notification __(Onur Özgür ÖZKAN)__
42
+ * [b7e4054](b7e4054) #13 add exception notification __(Onur Özgür ÖZKAN)__
43
+ * [bfafbf1](bfafbf1) #46 fixed repo path __(Onur Özgür ÖZKAN)__
44
+ * [7cf2df8](7cf2df8) #35 close exception notification __(Onur Özgür ÖZKAN)__
45
+ * [20a81d4](20a81d4) #24 setup simple form __(Onur Özgür ÖZKAN)__
46
+ * [a97c9ec](a97c9ec) #24 setup simple form __(Onur Özgür ÖZKAN)__
47
+ * [9967bcc](9967bcc) #35 add exception notification __(Onur Özgür ÖZKAN)__
48
+ * [26e1ac6](26e1ac6) #40 Add better_errors, sextant, etc for development env __(Onur Özgür ÖZKAN)__
49
+ * [ac06ff6](ac06ff6) #35 Add smtp setting __(Onur Özgür ÖZKAN)__
50
+ * [c8d4dc0](c8d4dc0) #35 Add smtp setting __(Onur Özgür ÖZKAN)__
51
+ * [f9e05bb](f9e05bb) #35 Add smtp setting __(Onur Özgür ÖZKAN)__
52
+ * [7fe8ce8](7fe8ce8) #41 Add suspender link to README.md __(Onur Özgür ÖZKAN)__
53
+
54
+ #### 0.4.1
55
+ * [31252fa](31252fa) bump version 0.4.1 __(Onur Özgür ÖZKAN)__
56
+ * [c51d836](c51d836) Merge pull request #43 from sbagdat/patch-2 __(Onur Özgür ÖZKAN)__
57
+ * [d2cd41c](d2cd41c) Remove unnecessary builds __(Sıtkı Bağdat)__
58
+ * [d01978f](d01978f) Update app_builder.rb __(Sıtkı Bağdat)__
59
+
60
+ #### 0.4.0
61
+ * [a92094c](a92094c) bump version 0.4.0 __(Onur Özgür ÖZKAN)__
62
+ * [f34206c](f34206c) #35 setup smtp, setup open_letter __(Onur Özgür ÖZKAN)__
63
+ * [958bf5f](958bf5f) #34 convert application.js to coffee and application.css to sass __(Onur Özgür ÖZKAN)__
64
+ * [0fcd684](0fcd684) #34 generator generate sass instead of scss __(Onur Özgür ÖZKAN)__
65
+ * [cff434e](cff434e) #34 add bootstrap-sass gem __(Onur Özgür ÖZKAN)__
66
+ * [97c83ba](97c83ba) #37 setup gitignore files and folders __(Onur Özgür ÖZKAN)__
67
+ * [8f19ab2](8f19ab2) #38 fixed strong_parameters generators __(Onur Özgür ÖZKAN)__
68
+ * [fe6b961](fe6b961) typo fixed __(Onur Özgür ÖZKAN)__
69
+ * [2e370a3](2e370a3) #36 setup database.yml and run rake db:create __(Onur Özgür ÖZKAN)__
70
+ * [14d7005](14d7005) #27 add gemnasium service link __(Onur Özgür ÖZKAN)__
71
+ * [5af5c04](5af5c04) #25 add responder gem to cybele __(Onur Özgür ÖZKAN)__
72
+
73
+ #### 0.3.0
74
+ * [7bdee87](7bdee87) bump version __(Onur Özgür ÖZKAN)__
75
+ * [3a7d93f](3a7d93f) #33 update README.md __(Onur Özgür ÖZKAN)__
76
+ * [4b13eee](4b13eee) #27 add codeclimate __(Onur Özgür ÖZKAN)__
77
+ * [ea548ad](ea548ad) #32 remove rails logo __(Onur Özgür ÖZKAN)__
78
+ * [69dc256](69dc256) fixed Gemfile.lock __(Onur Özgür ÖZKAN)__
79
+
80
+ #### 0.2.0
81
+ * [bb991e1](bb991e1) Bump version. __(Onur Özgür ÖZKAN)__
82
+ * [ebff69d](ebff69d) issue #26 replace files erb to haml __(Onur Özgür ÖZKAN)__
83
+ * [853260b](853260b) issue #31 fixed Gemfile __(Onur Özgür ÖZKAN)__
84
+ * [593304f](593304f) issue #31 replace Gemfile __(Onur Özgür ÖZKAN)__
85
+ * [29ddfb9](29ddfb9) issue #30 add all rdoc __(Onur Özgür ÖZKAN)__
86
+ * [1af93d1](1af93d1) issue #29 fixed Does it try to require a relative path? That's been removed in Ruby 1.9. __(Onur Özgür ÖZKAN)__
87
+ * [204d7df](204d7df) support new release over rails 4.0.0.rc1 __(Onur Özgür ÖZKAN)__
88
+ * [311dd0a](311dd0a) issue #23 improved readme.md __(Onur Özgür ÖZKAN)__
89
+ * [370e0be](370e0be) issue #22 add rdoc rake task __(Onur Özgür ÖZKAN)__
90
+
91
+ #### 0.1.0
92
+ * [282b70c](282b70c) Issues #19 #20 #21 Create a gem __(Onur Özgür ÖZKAN)__
93
+ * [eca13d5](eca13d5) Update README.md __(Onur Özgür ÖZKAN)__
94
+ * [002ff21](002ff21) Update README.md __(Onur Özgür ÖZKAN)__
95
+ * [be3c6a7](be3c6a7) Update README.md __(Onur Özgür ÖZKAN)__
96
+ * [ae5bbe2](ae5bbe2) add responders __(Onur Özgür ÖZKAN)__
97
+ * [4da6960](4da6960) add devise and simple_form gem __(Onur Özgür ÖZKAN)__
98
+ * [eaaa1cd](eaaa1cd) Remove MIT license just now. __(Onur Özgür ÖZKAN)__
99
+ * [9ec3295](9ec3295) Update README.md __(Onur Özgür ÖZKAN)__
100
+ * [143d255](143d255) Update README.md __(Onur Özgür ÖZKAN)__
101
+ * [9a14185](9a14185) Update README.md __(Onur Özgür ÖZKAN)__
102
+ * [f45360e](f45360e) Initial commit __(Onur Özgür ÖZKAN)__
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cybele (0.5.0)
4
+ cybele (0.6.0)
5
5
  bundler (~> 1.3)
6
6
  rails (~> 4.0.0)
7
7
 
@@ -25,7 +25,7 @@ GEM
25
25
  activerecord-deprecated_finders (~> 1.0.2)
26
26
  activesupport (= 4.0.0)
27
27
  arel (~> 4.0.0)
28
- activerecord-deprecated_finders (1.0.2)
28
+ activerecord-deprecated_finders (1.0.3)
29
29
  activesupport (4.0.0)
30
30
  i18n (~> 0.6, >= 0.6.4)
31
31
  minitest (~> 4.2)
@@ -33,18 +33,17 @@ GEM
33
33
  thread_safe (~> 0.1)
34
34
  tzinfo (~> 0.3.37)
35
35
  arel (4.0.0)
36
- atomic (1.1.9)
36
+ atomic (1.1.10)
37
37
  builder (3.1.4)
38
38
  erubis (2.7.0)
39
- hike (1.2.2)
39
+ hike (1.2.3)
40
40
  i18n (0.6.4)
41
- mail (2.5.3)
42
- i18n (>= 0.4.0)
41
+ mail (2.5.4)
43
42
  mime-types (~> 1.16)
44
43
  treetop (~> 1.4.8)
45
44
  mime-types (1.23)
46
- minitest (4.3.2)
47
- multi_json (1.7.2)
45
+ minitest (4.7.5)
46
+ multi_json (1.7.7)
48
47
  polyglot (0.3.3)
49
48
  rack (1.5.2)
50
49
  rack-test (0.6.2)
@@ -63,7 +62,7 @@ GEM
63
62
  rake (>= 0.8.7)
64
63
  thor (>= 0.18.1, < 2.0)
65
64
  rake (10.0.4)
66
- sprockets (2.9.3)
65
+ sprockets (2.10.0)
67
66
  hike (~> 1.2)
68
67
  multi_json (~> 1.0)
69
68
  rack (~> 1.0)
@@ -76,7 +75,7 @@ GEM
76
75
  thread_safe (0.1.0)
77
76
  atomic
78
77
  tilt (1.4.1)
79
- treetop (1.4.12)
78
+ treetop (1.4.14)
80
79
  polyglot
81
80
  polyglot (>= 0.3.1)
82
81
  tzinfo (0.3.37)
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Cybele
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/cybele.png)](http://badge.fury.io/rb/cybele)
3
4
  [![Code Climate](https://codeclimate.com/github/kebab-project/cybele.png)](https://codeclimate.com/github/kebab-project/cybele)
4
5
  [![Dependency Status](https://gemnasium.com/kebab-project/cybele.png)](https://gemnasium.com/kebab-project/cybele)
5
6
 
@@ -59,7 +60,7 @@ group :development, :test do
59
60
  gem 'binding_of_caller'
60
61
  gem 'letter_opener'
61
62
  end
62
- ``
63
+ ```
63
64
 
64
65
  ## Bugs and Feedback
65
66
 
@@ -21,6 +21,12 @@ module Cybele #:nodoc:#
21
21
  copy_file 'cybele_Gemfile', 'Gemfile'
22
22
  end
23
23
 
24
+ # Internal: Replace config/application.rb file
25
+ def replace_application_rb_file
26
+ remove_file 'config/application.rb'
27
+ copy_file 'config/application.rb', 'config/application.rb'
28
+ end
29
+
24
30
  # Internal: Replace erb files with html files
25
31
  def replace_erb_with_haml
26
32
  remove_file 'app/views/layouts/application.html.erb'
@@ -130,6 +136,8 @@ config.action_mailer.delivery_method = :smtp
130
136
  # Interval: Setup simple form
131
137
  def generate_simple_form
132
138
  generate 'simple_form:install --bootstrap'
139
+ copy_file 'config/locales/simple_form.tr.yml', 'config/locales/simple_form.tr.yml'
140
+ copy_file 'config/locales/tr.yml', 'config/locales/tr.yml'
133
141
  end
134
142
 
135
143
  # Internal: Generate exception notification
@@ -161,8 +169,8 @@ config.action_mailer.delivery_method = :smtp
161
169
  # Internal: Generate devise model
162
170
  def generate_devise_model(model_name)
163
171
  generate "devise #{model_name} name:string"
164
-
165
172
  generate_devise_strong_parameters(model_name)
173
+ remove_file 'config/locales/devise.en.yml'
166
174
  end
167
175
 
168
176
  # Internal: Generate devise views
@@ -171,6 +179,29 @@ config.action_mailer.delivery_method = :smtp
171
179
  directory 'app/views/devise', 'app/views/devise'
172
180
  end
173
181
 
182
+ # Internal: Generate Welcome Page
183
+ def generate_welcome_page
184
+ copy_file 'app/controllers/welcome_controller.rb', 'app/controllers/welcome_controller.rb'
185
+ template 'app/views/welcome/index.html.haml.erb', 'app/views/welcome/index.html.haml', force: true
186
+ route "root to: 'welcome#index'"
187
+ end
188
+
189
+ def generate_hq_namespace
190
+ generate "devise Admin"
191
+ create_namespace_routing('hq')
192
+ directory 'app/controllers/hq', 'app/controllers/hq'
193
+ template 'app/views/layouts/hq/base.html.haml.erb', 'app/views/layouts/hq/base.html.haml', force: true
194
+ template 'app/views/hq/dashboard/index.html.haml.erb', 'app/views/hq/dashboard/index.html.haml', force: true
195
+ directory 'app/views/hq/sessions', 'app/views/hq/sessions'
196
+ gsub_file 'config/routes.rb', /devise_for :admins/, "devise_for :admins, controllers: {sessions: 'hq/sessions'}"
197
+ gsub_file 'app/models/admin.rb', /:registerable,/, ''
198
+ end
199
+
200
+ def set_time_zone
201
+ add_set_user_time_zone_method_to_application_controller
202
+ add_time_zone_to_user
203
+ end
204
+
174
205
  private
175
206
 
176
207
  # Internal: Set action mailer hostname
@@ -245,5 +276,41 @@ require "#{path}"
245
276
  CODE
246
277
  end
247
278
  end
279
+
280
+ #Internal: Create namespace with dashboard resource in routes.rb
281
+ def create_namespace_routing(namespace)
282
+ inject_into_file 'config/routes.rb', after: "root to: 'welcome#index'" do <<-CODE
283
+
284
+ namespace :#{namespace} do
285
+ resources :dashboard, only: [:index]
286
+ end
287
+ CODE
288
+ end
289
+ end
290
+
291
+ # Internal: Generate migration for add time_zone to User model
292
+ def add_time_zone_to_user
293
+ say 'Add time_zone to User model'
294
+ generate 'migration AddTimeZoneToUser time_zone:string -s'
295
+ end
296
+
297
+ # Internal: Add set_user_time_zone method to app/controller/applications_controller.rb
298
+ def add_set_user_time_zone_method_to_application_controller
299
+ say 'Add set_user_time_zone method to application controller'
300
+ inject_into_file 'app/controllers/application_controller.rb', :after => 'protected' do <<-CODE
301
+
302
+ def set_user_time_zone
303
+ Time.zone = current_user.time_zone if user_signed_in? && current_user.time_zone.present?
304
+ end
305
+
306
+ CODE
307
+ end
308
+ inject_into_file 'app/controllers/application_controller.rb', :after => 'class ApplicationController < ActionController::Base' do <<-CODE
309
+
310
+ before_filter :set_user_time_zone
311
+
312
+ CODE
313
+ end
314
+ end
248
315
  end
249
316
  end
@@ -34,6 +34,9 @@ module Cybele #:nodoc:#
34
34
  invoke :configure_mail_setting
35
35
  invoke :setup_simple_form
36
36
  invoke :setup_exception_notification
37
+ invoke :setup_welcome_page
38
+ invoke :setup_devise
39
+ invoke :setup_time_zone
37
40
  end
38
41
 
39
42
  # Internal: Customize gemfile
@@ -124,6 +127,24 @@ module Cybele #:nodoc:#
124
127
  build :generate_devise_views
125
128
  end
126
129
 
130
+ # Internal: Setup Welcome Page
131
+ def setup_welcome_page
132
+ say 'Generate Welcome Page'
133
+ build :generate_welcome_page
134
+ end
135
+
136
+
137
+ def setup_hq_namespace
138
+ say 'Generate hq namespace'
139
+ build :generate_hq_namespace
140
+ end
141
+
142
+ # Internal: Setup timezone per user
143
+ def setup_time_zone
144
+ say 'Setup time zone'
145
+ build :set_time_zone
146
+ end
147
+
127
148
 
128
149
  # Internal: Let's not: We'll bundle manually at the right spot.
129
150
  def run_bundle
@@ -1,4 +1,4 @@
1
1
  module Cybele #:nodoc:
2
2
  # Public: Cybele version
3
- VERSION = '0.6.0'
3
+ VERSION = '0.7.0'
4
4
  end
@@ -13,4 +13,35 @@
13
13
 
14
14
  @import "compass"
15
15
  @import "bootstrap"
16
- @import "bootstrap-responsive"
16
+ @import "bootstrap-responsive"
17
+
18
+ body
19
+ padding-top: 20px
20
+ padding-bottom: 40px
21
+
22
+ /* Custom container
23
+
24
+ .container-narrow
25
+ margin: 0 auto
26
+ max-width: 700px
27
+ > hr
28
+ margin: 30px 0
29
+
30
+ /* Main marketing message and sign up button
31
+
32
+ .jumbotron
33
+ margin: 60px 0
34
+ text-align: center
35
+ h1
36
+ font-size: 72px
37
+ line-height: 1
38
+ .btn
39
+ font-size: 21px
40
+ padding: 14px 24px
41
+
42
+ /* Supporting marketing content
43
+
44
+ .marketing
45
+ margin: 60px 0
46
+ p + h4
47
+ margin-top: 28px
@@ -7,4 +7,12 @@ class ApplicationController < ActionController::Base
7
7
  # Prevent CSRF attacks by raising an exception.
8
8
  # For APIs, you may want to use :null_session instead.
9
9
  protect_from_forgery with: :exception
10
+
11
+ def after_sign_in_path_for(resource_or_scope)
12
+ if current_user
13
+ super
14
+ else
15
+ hq_dashboard_index_path
16
+ end
17
+ end
10
18
  end
@@ -0,0 +1,7 @@
1
+ require 'application_responder'
2
+
3
+ class Hq::BaseController < ActionController::Base
4
+ before_action :authenticate_admin!
5
+ self.responder = ApplicationResponder
6
+ respond_to :html, :json
7
+ end
@@ -0,0 +1,5 @@
1
+ class Hq::DashboardController < Hq::BaseController
2
+ def index
3
+
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ class Hq::SessionsController < Devise::SessionsController
2
+
3
+ end
@@ -0,0 +1,4 @@
1
+ class WelcomeController < ApplicationController
2
+ def index
3
+ end
4
+ end
@@ -0,0 +1,2 @@
1
+ %h1= "Hi #{current_admin.email}"
2
+ = link_to 'Sign out', destroy_admin_session_path, class: 'btn btn-large', method: :delete
@@ -0,0 +1,8 @@
1
+ %h2 Admin Sign in
2
+ = simple_form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
3
+ .form-inputs
4
+ = f.input :email, :required => false, :autofocus => true
5
+ = f.input :password, :required => false
6
+ = f.input :remember_me, :as => :boolean if devise_mapping.rememberable?
7
+ .form-actions
8
+ = f.button :submit, "Sign in"
@@ -6,4 +6,16 @@
6
6
  = javascript_include_tag "application", "data-turbolinks-track" => true
7
7
  = csrf_meta_tags
8
8
  %body
9
- = yield
9
+ .container-narrow
10
+ .masthead
11
+ %ul.nav.nav-pills.pull-right
12
+ %li.active
13
+ %a{:href => "/"} Home
14
+ %li
15
+ %a{:href => "/rails/routes"} Routes
16
+ %h3.muted= link_to "<%= app_name %>", root_path
17
+ %hr/
18
+ = yield
19
+ %hr/
20
+ .footer
21
+ %p © Company 2013
@@ -0,0 +1,21 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %title <%= app_name %>
5
+ = stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
6
+ = javascript_include_tag "application", "data-turbolinks-track" => true
7
+ = csrf_meta_tags
8
+ %body
9
+ .container-narrow
10
+ .masthead
11
+ %ul.nav.nav-pills.pull-right
12
+ %li.active
13
+ %a{:href => "/"} Home
14
+ %li
15
+ %a{:href => "/rails/routes"} Routes
16
+ %h3.muted= link_to "<%= app_name %>", root_path
17
+ %hr/
18
+ = yield
19
+ %hr/
20
+ .footer
21
+ %p © Company 2013
@@ -0,0 +1,14 @@
1
+ .jumbotron
2
+ %h1 Welcome to <%= app_name %>
3
+ - if current_user
4
+ = link_to 'Sign out', destroy_user_session_path, class: 'btn btn-large', method: :delete
5
+ .row-fluid.marketing
6
+ %p
7
+ %strong Name:
8
+ = current_user.name
9
+ %p
10
+ %strong Email:
11
+ = current_user.email
12
+ - else
13
+ = link_to 'Sign up today', new_user_registration_path, class: 'btn btn-large btn-success'
14
+ = link_to 'Sign in', new_user_session_path, class: 'btn btn-large'
@@ -0,0 +1,32 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ # Pick the frameworks you want:
4
+ require "active_record/railtie"
5
+ require "action_controller/railtie"
6
+ require "action_mailer/railtie"
7
+ require "sprockets/railtie"
8
+ # require "rails/test_unit/railtie"
9
+
10
+ # Require the gems listed in Gemfile, including any gems
11
+ # you've limited to :test, :development, or :production.
12
+ Bundler.require(:default, Rails.env)
13
+
14
+ module Timezone
15
+ class Application < Rails::Application
16
+ # Settings in config/environments/* take precedence over those specified here.
17
+ # Application configuration should go into files in config/initializers
18
+ # -- all .rb files in that directory are automatically loaded.
19
+
20
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
21
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
22
+ config.time_zone = 'Istanbul'
23
+
24
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
25
+ config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
26
+ config.i18n.default_locale = :tr
27
+
28
+ config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
29
+ config.sass.preferred_syntax = :sass
30
+
31
+ end
32
+ end
@@ -0,0 +1,26 @@
1
+ # encoding: utf-8
2
+ tr:
3
+ simple_form:
4
+ "yes": 'Evet'
5
+ "no": 'Hayır'
6
+ required:
7
+ text: 'zorunlu'
8
+ mark: '*'
9
+ # You can uncomment the line below if you need to overwrite the whole required html.
10
+ # When using html, text and mark won't be used.
11
+ # html: '<abbr title="required">*</abbr>'
12
+ error_notification:
13
+ default_message: "Lütfen aşağıdaki problemleri gözden geçiriniz:"
14
+ # Labels and hints examples
15
+ # labels:
16
+ # defaults:
17
+ # password: 'Password'
18
+ # user:
19
+ # new:
20
+ # email: 'E-mail to sign in.'
21
+ # edit:
22
+ # email: 'E-mail.'
23
+ # hints:
24
+ # defaults:
25
+ # username: 'User name to sign in.'
26
+ # password: 'No special characters, please.'
@@ -0,0 +1,25 @@
1
+ # encoding: utf-8
2
+ #
3
+ # Files in the config/locales directory are used for internationalization
4
+ # and are automatically loaded by Rails. If you want to use locales other
5
+ # than English, add the necessary files in this directory.
6
+ #
7
+ # To use the locales, use `I18n.t`:
8
+ #
9
+ # I18n.t 'hello'
10
+ #
11
+ # In views, this is aliased to just `t`:
12
+ #
13
+ # <%= t('hello') %>
14
+ #
15
+ # To use a different locale, set it with `I18n.locale`:
16
+ #
17
+ # I18n.locale = :es
18
+ #
19
+ # This would use the information in config/locales/es.yml.
20
+ #
21
+ # To learn more, please read the Rails Internationalization guide
22
+ # available at http://guides.rubyonrails.org/i18n.html.
23
+
24
+ tr:
25
+ hello: "Merhaba Dünya"
@@ -16,6 +16,7 @@ gem 'simple_form', '~> 3.0.0.rc'
16
16
  gem 'rails_config', '~> 0.3.3'
17
17
  gem 'compass-rails', github: 'Compass/compass-rails', branch: 'rails4-hack'
18
18
  gem 'devise', '~> 3.0.0'
19
+ gem 'devise-i18n', '~> 0.8.6'
19
20
 
20
21
  group :doc do
21
22
  gem 'sdoc', require: false
@@ -25,4 +26,5 @@ group :development, :test do
25
26
  gem 'better_errors'
26
27
  gem 'binding_of_caller'
27
28
  gem 'letter_opener'
28
- end
29
+ gem 'katip'
30
+ end
@@ -25,12 +25,9 @@ vendor/bundler_gems
25
25
 
26
26
  # Ignore ide and text editor
27
27
  .idea
28
- .idea/**/*
29
28
 
30
29
  # Ignore pow files
31
30
  .powrc
32
31
 
33
32
  # Ignore mac files
34
33
  .DS_Store
35
- *.DS_Store
36
- **/.DS_Store
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cybele
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - lab2023
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-15 00:00:00.000000000 Z
11
+ date: 2013-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,6 +77,7 @@ extra_rdoc_files:
77
77
  - README.md
78
78
  - LICENSE.txt
79
79
  files:
80
+ - CHANGELOG.md
80
81
  - Gemfile
81
82
  - Gemfile.lock
82
83
  - LICENSE.txt
@@ -91,6 +92,10 @@ files:
91
92
  - templates/app/assets/javascripts/application.js.coffee
92
93
  - templates/app/assets/stylesheets/application.css.sass
93
94
  - templates/app/controllers/application_controller.rb
95
+ - templates/app/controllers/hq/base_controller.rb
96
+ - templates/app/controllers/hq/dashboard_controller.rb
97
+ - templates/app/controllers/hq/sessions_controller.rb
98
+ - templates/app/controllers/welcome_controller.rb
94
99
  - templates/app/views/devise/confirmations/new.html.haml
95
100
  - templates/app/views/devise/mailer/confirmation_instructions.html.haml
96
101
  - templates/app/views/devise/mailer/reset_password_instructions.html.haml
@@ -102,11 +107,18 @@ files:
102
107
  - templates/app/views/devise/sessions/new.html.haml
103
108
  - templates/app/views/devise/shared/_links.haml
104
109
  - templates/app/views/devise/unlocks/new.html.haml
110
+ - templates/app/views/hq/dashboard/index.html.haml.erb
111
+ - templates/app/views/hq/sessions/new.html.haml
105
112
  - templates/app/views/layouts/application.html.haml.erb
113
+ - templates/app/views/layouts/hq/base.html.haml.erb
114
+ - templates/app/views/welcome/index.html.haml.erb
115
+ - templates/config/application.rb
106
116
  - templates/config/database.yml.erb
107
117
  - templates/config/initializers/mail.rb
108
118
  - templates/config/locales/responders.en.yml
109
119
  - templates/config/locales/responders.tr.yml
120
+ - templates/config/locales/simple_form.tr.yml
121
+ - templates/config/locales/tr.yml
110
122
  - templates/cybele_Gemfile
111
123
  - templates/cybele_gitignore
112
124
  - templates/lib/application_responder.rb