modalsupport 0.4.0 → 0.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.
- data/README.rdoc +4 -2
- data/Rakefile +0 -3
- data/VERSION +1 -1
- data/lib/modalsupport/full.rb +11 -0
- data/lib/modalsupport.rb +0 -2
- data/modalsupport.gemspec +4 -9
- metadata +77 -93
data/README.rdoc
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
= modalsupport
|
2
2
|
|
3
|
-
Some simple Ruby core extensions.
|
4
|
-
|
3
|
+
Some simple Ruby core extensions.
|
4
|
+
|
5
|
+
To load ActiveSupport and HoboSupport in addition to ModalSupport use:
|
6
|
+
require 'modalsupport/full'
|
5
7
|
|
6
8
|
== Note on Patches/Pull Requests
|
7
9
|
|
data/Rakefile
CHANGED
@@ -11,9 +11,6 @@ begin
|
|
11
11
|
gem.homepage = "http://github.com/jgoizueta/modalsupport"
|
12
12
|
gem.authors = ["Javier Goizueta"]
|
13
13
|
gem.add_development_dependency "shoulda"
|
14
|
-
gem.add_dependency "hobosupport"
|
15
|
-
gem.add_dependency "activesupport"
|
16
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
17
14
|
end
|
18
15
|
Jeweler::GemcutterTasks.new
|
19
16
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'modalsupport'
|
2
|
+
begin
|
3
|
+
require 'active_support'
|
4
|
+
rescue LoadError
|
5
|
+
puts "ActiveSupport not available. Install it with: gem install activesupport"
|
6
|
+
end
|
7
|
+
begin
|
8
|
+
require 'hobosupport'
|
9
|
+
rescue LoadError
|
10
|
+
puts "HoboSupport not available. Install it with: gem install hobosupport"
|
11
|
+
end
|
data/lib/modalsupport.rb
CHANGED
data/modalsupport.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{modalsupport}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.5.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Javier Goizueta"]
|
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
"lib/modalsupport.rb",
|
27
27
|
"lib/modalsupport/enumerable.rb",
|
28
28
|
"lib/modalsupport/file.rb",
|
29
|
+
"lib/modalsupport/full.rb",
|
29
30
|
"lib/modalsupport/mixins/bracket_constructor.rb",
|
30
31
|
"lib/modalsupport/mixins/state_equivalent.rb",
|
31
32
|
"lib/modalsupport/regexp.rb",
|
@@ -48,7 +49,7 @@ Gem::Specification.new do |s|
|
|
48
49
|
s.homepage = %q{http://github.com/jgoizueta/modalsupport}
|
49
50
|
s.rdoc_options = ["--charset=UTF-8"]
|
50
51
|
s.require_paths = ["lib"]
|
51
|
-
s.rubygems_version = %q{1.3.
|
52
|
+
s.rubygems_version = %q{1.3.7}
|
52
53
|
s.summary = %q{simple extensions to core classes}
|
53
54
|
s.test_files = [
|
54
55
|
"test/helper.rb",
|
@@ -67,19 +68,13 @@ Gem::Specification.new do |s|
|
|
67
68
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
68
69
|
s.specification_version = 3
|
69
70
|
|
70
|
-
if Gem::Version.new(Gem::
|
71
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
71
72
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
72
|
-
s.add_runtime_dependency(%q<hobosupport>, [">= 0"])
|
73
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
74
73
|
else
|
75
74
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
76
|
-
s.add_dependency(%q<hobosupport>, [">= 0"])
|
77
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
78
75
|
end
|
79
76
|
else
|
80
77
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
81
|
-
s.add_dependency(%q<hobosupport>, [">= 0"])
|
82
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
83
78
|
end
|
84
79
|
end
|
85
80
|
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modalsupport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 11
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
version: 0.
|
7
|
+
- 0
|
8
|
+
- 5
|
9
|
+
- 0
|
10
|
+
version: 0.5.0
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
|
-
|
13
|
+
- Javier Goizueta
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
@@ -17,42 +18,20 @@ cert_chain: []
|
|
17
18
|
date: 2010-06-09 00:00:00 +02:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
prerelease: false
|
35
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
segments:
|
40
|
-
- 0
|
41
|
-
version: "0"
|
42
|
-
type: :runtime
|
43
|
-
version_requirements: *id002
|
44
|
-
- !ruby/object:Gem::Dependency
|
45
|
-
name: activesupport
|
46
|
-
prerelease: false
|
47
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
48
|
-
requirements:
|
49
|
-
- - ">="
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
segments:
|
52
|
-
- 0
|
53
|
-
version: "0"
|
54
|
-
type: :runtime
|
55
|
-
version_requirements: *id003
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: shoulda
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
56
35
|
description: additional support extensions to ActiveSupport and HoboSupport
|
57
36
|
email: jgoizueta@gmail.com
|
58
37
|
executables: []
|
@@ -60,74 +39,79 @@ executables: []
|
|
60
39
|
extensions: []
|
61
40
|
|
62
41
|
extra_rdoc_files:
|
63
|
-
|
64
|
-
|
42
|
+
- LICENSE
|
43
|
+
- README.rdoc
|
65
44
|
files:
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
45
|
+
- .document
|
46
|
+
- .gitignore
|
47
|
+
- LICENSE
|
48
|
+
- README.rdoc
|
49
|
+
- Rakefile
|
50
|
+
- VERSION
|
51
|
+
- lib/modalsupport.rb
|
52
|
+
- lib/modalsupport/enumerable.rb
|
53
|
+
- lib/modalsupport/file.rb
|
54
|
+
- lib/modalsupport/full.rb
|
55
|
+
- lib/modalsupport/mixins/bracket_constructor.rb
|
56
|
+
- lib/modalsupport/mixins/state_equivalent.rb
|
57
|
+
- lib/modalsupport/regexp.rb
|
58
|
+
- lib/modalsupport/ruby_engine.rb
|
59
|
+
- lib/modalsupport/ruby_platform.rb
|
60
|
+
- lib/modalsupport/ruby_version.rb
|
61
|
+
- lib/modalsupport/string.rb
|
62
|
+
- modalsupport.gemspec
|
63
|
+
- test/helper.rb
|
64
|
+
- test/test_bracket_constructor.rb
|
65
|
+
- test/test_grep.rb
|
66
|
+
- test/test_gsub.rb
|
67
|
+
- test/test_match.rb
|
68
|
+
- test/test_product.rb
|
69
|
+
- test/test_relative_path.rb
|
70
|
+
- test/test_slice.rb
|
71
|
+
- test/test_state_equivalent.rb
|
72
|
+
- test/test_unindent.rb
|
93
73
|
has_rdoc: true
|
94
74
|
homepage: http://github.com/jgoizueta/modalsupport
|
95
75
|
licenses: []
|
96
76
|
|
97
77
|
post_install_message:
|
98
78
|
rdoc_options:
|
99
|
-
|
79
|
+
- --charset=UTF-8
|
100
80
|
require_paths:
|
101
|
-
|
81
|
+
- lib
|
102
82
|
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
103
84
|
requirements:
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 3
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
version: "0"
|
109
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
+
none: false
|
110
93
|
requirements:
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
hash: 3
|
97
|
+
segments:
|
98
|
+
- 0
|
99
|
+
version: "0"
|
116
100
|
requirements: []
|
117
101
|
|
118
102
|
rubyforge_project:
|
119
|
-
rubygems_version: 1.3.
|
103
|
+
rubygems_version: 1.3.7
|
120
104
|
signing_key:
|
121
105
|
specification_version: 3
|
122
106
|
summary: simple extensions to core classes
|
123
107
|
test_files:
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
108
|
+
- test/helper.rb
|
109
|
+
- test/test_bracket_constructor.rb
|
110
|
+
- test/test_grep.rb
|
111
|
+
- test/test_gsub.rb
|
112
|
+
- test/test_match.rb
|
113
|
+
- test/test_product.rb
|
114
|
+
- test/test_relative_path.rb
|
115
|
+
- test/test_slice.rb
|
116
|
+
- test/test_state_equivalent.rb
|
117
|
+
- test/test_unindent.rb
|