sugar-high 0.6.3 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/Gemfile +0 -2
- data/VERSION +1 -1
- data/lib/sugar-high/alias.rb +17 -17
- data/lib/sugar-high/arguments.rb +6 -6
- data/lib/sugar-high/array.rb +23 -19
- data/lib/sugar-high/blank.rb +2 -2
- data/lib/sugar-high/delegate.rb +2 -2
- data/lib/sugar-high/enumerable.rb +9 -9
- data/lib/sugar-high/file_ext.rb +1 -1
- data/lib/sugar-high/hash.rb +5 -5
- data/lib/sugar-high/includes.rb +7 -7
- data/lib/sugar-high/math.rb +1 -1
- data/lib/sugar-high/methods.rb +1 -1
- data/lib/sugar-high/module.rb +4 -4
- data/lib/sugar-high/numeric.rb +4 -4
- data/lib/sugar-high/path.rb +10 -10
- data/lib/sugar-high/properties.rb +12 -12
- data/lib/sugar-high/regexp.rb +3 -3
- data/lib/sugar-high/rspec/matchers/have_aliases.rb +8 -8
- data/lib/sugar-high/string.rb +1 -1
- data/spec/sugar-high/alias_spec.rb +21 -21
- data/spec/sugar-high/arguments_spec.rb +16 -16
- data/spec/sugar-high/array_spec.rb +39 -33
- data/spec/sugar-high/blank_spec.rb +3 -3
- data/spec/sugar-high/delegate_spec.rb +2 -2
- data/spec/sugar-high/file_spec.rb +4 -4
- data/spec/sugar-high/hash_spec.rb +8 -3
- data/spec/sugar-high/kind_of_spec.rb +38 -39
- data/spec/sugar-high/methods_spec.rb +5 -5
- data/spec/sugar-high/numeric_spec.rb +4 -5
- data/spec/sugar-high/path_spec.rb +20 -20
- data/spec/sugar-high/properties_spec.rb +11 -11
- data/spec/sugar-high/rails/concerns_spec.rb +3 -3
- data/spec/sugar-high/regexp_spec.rb +2 -2
- data/sugar-high.gemspec +11 -14
- metadata +38 -24
- data/spec/sugar-high/delegate_defined_spec.rb +0 -14
@@ -20,14 +20,14 @@ describe "SugarHigh Rails" do
|
|
20
20
|
FixtureUser.new.should respond_to("method_from_#{concern}_concern")
|
21
21
|
end
|
22
22
|
end
|
23
|
-
end
|
24
|
-
|
23
|
+
end
|
24
|
+
|
25
25
|
describe "#shared_concerns" do
|
26
26
|
it 'should require files from shared/#{concern}' do
|
27
27
|
pending "How to be with namespaces? Is such raw implementation enough? Or just drop this kind of method?"
|
28
28
|
end
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
describe "#include_shared_concerns" do
|
32
32
|
it 'should require and include from shared/#{concern}' do
|
33
33
|
FixtureUser.new.should respond_to("method_from_shared_concern")
|
@@ -19,8 +19,8 @@ describe "SugarHigh" do
|
|
19
19
|
describe 'Array#grep_it' do
|
20
20
|
it "should grep using a regexp" do
|
21
21
|
['hello', 'hello you', 'not you'].grep_it(/hello/).size.should == 2
|
22
|
-
['hello', 'hello you', 'not you'].grep_it('hello').size.should == 2
|
23
|
-
['hello', 'hello you', 'not you'].grep_it(nil).size.should == 3
|
22
|
+
['hello', 'hello you', 'not you'].grep_it('hello').size.should == 2
|
23
|
+
['hello', 'hello you', 'not you'].grep_it(nil).size.should == 3
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
data/sugar-high.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.
|
7
|
+
s.name = "sugar-high"
|
8
|
+
s.version = "0.7.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
11
|
+
s.authors = ["Kristian Mandrup"]
|
12
|
+
s.date = "2012-06-28"
|
13
|
+
s.description = "More Ruby sugar - inspired by the 'zuker' project"
|
14
|
+
s.email = "kmandrup@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
17
|
"README.textile"
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".rspec",
|
22
|
+
"CHANGELOG.md",
|
22
23
|
"Gemfile",
|
23
24
|
"LICENSE",
|
24
25
|
"README.textile",
|
@@ -60,7 +61,6 @@ Gem::Specification.new do |s|
|
|
60
61
|
"spec/sugar-high/arguments_spec.rb",
|
61
62
|
"spec/sugar-high/array_spec.rb",
|
62
63
|
"spec/sugar-high/blank_spec.rb",
|
63
|
-
"spec/sugar-high/delegate_defined_spec.rb",
|
64
64
|
"spec/sugar-high/delegate_spec.rb",
|
65
65
|
"spec/sugar-high/dsl_spec.rb",
|
66
66
|
"spec/sugar-high/file_spec.rb",
|
@@ -81,23 +81,21 @@ Gem::Specification.new do |s|
|
|
81
81
|
"spec/sugar-high/string_spec.rb",
|
82
82
|
"sugar-high.gemspec"
|
83
83
|
]
|
84
|
-
s.homepage =
|
85
|
-
s.require_paths = [
|
86
|
-
s.rubygems_version =
|
87
|
-
s.summary =
|
84
|
+
s.homepage = "http://github.com/kristianmandrup/sugar-high"
|
85
|
+
s.require_paths = ["lib"]
|
86
|
+
s.rubygems_version = "1.8.24"
|
87
|
+
s.summary = "Ruby convenience sugar packs!"
|
88
88
|
|
89
89
|
if s.respond_to? :specification_version then
|
90
90
|
s.specification_version = 3
|
91
91
|
|
92
92
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
93
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.1"])
|
94
93
|
s.add_development_dependency(%q<rspec>, [">= 2.4.0"])
|
95
94
|
s.add_development_dependency(%q<rails>, [">= 3.0.1"])
|
96
95
|
s.add_development_dependency(%q<jeweler>, [">= 1.6.4"])
|
97
96
|
s.add_development_dependency(%q<bundler>, [">= 1.0.1"])
|
98
97
|
s.add_development_dependency(%q<rdoc>, [">= 0"])
|
99
98
|
else
|
100
|
-
s.add_dependency(%q<activesupport>, [">= 3.0.1"])
|
101
99
|
s.add_dependency(%q<rspec>, [">= 2.4.0"])
|
102
100
|
s.add_dependency(%q<rails>, [">= 3.0.1"])
|
103
101
|
s.add_dependency(%q<jeweler>, [">= 1.6.4"])
|
@@ -105,7 +103,6 @@ Gem::Specification.new do |s|
|
|
105
103
|
s.add_dependency(%q<rdoc>, [">= 0"])
|
106
104
|
end
|
107
105
|
else
|
108
|
-
s.add_dependency(%q<activesupport>, [">= 3.0.1"])
|
109
106
|
s.add_dependency(%q<rspec>, [">= 2.4.0"])
|
110
107
|
s.add_dependency(%q<rails>, [">= 3.0.1"])
|
111
108
|
s.add_dependency(%q<jeweler>, [">= 1.6.4"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sugar-high
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,33 +9,27 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement:
|
15
|
+
name: rspec
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
22
|
-
type: :
|
21
|
+
version: 2.4.0
|
22
|
+
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: rspec
|
27
|
-
requirement: &70274745476400 !ruby/object:Gem::Requirement
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
25
|
none: false
|
29
26
|
requirements:
|
30
27
|
- - ! '>='
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: 2.4.0
|
33
|
-
type: :development
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *70274745476400
|
36
30
|
- !ruby/object:Gem::Dependency
|
37
31
|
name: rails
|
38
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
39
33
|
none: false
|
40
34
|
requirements:
|
41
35
|
- - ! '>='
|
@@ -43,10 +37,15 @@ dependencies:
|
|
43
37
|
version: 3.0.1
|
44
38
|
type: :development
|
45
39
|
prerelease: false
|
46
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 3.0.1
|
47
46
|
- !ruby/object:Gem::Dependency
|
48
47
|
name: jeweler
|
49
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
50
49
|
none: false
|
51
50
|
requirements:
|
52
51
|
- - ! '>='
|
@@ -54,10 +53,15 @@ dependencies:
|
|
54
53
|
version: 1.6.4
|
55
54
|
type: :development
|
56
55
|
prerelease: false
|
57
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.6.4
|
58
62
|
- !ruby/object:Gem::Dependency
|
59
63
|
name: bundler
|
60
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
61
65
|
none: false
|
62
66
|
requirements:
|
63
67
|
- - ! '>='
|
@@ -65,10 +69,15 @@ dependencies:
|
|
65
69
|
version: 1.0.1
|
66
70
|
type: :development
|
67
71
|
prerelease: false
|
68
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.0.1
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: rdoc
|
71
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
72
81
|
none: false
|
73
82
|
requirements:
|
74
83
|
- - ! '>='
|
@@ -76,7 +85,12 @@ dependencies:
|
|
76
85
|
version: '0'
|
77
86
|
type: :development
|
78
87
|
prerelease: false
|
79
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
80
94
|
description: More Ruby sugar - inspired by the 'zuker' project
|
81
95
|
email: kmandrup@gmail.com
|
82
96
|
executables: []
|
@@ -87,6 +101,7 @@ extra_rdoc_files:
|
|
87
101
|
files:
|
88
102
|
- .document
|
89
103
|
- .rspec
|
104
|
+
- CHANGELOG.md
|
90
105
|
- Gemfile
|
91
106
|
- LICENSE
|
92
107
|
- README.textile
|
@@ -128,7 +143,6 @@ files:
|
|
128
143
|
- spec/sugar-high/arguments_spec.rb
|
129
144
|
- spec/sugar-high/array_spec.rb
|
130
145
|
- spec/sugar-high/blank_spec.rb
|
131
|
-
- spec/sugar-high/delegate_defined_spec.rb
|
132
146
|
- spec/sugar-high/delegate_spec.rb
|
133
147
|
- spec/sugar-high/dsl_spec.rb
|
134
148
|
- spec/sugar-high/file_spec.rb
|
@@ -162,7 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
176
|
version: '0'
|
163
177
|
segments:
|
164
178
|
- 0
|
165
|
-
hash:
|
179
|
+
hash: 2519562301567009285
|
166
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
181
|
none: false
|
168
182
|
requirements:
|
@@ -171,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
185
|
version: '0'
|
172
186
|
requirements: []
|
173
187
|
rubyforge_project:
|
174
|
-
rubygems_version: 1.8.
|
188
|
+
rubygems_version: 1.8.24
|
175
189
|
signing_key:
|
176
190
|
specification_version: 3
|
177
191
|
summary: Ruby convenience sugar packs!
|