o2webappizer 0.1.6 → 0.1.7

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: 48d2f90b4728351141f4c0fc3242a6545275d2ad
4
- data.tar.gz: 48e779b7077801ea981b8b1b5420988acaa1b443
3
+ metadata.gz: cfb5011492996ddbdbd5986bb751557689e31fb0
4
+ data.tar.gz: 331c1e1dc466157bda39a3ee160a93b75a824795
5
5
  SHA512:
6
- metadata.gz: aa1dcb1be3398427e8b34ab3b340d7287ccebdc23a850eb4defeab60dfbc47ce96f2c538b915db48e32d281db5ccd6cb280ed680c79364604abcd3f811da8f92
7
- data.tar.gz: 329cfd78cf10b6cb97029c6ce0be00ce3ebe6ef678cf5624bff9667fe473d2a4cf7a202709b8e3ecb981f2e73e4dadcd0bd930e7316668ea01dccfb0e8ddd5eb
6
+ metadata.gz: 02e5880b03a588d372bd8a5a294d16cf8a13af4d39b440001f9c97053248440838530cea542a0799ad5dc673166186f37a76da24213f4926c683ebf6ceaec0d6
7
+ data.tar.gz: 3de48570a62e5d54d1a420be5968c6c08dc23a06aaaf8e5fc579218832e7472bbee874f2298d7726fc9c0d467b6e8c9819630c193c8757805a0d537c8d2145bc
@@ -53,9 +53,13 @@ module O2webappizer
53
53
  configure_vagrant
54
54
  end
55
55
  directory 'initializers'
56
- unless options.solidus?
57
- remove_file 'initializers/spree.rb'
58
- remove_file 'initializers/devise.rb'
56
+ directory 'initializers_tt', 'initializers'
57
+
58
+ inside 'initializers' do
59
+ unless options.solidus?
60
+ remove_file 'spree.rb'
61
+ remove_file 'devise.rb'
62
+ end
59
63
  end
60
64
  directory 'locales'
61
65
 
@@ -137,6 +141,8 @@ module O2webappizer
137
141
  end
138
142
 
139
143
  def configure_application
144
+ insert_into_file 'application.rb', %{require "sprockets-derailleur"\n}, after: %{require "sprockets/railtie"\n}
145
+
140
146
  overrides = if options.solidus?
141
147
  <<-OVERRIDES
142
148
 
@@ -1,5 +1,5 @@
1
1
  module O2webappizer
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
4
  RAILS_VERSION = "4.2"
5
5
  end
data/templates/Gemfile.tt CHANGED
@@ -48,6 +48,9 @@ group :development, :test do
48
48
  <% end -%>
49
49
  end
50
50
 
51
+ # Deploy
52
+ gem 'sprockets-derailleur', github: 'bonobos/sprockets-derailleur'
53
+
51
54
  # Scheduling
52
55
  gem 'whenever', require: false
53
56
  # gem 'que'
@@ -1,7 +1,8 @@
1
1
  class App extends CMS
2
2
  @start: =>
3
3
  super
4
- NProgress.configure showSpinner: false
5
- $('img').lazyload()
4
+ @ready =>
5
+ NProgress.configure showSpinner: false
6
+ $('img').lazyload()
6
7
 
7
8
  window.App = App
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: o2webappizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrice Lebel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -112,15 +112,15 @@ files:
112
112
  - templates/app/views/spree/shared/_head.html.erb
113
113
  - templates/app/views/spree/shared/_main_nav_bar.html.erb
114
114
  - templates/config/database.yml.tt
115
- - templates/config/initializers/assets.rb.tt
116
- - templates/config/initializers/devise.rb.tt
117
- - templates/config/initializers/lazyload.rb
118
- - templates/config/initializers/rails_admin.rb
119
- - templates/config/initializers/rails_admin_cms.rb
120
- - templates/config/initializers/rich.rb
121
- - templates/config/initializers/simple_form.rb
122
- - templates/config/initializers/simple_form_bootstrap.rb
123
- - templates/config/initializers/spree.rb
115
+ - templates/config/initializers_tt/assets.rb.tt
116
+ - templates/config/initializers_tt/devise.rb.tt
117
+ - templates/config/initializers_tt/lazyload.rb
118
+ - templates/config/initializers_tt/rails_admin.rb
119
+ - templates/config/initializers_tt/rails_admin_cms.rb
120
+ - templates/config/initializers_tt/rich.rb
121
+ - templates/config/initializers_tt/simple_form.rb
122
+ - templates/config/initializers_tt/simple_form_bootstrap.rb
123
+ - templates/config/initializers_tt/spree.rb
124
124
  - templates/config/locales/en.yml
125
125
  - templates/config/locales/routes.en.yml
126
126
  - templates/config/locales/simple_form.en.yml