compass_ae_console 3.0.0 → 3.1.0

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: fcfb01271f7ba1c6474ee78c6c2440ffd85e2fb8
4
- data.tar.gz: 59cee03a3a8e0fb847b0fbdd67b9f0189fa7d35f
3
+ metadata.gz: 8e61cca3fc3e46520d19ffb919fb880e5134db9e
4
+ data.tar.gz: 9fd4ef26c294cedbcdb541f86a37e221f744bbee
5
5
  SHA512:
6
- metadata.gz: 24b0b9a9eb3bd3bb57e041eb0bb40c2bfd5375ac0ec7ac49110650e87712d185d8ba38bf82eb299a17fddc71658fa626ebeedbd4bb996a14fa574c56b4a07249
7
- data.tar.gz: e66eb2b633e7a04ef1c621ed281fe31ed571dcecab7cc12ba22c385ec75f9c5952b35ad778c0b4a6d5785842a898a9ed29922ebfa540570028c634bcf4362980
6
+ metadata.gz: b61f92bfab6df041a367488a35ea3aee9334999b9529695a9fb58fe0da5b861da672a4e1b72427f2f6c1bc748b1e43d1634e1e64be590b64c52a499e56abb365
7
+ data.tar.gz: 5da98c1f134ebf725d5ac8132868cec78cc67f84f31312c580f639feadfe459587145fb7704196f497fd4a758f8b120d37d0bff3062f7e2fdceb5fdc287f07f6
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require ./module
@@ -1,3 +1,17 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require_self
14
+
1
15
  Ext.define("Compass.ErpApp.Desktop.Applications.CompassAeConsole.ConsolePanel", {
2
16
  extend: "Ext.panel.Panel",
3
17
  alias: 'widget.compass_ae_console_panel',
@@ -98,7 +112,7 @@ Ext.define("Compass.ErpApp.Desktop.Applications.CompassAeConsole.ConsolePanel",
98
112
  if (includeOriginalCommand)
99
113
  self.update_history_panel("<span style='color:white'>" + command + "</span>");
100
114
 
101
- if (command.startsWith("-clear")) {
115
+ if (Ext.String.startsWith(command, "-clear")) {
102
116
  self.clear_history_panel(self.startup_heading);
103
117
  } else {
104
118
 
@@ -0,0 +1,12 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ */
12
+
@@ -3,14 +3,14 @@ class CreateDesktopAppConsole
3
3
  app = DesktopApplication.create(
4
4
  :description => 'Compass Console',
5
5
  :icon => 'icon-console',
6
- :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.CompassAeConsole',
7
6
  :internal_identifier => 'compass_ae_console',
8
- :shortcut_id => 'compass_console-win'
9
7
  )
10
-
11
- app.preference_types << PreferenceType.iid('desktop_shortcut')
12
- app.preference_types << PreferenceType.iid('autoload_application')
13
- app.save
8
+
9
+ admin_user = User.find_by_username('admin')
10
+ admin_user.desktop_applications << app
11
+ admin_user.save
12
+
13
+ app.add_party_with_role(admin_user.party.dba_organization, RoleType.iid('dba_org'))
14
14
  end
15
15
 
16
16
  def self.down
@@ -1,9 +1,14 @@
1
1
  module CompassAeConsole
2
2
  class Engine < Rails::Engine
3
3
  isolate_namespace CompassAeConsole
4
-
5
- initializer "compass_console.merge_public" do |app|
6
- app.middleware.insert_before Rack::Runtime, ::ActionDispatch::Static, "#{root}/public"
4
+
5
+ initializer :assets do |config|
6
+ Rails.application.config.assets.paths << root.join("app", "assets", "images")
7
+ Rails.application.config.assets.precompile += %w{ erp_app/desktop/applications/compass_ae_console/app.js }
8
+ Rails.application.config.assets.precompile += %w{ erp_app/desktop/applications/compass_ae_console/app.css }
9
+ Rails.application.config.assets.precompile += %w{ erp_app/shared/console_panel.js }
10
+
11
+ ErpApp::Config.shared_js_assets += %w{ erp_app/shared/console_panel.js }
7
12
  end
8
13
 
9
14
  ErpBaseErpSvcs.register_as_compass_ae_engine(config, self)
@@ -1,7 +1,7 @@
1
1
  module CompassAeConsole
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
- MINOR = 0
4
+ MINOR = 1
5
5
  TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass_ae_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Koloski, Christopher Woodward
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-19 00:00:00.000000000 Z
11
+ date: 2016-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erp_app
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '4.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: '4.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: erp_dev_svcs
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.0'
33
+ version: '4.2'
34
34
  type: :development
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'
40
+ version: '4.2'
41
41
  description: Compass AE Console is an application that sits on top of the Compass
42
42
  AE framework that allows the user to interact with their rails application with
43
43
  a simulated rails console.
@@ -50,14 +50,16 @@ files:
50
50
  - GPL-3-LICENSE
51
51
  - README.md
52
52
  - Rakefile
53
+ - app/assets/javascripts/erp_app/desktop/applications/compass_ae_console/app.js
54
+ - app/assets/javascripts/erp_app/desktop/applications/compass_ae_console/module.js
55
+ - app/assets/javascripts/erp_app/shared/console_panel.js
56
+ - app/assets/stylesheets/erp_app/desktop/applications/compass_ae_console/app.css
53
57
  - app/controllers/compass_ae_console/erp_app/desktop/base_controller.rb
54
58
  - config/routes.rb
55
59
  - db/data_migrations/20110824020426_create_desktop_app_console.rb
56
60
  - lib/compass_ae_console.rb
57
61
  - lib/compass_ae_console/engine.rb
58
62
  - lib/compass_ae_console/version.rb
59
- - public/javascripts/erp_app/desktop/applications/compass_ae_console/module.js
60
- - public/javascripts/erp_app/shared/console_panel.js
61
63
  - spec/dummy/Rakefile
62
64
  - spec/dummy/app/assets/javascripts/application.js
63
65
  - spec/dummy/app/assets/stylesheets/application.css
@@ -104,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
106
  version: '0'
105
107
  requirements: []
106
108
  rubyforge_project:
107
- rubygems_version: 2.2.2
109
+ rubygems_version: 2.4.8
108
110
  signing_key:
109
111
  specification_version: 4
110
112
  summary: Rails Console for Compass AE Desktop