cybele 0.10.1 → 1.0.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: 6c31a1ecd2e7bdb37c5e48c6b823582c1a9bc9d1
4
- data.tar.gz: e46499f2ac727e15ee0d4a668a17df266b633807
3
+ metadata.gz: ab604d00ec5cae0606c825093182bc71f6b894f2
4
+ data.tar.gz: edca253c50ff51309ba999001e427102709ceb1f
5
5
  SHA512:
6
- metadata.gz: 33de9b1ef4a03ac4472c429d95d563c065eff3dbffad7926342db4f9357eb997f5b8cb34577b81211d8b21570d518201f3048c2f2ea48a1d08f8ab9dea476e2f
7
- data.tar.gz: 75538576b23e8d6cf118f3d79c4557ef7da51e654973cdb8208d9bd4a2200e16844633d613358dbb7f476a166d77c97789c10549142c023c09d2f47c8391b316
6
+ metadata.gz: 9291de0194f81af388da80536c4f3bbcf852d52c98ad1d31c59beb11ad51dad82498adbc8dd20d3dae66efbe55bcd935650ced04845482753195225f0131d405
7
+ data.tar.gz: c9f164f20e457a2a45bf447cd0a85d0ee790ccc0e29cd2f8d600d21a2ca324a153543fc673110a4714006d86125d4cee7f15dc79f87385bb3520f89d6709d9bd
@@ -1,5 +1,14 @@
1
1
 
2
2
  #### [Current]
