dde 0.2.9 → 0.2.11

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.
data/.document CHANGED
@@ -1,5 +1,5 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
data/.gitignore CHANGED
@@ -1,22 +1,21 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- misc
20
- pkg
21
-
22
- ## PROJECT::SPECIFIC
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+
21
+ ## PROJECT::SPECIFIC
data/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- Copyright (c) 2009 arvicco
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright (c) 2009 arvicco
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,19 +1,19 @@
1
- = dde
2
-
3
- Server that mimics Excel receiving XLTable data via DDE protocol
4
-
5
- Work in progress, don't use it just yet...
6
-
7
- == Note on Patches/Pull Requests
8
-
9
- * Fork the project.
10
- * Make your feature addition or bug fix.
11
- * Add tests for it. This is important so I don't break it in a
12
- future version unintentionally.
13
- * Commit, do not mess with rakefile, version, or history.
14
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
15
- * Send me a pull request. Bonus points for topic branches.
16
-
17
- == Copyright
18
-
19
- Copyright (c) 2010 arvicco. See LICENSE for details.
1
+ = dde
2
+
3
+ Server that mimics Excel receiving XLTable data via DDE protocol
4
+
5
+ Work in progress, don't use it just yet...
6
+
7
+ == Note on Patches/Pull Requests
8
+
9
+ * Fork the project.
10
+ * Make your feature addition or bug fix.
11
+ * Add tests for it. This is important so I don't break it in a
12
+ future version unintentionally.
13
+ * Commit, do not mess with rakefile, version, or history.
14
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
15
+ * Send me a pull request. Bonus points for topic branches.
16
+
17
+ == Copyright
18
+
19
+ Copyright (c) 2010 arvicco. See LICENSE for details.
data/Rakefile CHANGED
@@ -1,60 +1,60 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "dde"
8
- gem.summary = %Q{DDE server for Ruby}
9
- gem.description = %Q{Server that mimics Excel receiving XLTable data via DDE protocol}
10
- gem.email = "arvitallian@gmail.com"
11
- gem.homepage = "http://github.com/arvicco/dde"
12
- gem.authors = ["arvicco"]
13
- gem.add_dependency "win", ">= 0.1.26"
14
- gem.add_development_dependency "rspec", ">= 1.2.9"
15
- gem.add_development_dependency "cucumber", ">= 0"
16
- gem.files.reject! { |fn| fn.include? "misc" }
17
-
18
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
19
- end
20
- Jeweler::GemcutterTasks.new
21
- rescue LoadError
22
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
23
- end
24
-
25
- require 'spec/rake/spectask'
26
- Spec::Rake::SpecTask.new(:spec) do |spec|
27
- spec.libs << 'lib' << 'spec'
28
- spec.spec_files = FileList['spec/**/*_spec.rb']
29
- end
30
-
31
- Spec::Rake::SpecTask.new(:rcov) do |spec|
32
- spec.libs << 'lib' << 'spec'
33
- spec.pattern = 'spec/**/*_spec.rb'
34
- spec.rcov = true
35
- end
36
-
37
- task :spec => :check_dependencies
38
-
39
- begin
40
- require 'cucumber/rake/task'
41
- Cucumber::Rake::Task.new(:features)
42
-
43
- task :features => :check_dependencies
44
- rescue LoadError
45
- task :features do
46
- abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
47
- end
48
- end
49
-
50
- task :default => :spec
51
-
52
- require 'rake/rdoctask'
53
- Rake::RDocTask.new do |rdoc|
54
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
55
-
56
- rdoc.rdoc_dir = 'rdoc'
57
- rdoc.title = "dde #{version}"
58
- rdoc.rdoc_files.include('README*')
59
- rdoc.rdoc_files.include('lib/**/*.rb')
60
- end
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "dde"
8
+ gem.summary = %Q{DDE server for Ruby}
9
+ gem.description = %Q{Server that mimics Excel receiving XLTable data via DDE protocol}
10
+ gem.email = "arvitallian@gmail.com"
11
+ gem.homepage = "http://github.com/arvicco/dde"
12
+ gem.authors = ["arvicco"]
13
+ gem.add_dependency "win", ">= 0.3.1"
14
+ gem.add_development_dependency "rspec", ">= 1.2.9"
15
+ gem.add_development_dependency "cucumber", ">= 0"
16
+ gem.files.reject! { |fn| fn.include? "misc" }
17
+
18
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
19
+ end
20
+ Jeweler::GemcutterTasks.new
21
+ rescue LoadError
22
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
23
+ end
24
+
25
+ require 'spec/rake/spectask'
26
+ Spec::Rake::SpecTask.new(:spec) do |spec|
27
+ spec.libs << 'lib' << 'spec'
28
+ spec.spec_files = FileList['spec/**/*_spec.rb']
29
+ end
30
+
31
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
32
+ spec.libs << 'lib' << 'spec'
33
+ spec.pattern = 'spec/**/*_spec.rb'
34
+ spec.rcov = true
35
+ end
36
+
37
+ task :spec => :check_dependencies
38
+
39
+ begin
40
+ require 'cucumber/rake/task'
41
+ Cucumber::Rake::Task.new(:features)
42
+
43
+ task :features => :check_dependencies
44
+ rescue LoadError
45
+ task :features do
46
+ abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
47
+ end
48
+ end
49
+
50
+ task :default => :spec
51
+
52
+ require 'rake/rdoctask'
53
+ Rake::RDocTask.new do |rdoc|
54
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
55
+
56
+ rdoc.rdoc_dir = 'rdoc'
57
+ rdoc.title = "dde #{version}"
58
+ rdoc.rdoc_files.include('README*')
59
+ rdoc.rdoc_files.include('lib/**/*.rb')
60
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.9
1
+ 0.2.11
@@ -1,33 +1,33 @@
1
- #!/usr/bin/env ruby
2
-
3
- lib = File.join(File.dirname(__FILE__), '..', 'lib')
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include? lib
5
-
6
- require 'dde'
7
- require 'win/gui/message'
8
-
9
- include Win::DDE
10
- include Win::GUI::Message
11
-
12
- # console output redirection (may need to wrap it in synchronization code, etc)
13
- def cout *args
14
- print *args
15
- end
16
-
17
- # std::queue<XlTable> q; // Queue contains the tables to output
18
-
19
- # Creating DDE server and staring service with default name 'excel' and default callback
20
- cout "Starting DDE server with service 'excel'\n"
21
- server = DDE::XlServer.new.start_service
22
-
23
- # Command line args define actions to be run after each successful DDE data transaction
24
- server.actions = ARGV.empty? ? [:timer] : ARGV
25
-
26
- # Starting message loop (necessary for DDE message processing)
27
- cout "Starting DDE message loop\n"
28
-
29
- msg = Msg.new # pointer to Msg FFI struct
30
- while msg = get_message(msg)
31
- translate_message(msg);
32
- dispatch_message(msg);
1
+ #!/usr/bin/env ruby
2
+
3
+ lib = File.join(File.dirname(__FILE__), '..', 'lib')
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include? lib
5
+
6
+ require 'dde'
7
+ require 'win/gui/message'
8
+
9
+ include Win::Dde
10
+ include Win::GUI::Message
11
+
12
+ # console output redirection (may need to wrap it in synchronization code, etc)
13
+ def cout *args
14
+ print *args
15
+ end
16
+
17
+ # std::queue<XlTable> q; // Queue contains the tables to output
18
+
19
+ # Creating DDE server and staring service with default name 'excel' and default callback
20
+ cout "Starting DDE server with service 'excel'\n"
21
+ server = Dde::XlServer.new.start_service
22
+
23
+ # Command line args define actions to be run after each successful DDE data transaction
24
+ server.actions = ARGV.empty? ? [:timer] : ARGV
25
+
26
+ # Starting message loop (necessary for DDE message processing)
27
+ cout "Starting DDE message loop\n"
28
+
29
+ msg = Msg.new # pointer to Msg FFI struct
30
+ while msg = get_message(msg)
31
+ translate_message(msg);
32
+ dispatch_message(msg);
33
33
  end
