cybele 1.0.0 → 1.1.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 +4 -4
- data/.gitignore +2 -0
- data/CHANGELOG.md +14 -0
- data/Gemfile.lock +1 -1
- data/README.md +0 -2
- data/SECURITY.md +7 -0
- data/lib/cybele/app_builder.rb +14 -0
- data/lib/cybele/generators/app_generator.rb +12 -0
- data/lib/cybele/version.rb +1 -1
- data/templates/config/initializers/secret_token.erb +25 -0
- data/templates/cybele_Gemfile +6 -2
- data/templates/cybele_gitignore +1 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfced481e02af37888bd7ed90bad82bd1d0d033f
|
4
|
+
data.tar.gz: a0e7ba3abc58445b7c50898e2f7af4ca2d984f72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce364122c98ddc50ed348cb6e20cc052a67ea0dabcf688d0e1c3ab9acce69609b5425a0855f2c316edea64cb2f9933f68f9c81910f6b1356cb9e5447d277292a
|
7
|
+
data.tar.gz: a603ecb4d7b7d6826255971b291c0cf1219d00be453940493f1d0e60082ae44ddb63cb7c2be4e55ac5a1748e2f0837a554090f516c4ac4b18348524df222bcee
|
data/.gitignore
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
|
2
2
|
#### [Current]
|
3
|
+
* [c00cb14](../../commit/c00cb14) - __(Muhammet DİLEK)__ [#103](../../issues/103) secret_token.rb methodology changed
|
4
|
+
* [b44ce53](../../commit/b44ce53) - __(Onur Özgür ÖZKAN)__ [#102](../../issues/102) Update rails to version 4.0.1
|
5
|
+
* [59de9e1](../../commit/59de9e1) - __(Muhammet DİLEK)__ [#93](../../issues/93) recipes_matic latest gem version added
|
6
|
+
* [5080392](../../commit/5080392) - __(Muhammet DİLEK)__ [#93](../../issues/93) capistrano recipes added
|
7
|
+
* [443bf93](../../commit/443bf93) - __(H. Türkü Kaya)__ [#100](../../issues/100) SECURITY.md added
|
8
|
+
* [383d48f](../../commit/383d48f) - __(Muhammet DİLEK)__ Merge pull request [#99](../../issues/99) from marjinal1st/develop
|
9
|
+
|
10
|
+
[#97](../../issues/97) Add secret_token.rb in gitignore
|
11
|
+
* [aa2e3ac](../../commit/aa2e3ac) - __(Ahmet Sezgin Duran)__ Add secret_token.rb in gitignore
|
12
|
+
* [a2caa79](../../commit/a2caa79) - __(Onur Özgür ÖZKAN)__ Update rails-i18n gem version
|
13
|
+
* [16c9331](../../commit/16c9331) - __(Muhammet DİLEK)__ update readme
|
14
|
+
|
15
|
+
#### 1.0.0
|
16
|
+
* [6ea6062](../../commit/6ea6062) - __(Muhammet DİLEK)__ bump version 1.0.0
|
3
17
|
* [9d610b0](../../commit/9d610b0) - __(Muhammet DİLEK)__ [#89](../../issues/89) exception notification configuration added to environment files
|
4
18
|
* [4c00857](../../commit/4c00857) - __(Muhammet DİLEK)__ [#91](../../issues/91) staging configuration added
|
5
19
|
* [38ef9c5](../../commit/38ef9c5) - __(Muhammet DİLEK)__ [#90](../../issues/90) asset files updated
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -4,8 +4,6 @@
|
|
4
4
|
[](https://codeclimate.com/github/kebab-project/cybele)
|
5
5
|
[](https://gemnasium.com/kebab-project/cybele)
|
6
6
|
|
7
|
-
NOTE: Don't use this gem until v1.0.0
|
8
|
-
|
9
7
|
**Cybele** pron.: /ˈsɪbɨliː/ was an originally Anatolian mother goddess. Little is known of her oldest Anatolian cults,
|
10
8
|
other than her association with mountains, hawks and lions. She may have been Phrygia's State deity; her Phrygian cult
|
11
9
|
was adopted and adapted by Greek colonists of Asia Minor, and spread from there to mainland Greece and its more distant
|
data/SECURITY.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# Reporting Security Issues
|
2
|
+
|
3
|
+
If you discover a security issue in Cybele, please report it by sending an email to info@lab2023.com
|
4
|
+
|
5
|
+
This will allow us to assess the risk, and make a fix available before we add a bug report to the Github repo.
|
6
|
+
|
7
|
+
Thanks for helping make Cybele safe for everyone.
|
data/lib/cybele/app_builder.rb
CHANGED
@@ -254,6 +254,20 @@ require 'capybara/rspec'
|
|
254
254
|
copy_file 'config/initializers/simple_form_bootstrap.rb', 'config/initializers/simple_form_bootstrap.rb'
|
255
255
|
end
|
256
256
|
|
257
|
+
def setup_capistrano
|
258
|
+
run 'capify .'
|
259
|
+
end
|
260
|
+
|
261
|
+
def setup_recipes
|
262
|
+
run 'rm config/deploy.rb'
|
263
|
+
generate 'recipes_matic:install'
|
264
|
+
end
|
265
|
+
|
266
|
+
def update_secret_token
|
267
|
+
remove_file 'config/initializers/secret_token.rb'
|
268
|
+
template 'config/initializers/secret_token.erb', 'config/initializers/secret_token.rb'
|
269
|
+
end
|
270
|
+
|
257
271
|
private
|
258
272
|
|
259
273
|
def action_mailer_host(rails_env, host)
|
@@ -187,6 +187,18 @@ module Cybele
|
|
187
187
|
build :add_exception_notification_to_environments
|
188
188
|
end
|
189
189
|
|
190
|
+
def install_capistrano
|
191
|
+
build :setup_capistrano
|
192
|
+
end
|
193
|
+
|
194
|
+
def setup_recipes
|
195
|
+
build :setup_recipes
|
196
|
+
end
|
197
|
+
|
198
|
+
def setup_secret_token
|
199
|
+
build :update_secret_token
|
200
|
+
end
|
201
|
+
|
190
202
|
protected
|
191
203
|
|
192
204
|
def get_builder_class
|
data/lib/cybele/version.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure your secret_key_base is kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
def find_secure_token
|
13
|
+
token_file = Rails.root.join('.secret')
|
14
|
+
if File.exist? token_file
|
15
|
+
# Use the existing token.
|
16
|
+
File.read(token_file).chomp
|
17
|
+
else
|
18
|
+
# Generate a new token of 64 random hexadecimal characters and store it in token_file.
|
19
|
+
token = SecureRandom.hex(64)
|
20
|
+
File.write(token_file, token)
|
21
|
+
token
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
<%= app_name.classify %>::Application.config.secret_key_base = find_secure_token
|
data/templates/cybele_Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'rails', '~> 4.0.
|
3
|
+
gem 'rails', '~> 4.0.1'
|
4
4
|
gem 'pg', '~> 0.16.0'
|
5
5
|
gem 'sass-rails', '~> 4.0.0'
|
6
6
|
gem 'uglifier', '>= 1.3.0'
|
@@ -26,8 +26,12 @@ gem 'kangal', '~> 1.0.0'
|
|
26
26
|
gem 'rack-timeout', '~> 0.0.4'
|
27
27
|
gem 'annotate', '>=2.5.0'
|
28
28
|
gem 'recipient_interceptor', '~> 0.1.2'
|
29
|
-
gem 'rails-i18n', '~> 4.0.0
|
29
|
+
gem 'rails-i18n', '~> 4.0.0'
|
30
30
|
gem 'ransack'
|
31
|
+
gem 'capistrano', '~> 2.15.5'
|
32
|
+
gem 'capistrano-ext', '~> 1.2.1'
|
33
|
+
gem 'unicorn', '~> 4.6.3'
|
34
|
+
gem 'recipes_matic', '~> 0.2.0'
|
31
35
|
|
32
36
|
# gem 'rails-observers'
|
33
37
|
|
data/templates/cybele_gitignore
CHANGED
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: 1.
|
4
|
+
version: 1.1.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-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -77,12 +77,14 @@ extra_rdoc_files:
|
|
77
77
|
- README.md
|
78
78
|
- MIT-LICENSE
|
79
79
|
files:
|
80
|
+
- .gitignore
|
80
81
|
- CHANGELOG.md
|
81
82
|
- Gemfile
|
82
83
|
- Gemfile.lock
|
83
84
|
- MIT-LICENSE
|
84
85
|
- README.md
|
85
86
|
- Rakefile
|
87
|
+
- SECURITY.md
|
86
88
|
- bin/cybele
|
87
89
|
- cybele.gemspec
|
88
90
|
- lib/cybele/app_builder.rb
|
@@ -115,6 +117,7 @@ files:
|
|
115
117
|
- templates/config/database.yml.erb
|
116
118
|
- templates/config/initializers/disable_xml_params.rb
|
117
119
|
- templates/config/initializers/mail.rb
|
120
|
+
- templates/config/initializers/secret_token.erb
|
118
121
|
- templates/config/initializers/simple_form.rb
|
119
122
|
- templates/config/initializers/simple_form_bootstrap.rb
|
120
123
|
- templates/config/locales/responders.en.yml
|