mcc2 1.5.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.
Files changed (120) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +0 -0
  3. data/.autotest +23 -0
  4. data/.gitignore +15 -0
  5. data/.rubocop.yml +3 -0
  6. data/Gemfile +13 -0
  7. data/History.txt +6 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +51 -0
  10. data/Rakefile +12 -0
  11. data/config/i18n-tasks.yml +193 -0
  12. data/exe/mcc2 +18 -0
  13. data/exe/mcc2-generate-preview +17 -0
  14. data/exe/mcc2print +6 -0
  15. data/lib/libguib16.rb +1620 -0
  16. data/lib/mcc2/advanced_data_edit_dlg.rb +139 -0
  17. data/lib/mcc2/cc_dialogbox.rb +52 -0
  18. data/lib/mcc2/constants.rb +154 -0
  19. data/lib/mcc2/dataman/base.rb +61 -0
  20. data/lib/mcc2/dataman/csv.rb +49 -0
  21. data/lib/mcc2/dataman/database.rb +8 -0
  22. data/lib/mcc2/dataman/dbf.rb +45 -0
  23. data/lib/mcc2/dataman/none.rb +25 -0
  24. data/lib/mcc2/dataview.rb +348 -0
  25. data/lib/mcc2/dataview_dlg.rb +232 -0
  26. data/lib/mcc2/debug_tools.rb +20 -0
  27. data/lib/mcc2/fx_colored_item.rb +101 -0
  28. data/lib/mcc2/generate_preview.rb +68 -0
  29. data/lib/mcc2/gui/advanced_data_edit_dlg.rbin +0 -0
  30. data/lib/mcc2/gui/dataview_dlg.pp +522 -0
  31. data/lib/mcc2/gui/layoutview_dlg.pp +5115 -0
  32. data/lib/mcc2/gui/mcc2_mainwin.pp +838 -0
  33. data/lib/mcc2/gui/picture_data_edit_dlg.rbin +0 -0
  34. data/lib/mcc2/gui/printerview_dlg.pp +3311 -0
  35. data/lib/mcc2/images/Image-Arrow-Left.gif +0 -0
  36. data/lib/mcc2/images/Image-Arrow-Right.gif +0 -0
  37. data/lib/mcc2/images/Image-FastArrowLeft.gif +0 -0
  38. data/lib/mcc2/images/Image-FastArrowRight.bmp +0 -0
  39. data/lib/mcc2/images/Image-FastArrowRight.gif +0 -0
  40. data/lib/mcc2/images/application-exit.png +0 -0
  41. data/lib/mcc2/images/copy.png +0 -0
  42. data/lib/mcc2/images/country_de.png +0 -0
  43. data/lib/mcc2/images/country_gb.png +0 -0
  44. data/lib/mcc2/images/country_rs.png +0 -0
  45. data/lib/mcc2/images/cut.png +0 -0
  46. data/lib/mcc2/images/distribute-horizontal-baseline.png +0 -0
  47. data/lib/mcc2/images/distribute-vertical-baseline.png +0 -0
  48. data/lib/mcc2/images/document-close.png +0 -0
  49. data/lib/mcc2/images/document-edit.png +0 -0
  50. data/lib/mcc2/images/document-new.png +0 -0
  51. data/lib/mcc2/images/document-open.png +0 -0
  52. data/lib/mcc2/images/document-print-frame.png +0 -0
  53. data/lib/mcc2/images/document-print.png +0 -0
  54. data/lib/mcc2/images/document-save-as.png +0 -0
  55. data/lib/mcc2/images/document-save.png +0 -0
  56. data/lib/mcc2/images/documentation.png +0 -0
  57. data/lib/mcc2/images/draw-rectangle.png +0 -0
  58. data/lib/mcc2/images/dummy.gif +0 -0
  59. data/lib/mcc2/images/exchange-positions.png +0 -0
  60. data/lib/mcc2/images/insert-image.png +0 -0
  61. data/lib/mcc2/images/insert-text.png +0 -0
  62. data/lib/mcc2/images/libreoffice-oasis-master-document.png +0 -0
  63. data/lib/mcc2/images/measure.png +0 -0
  64. data/lib/mcc2/images/messagebox_warning.png +0 -0
  65. data/lib/mcc2/images/paste.png +0 -0
  66. data/lib/mcc2/images/process-stop.png +0 -0
  67. data/lib/mcc2/images/zoom-in.png +0 -0
  68. data/lib/mcc2/layout.rb +323 -0
  69. data/lib/mcc2/layout_file.rb +794 -0
  70. data/lib/mcc2/layout_object/barcode.rb +33 -0
  71. data/lib/mcc2/layout_object/box.rb +18 -0
  72. data/lib/mcc2/layout_object/chip.rb +54 -0
  73. data/lib/mcc2/layout_object/embed.rb +16 -0
  74. data/lib/mcc2/layout_object/go_attribut.rb +16 -0
  75. data/lib/mcc2/layout_object/graphic.rb +59 -0
  76. data/lib/mcc2/layout_object/magstripe.rb +13 -0
  77. data/lib/mcc2/layout_object/picture.rb +22 -0
  78. data/lib/mcc2/layout_object/text.rb +29 -0
  79. data/lib/mcc2/layout_win.rb +2052 -0
  80. data/lib/mcc2/layoutview.rb +845 -0
  81. data/lib/mcc2/layoutview_dlg.rb +2058 -0
  82. data/lib/mcc2/locales.rb +27 -0
  83. data/lib/mcc2/mcc2_mainwin.rb +453 -0
  84. data/lib/mcc2/mcc2gui.rb +295 -0
  85. data/lib/mcc2/mcc2print.rb +54 -0
  86. data/lib/mcc2/picture_data_edit_dlg.rb +139 -0
  87. data/lib/mcc2/print_dlg.rb +520 -0
  88. data/lib/mcc2/printer/base.rb +148 -0
  89. data/lib/mcc2/printer/card_printer.rb +45 -0
  90. data/lib/mcc2/printer/file_printer.rb +135 -0
  91. data/lib/mcc2/printer/gdi_card_printer.rb +14 -0
  92. data/lib/mcc2/printer/gdi_printer.rb +197 -0
  93. data/lib/mcc2/printer/linux_cups_printer.rb +92 -0
  94. data/lib/mcc2/printer/preview.rb +277 -0
  95. data/lib/mcc2/printer/printer_cab.rb +118 -0
  96. data/lib/mcc2/printer/printer_cx320_direct.rb +286 -0
  97. data/lib/mcc2/printer/printer_epl.rb +118 -0
  98. data/lib/mcc2/printer/printer_ttp34x.rb +124 -0
  99. data/lib/mcc2/printer/printer_zebra.rb +324 -0
  100. data/lib/mcc2/printer/svg_drawer.rb +689 -0
  101. data/lib/mcc2/printerview.rb +604 -0
  102. data/lib/mcc2/printerview_dlg.rb +1248 -0
  103. data/lib/mcc2/version.rb +3 -0
  104. data/lib/mcc2.rb +11 -0
  105. data/locales/de.yml +6 -0
  106. data/locales/en.yml +502 -0
  107. data/locales/rs.yml +502 -0
  108. data/mcc2.gemspec +41 -0
  109. data/test/dummy.rb +19 -0
  110. data/test/layouts/bart_simpson.png +0 -0
  111. data/test/layouts/color_test.xml +151 -0
  112. data/test/layouts/ms.xml +67 -0
  113. data/test/ruby_print.rb +380 -0
  114. data/test/test.csv +4 -0
  115. data/test/test.dbf +0 -0
  116. data/test/test.str +4 -0
  117. data/test/test_mcc2.rb +8 -0
  118. data.tar.gz.sig +6 -0
  119. metadata +421 -0
  120. metadata.gz.sig +0 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a05b21ad3389b3f9633e6d3e74e019d5df9bb94d095e21fb21cba18670d2d390