@@ -1,99 +1,99 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{dde}
8
- s.version = "0.2.9"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["arvicco"]
12
- s.date = %q{2010-03-23}
13
- s.default_executable = %q{dde_main}
14
- s.description = %q{Server that mimics Excel receiving XLTable data via DDE protocol}
15
- s.email = %q{arvitallian@gmail.com}
16
- s.executables = ["dde_main"]
17
- s.extra_rdoc_files = [
18
- "LICENSE",
19
- "README.rdoc"
20
- ]
21
- s.files = [
22
- ".document",
23
- ".gitignore",
24
- "LICENSE",
25
- "README.rdoc",
26
- "Rakefile",
27
- "VERSION",
28
- "bin/dde_main",
29
- "dde.gemspec",
30
- "doc/XLTable_format.doc",
31
- "doc/dde_formats.doc",
32
- "doc/ddeml.d.txt",
33
- "doc/types.txt",
34
- "exp/exp_client.rb",
35
- "exp/exp_dde_monitor.rb",
36
- "exp/exp_dde_server.rb",
37
- "exp/exp_lib.rb",
38
- "exp/exp_server.rb",
39
- "features/dde.feature",
40
- "features/step_definitions/dde_steps.rb",
41
- "features/support/env.rb",
42
- "lib/dde.rb",
43
- "lib/dde/app.rb",
44
- "lib/dde/client.rb",
45
- "lib/dde/dde_string.rb",
46
- "lib/dde/monitor.rb",
47
- "lib/dde/server.rb",
48
- "lib/dde/xl_server.rb",
49
- "lib/dde/xl_table.rb",
50
- "spec/dde/app_shared.rb",
51
- "spec/dde/app_spec.rb",
52
- "spec/dde/client_spec.rb",
53
- "spec/dde/dde_string_spec.rb",
54
- "spec/dde/monitor_spec.rb",
55
- "spec/dde/server_shared.rb",
56
- "spec/dde/server_spec.rb",
57
- "spec/dde/xl_server_spec.rb",
58
- "spec/dde/xl_table_spec.rb",
59
- "spec/spec.opts",
60
- "spec/spec_helper.rb"
61
- ]
62
- s.homepage = %q{http://github.com/arvicco/dde}
63
- s.rdoc_options = ["--charset=UTF-8"]
64
- s.require_paths = ["lib"]
65
- s.rubygems_version = %q{1.3.5}
66
- s.summary = %q{DDE server for Ruby}
67
- s.test_files = [
68
- "spec/dde/app_shared.rb",
69
- "spec/dde/app_spec.rb",
70
- "spec/dde/client_spec.rb",
71
- "spec/dde/dde_string_spec.rb",
72
- "spec/dde/monitor_spec.rb",
73
- "spec/dde/server_shared.rb",
74
- "spec/dde/server_spec.rb",
75
- "spec/dde/xl_server_spec.rb",
76
- "spec/dde/xl_table_spec.rb",
77
- "spec/spec_helper.rb"
78
- ]
79
-
80
- if s.respond_to? :specification_version then
81
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
82
- s.specification_version = 3
83
-
84
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
85
- s.add_runtime_dependency(%q<win>, [">= 0.1.26"])
86
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
87
- s.add_development_dependency(%q<cucumber>, [">= 0"])
88
- else
89
- s.add_dependency(%q<win>, [">= 0.1.26"])
90
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
91
- s.add_dependency(%q<cucumber>, [">= 0"])
92
- end
93
- else
94
- s.add_dependency(%q<win>, [">= 0.1.26"])
95
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
96
- s.add_dependency(%q<cucumber>, [">= 0"])
97
- end
98
- end
99
-
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{dde}
8
+ s.version = "0.2.11"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["arvicco"]
12
+ s.date = %q{2010-04-06}
13
+ s.default_executable = %q{dde_main}
14
+ s.description = %q{Server that mimics Excel receiving XLTable data via DDE protocol}
15
+ s.email = %q{arvitallian@gmail.com}
16
+ s.executables = ["dde_main"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".gitignore",
24
+ "LICENSE",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "bin/dde_main",
29
+ "dde.gemspec",
30
+ "doc/XLTable_format.doc",
31
+ "doc/dde_formats.doc",
32
+ "doc/ddeml.d.txt",
33
+ "doc/types.txt",
34
+ "exp/exp_client.rb",
35
+ "exp/exp_dde_monitor.rb",
36
+ "exp/exp_dde_server.rb",
37
+ "exp/exp_lib.rb",
38
+ "exp/exp_server.rb",
39
+ "features/dde.feature",
40
+ "features/step_definitions/dde_steps.rb",
41
+ "features/support/env.rb",
42
+ "lib/dde.rb",
43
+ "lib/dde/app.rb",
44
+ "lib/dde/client.rb",
45
+ "lib/dde/dde_string.rb",
46
+ "lib/dde/monitor.rb",
47
+ "lib/dde/server.rb",
48
+ "lib/dde/xl_server.rb",
49
+ "lib/dde/xl_table.rb",
50
+ "spec/dde/app_shared.rb",
51
+ "spec/dde/app_spec.rb",
52
+ "spec/dde/client_spec.rb",
53
+ "spec/dde/dde_string_spec.rb",
54
+ "spec/dde/monitor_spec.rb",
55
+ "spec/dde/server_shared.rb",
56
+ "spec/dde/server_spec.rb",
57
+ "spec/dde/xl_server_spec.rb",
58
+ "spec/dde/xl_table_spec.rb",
59
+ "spec/spec.opts",
60
+ "spec/spec_helper.rb"
61
+ ]
62
+ s.homepage = %q{http://github.com/arvicco/dde}
63
+ s.rdoc_options = ["--charset=UTF-8"]
64
+ s.require_paths = ["lib"]
65
+ s.rubygems_version = %q{1.3.6}
66
+ s.summary = %q{DDE server for Ruby}
67
+ s.test_files = [
68
+ "spec/dde/app_shared.rb",
69
+ "spec/dde/app_spec.rb",
70
+ "spec/dde/client_spec.rb",
71
+ "spec/dde/dde_string_spec.rb",
72
+ "spec/dde/monitor_spec.rb",
73
+ "spec/dde/server_shared.rb",
74
+ "spec/dde/server_spec.rb",
75
+ "spec/dde/xl_server_spec.rb",
76
+ "spec/dde/xl_table_spec.rb",
77
+ "spec/spec_helper.rb"
78
+ ]
79
+
80
+ if s.respond_to? :specification_version then
81
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
82
+ s.specification_version = 3
83
+
84
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
85
+ s.add_runtime_dependency(%q<win>, [">= 0.3.1"])
86
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
87
+ s.add_development_dependency(%q<cucumber>, [">= 0"])
88
+ else
89
+ s.add_dependency(%q<win>, [">= 0.3.1"])
90
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
91
+ s.add_dependency(%q<cucumber>, [">= 0"])
92
+ end
93
+ else
94
+ s.add_dependency(%q<win>, [">= 0.3.1"])
95
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
96
+ s.add_dependency(%q<cucumber>, [">= 0"])
97
+ end
98
+ end
99
+