mno-enterprise-frontend 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bdda7571868cc82e7d03440138e6337b4c4ae66
4
- data.tar.gz: fccacc4ede6e6a8a3417f3d2bf0ad1f1cd9951a6
3
+ metadata.gz: b1c1768c657a45cac2f125915797d61f58a63308
4
+ data.tar.gz: ffa95d5abfb33b0131f70d963226a16d911223d1
5
5
  SHA512:
6
- metadata.gz: c3f60360a971a5107b94f66088f38775eabb3d80ddd2baac7e5dc9dc3ae44646492c172021695a865bc5835deca115a8323dbb5456e75f8f65665165be8111f0
7
- data.tar.gz: 2adfc0a4431932de30ab643e7f425217ddcb510f27b864bcbed0635f7ea1974d27319cc07a78e8b0744ea231eeafc98b133268f38e940023ed619f383a127512
6
+ metadata.gz: 5d2d68bde3f31010ae0107dd62f905522e67f369716ef973d9140dfb3181292cee5a65ee8fe68fa73cd02792b79a2ecf42e37304abba4379d20e8bda0ed15aec
7
+ data.tar.gz: b1942ef49e237aa2a3983030ef037ac9f33cfd071fbf1fb7ad99bda57b2df933ea98d8e918bdc89dc9494e7b7dbd6b78fee9fe7065c5d2aa1d3febf691baba8e
@@ -49,9 +49,6 @@ namespace :mnoe do
49
49
  # Copy assets to public
50
50
  cp_r("#{frontend_tmp_folder}/dist/.", "#{admin_dist_folder}/")
51
51
 
52
- # Copy bower_components to public (used by live previewer)
53
- cp_r("#{frontend_tmp_folder}/bower_components","#{admin_dist_folder}/")
54
-
55
52
  # Clear tmp cache in development - recompile assets otherwise
56
53
  if Rails.env.development? || Rails.env.test?
57
54
  Rake::Task['tmp:cache:clear'].execute
@@ -63,8 +60,8 @@ namespace :mnoe do
63
60
  desc "Reset the admin build folder"
64
61
  task :prepare_build_folder do
65
62
  # Reset tmp folder from mno-enterprise/frontend-admin source
66
- rm_rf "#{frontend_tmp_folder}/src"
67
- rm_rf "#{frontend_tmp_folder}/e2e"
63
+ rm_rf "#{admin_dist_folder}"
64
+ rm_rf "#{frontend_tmp_folder}"
68
65
  mkdir_p frontend_tmp_folder
69
66
  cp_r(File.join(Gem.loaded_specs["mno-enterprise"].full_gem_path, "#{frontend_orig_folder}/."), "#{frontend_tmp_folder}/")
70
67
  end
@@ -54,6 +54,15 @@ namespace :mnoe do
54
54
  FileUtils.touch(File.join(Rails.root,"frontend/src/app/stylesheets/#{filename}"))
55
55
  end
56
56
 
57
+ # Create custom fonts files so we can safely include them in main.less
58
+ frontend_font_folder = File.join(frontend_project_folder, 'src/fonts')
59
+ unless File.exists?(File.join(frontend_font_folder, 'font-faces.less'))
60
+ font_src = File.join(File.expand_path(File.dirname(__FILE__)),'templates','font-faces.less')
61
+
62
+ mkdir_p(frontend_font_folder)
63
+ cp(font_src, frontend_font_folder)
64
+ end
65
+
57
66
  # Build the frontend
58
67
  Rake::Task['mnoe:frontend:dist'].invoke
59
68
  #Rake::Task['assets:precompile'].invoke
@@ -0,0 +1,2 @@
1
+ // Use this file to declare your custom fonts
2
+ // See https://github.com/maestrano/mno-enterprise#adding-a-custom-font
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mno-enterprise-frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-13 00:00:00.000000000 Z
12
+ date: 2016-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mno-enterprise-core
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 3.1.0
20
+ version: 3.1.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 3.1.0
27
+ version: 3.1.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: mno-enterprise-api
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 3.1.0
34
+ version: 3.1.1
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 3.1.0
41
+ version: 3.1.1
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: less-rails
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -311,6 +311,7 @@ files:
311
311
  - lib/tasks/mnoe_frontend_tasks.rake
312
312
  - lib/tasks/mnoe_locales.rake
313
313
  - lib/tasks/templates/bower.json
314
+ - lib/tasks/templates/font-faces.less
314
315
  - spec/controllers/mno_enterprise/auth/confirmations_controller_spec.rb
315
316
  - spec/controllers/mno_enterprise/invoices_controller_spec.rb
316
317
  - spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb