super_list 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/Gemfile +1 -4
  2. data/Gemfile.lock +72 -87
  3. data/Rakefile +1 -26
  4. data/VERSION +1 -1
  5. data/lib/super_list.rb +10 -2
  6. metadata +53 -130
data/Gemfile CHANGED
@@ -7,9 +7,6 @@ source "http://rubygems.org"
7
7
  group :development do
8
8
  gem "bundler", "~> 1.0.0"
9
9
  gem "jeweler", "~> 1.5.2"
10
- gem "rcov", ">= 0"
11
- gem "sqlite3-ruby", :require => "sqlite3"
12
- gem "rails", "3.0.5"
13
- gem "capybara", ">= 0.4.0"
10
+ gem "rails", "3.1.3"
14
11
  gem "factory_girl"
15
12
  end
@@ -1,112 +1,97 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- abstract (1.0.0)
5
- actionmailer (3.0.5)
6
- actionpack (= 3.0.5)
7
- mail (~> 2.2.15)
8
- actionpack (3.0.5)
9
- activemodel (= 3.0.5)
10
- activesupport (= 3.0.5)
11
- builder (~> 2.1.2)
12
- erubis (~> 2.6.6)
13
- i18n (~> 0.4)
14
- rack (~> 1.2.1)
15
- rack-mount (~> 0.6.13)
16
- rack-test (~> 0.5.7)
17
- tzinfo (~> 0.3.23)
18
- activemodel (3.0.5)
19
- activesupport (= 3.0.5)
20
- builder (~> 2.1.2)
21
- i18n (~> 0.4)
22
- activerecord (3.0.5)
23
- activemodel (= 3.0.5)
24
- activesupport (= 3.0.5)
25
- arel (~> 2.0.2)
26
- tzinfo (~> 0.3.23)
27
- activeresource (3.0.5)
28
- activemodel (= 3.0.5)
29
- activesupport (= 3.0.5)
30
- activesupport (3.0.5)
31
- arel (2.0.9)
32
- builder (2.1.2)
33
- capybara (0.4.1.1)
34
- celerity (>= 0.7.9)
35
- culerity (>= 0.2.4)
36
- mime-types (>= 1.16)
37
- nokogiri (>= 1.3.3)
38
- rack (>= 1.0.0)
39
- rack-test (>= 0.5.4)
40
- selenium-webdriver (>= 0.0.27)
41
- xpath (~> 0.1.3)
42
- celerity (0.8.7)
43
- childprocess (0.1.6)
44
- ffi (~> 0.6.3)
45
- culerity (0.2.15)
46
- erubis (2.6.6)
47
- abstract (>= 1.0.0)
48
- factory_girl (1.3.3)
49
- ffi (0.6.3)
50
- rake (>= 0.8.7)
4
+ actionmailer (3.1.3)
5
+ actionpack (= 3.1.3)
6
+ mail (~> 2.3.0)
7
+ actionpack (3.1.3)
8
+ activemodel (= 3.1.3)
9
+ activesupport (= 3.1.3)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ i18n (~> 0.6)
13
+ rack (~> 1.3.5)
14
+ rack-cache (~> 1.1)
15
+ rack-mount (~> 0.8.2)
16
+ rack-test (~> 0.6.1)
17
+ sprockets (~> 2.0.3)
18
+ activemodel (3.1.3)
19
+ activesupport (= 3.1.3)
20
+ builder (~> 3.0.0)
21
+ i18n (~> 0.6)
22
+ activerecord (3.1.3)
23
+ activemodel (= 3.1.3)
24
+ activesupport (= 3.1.3)
25
+ arel (~> 2.2.1)
26
+ tzinfo (~> 0.3.29)
27
+ activeresource (3.1.3)
28
+ activemodel (= 3.1.3)
29
+ activesupport (= 3.1.3)
30
+ activesupport (3.1.3)
31
+ multi_json (~> 1.0)
32
+ arel (2.2.1)
33
+ builder (3.0.0)
34
+ erubis (2.7.0)
35
+ factory_girl (2.3.2)
36
+ activesupport
51
37
  git (1.2.5)
52
- i18n (0.5.0)
38
+ hike (1.2.1)
39
+ i18n (0.6.0)
53
40
  jeweler (1.5.2)
54
41
  bundler (~> 1.0.0)
55
42
  git (>= 1.2.5)
56
43
  rake
57
- json_pure (1.5.1)
58
- mail (2.2.15)
59
- activesupport (>= 2.3.6)
44
+ json (1.6.4)
45
+ mail (2.3.0)
60
46
  i18n (>= 0.4.0)
61
47
  mime-types (~> 1.16)
62
48
  treetop (~> 1.4.8)
63
- mime-types (1.16)
64
- nokogiri (1.4.4)
65
- polyglot (0.3.1)
66
- rack (1.2.1)
67
- rack-mount (0.6.13)
49
+ mime-types (1.17.2)
50
+ multi_json (1.0.4)
51
+ polyglot (0.3.3)
52
+ rack (1.3.6)
53
+ rack-cache (1.1)
54
+ rack (>= 0.4)
55
+ rack-mount (0.8.3)
68
56
  rack (>= 1.0.0)
