cybele 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +31 -32
- data/README.md +7 -6
- data/cybele.gemspec +4 -4
- data/lib/cybele/app_builder.rb +33 -18
- data/lib/cybele/generators/app_generator.rb +20 -2
- data/lib/cybele/version.rb +1 -1
- data/templates/app/controllers/application_controller.rb +1 -1
- data/templates/cybele_Gemfile +9 -3
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92d5ea6771cb0f8ed0c7d111e11373bd1dd10ddd
|
4
|
+
data.tar.gz: 2960dc5f628e0378929078edb70fe9c22673cce3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f66b5dc25b7108472d569dcf79b6bfe42c3daf01cfa8ca5ec0a22496c06d930c4e567f97c379717f088ffed7b453033363e202e3efcc10892b88ea88f64d424
|
7
|
+
data.tar.gz: 0195c08e6a681b2d2f98f4021bef4d6b7053ebaa0628ac511ddf67e5f0017f5c6064a7c28fe6fce977a6821f3bec58ddfc151cf68d2e2e170cd5349abaa6d93b
|
data/Gemfile.lock
CHANGED
@@ -1,74 +1,73 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cybele (0.
|
4
|
+
cybele (0.4.1)
|
5
5
|
bundler (~> 1.3)
|
6
|
-
rails (~> 4.0.0
|
6
|
+
rails (~> 4.0.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionmailer (4.0.0
|
12
|
-
actionpack (= 4.0.0
|
11
|
+
actionmailer (4.0.0)
|
12
|
+
actionpack (= 4.0.0)
|
13
13
|
mail (~> 2.5.3)
|
14
|
-
actionpack (4.0.0
|
15
|
-
activesupport (= 4.0.0
|
14
|
+
actionpack (4.0.0)
|
15
|
+
activesupport (= 4.0.0)
|
16
16
|
builder (~> 3.1.0)
|
17
17
|
erubis (~> 2.7.0)
|
18
18
|
rack (~> 1.5.2)
|
19
19
|
rack-test (~> 0.6.2)
|
20
|
-
activemodel (4.0.0
|
21
|
-
activesupport (= 4.0.0
|
20
|
+
activemodel (4.0.0)
|
21
|
+
activesupport (= 4.0.0)
|
22
22
|
builder (~> 3.1.0)
|
23
|
-
activerecord (4.0.0
|
24
|
-
activemodel (= 4.0.0
|
23
|
+
activerecord (4.0.0)
|
24
|
+
activemodel (= 4.0.0)
|
25
25
|
activerecord-deprecated_finders (~> 1.0.2)
|
26
|
-
activesupport (= 4.0.0
|
26
|
+
activesupport (= 4.0.0)
|
27
27
|
arel (~> 4.0.0)
|
28
|
-
activerecord-deprecated_finders (1.0.
|
29
|
-
activesupport (4.0.0
|
28
|
+
activerecord-deprecated_finders (1.0.3)
|
29
|
+
activesupport (4.0.0)
|
30
30
|
i18n (~> 0.6, >= 0.6.4)
|
31
31
|
minitest (~> 4.2)
|
32
32
|
multi_json (~> 1.3)
|
33
33
|
thread_safe (~> 0.1)
|
34
34
|
tzinfo (~> 0.3.37)
|
35
35
|
arel (4.0.0)
|
36
|
-
atomic (1.1.
|
36
|
+
atomic (1.1.10)
|
37
37
|
builder (3.1.4)
|
38
38
|
erubis (2.7.0)
|
39
|
-
hike (1.2.
|
39
|
+
hike (1.2.3)
|
40
40
|
i18n (0.6.4)
|
41
|
-
mail (2.5.
|
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.7.
|
47
|
-
multi_json (1.7.
|
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)
|
51
50
|
rack (>= 1.0)
|
52
|
-
rails (4.0.0
|
53
|
-
actionmailer (= 4.0.0
|
54
|
-
actionpack (= 4.0.0
|
55
|
-
activerecord (= 4.0.0
|
56
|
-
activesupport (= 4.0.0
|
51
|
+
rails (4.0.0)
|
52
|
+
actionmailer (= 4.0.0)
|
53
|
+
actionpack (= 4.0.0)
|
54
|
+
activerecord (= 4.0.0)
|
55
|
+
activesupport (= 4.0.0)
|
57
56
|
bundler (>= 1.3.0, < 2.0)
|
58
|
-
railties (= 4.0.0
|
59
|
-
sprockets-rails (~> 2.0.0
|
60
|
-
railties (4.0.0
|
61
|
-
actionpack (= 4.0.0
|
62
|
-
activesupport (= 4.0.0
|
57
|
+
railties (= 4.0.0)
|
58
|
+
sprockets-rails (~> 2.0.0)
|
59
|
+
railties (4.0.0)
|
60
|
+
actionpack (= 4.0.0)
|
61
|
+
activesupport (= 4.0.0)
|
63
62
|
rake (>= 0.8.7)
|
64
63
|
thor (>= 0.18.1, < 2.0)
|
65
64
|
rake (10.0.4)
|
66
|
-
sprockets (2.
|
65
|
+
sprockets (2.10.0)
|
67
66
|
hike (~> 1.2)
|
68
67
|
multi_json (~> 1.0)
|
69
68
|
rack (~> 1.0)
|
70
69
|
tilt (~> 1.1, != 1.3.0)
|
71
|
-
sprockets-rails (2.0.0
|
70
|
+
sprockets-rails (2.0.0)
|
72
71
|
actionpack (>= 3.0)
|
73
72
|
activesupport (>= 3.0)
|
74
73
|
sprockets (~> 2.8)
|
@@ -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.
|
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,7 +1,7 @@
|
|
1
1
|
# Cybele
|
2
2
|
|
3
|
-
[![Code Climate](https://codeclimate.com/github/
|
4
|
-
[![Dependency Status](https://gemnasium.com/
|
3
|
+
[![Code Climate](https://codeclimate.com/github/kebab-project/cybele.png)](https://codeclimate.com/github/kebab-project/cybele)
|
4
|
+
[![Dependency Status](https://gemnasium.com/kebab-project/cybele.png)](https://gemnasium.com/kebab-project/cybele)
|
5
5
|
|
6
6
|
NOTE: Don't use this gem until v1.0.0
|
7
7
|
|
@@ -33,7 +33,7 @@ cybele project_name
|
|
33
33
|
|
34
34
|
If you discover any bugs or want to drop a line, feel free to create an issue on GitHub.
|
35
35
|
|
36
|
-
http://github.com/
|
36
|
+
http://github.com/kebab-project/cybele/issues
|
37
37
|
|
38
38
|
## Contributing
|
39
39
|
|
@@ -49,9 +49,10 @@ Once you've made your great commits:
|
|
49
49
|
|
50
50
|
## Credits
|
51
51
|
|
52
|
-
Cybele is maintained and funded by [lab2023 - internet technologies](http://lab2023.com/)
|
53
|
-
Thank you to all the [contributors!](https://github.com/
|
54
|
-
|
52
|
+
- Cybele is maintained and funded by [lab2023 - internet technologies](http://lab2023.com/)
|
53
|
+
- Thank you to all the [contributors!](https://github.com/kebab-project/cybele/graphs/contributors)
|
54
|
+
- This gem is inspired from [suspender](https://github.com/thoughtbot/suspenders)
|
55
|
+
- The names and logos for lab2023 are trademarks of lab2023, inc.
|
55
56
|
|
56
57
|
## License
|
57
58
|
|
data/cybele.gemspec
CHANGED
@@ -8,14 +8,14 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Cybele::VERSION
|
9
9
|
spec.authors = %w[lab2023]
|
10
10
|
spec.email = %w[info@lab2023.com]
|
11
|
-
spec.description = %q{
|
12
|
-
spec.summary = %q{
|
13
|
-
spec.homepage = 'https://github.com/
|
11
|
+
spec.description = %q{Rails 4.x template with responder, simple form, haml, exception notification, etc etc ...}
|
12
|
+
spec.summary = %q{Rails 4.x template with responder, simple form, haml, exception notification, etc etc ...}
|
13
|
+
spec.homepage = 'https://github.com/kebab-project/cybele'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.required_ruby_version = '>= 2.0.0'
|
17
17
|
spec.add_dependency 'bundler', '~> 1.3'
|
18
|
-
spec.add_dependency 'rails', '~> 4.0.0
|
18
|
+
spec.add_dependency 'rails', '~> 4.0.0'
|
19
19
|
|
20
20
|
spec.files = `git ls-files`.split($/)
|
21
21
|
spec.executables = %w[cybele]
|
data/lib/cybele/app_builder.rb
CHANGED
@@ -97,28 +97,28 @@ module Cybele #:nodoc:#
|
|
97
97
|
|
98
98
|
# Interval: Configure smtp
|
99
99
|
def configure_smtp
|
100
|
-
copy_file 'config/initializers/mail.rb', 'config/initializers/mail.rb'
|
101
|
-
|
102
|
-
prepend_file 'config/environments/production.rb',
|
103
|
-
"require Rails.root.join('config/initializers/mail')\n"
|
104
100
|
|
105
101
|
config = <<-RUBY
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
102
|
+
config.action_mailer.delivery_method = :smtp
|
103
|
+
config.action_mailer.smtp_settings = {
|
104
|
+
:address => 'smtp.mandrillapp.com',
|
105
|
+
:port => 587,
|
106
|
+
:enable_starttls_auto => true,
|
107
|
+
:user_name => 'email@email.com', #TODO change this with original
|
108
|
+
:password => 'password', #TODO change this with original
|
109
|
+
:authentication => 'plain'
|
110
|
+
}
|
111
111
|
RUBY
|
112
112
|
|
113
|
-
|
114
|
-
:after => 'config.action_mailer.raise_delivery_errors = false'
|
113
|
+
configure_environment 'production', config
|
115
114
|
end
|
116
115
|
|
117
116
|
# Interval: Configure action mailer
|
118
117
|
def configure_action_mailer
|
119
118
|
action_mailer_host 'development', "#{app_name}.dev"
|
120
|
-
action_mailer_host 'test',
|
119
|
+
action_mailer_host 'test', "#{app_name}.com"
|
121
120
|
action_mailer_host 'production', "#{app_name}.com"
|
121
|
+
|
122
122
|
end
|
123
123
|
|
124
124
|
# Interval: Setup letter opener
|
@@ -127,6 +127,20 @@ module Cybele #:nodoc:#
|
|
127
127
|
configure_environment 'development', config
|
128
128
|
end
|
129
129
|
|
130
|
+
# Interval: Setup simple form
|
131
|
+
def generate_simple_form
|
132
|
+
generate 'simple_form:install --bootstrap'
|
133
|
+
end
|
134
|
+
|
135
|
+
# Internal: Generate exception notification
|
136
|
+
#
|
137
|
+
# This command generates an initialize file (config/initializers/exception_notification.rb)
|
138
|
+
# where you can customize your configurations.
|
139
|
+
# https://github.com/smartinez87/exception_notification#rails
|
140
|
+
def generate_exception_notification
|
141
|
+
generate 'exception_notification:install'
|
142
|
+
end
|
143
|
+
|
130
144
|
# Internal: Leftovers
|
131
145
|
def leftovers
|
132
146
|
end
|
@@ -140,7 +154,12 @@ module Cybele #:nodoc:#
|
|
140
154
|
#
|
141
155
|
# Returns nothing
|
142
156
|
def action_mailer_host(rails_env, host)
|
143
|
-
|
157
|
+
|
158
|
+
config = <<-RUBY
|
159
|
+
# Mail Setting
|
160
|
+
config.action_mailer.default_url_options = { :host => '#{host}' }
|
161
|
+
RUBY
|
162
|
+
|
144
163
|
configure_environment(rails_env, config)
|
145
164
|
end
|
146
165
|
|
@@ -151,11 +170,7 @@ module Cybele #:nodoc:#
|
|
151
170
|
#
|
152
171
|
# Return nothing
|
153
172
|
def configure_environment(rails_env, config)
|
154
|
-
inject_into_file(
|
155
|
-
"config/environments/#{rails_env}.rb",
|
156
|
-
"\n\n #{config}",
|
157
|
-
before: "\nend"
|
158
|
-
)
|
173
|
+
inject_into_file("config/environments/#{rails_env}.rb", "\n\n #{config}", before: "\nend")
|
159
174
|
end
|
160
175
|
end
|
161
176
|
end
|
@@ -32,6 +32,8 @@ module Cybele #:nodoc:#
|
|
32
32
|
invoke :gitignore_files_and_folders
|
33
33
|
invoke :setup_bootstrap_sass_coffee
|
34
34
|
invoke :configure_mail_setting
|
35
|
+
invoke :setup_simple_form
|
36
|
+
invoke :setup_exception_notification
|
35
37
|
end
|
36
38
|
|
37
39
|
# Internal: Customize gemfile
|
@@ -79,6 +81,7 @@ module Cybele #:nodoc:#
|
|
79
81
|
|
80
82
|
# Internal: Setup up bootstrap, sass, coffee
|
81
83
|
def setup_bootstrap_sass_coffee
|
84
|
+
say 'Setup bootstrap'
|
82
85
|
build :setup_asset_precompile
|
83
86
|
build :setup_application_js
|
84
87
|
build :convert_application_js_to_coffee
|
@@ -87,11 +90,26 @@ module Cybele #:nodoc:#
|
|
87
90
|
|
88
91
|
# Internal: Setup mail setting
|
89
92
|
def configure_mail_setting
|
90
|
-
|
93
|
+
say 'Setup mail settings'
|
91
94
|
build :configure_action_mailer
|
95
|
+
build :configure_smtp
|
96
|
+
#build :set_exception_notification
|
92
97
|
build :setup_letter_opener
|
93
98
|
end
|
94
99
|
|
100
|
+
# Internal: Setup simple_form
|
101
|
+
def setup_simple_form
|
102
|
+
say 'Generate simple form files'
|
103
|
+
build :generate_simple_form
|
104
|
+
end
|
105
|
+
|
106
|
+
# Internal: Setup exception notification
|
107
|
+
def setup_exception_notification
|
108
|
+
say 'Generate exception notification'
|
109
|
+
say 'Do not forget to configure config/initializers/exception_notification.rb file'
|
110
|
+
build :generate_exception_notification
|
111
|
+
end
|
112
|
+
|
95
113
|
|
96
114
|
# Internal: Let's not: We'll bundle manually at the right spot.
|
97
115
|
def run_bundle
|
@@ -104,4 +122,4 @@ module Cybele #:nodoc:#
|
|
104
122
|
Cybele::AppBuilder
|
105
123
|
end
|
106
124
|
end
|
107
|
-
end
|
125
|
+
end
|
data/lib/cybele/version.rb
CHANGED
data/templates/cybele_Gemfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'rails', '~> 4.0.0
|
3
|
+
gem 'rails', '~> 4.0.0'
|
4
4
|
gem 'pg'
|
5
|
-
gem 'sass-rails', '~> 4.0.0
|
5
|
+
gem 'sass-rails', '~> 4.0.0'
|
6
6
|
gem 'uglifier', '>= 1.3.0'
|
7
7
|
gem 'coffee-rails', '~> 4.0.0'
|
8
8
|
gem 'jquery-rails'
|
@@ -11,9 +11,15 @@ gem 'haml', '~> 4.0.2'
|
|
11
11
|
gem 'haml-rails', '~> 0.4'
|
12
12
|
gem 'bootstrap-sass', '~> 2.3.1.0'
|
13
13
|
gem 'responders'
|
14
|
+
gem 'exception_notification', github: 'smartinez87/exception_notification'
|
15
|
+
gem 'simple_form', '~> 3.0.0.rc'
|
14
16
|
|
15
17
|
group :doc do
|
16
18
|
gem 'sdoc', require: false
|
17
19
|
end
|
18
20
|
|
19
|
-
|
21
|
+
group :development, :test do
|
22
|
+
gem 'better_errors'
|
23
|
+
gem 'binding_of_caller'
|
24
|
+
gem 'letter_opener'
|
25
|
+
end
|
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.
|
4
|
+
version: 0.5.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-
|
11
|
+
date: 2013-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 4.0.0
|
33
|
+
version: 4.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 4.0.0
|
40
|
+
version: 4.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,7 +66,8 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description:
|
69
|
+
description: Rails 4.x template with responder, simple form, haml, exception notification,
|
70
|
+
etc etc ...
|
70
71
|
email:
|
71
72
|
- info@lab2023.com
|
72
73
|
executables:
|
@@ -99,7 +100,7 @@ files:
|
|
99
100
|
- templates/cybele_gitignore
|
100
101
|
- templates/lib/application_responder.rb
|
101
102
|
- templates/lib/templates/rails/responders_controller/controller.rb
|
102
|
-
homepage: https://github.com/
|
103
|
+
homepage: https://github.com/kebab-project/cybele
|
103
104
|
licenses:
|
104
105
|
- MIT
|
105
106
|
metadata: {}
|
@@ -122,5 +123,6 @@ rubyforge_project:
|
|
122
123
|
rubygems_version: 2.0.3
|
123
124
|
signing_key:
|
124
125
|
specification_version: 4
|
125
|
-
summary:
|
126
|
+
summary: Rails 4.x template with responder, simple form, haml, exception notification,
|
127
|
+
etc etc ...
|
126
128
|
test_files: []
|