horse_power 0.3.2 → 0.3.3
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/lib/generators/horse_power/app_environment/app_environment_generator.rb +8 -0
- data/lib/generators/horse_power/app_environment/templates/identity_cache.rb +1 -0
- data/lib/generators/horse_power/setup/setup_generator.rb +3 -1
- data/lib/generators/horse_power/user/templates/model.rb.erb +1 -0
- data/lib/horse_power/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3491a638055015c30030c7f52326c149a4103efc
|
4
|
+
data.tar.gz: 0c1673a4c1b70870d89aac5260b2c6c64c3cd7e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bbef7decbf2d6c5c27f254cd38e6c978eb840cee7334be7e84a18c5997fe86e1e4f7441c9fc791ec1b6a62e19b2fde0fc4ab47bae2c5d30c805798d05befb71
|
7
|
+
data.tar.gz: fb2ac4affc1fefa690bce11d0e36d08469a47c519fbdea527c7d886d4c04024ba86c2a8e8503832998e7561fd4d86ebed0bd9dede1a75adbfbe0dd97812925bc
|
@@ -13,6 +13,7 @@ module HorsePower
|
|
13
13
|
private
|
14
14
|
|
15
15
|
def createSettings
|
16
|
+
copy_file "identity_cache.rb", "config/initializers/identity_cache.rb"
|
16
17
|
run "rails g rails_config:install"
|
17
18
|
prepend_to_file 'config/settings.yml' do
|
18
19
|
"token_header: \"Auth-Token\"\nmain_api_header: \"Main-Api-Header\"\n"
|
@@ -57,6 +58,8 @@ module HorsePower
|
|
57
58
|
gsub_file "config/environments/development.rb", "config.action_mailer.raise_delivery_errors = false\n", "#config.action_mailer.raise_delivery_errors = false\n"
|
58
59
|
inject_into_file 'config/environments/development.rb', after: "configure do\n" do <<-'RUBY'
|
59
60
|
|
61
|
+
config.cache_store = :null_store
|
62
|
+
config.identity_cache_store = :null_store
|
60
63
|
config.action_mailer.perform_deliveries = false
|
61
64
|
config.action_mailer.raise_delivery_errors = false
|
62
65
|
config.action_mailer.default_options = {from: ENV['GMAIL_USERNAME']}
|
@@ -82,6 +85,8 @@ module HorsePower
|
|
82
85
|
gsub_file "config/environments/test.rb", "config.action_mailer.delivery_method = :test\n", "#config.action_mailer.delivery_method = :test\n"
|
83
86
|
inject_into_file 'config/environments/test.rb', after: "configure do\n" do <<-'RUBY'
|
84
87
|
|
88
|
+
config.cache_store = :null_store
|
89
|
+
config.identity_cache_store = :null_store
|
85
90
|
#config.action_mailer.perform_deliveries = false
|
86
91
|
config.action_mailer.raise_delivery_errors = true
|
87
92
|
config.action_mailer.default_options = {from: 'testing123@example.com'}
|
@@ -107,7 +112,10 @@ module HorsePower
|
|
107
112
|
::Settings.reload!
|
108
113
|
inject_into_file 'config/environments/production.rb', after: "configure do\n" do <<-'RUBY'
|
109
114
|
|
115
|
+
config.cache_store = :null_store
|
110
116
|
#identity_cache
|
117
|
+
#config.identity_cache_store = :mem_cache_store, Memcached::Rails.new(:servers => ["mem1.server.com"])
|
118
|
+
config.identity_cache_store = :null_store
|
111
119
|
config.force_ssl = true
|
112
120
|
config.action_mailer.perform_deliveries = true
|
113
121
|
config.action_mailer.raise_delivery_errors = true
|
@@ -0,0 +1 @@
|
|
1
|
+
IdentityCache.cache_backend = ActiveSupport::Cache.lookup_store(*Rails.configuration.identity_cache_store)
|
@@ -143,7 +143,7 @@ module HorsePower
|
|
143
143
|
gem 'bcrypt', '~> 3.1.7'
|
144
144
|
gem 'type_cartographer'
|
145
145
|
gem 'devise', "~> 3.2.4"
|
146
|
-
gem 'arcadex', "~> 1.
|
146
|
+
gem 'arcadex', "~> 1.3.0"
|
147
147
|
gem 'autoprefixer-rails'
|
148
148
|
gem 'bootstrap-sass', '~> 3.2.0'
|
149
149
|
gem 'activeadmin', :git => 'https://github.com/activeadmin/activeadmin.git', :branch => "master"
|
@@ -155,6 +155,8 @@ module HorsePower
|
|
155
155
|
gem 'paperclip', '~> 4.2'
|
156
156
|
gem 'aws-sdk', '~> 1.5.7'
|
157
157
|
gem 'rails_config', '~> 0.4.2'
|
158
|
+
gem 'identity_cache'
|
159
|
+
gem 'cityhash' # optional, for faster hashing (C-Ruby only)
|
158
160
|
#gem 'websocket-rails'
|
159
161
|
end
|
160
162
|
|
data/lib/horse_power/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: horse_power
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cleophus Robinson IV
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- config/routes.rb
|
59
59
|
- lib/generators/horse_power/app_environment/USAGE
|
60
60
|
- lib/generators/horse_power/app_environment/app_environment_generator.rb
|
61
|
+
- lib/generators/horse_power/app_environment/templates/identity_cache.rb
|
61
62
|
- lib/generators/horse_power/authorization/USAGE
|
62
63
|
- lib/generators/horse_power/authorization/authorization_generator.rb
|
63
64
|
- lib/generators/horse_power/authorization/templates/auth_file.rb.erb
|