dm-chunked_query 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +1 -1
- data/.gitignore +3 -0
- data/ChangeLog.md +7 -0
- data/Gemfile +5 -5
- data/LICENSE.txt +1 -1
- data/README.md +5 -5
- data/Rakefile +6 -6
- data/dm-chunked_query.gemspec +103 -13
- data/gemspec.yml +3 -5
- data/lib/dm-chunked_query.rb +1 -0
- data/lib/dm-chunked_query/version.rb +6 -0
- metadata +72 -67
data/.document
CHANGED
data/.gitignore
ADDED
data/ChangeLog.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
### 0.3.1 / 2012-05-27
|
2
|
+
|
3
|
+
* Added {DataMapper::ChunkedQuery::VERSION}.
|
4
|
+
* Replaced ore-tasks with
|
5
|
+
[rubygems-tasks](https://github.com/postmodern/rubygems-tasks#readme).
|
6
|
+
* Replaced the development dependencies with bunlder ~> 1.0 and yard ~> 0.7.
|
7
|
+
|
1
8
|
### 0.3.0 / 2011-05-16
|
2
9
|
|
3
10
|
* Added {DataMapper::ChunkedQuery::Mixin#each_slice} which calls
|
data/Gemfile
CHANGED
@@ -99,13 +99,13 @@ end
|
|
99
99
|
gem 'dm-core', DM_VERSION, :git => "#{DATAMAPPER}/dm-core.git"
|
100
100
|
|
101
101
|
group :development do
|
102
|
-
gem 'rake', '~> 0.8
|
102
|
+
gem 'rake', '~> 0.8'
|
103
103
|
|
104
|
-
gem '
|
105
|
-
gem 'rspec',
|
104
|
+
gem 'rubygems-tasks', '~> 0.1'
|
105
|
+
gem 'rspec', '~> 2.4'
|
106
106
|
|
107
|
-
gem 'kramdown', '~> 0.12
|
108
|
-
gem 'yard', '~> 0.
|
107
|
+
gem 'kramdown', '~> 0.12'
|
108
|
+
gem 'yard', '~> 0.7'
|
109
109
|
end
|
110
110
|
|
111
111
|
group :datamapper do
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# dm-chunked_query
|
2
2
|
|
3
|
-
* [Source](
|
4
|
-
* [Issues](
|
3
|
+
* [Source](https://github.com/postmodern/dm-chunked_query)
|
4
|
+
* [Issues](https://github.com/postmodern/dm-chunked_query/issues)
|
5
5
|
* [Documentation](http://rubydoc.info/gems/dm-chunked_query/frames)
|
6
6
|
* [Email](mailto:postmodern.mod3 at gmail.com)
|
7
7
|
|
@@ -40,8 +40,8 @@ Process records in batches:
|
|
40
40
|
|
41
41
|
## Requirements
|
42
42
|
|
43
|
-
* [dm-core](
|
44
|
-
* [dm-aggregates](
|
43
|
+
* [dm-core](https://github.com/datamapper/dm-core#readme) ~> 1.0
|
44
|
+
* [dm-aggregates](https://github.com/datamapper/dm-aggregates#readme) ~> 1.0
|
45
45
|
|
46
46
|
## Install
|
47
47
|
|
@@ -49,6 +49,6 @@ Process records in batches:
|
|
49
49
|
|
50
50
|
## Copyright
|
51
51
|
|
52
|
-
Copyright (c) 2011 Hal Brodigan
|
52
|
+
Copyright (c) 2011-2012 Hal Brodigan
|
53
53
|
|
54
54
|
See {file:LICENSE.txt} for details.
|
data/Rakefile
CHANGED
@@ -3,23 +3,23 @@ require 'rubygems'
|
|
3
3
|
begin
|
4
4
|
require 'bundler'
|
5
5
|
rescue LoadError => e
|
6
|
-
|
7
|
-
|
6
|
+
warn e.message
|
7
|
+
warn "Run `gem install bundler` to install Bundler."
|
8
8
|
exit e.status_code
|
9
9
|
end
|
10
10
|
|
11
11
|
begin
|
12
12
|
Bundler.setup(:development)
|
13
13
|
rescue Bundler::BundlerError => e
|
14
|
-
|
15
|
-
|
14
|
+
warn e.message
|
15
|
+
warn "Run `bundle install` to install missing gems"
|
16
16
|
exit e.status_code
|
17
17
|
end
|
18
18
|
|
19
19
|
require 'rake'
|
20
20
|
|
21
|
-
require '
|
22
|
-
|
21
|
+
require 'rubygems/tasks'
|
22
|
+
Gem::Tasks.new
|
23
23
|
|
24
24
|
require 'rspec/core/rake_task'
|
25
25
|
RSpec::Core::RakeTask.new
|
data/dm-chunked_query.gemspec
CHANGED
@@ -1,15 +1,105 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'yaml'
|
4
|
+
|
5
|
+
Gem::Specification.new do |gemspec|
|
6
|
+
root = File.dirname(__FILE__)
|
7
|
+
lib_dir = File.join(root,'lib')
|
8
|
+
files = `git ls-files`.split($/)
|
9
|
+
|
10
|
+
filter_files = lambda { |paths|
|
11
|
+
files & case paths
|
12
|
+
when Array
|
13
|
+
paths
|
14
|
+
when String
|
15
|
+
Dir[paths]
|
16
|
+
end
|
17
|
+
}
|
18
|
+
|
19
|
+
version = {
|
20
|
+
:file => 'dm-chunked_query/version',
|
21
|
+
:constant => 'DataMapper::ChunkedQuery::VERSION'
|
22
|
+
}
|
23
|
+
|
24
|
+
defaults = {
|
25
|
+
'name' => File.basename(root),
|
26
|
+
'files' => files,
|
27
|
+
'require_paths' => ['ext', 'lib'].select { |dir| File.directory?(dir) },
|
28
|
+
'executables' => filter_files['bin/*'].map { |path| File.basename(path) },
|
29
|
+
'test_files' => filter_files['{test/{**/}*_test.rb,spec/{**/}*_spec.rb}'],
|
30
|
+
'doc_files' => filter_files['*.{txt,rdoc,md,markdown,tt,textile}'],
|
31
|
+
'extra_doc_files' => filter_files['*.{txt,rdoc,md,markdown,tt,textile}']
|
32
|
+
}
|
33
|
+
|
34
|
+
metadata = defaults.merge(YAML.load_file('gemspec.yml'))
|
35
|
+
|
36
|
+
gemspec.name = metadata['name']
|
37
|
+
gemspec.version = if metadata['version']
|
38
|
+
metadata['version']
|
39
|
+
else
|
40
|
+
$LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
|
41
|
+
|
42
|
+
require version[:file]
|
43
|
+
eval(version[:constant])
|
44
|
+
end
|
45
|
+
|
46
|
+
gemspec.summary = metadata.fetch('summary',metadata['description'])
|
47
|
+
gemspec.description = metadata.fetch('description',metadata['summary'])
|
48
|
+
|
49
|
+
gemspec.licenses = Array(metadata['license'])
|
50
|
+
gemspec.authors = Array(metadata['authors'])
|
51
|
+
|
52
|
+
gemspec.email = metadata['email']
|
53
|
+
gemspec.homepage = metadata['homepage']
|
54
|
+
|
55
|
+
gemspec.require_paths = Array(metadata['require_paths'])
|
56
|
+
gemspec.files = filter_files[metadata['files']]
|
57
|
+
gemspec.files += Array(metadata['generated_files'])
|
58
|
+
gemspec.executables = metadata['executables']
|
59
|
+
gemspec.extensions = metadata['extensions']
|
60
|
+
|
61
|
+
if Gem::VERSION < '1.7.'
|
62
|
+
gemspec.default_executable = gemspec.executables.first
|
63
|
+
end
|
64
|
+
|
65
|
+
gemspec.test_files = filter_files[metadata['test_files']]
|
66
|
+
gemspec.extra_rdoc_files = Array(metadata['extra_doc_files'])
|
67
|
+
|
68
|
+
gemspec.post_install_message = metadata['post_install_message']
|
69
|
+
gemspec.requirements = metadata['requirements']
|
70
|
+
|
71
|
+
if gemspec.respond_to?(:required_ruby_version=)
|
72
|
+
gemspec.required_ruby_version = metadata['required_ruby_version']
|
73
|
+
end
|
74
|
+
|
75
|
+
if gemspec.respond_to?(:required_rubygems_version=)
|
76
|
+
gemspec.required_rubygems_version = metadata['required_ruby_version']
|
77
|
+
end
|
78
|
+
|
79
|
+
parse_versions = lambda { |versions|
|
80
|
+
case versions
|
81
|
+
when Array
|
82
|
+
versions.map { |v| v.to_s }
|
83
|
+
when String
|
84
|
+
versions.split(/,\s*/)
|
85
|
+
end
|
86
|
+
}
|
87
|
+
|
88
|
+
if metadata['dependencies']
|
89
|
+
metadata['dependencies'].each do |name,versions|
|
90
|
+
gemspec.add_dependency(name,parse_versions[versions])
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
if metadata['runtime_dependencies']
|
95
|
+
metadata['runtime_dependencies'].each do |name,versions|
|
96
|
+
gemspec.add_runtime_dependency(name,parse_versions[versions])
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
if metadata['development_dependencies']
|
101
|
+
metadata['development_dependencies'].each do |name,versions|
|
102
|
+
gemspec.add_development_dependency(name,parse_versions[versions])
|
103
|
+
end
|
14
104
|
end
|
15
105
|
end
|
data/gemspec.yml
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
name: dm-chunked_query
|
2
|
-
version: 0.3.0
|
3
2
|
summary: Allows performing chunked queries with DataMapper.
|
4
3
|
description:
|
5
4
|
Allows performing chunked queries on DataMapper Models or Collections.
|
@@ -7,7 +6,7 @@ description:
|
|
7
6
|
license: MIT
|
8
7
|
authors: Postmodern
|
9
8
|
email: postmodern.mod3@gmail.com
|
10
|
-
homepage:
|
9
|
+
homepage: https://github.com/postmodern/dm-chunked_query#readme
|
11
10
|
has_yard: true
|
12
11
|
|
13
12
|
dependencies:
|
@@ -15,6 +14,5 @@ dependencies:
|
|
15
14
|
dm-aggregates: ~> 1.0
|
16
15
|
|
17
16
|
development_dependencies:
|
18
|
-
|
19
|
-
|
20
|
-
yard: ~> 0.6.0
|
17
|
+
bundler: ~> 1.0
|
18
|
+
yard: ~> 0.7
|
data/lib/dm-chunked_query.rb
CHANGED
metadata
CHANGED
@@ -1,85 +1,91 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-chunked_query
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.1
|
4
5
|
prerelease:
|
5
|
-
version: 0.3.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Postmodern
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-05-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: dm-core
|
17
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
|
-
requirements:
|
18
|
+
requirements:
|
20
19
|
- - ~>
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version:
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.0'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements:
|
26
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
27
31
|
name: dm-aggregates
|
28
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
29
33
|
none: false
|
30
|
-
requirements:
|
34
|
+
requirements:
|
31
35
|
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version:
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '1.0'
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: ore-tasks
|
39
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
41
|
none: false
|
41
|
-
requirements:
|
42
|
+
requirements:
|
42
43
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version:
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: rspec
|
50
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '1.0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: bundler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
51
49
|
none: false
|
52
|
-
requirements:
|
50
|
+
requirements:
|
53
51
|
- - ~>
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version:
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.0'
|
56
54
|
type: :development
|
57
55
|
prerelease: false
|
58
|
-
version_requirements:
|
59
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
60
63
|
name: yard
|
61
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
62
65
|
none: false
|
63
|
-
requirements:
|
66
|
+
requirements:
|
64
67
|
- - ~>
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: 0.
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.7'
|
67
70
|
type: :development
|
68
71
|
prerelease: false
|
69
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0.7'
|
70
78
|
description: Allows performing chunked queries on DataMapper Models or Collections.
|
71
|
-
email:
|
72
|
-
- postmodern.mod3@gmail.com
|
79
|
+
email: postmodern.mod3@gmail.com
|
73
80
|
executables: []
|
74
|
-
|
75
81
|
extensions: []
|
76
|
-
|
77
|
-
extra_rdoc_files:
|
78
|
-
- README.md
|
82
|
+
extra_rdoc_files:
|
79
83
|
- ChangeLog.md
|
80
84
|
- LICENSE.txt
|
81
|
-
|
85
|
+
- README.md
|
86
|
+
files:
|
82
87
|
- .document
|
88
|
+
- .gitignore
|
83
89
|
- .rspec
|
84
90
|
- .yardopts
|
85
91
|
- ChangeLog.md
|
@@ -92,36 +98,35 @@ files:
|
|
92
98
|
- lib/dm-chunked_query.rb
|
93
99
|
- lib/dm-chunked_query/chunks.rb
|
94
100
|
- lib/dm-chunked_query/mixin.rb
|
101
|
+
- lib/dm-chunked_query/version.rb
|
95
102
|
- spec/chunked_query_spec.rb
|
96
103
|
- spec/chunks_spec.rb
|
97
104
|
- spec/spec_helper.rb
|
98
|
-
homepage:
|
99
|
-
licenses:
|
105
|
+
homepage: https://github.com/postmodern/dm-chunked_query#readme
|
106
|
+
licenses:
|
100
107
|
- MIT
|
101
108
|
post_install_message:
|
102
109
|
rdoc_options: []
|
103
|
-
|
104
|
-
require_paths:
|
110
|
+
require_paths:
|
105
111
|
- lib
|
106
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
107
113
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version:
|
112
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
119
|
none: false
|
114
|
-
requirements:
|
115
|
-
- -
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version:
|
120
|
+
requirements:
|
121
|
+
- - ! '>='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
118
124
|
requirements: []
|
119
|
-
|
120
|
-
|
121
|
-
rubygems_version: 1.8.1
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 1.8.24
|
122
127
|
signing_key:
|
123
128
|
specification_version: 3
|
124
129
|
summary: Allows performing chunked queries with DataMapper.
|
125
|
-
test_files:
|
126
|
-
- spec/chunks_spec.rb
|
130
|
+
test_files:
|
127
131
|
- spec/chunked_query_spec.rb
|
132
|
+
- spec/chunks_spec.rb
|