rubemacs 1.0.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.
@@ -0,0 +1,2 @@
1
+ === 1.0.0 / 2008-05-16
2
+ Initial release of rubemacs.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2008-2009 Designing Patterns
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 NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,8 @@
1
+ History.txt
2
+ LICENSE
3
+ Manifest.txt
4
+ README.txt
5
+ Rakefile
6
+ bin/rubemacs.rb
7
+ elisp/rubemacs.el
8
+ lib/rubemacs.rb
@@ -0,0 +1,111 @@
1
+ Object
2
+
3
+ == DESCRIPTION:
4
+ This package adds some additional assertions to Test::Unit::Assertions,
5
+ including:
6
+ * Assertions for all of the comparison operators
7
+ (assert_greater_than, assert_less_than_or_equal_to,
8
+ etc.). Shorter aliases also are provided for these (assert_gt,
9
+ assert_le, etc.).
10
+ * An assertion that verifies that a given block raises a specified exception
11
+ with a specified message (assert_raise_message).
12
+ This allows full testing of error messages.
13
+ * An assertion that verifies that a given block contains an assertion that
14
+ fails (assert_fail), which can be used to test new assertions.
15
+
16
+ == PROBLEMS:
17
+ None (known).
18
+
19
+ == SYNOPSIS:
20
+ require 'rubygems'
21
+ require 'assertions'
22
+
23
+ require 'test/unit'
24
+
25
+ class Tests < Test::Unit::TestCase
26
+ def test_assertions
27
+ #
28
+ # Verify that 4 < 5
29
+ #
30
+ assert_less_than(4, 5)
31
+
32
+ #
33
+ # Verify that 4 < 5 again, but this time with the
34
+ # shorter alias.
35
+ #
36
+ assert_lt(4, 5)
37
+
38
+ #
39
+ # Verify that 5 >= 5
40
+ #
41
+ assert_ge(5, 5)
42
+
43
+ #
44
+ # Verify that the specified exception is raised.
45
+ #
46
+ assert_raise_message("Hello, exception!", RuntimeError) do
47
+ raise "Hello, exception!"
48
+ end
49
+
50
+ #
51
+ # Verify that an assertion failed.
52
+ #
53
+ assert_fail do
54
+ assert_equal(5, 4)
55
+ end
56
+ end
57
+ end
58
+
59
+ == REQUIREMENTS:
60
+ Hoe is required but only for running the tests.
61
+
62
+ == INSTALL:
63
+ sudo gem install assertions
64
+
65
+ == AUTHORS:
66
+ === Designing Patterns
67
+ * Homepage: http://www.designingpatterns.com
68
+ * Blogs: http://blogs.designingpatterns.com
69
+ * Twitter: http://www.twitter.com/TonyDesignP
70
+
71
+ == SUPPORT:
72
+ Please post questions, concerns, or requests for enhancement to the forums on
73
+ the project page. Alternatively, direct contact information for
74
+ Designing Patterns can be found on the project page for this gem.
75
+
76
+ == ENHANCEMENTS:
77
+ Please feel free to contact us with any ideas; we will try our best to
78
+ enhance the software and respond to user requests. Of course, we are more
79
+ likely to work on a particular enhancement if we know that there are users
80
+ who want it. Designing Patterns provides contracting and consulting services,
81
+ so if there is an enhancement that *must* get done (and in a specified time
82
+ frame), please inquire about retaining our services!
83
+
84
+ == LICENSE:
85
+ The license text can be found in the +LICENSE+ file at the root of the
86
+ distribution.
87
+
88
+ This package is licensed with an MIT license:
89
+
90
+ Copyright (c) 2008-2009 Designing Patterns
91
+
92
+ Permission is hereby granted, free of charge, to any person obtaining
93
+ a copy of this software and associated documentation files (the
94
+ 'Software'), to deal in the Software without restriction, including
95
+ without limitation the rights to use, copy, modify, merge, publish,
96
+ distribute, sublicense, and/or sell copies of the Software, and to
97
+ permit persons to whom the Software is furnished to do so, subject to
98
+ the following conditions:
99
+
100
+ The above copyright notice and this permission notice shall be
101
+ included in all copies or substantial portions of the Software.
102
+
103
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
104
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
105
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
106
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
107
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
108
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
109
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
110
+
111
+ == SHARE AND ENJOY!
@@ -0,0 +1,13 @@
1
+ # -*- ruby -*-
2
+ require 'rubygems'
3
+ require 'hoe'
4
+
5
+ PROJECT_NAME = 'rubemacs'
6
+
7
+ Hoe.spec(PROJECT_NAME) do |p|
8
+ p.url = "http://#{PROJECT_NAME}.rubyforge.org"
9
+ p.version = "1.0.0"
10
+ p.developer('DesigningPatterns', 'technical.inquiries@designingpatterns.com')
11
+ end
12
+
13
+ # vim: syntax=Ruby
File without changes
@@ -0,0 +1,45 @@
1
+ ;
2
+ ; This function invokes a rubemacs Ruby method on a region.
3
+ ; The contents of the region is passed as the first argument
4
+ ; to the region, and the output of the method replaces the
5
+ ; region.
6
+ ;
7
+ (defun call-ruby-on-region (method_name method_arg_list)
8
+ (interactive (list (read-string "Ruby Method Name: ")
9
+ (split-string (read-string "Arguments: "))))
10
+
11
+ ;
12
+ ; Apply is used here so that method_arg_list will be
13
+ ; unpacked by elisp into extra arguments.
14
+ ;
15
+ (apply 'call-process-region
16
+ (mark)
17
+ (point)
18
+ "rubemacs"
19
+ t
20
+ t
21
+ nil
22
+ method_name
23
+ method_arg_list)
24
+ )
25
+
26
+ ;
27
+ ; This function invokes a rubemacs Ruby method. The output
28
+ ; of the method is placed at the current cursor position.
29
+ ;
30
+ (defun call-ruby (method_name method_arg_list)
31
+ (interactive (list (read-string "Ruby Method Name: ")
32
+ (split-string (read-string "Arguments: "))))
33
+
34
+ ;
35
+ ; Apply is used here so that method_arg_list will be
36
+ ; unpacked by elisp into extra arguments.
37
+ ;
38
+ (apply 'call-process
39
+ "rubemacs"
40
+ nil
41
+ t
42
+ nil
43
+ method_name
44
+ method_arg_list)
45
+ )
File without changes
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubemacs
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - DesigningPatterns
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-10-21 00:00:00 -04:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hoe
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.3.3
24
+ version:
25
+ description: |-
26
+ This package adds some additional assertions to Test::Unit::Assertions,
27
+ including:
28
+ * Assertions for all of the comparison operators
29
+ (assert_greater_than, assert_less_than_or_equal_to,
30
+ etc.). Shorter aliases also are provided for these (assert_gt,
31
+ assert_le, etc.).
32
+ * An assertion that verifies that a given block raises a specified exception
33
+ with a specified message (assert_raise_message).
34
+ This allows full testing of error messages.
35
+ * An assertion that verifies that a given block contains an assertion that
36
+ fails (assert_fail), which can be used to test new assertions.
37
+ email:
38
+ - technical.inquiries@designingpatterns.com
39
+ executables:
40
+ - rubemacs.rb
41
+ extensions: []
42
+
43
+ extra_rdoc_files:
44
+ - History.txt
45
+ - Manifest.txt
46
+ - README.txt
47
+ files:
48
+ - History.txt
49
+ - LICENSE
50
+ - Manifest.txt
51
+ - README.txt
52
+ - Rakefile
53
+ - bin/rubemacs.rb
54
+ - elisp/rubemacs.el
55
+ - lib/rubemacs.rb
56
+ has_rdoc: true
57
+ homepage: http://rubemacs.rubyforge.org
58
+ licenses: []
59
+
60
+ post_install_message:
61
+ rdoc_options:
62
+ - --main
63
+ - README.txt
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: "0"
71
+ version:
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: "0"
77
+ version:
78
+ requirements: []
79
+
80
+ rubyforge_project: rubemacs
81
+ rubygems_version: 1.3.5
82
+ signing_key:
83
+ specification_version: 3
84
+ summary: "This package adds some additional assertions to Test::Unit::Assertions, including: * Assertions for all of the comparison operators (assert_greater_than, assert_less_than_or_equal_to, etc.)"
85
+ test_files: []
86
+