3
+ * [9d610b0](../../commit/9d610b0) - __(Muhammet DİLEK)__ [#89](../../issues/89) exception notification configuration added to environment files
4
+ * [4c00857](../../commit/4c00857) - __(Muhammet DİLEK)__ [#91](../../issues/91) staging configuration added
5
+ * [38ef9c5](../../commit/38ef9c5) - __(Muhammet DİLEK)__ [#90](../../issues/90) asset files updated
6
+ * [0710dd1](../../commit/0710dd1) - __(Tayfun Öziş ERİKAN)__ [#88](../../issues/88) RecipientInterceptor initial parameters was fixed.
7
+ * [fe6b690](../../commit/fe6b690) - __(Onur Ozgur OZKAN)__ [#87](../../issues/87) add time_zone to devise model
8
+ * [d87b845](../../commit/d87b845) - __(Onur Ozgur OZKAN)__ typo fixed.
9
+
10
+ #### 0.10.1
11
+ * [cb7eead](../../commit/cb7eead) - __(Muhammet DİLEK)__ bump version 0.10.1
3
12
  * [063a81e](../../commit/063a81e) - __(Muhammet DİLEK)__ dashboard base class fixed
4
13
 
5
14
  #### 0.10.0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cybele (0.10.0)
4
+ cybele (0.10.1)
5
5
  bundler (~> 1.3)
6
6
  rails (~> 4.0.0)
7
7
 
File without changes
data/README.md CHANGED
@@ -29,38 +29,7 @@ cybele project_name
29
29
 
30
30
  ## What cybele do and included?
31
31
 
32
- Let's look the Gemfile
33
-
34
- source 'https://rubygems.org'
35
-
36
- ```
37
- gem 'rails', '~> 4.0.0'
38
- gem 'pg', '~> 0.15.1'
39
- gem 'sass-rails', '~> 4.0.0'
40
- gem 'uglifier', '>= 1.3.0'
41
- gem 'coffee-rails', '~> 4.0.0'
42
- gem 'jquery-rails', '~> 3.0.4'
43
- gem 'turbolinks', '~> 1.3.0'
44
- gem 'haml', '~> 4.0.2'
45
- gem 'haml-rails'
46
- gem 'bootstrap-sass', '~> 2.3.1.0'
47
- gem 'responders', '~> 1.0.0.rc'
48
- gem 'exception_notification', '~> 4.0.0'
49
- gem 'simple_form', '~> 3.0.0.rc'
50
- gem 'rails_config', '~> 0.3.3'
51
- gem 'compass-rails', github: 'Compass/compass-rails', branch: 'rails4-hack'
52
- gem 'devise', '~> 3.0.0'
53
-
54
- group :doc do
55
- gem 'sdoc', require: false
56
- end
57
-
58
- group :development, :test do
59
- gem 'better_errors'
60
- gem 'binding_of_caller'
61
- gem 'letter_opener'
62
- end
63
- ```
32
+ Let's look the [Gemfile](https://raw.github.com/kebab-project/cybele/develop/templates/cybele_Gemfile) which created by cybele.
64
33
 
65
34
  ## Bugs and Feedback
66
35
 
data/bin/cybele CHANGED
@@ -3,7 +3,7 @@
3
3
  require File.expand_path(File.join('..', 'lib', 'cybele', 'generators', 'app_generator'), File.dirname(__FILE__))
4
4
  require File.expand_path(File.join('..', 'lib', 'cybele', 'app_builder'), File.dirname(__FILE__))
5
5
 
6
- templates_root = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__))
6
+ templates_root = File.expand_path(File.join('..', 'templates'), File.dirname(__FILE__))
7
7
  Cybele::AppGenerator.source_root templates_root
8
8
  Cybele::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << templates_root
9
9
  Cybele::AppGenerator.start
@@ -25,5 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency 'bundler', '~> 1.3'
26
26
  spec.add_development_dependency 'rake'
27
27
 
28
- spec.extra_rdoc_files = %w[README.md LICENSE.txt]
28
+ spec.extra_rdoc_files = %w[README.md MIT-LICENSE]
29
29
  end
@@ -103,6 +103,7 @@ module Cybele
103
103
  def configure_smtp
104
104
  remove_file 'config/settings/production.yml'
105
105
  copy_file 'config/settings/production.yml', 'config/settings/production.yml'
106
+ copy_file 'config/settings/staging.yml', 'config/settings/staging.yml'
106
107
 
107
108
  config = <<-RUBY
108
109
  config.action_mailer.delivery_method = :smtp
@@ -111,13 +112,14 @@ config.action_mailer.raise_delivery_errors = false
111
112
  RUBY
112
113
 
113
114
  configure_environment 'production', config
115
+ configure_environment 'staging', config
114
116
  end
115
117
 
116
118
  def setup_staging_environment
117
119
  run 'cp config/environments/production.rb config/environments/staging.rb'
118
120
 
119
121
  prepend_file 'config/environments/staging.rb',
120
- "Mail.register_interceptor RecipientInterceptor.new((Settings.email.noreply, subject_prefix: '[STAGING]'))\n"
122
+ "Mail.register_interceptor RecipientInterceptor.new(Settings.email.noreply, subject_prefix: '[STAGING]')\n"
121
123
 
122
124
  config = <<-YML
123
125
  email:
@@ -176,6 +178,21 @@ require 'capybara/rspec'
176
178
  generate 'exception_notification:install'
177
179
  end
178
180
 
181
+ def add_exception_notification_to_environments
182
+ config = <<-CODE
183
+
184
+ config.middleware.use ExceptionNotification::Rack,
185
+ :email => {
186
+ :email_prefix => "[Whatever] ",
187
+ :sender_address => %{"notifier" <notifier@example.com>},
188
+ :exception_recipients => %w{exceptions@example.com}
189
+ }
190
+ CODE
191
+
192
+ configure_environment('production', config)
193
+ configure_environment('staging', config)
194
+ end
195
+
179
196
  def leftovers
180
197
  end
181
198
 
@@ -264,7 +281,7 @@ require 'capybara/rspec'
264
281
  class #{model_name.classify}::ParameterSanitizer < Devise::ParameterSanitizer
265
282
  private
266
283
  def sign_up
267
- default_params.permit(:name, :email, :password, :password_confirmation) # TODO add other params here
284
+ default_params.permit(:name, :email, :password, :password_confirmation, :time_zone) # TODO add other params here
268
285
  end
269
286
  end
270
287
  CODE
@@ -328,4 +345,4 @@ require "#{path}"
328
345
  end
329
346
  end
330
347
  end
331
- end
348
+ end
@@ -28,16 +28,17 @@ module Cybele
28
28
  invoke :gitignore_files_and_folders
29
29
  invoke :setup_bootstrap_sass_coffee
30
30
  invoke :setup_rails_config
31
+ invoke :setup_staging_environment
31
32
  invoke :configure_mail_setting
32
33
  invoke :setup_rspec
33
34
  invoke :setup_capybara
34
35
  invoke :setup_factory_girl
35
36
  invoke :setup_simple_form
36
37
  invoke :setup_exception_notification
38
+ invoke :setup_exception_notification_to_environments
37
39
  invoke :setup_welcome_page
38
40
  invoke :setup_devise
39
41
  invoke :setup_time_zone
40
- invoke :setup_staging_environment
41
42
  invoke :goodbye
42
43
  end
43
44
 
@@ -182,6 +183,10 @@ module Cybele
182
183
  build :replace_simple_form_wrapper
183
184
  end
184
185
 
186
+ def setup_exception_notification_to_environments
187
+ build :add_exception_notification_to_environments
188
+ end
189
+
185
190
  protected
186
191
 
187
192
  def get_builder_class
@@ -1,4 +1,4 @@
1
1
  module Cybele
2
- VERSION = '0.10.1'
2
+ VERSION = '1.0.0'
3
3
  end
4
4
 
@@ -14,5 +14,4 @@
14
14
  #= require jquery_ujs
15
15
  #= require turbolinks
16
16
  #= require bootstrap
17
- #= require hierapolis
18
17
  #= require_tree .
@@ -11,7 +11,8 @@
11
11
  *= require_self
12
12
  *= require_tree .
13
13
 
14
- @import "hierapolis"
14
+ @import "compass"
15
+ @import "bootstrap"
15
16
 
16
17
  body
17
18
  padding-top: 20px
@@ -0,0 +1,8 @@
1
+ smtp:
2
+ mandrill:
3
+ address: 'smtp.mandrillapp.com'
4
+ port: 587
5
+ enable_starttls_auto: true
6
+ user_name: 'email@email.com'
7
+ password: 'password'
8
+ authentication: 'plain'
@@ -11,7 +11,7 @@ gem 'haml', '~> 4.0.2'
11
11
  gem 'haml-rails'
12
12
  gem 'bootstrap-sass', :git => 'git://github.com/thomas-mcdonald/bootstrap-sass.git', :branch => '3'
13
13
  gem 'responders', '~> 1.0.0.rc'
14
- gem 'exception_notification', '~> 4.0.0'
14
+ gem 'exception_notification', '~> 4.0.1'
15
15
  gem 'simple_form', '~> 3.0.0.rc'
16
16
  gem 'show_for', '~> 0.3.0.rc'
17
17
  gem 'rails_config', '~> 0.3.3'
@@ -31,7 +31,7 @@ gem 'ransack'
31
31
 
32
32
  # gem 'rails-observers'
33
33
 
34
- gem 'hierapolis-rails', '~> 0.3.1'
34
+ gem 'hierapolis-rails', '~> 0.4.0'
35
35
  gem 'breadcrumbs_on_rails', '~> 2.3.0'
36
36
  gem 'blankable', '~> 0.2.0'
37
37
 
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.10.1
4
+ version: 1.0.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-09-26 00:00:00.000000000 Z
11
+ date: 2013-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,12 +75,12 @@ executables:
75
75
  extensions: []
76
76
  extra_rdoc_files:
77
77
  - README.md
78
- - LICENSE.txt
78
+ - MIT-LICENSE
79
79
  files:
80
80
  - CHANGELOG.md
81
81
  - Gemfile
82
82
  - Gemfile.lock
83
- - LICENSE.txt
83
+ - MIT-LICENSE
84
84
  - README.md
85
85
  - Rakefile
86
86
  - bin/cybele
@@ -122,6 +122,7 @@ files:
122
122
  - templates/config/locales/simple_form.tr.yml
123
123
  - templates/config/locales/tr.yml
124
124
  - templates/config/settings/production.yml
125
+ - templates/config/settings/staging.yml
125
126
  - templates/cybele_Gemfile
126
127
  - templates/cybele_gitignore
127
128
  - templates/editorconfig