69
- rack-test (0.5.7)
57
+ rack-ssl (1.3.2)
58
+ rack
59
+ rack-test (0.6.1)
70
60
  rack (>= 1.0)
71
- rails (3.0.5)
72
- actionmailer (= 3.0.5)
73
- actionpack (= 3.0.5)
74
- activerecord (= 3.0.5)
75
- activeresource (= 3.0.5)
76
- activesupport (= 3.0.5)
61
+ rails (3.1.3)
62
+ actionmailer (= 3.1.3)
63
+ actionpack (= 3.1.3)
64
+ activerecord (= 3.1.3)
65
+ activeresource (= 3.1.3)
66
+ activesupport (= 3.1.3)
77
67
  bundler (~> 1.0)
78
- railties (= 3.0.5)
79
- railties (3.0.5)
80
- actionpack (= 3.0.5)
81
- activesupport (= 3.0.5)
68
+ railties (= 3.1.3)
69
+ railties (3.1.3)
70
+ actionpack (= 3.1.3)
71
+ activesupport (= 3.1.3)
72
+ rack-ssl (~> 1.3.2)
82
73
  rake (>= 0.8.7)
83
- thor (~> 0.14.4)
84
- rake (0.8.7)
85
- rcov (0.9.9)
86
- rubyzip (0.9.4)
87
- selenium-webdriver (0.1.2)
88
- childprocess (~> 0.1.5)
89
- ffi (~> 0.6.3)
90
- json_pure
91
- rubyzip
92
- sqlite3 (1.3.3)
93
- sqlite3-ruby (1.3.3)
94
- sqlite3 (>= 1.3.3)
74
+ rdoc (~> 3.4)
75
+ thor (~> 0.14.6)
76
+ rake (0.9.2.2)
77
+ rdoc (3.12)
78
+ json (~> 1.4)
79
+ sprockets (2.0.3)
80
+ hike (~> 1.2)
81
+ rack (~> 1.0)
82
+ tilt (~> 1.1, != 1.3.0)
95
83
  thor (0.14.6)
96
- treetop (1.4.9)
84
+ tilt (1.3.3)
85
+ treetop (1.4.10)
86
+ polyglot
97
87
  polyglot (>= 0.3.1)
98
- tzinfo (0.3.24)
99
- xpath (0.1.3)
100
- nokogiri (~> 1.3)
88
+ tzinfo (0.3.31)
101
89
 
102
90
  PLATFORMS
103
91
  ruby
104
92
 
105
93
  DEPENDENCIES
106
94
  bundler (~> 1.0.0)
107
- capybara (>= 0.4.0)
108
95
  factory_girl
109
96
  jeweler (~> 1.5.2)
110
- rails (= 3.0.5)
111
- rcov
112
- sqlite3-ruby
97
+ rails (= 3.1.3)
data/Rakefile CHANGED
@@ -24,30 +24,5 @@ Jeweler::Tasks.new do |gem|
24
24
  # gem.add_runtime_dependency 'jabber4r', '> 0.1'
25
25
  # gem.add_development_dependency 'rspec', '> 1.2.3'
26
26
  end
27
- Jeweler::RubygemsDotOrgTasks.new
28
-
29
- require 'rake/testtask'
30
- Rake::TestTask.new(:test) do |test|
31
- test.libs << 'lib' << 'test'
32
- test.pattern = 'test/**/*_test.rb'
33
- test.verbose = true
34
- end
35
-
36
- require 'rcov/rcovtask'
37
- Rcov::RcovTask.new do |test|
38
- test.libs << 'test'
39
- test.pattern = 'test/**/test_*.rb'
40
- test.verbose = true
41
- end
42
27
 
43
- task :default => :test
44
-
45
- require 'rake/rdoctask'
46
- Rake::RDocTask.new do |rdoc|
47
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
-
49
- rdoc.rdoc_dir = 'rdoc'
50
- rdoc.title = "super_list #{version}"
51
- rdoc.rdoc_files.include('README*')
52
- rdoc.rdoc_files.include('lib/**/*.rb')
53
- end
28
+ Jeweler::RubygemsDotOrgTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.4.2
@@ -53,11 +53,19 @@ class SuperList
53
53
  end
54
54
 
55
55
  def map(format=nil, opts={}, &blk)
56
- keys.zip(values(format, opts)).map &blk
56
+ if block_given?
57
+ keys.zip(values(format, opts)).map &blk
58
+ else
59
+ keys.zip(values(format, opts))
60
+ end
57
61
  end
58
62
 
59
63
  def select_options(format=nil, opts={}, &blk)
60
- values(format, opts).zip(keys).map &blk
64
+ if block_given?
65
+ values(format, opts).zip(keys).map &blk
66
+ else
67
+ values(format, opts).zip(keys)
68
+ end
61
69
  end
62
70
 
63
71
  def options