4
+ data.tar.gz: 7445b74a0c53ca9ee59b137372e77d41e1d87a828cab929c87fe96240f54acaa
5
+ SHA512:
6
+ metadata.gz: ee57765ce5967923e61f31644d358c035b95c7c17c9107303b9cac1168d2d6dad0beda434aeafd4c91da9f636b8fb7c2aab6b3fae979a8e7f85c81f4cc47379a
7
+ data.tar.gz: 2b362c2f47ded8c4b2c7e4d784c557e937a37c2d7494d1fb88c3ee893bc9a257a54f8ff5f2fdf4c5db39e67f1154f8cd877c3e95290c26ab3aa883fbb058e302
checksums.yaml.gz.sig ADDED
Binary file
data/.autotest ADDED
@@ -0,0 +1,23 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'autotest/restart'
4
+
5
+ # Autotest.add_hook :initialize do |at|
6
+ # at.extra_files << "../some/external/dependency.rb"
7
+ #
8
+ # at.libs << ":../some/external"
9
+ #
10
+ # at.add_exception 'vendor'
11
+ #
12
+ # at.add_mapping(/dependency.rb/) do |f, _|
13
+ # at.files_matching(/test_.*rb$/)
14
+ # end
15
+ #
16
+ # %w(TestA TestB).each do |klass|
17
+ # at.extra_class_map[klass] = "test/test_misc.rb"
18
+ # end
19
+ # end
20
+
21
+ # Autotest.add_hook :run_command do |at|
22
+ # system "rake build"
23
+ # end
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /.icarukTime.json
4
+ /2
5
+ /Gemfile.lock
6
+ /_yardoc/
7
+ /coverage/
8
+ /doc/
9
+ /pkg/
10
+ /spec/reports/
11
+ /tmp/
12
+ /.history/
13
+ /vendor/
14
+ *.orig
15
+ *.pp_failsave*
data/.rubocop.yml ADDED
@@ -0,0 +1,3 @@
1
+ ---
2
+ AllCops:
3
+ DisabledByDefault: true
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # -*- ruby -*-
2
+
3
+ source "https://rubygems.org/"
4
+
5
+ gemspec
6
+
7
+ gem "libcx320", "~> 0.1"
8
+
9
+ group :development do
10
+ gem "foxguib"
11
+ gem 'i18n-tasks', '~> 1.1'
12
+ gem "ruby-prof"
13
+ end
data/History.txt ADDED
@@ -0,0 +1,6 @@
1
+ === 1.0.0 / 2009-12-19
2
+
3
+ * 1 major enhancement
4
+
5
+ * Birthday!
6
+
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Lars Kanis
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # Mcc2
2
+
3
+ * https://github.com/larskanis/mcc2
4
+
5
+ Layout editor and card printer GUI
6
+
7
+ ## Features
8
+
9
+ * Simple GUI to edit the layout
10
+ * Variable data input from CSV and DBF file
11
+ * Pure desktop GUI, no web server necessary
12
+ * Supports magstripe encoding and contact+contactless chip encoding
13
+ * Use of font files independent from system installed fonts
14
+ * Vector output formats (SVG and searchable PDF)
15
+ * Various raster image output formats (PNG, JPEG etc.)
16
+ * Headless print per command line and Ruby API
17
+ * Stores all printer settings in the layout file for headless print (Duplex, tray selection, DPI, etc.)
18
+
19
+ ## Installation
20
+
21
+ Install mcc2 on Debian/Ubuntu Linux as:
22
+
23
+ $ sudo apt install libcairo2-dev libgdk-pixbuf-2.0-dev libmagickwand-dev g++ libxrandr-dev libfox-1.6-dev
24
+ $ sudo apt install ruby-dev # in case you want to use system ruby
25
+ $ gem install mcc2
26
+
27
+ On Windows install the RubyInstaller including Devkit, then run:
28
+
29
+ $ gem install mcc2
30
+
31
+ This should
32
+
33
+ ## Usage
34
+
35
+ Run the GUI
36
+
37
+ $ mcc2
38
+
39
+ ## Development
40
+
41
+ To install all necessary gems onto your local machine, run `bundle update`.
42
+
43
+ ## Contributing
44
+
45
+ Bug reports and pull requests are welcome on GitHub at https://github.com/larskanis/mcc2 .
46
+
47
+
48
+ ## License
49
+
50
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
51
+
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task default: :spec
11
+
12
+ task gem: :build
@@ -0,0 +1,193 @@
1
+ # i18n-tasks finds and manages missing and unused translations: https://github.com/glebm/i18n-tasks
2
+
3
+ # The "main" locale.
4
+ base_locale: en
5
+ ## All available locales are inferred from the data by default. Alternatively, specify them explicitly:
6
+ locales: [de, rs]
7
+ ## Reporting locale, default: en. Available: en, ru.
8
+ # internal_locale: en
9
+
10
+ # Read and write translations.
11
+ data:
12
+ ## Translations are read from the file system. Supported format: YAML, JSON.
13
+ ## Provide a custom adapter:
14
+ # adapter: I18n::Tasks::Data::FileSystem
15
+
16
+ # Locale files or `Dir.glob` patterns where translations are read from:
17
+ read:
18
+ ## Default:
19
+ # - config/locales/%{locale}.yml
20
+ ## More files:
21
+ # - config/locales/**/*.%{locale}.yml
22
+ - locales/%{locale}.yml
23
+
24
+ # Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom:
25
+ # `i18n-tasks normalize -p` will force move the keys according to these rules
26
+ write:
27
+ ## For example, write devise and simple form keys to their respective files:
28
+ # - ['{devise, simple_form}.*', 'config/locales/\1.%{locale}.yml']
29
+ ## Catch-all default:
30
+ # - config/locales/%{locale}.yml
31
+ - locales/%{locale}.yml
32
+
33
+ # External locale data (e.g. gems).
34
+ # This data is not considered unused and is never written to.
35
+ external:
36
+ ## Example (replace %#= with %=):
37
+ # - "<%#= %x[bundle info vagrant --path].chomp %>/templates/locales/%{locale}.yml"
38
+
39
+ ## Specify the router (see Readme for details). Valid values: conservative_router, pattern_router, isolating_router, or a custom class.
40
+ # router: conservative_router
41
+
42
+ yaml:
43
+ write:
44
+ # do not wrap lines at 80 characters
45
+ line_width: -1
46
+
47
+ ## Pretty-print JSON:
48
+ # json:
49
+ # write:
50
+ # indent: ' '
51
+ # space: ' '
52
+ # object_nl: "\n"
53
+ # array_nl: "\n"
54
+
55
+ # Find translate calls
56
+ search:
57
+ ## Paths or `Find.find` patterns to search in:
58
+ paths:
59
+ - lib
60
+
61
+ ## Root directories for relative keys resolution.
62
+ # relative_roots:
63
+ # - app/controllers
64
+ # - app/helpers
65
+ # - app/mailers
66
+ # - app/presenters
67
+ # - app/views
68
+
69
+ ## Directories where method names which should not be part of a relative key resolution.
70
+ # By default, if a relative translation is used inside a method, the name of the method will be considered part of the resolved key.
71
+ # Directories listed here will not consider the name of the method part of the resolved key
72
+ #
73
+ # relative_exclude_method_name_paths:
74
+ # -
75
+
76
+ ## Files or `File.fnmatch` patterns to exclude from search. Some files are always excluded regardless of this setting:
77
+ ## *.jpg *.jpeg *.png *.gif *.svg *.ico *.eot *.otf *.ttf *.woff *.woff2 *.pdf *.css *.sass *.scss *.less
78
+ ## *.yml *.json *.zip *.tar.gz *.swf *.flv *.mp3 *.wav *.flac *.webm *.mp4 *.ogg *.opus *.webp *.map *.xlsx
79
+ # exclude:
80
+ # - app/assets/images
81
+ # - app/assets/fonts
82
+ # - app/assets/videos
83
+ # - app/assets/builds
84
+
85
+ ## Alternatively, the only files or `File.fnmatch patterns` to search in `paths`:
86
+ ## If specified, this settings takes priority over `exclude`, but `exclude` still applies.
87
+ # only: ["*.rb", "*.html.slim"]
88
+ only: ["*.rb"]
89
+
90
+ ## If `strict` is `false`, guess usages such as t("categories.#{category}.title"). The default is `true`.
91
+ # strict: true
92
+
93
+ ## Allows adding ast_matchers for finding translations using the AST-scanners
94
+ ## The available matchers are:
95
+ ## - RailsModelMatcher
96
+ ## Matches ActiveRecord translations like
97
+ ## User.human_attribute_name(:email) and User.model_name.human
98
+ ## - DefaultI18nSubjectMatcher
99
+ ## Matches ActionMailer's default_i18n_subject method
100
+ ##
101
+ ## To implement your own, please see `I18n::Tasks::Scanners::AstMatchers::BaseMatcher`.
102
+ # ast_matchers:
103
+ # - 'I18n::Tasks::Scanners::AstMatchers::RailsModelMatcher'
104
+ # - 'I18n::Tasks::Scanners::AstMatchers::DefaultI18nSubjectMatcher'
105
+
106
+ ## Multiple scanners can be used. Their results are merged.
107
+ ## The options specified above are passed down to each scanner. Per-scanner options can be specified as well.
108
+ ## See this example of a custom scanner: https://github.com/glebm/i18n-tasks/wiki/A-custom-scanner-example
109
+
110
+ ## Translation Services
111
+ # translation:
112
+ # # Google Translate
113
+ # # Get an API key and set billing info at https://code.google.com/apis/console to use Google Translate
114
+ # google_translate_api_key: "AbC-dEf5"
115
+ # # DeepL Pro Translate
116
+ # # Get an API key and subscription at https://www.deepl.com/pro to use DeepL Pro
117
+ # deepl_api_key: "48E92789-57A3-466A-9959-1A1A1A1A1A1A"
118
+ # # deepl_host: "https://api.deepl.com"
119
+ # # deepl_version: "v2"
120
+ # # deepl_glossary_ids:
121
+ # # - f28106eb-0e06-489e-82c6-8215d6f95089
122
+ # # - 2c6415be-1852-4f54-9e1b-d800463496b4
123
+ # # add additional options to the DeepL.translate call: https://www.deepl.com/docs-api/translate-text/translate-text/
124
+ # deepl_options:
125
+ # formality: prefer_less
126
+ # # OpenAI
127
+ # openai_api_key: "sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
128
+ # # openai_model: "gpt-4o-mini" # see https://platform.openai.com/docs/models
129
+ # # openai_temperature: 0.0 # Controls randomness in responses (0.0-2.0), default: 0.0
130
+ # # may contain `%{from}` and `%{to}`, which will be replaced by source and target locale codes, respectively (using `Kernel.format`)
131
+ # # openai_system_prompt: >-
132
+ # # You are a professional translator that translates content from the %{from} locale
133
+ # # to the %{to} locale in an i18n locale array.
134
+ # #
135
+ # # Per-locale prompts override the default prompt for specific target locales
136
+ # # openai_locale_prompts:
137
+ # # es: >-
138
+ # # You are a professional translator specializing in Latin American Spanish.
139
+ # # Translate content from the %{from} locale to the %{to} locale, using informal language
140
+ # # and regional expressions common in Mexico.
141
+ # # ja: >-
142
+ # # You are a professional translator specializing in business Japanese.
143
+ # # Translate content from the %{from} locale to the %{to} locale using formal, professional
144
+ # # language appropriate for business contexts.
145
+ # #
146
+ # # The array has a structured format and contains multiple strings. Your task is to translate
147
+ # # each of these strings and create a new array with the translated strings.
148
+ # #
149
+ # # HTML markups (enclosed in < and > characters) must not be changed under any circumstance.
150
+ # # Variables (starting with %%{ and ending with }) must not be changed under any circumstance.
151
+ # #
152
+ # # Keep in mind the context of all the strings for a more accurate translation.
153
+
154
+ ## Do not consider these keys missing:
155
+ # ignore_missing:
156
+ # - 'errors.messages.{accepted,blank,invalid,too_short,too_long}'
157
+ # - '{devise,simple_form}.*'
158
+
159
+ ## Consider these keys used:
160
+ # ignore_unused:
161
+ # - 'activerecord.attributes.*'
162
+ # - '{devise,kaminari,will_paginate}.*'
163
+ # - 'simple_form.{yes,no}'
164
+ # - 'simple_form.{placeholders,hints,labels}.*'
165
+ # - 'simple_form.{error_notification,required}.:'
166
+
167
+ ## Exclude these keys from the `i18n-tasks eq-base' report:
168
+ # ignore_eq_base:
169
+ # all:
170
+ # - common.ok
171
+ # fr,es:
172
+ # - common.brand
173
+
174
+ ## Exclude these keys from the `i18n-tasks check-consistent-interpolations` report:
175
+ # ignore_inconsistent_interpolations:
176
+ # - 'activerecord.attributes.*'
177
+
178
+ ## Ignore these keys completely:
179
+ # ignore:
180
+ # - kaminari.*
181
+
182
+ ## Sometimes, it isn't possible for i18n-tasks to match the key correctly,
183
+ ## e.g. in case of a relative key defined in a helper method.
184
+ ## In these cases you can use the built-in PatternMapper to map patterns to keys, e.g.:
185
+ #
186
+ # <%# I18n::Tasks.add_scanner 'I18n::Tasks::Scanners::PatternMapper',
187
+ # only: %w(*.html.haml *.html.slim),
188
+ # patterns: [['= title\b', '.page_title']] %>
189
+ #
190
+ # The PatternMapper can also match key literals via a special %{key} interpolation, e.g.:
191
+ #
192
+ # <%# I18n::Tasks.add_scanner 'I18n::Tasks::Scanners::PatternMapper',
193
+ # patterns: [['\bSpree\.t[( ]\s*%{key}', 'spree.%{key}']] %>
data/exe/mcc2 ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "mcc2"
4
+
5
+ Mcc2::Locales.init
6
+ Mcc2::Mcc2Gui.run(ARGV)
7
+
8
+ # require "stackprof"
9
+ # StackProf.run(mode: :cpu, out: 'stackprof-cpu-myapp.dump') do
10
+ # Mcc2::Mcc2Gui.run(ARGV)
11
+ # end
12
+
13
+ # require 'ruby-prof'
14
+ # result = RubyProf::Profile.profile do
15
+ # Mcc2::Mcc2Gui.run(ARGV)
16
+ # end
17
+ # printer = RubyProf::GraphPrinter.new(result)
18
+ # printer.print(STDOUT, {})
@@ -0,0 +1,17 @@
1
+ require "mcc2"
2
+
3
+ Mcc2::Locales.init
4
+ Mcc2::GeneratePreview.run(ARGV)
5
+
6
+ # require "stackprof"
7
+ # StackProf.run(mode: :cpu, out: 'stackprof-cpu-myapp.dump') do
8
+ # Mcc2::GeneratePreview.run(ARGV)
9
+ # end
10
+
11
+
12
+ # require 'ruby-prof'
13
+ # result = RubyProf::Profile.profile do
14
+ # Mcc2::GeneratePreview.run(ARGV)
15
+ # end
16
+ # printer = RubyProf::GraphPrinter.new(result)
17
+ # printer.print(STDOUT, {})
data/exe/mcc2print ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "mcc2"
4
+
5
+ Mcc2::Locales.init
6
+ Mcc2::Mcc2Print.run(ARGV)