metadata CHANGED
@@ -1,139 +1,68 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: super_list
3
- version: !ruby/object:Gem::Version
4
- hash: 5
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.4.2
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 4
9
- - 1
10
- version: 1.4.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Jinzhu
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-03-16 00:00:00 +08:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- type: :development
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-01-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: &22776200 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 23
29
- segments:
30
- - 1
31
- - 0
32
- - 0
20
+ - !ruby/object:Gem::Version
33
21
  version: 1.0.0
34
- requirement: *id001
35
- prerelease: false
36
- name: bundler
37
- - !ruby/object:Gem::Dependency
38
22
  type: :development
39
- version_requirements: &id002 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: *22776200
25
+ - !ruby/object:Gem::Dependency
26
+ name: jeweler
27
+ requirement: &22775220 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
29
+ requirements:
42
30
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 7
45
- segments:
46
- - 1
47
- - 5
48
- - 2
31
+ - !ruby/object:Gem::Version
49
32
  version: 1.5.2
50
- requirement: *id002
51
- prerelease: false
52
- name: jeweler
53
- - !ruby/object:Gem::Dependency
54
33
  type: :development
55
- version_requirements: &id003 !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 0
63
- version: "0"
64
- requirement: *id003
65
34
  prerelease: false
66
- name: rcov
67
- - !ruby/object:Gem::Dependency
68
- type: :development
69
- version_requirements: &id004 !ruby/object:Gem::Requirement
35
+ version_requirements: *22775220
36
+ - !ruby/object:Gem::Dependency
37
+ name: rails
38
+ requirement: &22774420 !ruby/object:Gem::Requirement
70
39
  none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 3
75
- segments:
76
- - 0
77
- version: "0"
78
- requirement: *id004
79
- prerelease: false
80
- name: sqlite3-ruby
81
- - !ruby/object:Gem::Dependency
40
+ requirements:
41
+ - - =
42
+ - !ruby/object:Gem::Version
43
+ version: 3.1.3
82
44
  type: :development
83
- version_requirements: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - "="
87
- - !ruby/object:Gem::Version
88
- hash: 13
89
- segments:
90
- - 3
91
- - 0
92
- - 5
93
- version: 3.0.5
94
- requirement: *id005
95
45
  prerelease: false
96
- name: rails
97
- - !ruby/object:Gem::Dependency
98
- type: :development
99
- version_requirements: &id006 !ruby/object:Gem::Requirement
46
+ version_requirements: *22774420
47
+ - !ruby/object:Gem::Dependency
48
+ name: factory_girl
49
+ requirement: &22912220 !ruby/object:Gem::Requirement
100
50
  none: false
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- hash: 15
105
- segments:
106
- - 0
107
- - 4
108
- - 0
109
- version: 0.4.0
110
- requirement: *id006
111
- prerelease: false
112
- name: capybara
113
- - !ruby/object:Gem::Dependency
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
114
55
  type: :development
115
- version_requirements: &id007 !ruby/object:Gem::Requirement
116
- none: false
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- hash: 3
121
- segments:
122
- - 0
123
- version: "0"
124
- requirement: *id007
125
56
  prerelease: false
126
- name: factory_girl
57
+ version_requirements: *22912220
127
58
  description: super list
128
59
  email: wosmvp@gmail.com
129
60
  executables: []
130
-
131
61
  extensions: []
132
-
133
- extra_rdoc_files:
62
+ extra_rdoc_files:
134
63
  - LICENSE.txt
135
64
  - README.rdoc
136
- files:
65
+ files:
137
66
  - .document
138
67
  - Gemfile
139
68
  - Gemfile.lock
@@ -184,41 +113,35 @@ files:
184
113
  - test/super_list_test.rb
185
114
  - test/support/integration_case.rb
186
115
  - test/test_helper.rb
187
- has_rdoc: true
188
116
  homepage: http://github.com/jinzhu/super_list
189
- licenses:
117
+ licenses:
190
118
  - MIT
191
119
  post_install_message:
192
120
  rdoc_options: []
193
-
194
- require_paths:
121
+ require_paths:
195
122
  - lib
196
- required_ruby_version: !ruby/object:Gem::Requirement
123
+ required_ruby_version: !ruby/object:Gem::Requirement
197
124
  none: false
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- hash: 3
202
- segments:
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ segments:
203
130
  - 0
204
- version: "0"
205
- required_rubygems_version: !ruby/object:Gem::Requirement
131
+ hash: 2669959891394468358
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
206
133
  none: false
207
- requirements:
208
- - - ">="
209
- - !ruby/object:Gem::Version
210
- hash: 3
211
- segments:
212
- - 0
213
- version: "0"
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
214
138
  requirements: []
215
-
216
139
  rubyforge_project:
217
- rubygems_version: 1.4.2
140
+ rubygems_version: 1.8.10
218
141
  signing_key:
219
142
  specification_version: 3
220
143
  summary: super list
221
- test_files:
144
+ test_files:
222
145
  - test/dummy/app/controllers/application_controller.rb
223
146
  - test/dummy/app/helpers/application_helper.rb
224
147
  - test/dummy/app/models/user.rb