mordor 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YmI5Mzc5YTZlMTZkYWE2YzBmNzA1NzBmMzJjOGU2MDQwNGMxNTkzOA==
5
- data.tar.gz: !binary |-
6
- ZDA3ODE3NDdiMjAwZGUxZjliMTY5Y2I4MjZkMmI5NTllMGI1NzI2OA==
2
+ SHA1:
3
+ metadata.gz: 9b31b37b4ca1cfeb3b5b02163a31d90a896b3c69
4
+ data.tar.gz: 47803acd2973ecad32e3b64f3010104fdad5ad28
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MDdhZmNjM2FiNmJlYmE1Y2VhNThjMDBiM2JiNmEyMTYyMzE4OTNmNmFhZjVj
10
- ODQzZWIzZWJlNmZmN2RjMGVkYzIyNDE4OWRlYzg1YWZlOTBhYzBlMGJlNTA3
11
- N2ExMmU4NDM4YzExMGM5ZDNmYjMxYjA1NDhiOGQ3MDdlNmE0ZWM=
12
- data.tar.gz: !binary |-
13
- NTg4MGZjZGQ5NTg5M2IwOWNlNGUxYmQwY2ViYzk0MzU3NTA5Zjk5ZjUzMTVm
14
- NjQ0NWZiMjdhYzQzNTE2YzdiZjc1YTg5OGI4YzFjZDVkNmFmNjRkMTUxNGQ0
15
- YTA4M2QzMTYwYzY1MTk1ZmIyMmE0YWE2MzFhNjA3NWIwOTRlODg=
6
+ metadata.gz: 0bc6e986c952c6cdfc8a6fc315c6d6c0a9c466825617ab36d5919e5ac22a0fff5551619cbef4a2262634bc3686bd5d421ea994e5f2b4b666a1ad3ec508cafe19
7
+ data.tar.gz: f033a37126af7b7b5908eb684a0b866c1c791e74462c51167d692d09957448df4933808ec7ea626de6175045aab4a4f34677bc6132c56130881d2a17c36e90e5
@@ -1,3 +1,4 @@
1
+ sudo: false
1
2
  language: ruby
2
3
  cache: bundler
3
4
  bundler_args: --without optional
@@ -5,18 +6,30 @@ bundler_args: --without optional
5
6
  jdk:
6
7
  - oraclejdk7
7
8
 
9
+ env:
10
+ global:
11
+ - MONGODB_VERSION=3.4.4
12
+
8
13
  services:
14
+ - docker
9
15
  - mongodb
10
16
 
11
- rvm:
12
- - 1.9.3
13
- - 2.1.6
14
- - 2.2.2
15
- - jruby-19mode
16
- - rbx-19mode
17
- - rbx-2.5.3
17
+ before_install:
18
+ - wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-$MONGODB_VERSION.tgz
19
+ - tar xfz mongodb-linux-x86_64-$MONGODB_VERSION.tgz
20
+ - export PATH=`pwd`/mongodb-linux-x86_64-$MONGODB_VERSION/bin:$PATH
21
+ - mkdir -p data/db
22
+ - mongod --dbpath=data/db &
23
+ - sleep 3
18
24
 
19
- matrix:
20
- allow_failures:
21
- - rvm: rbx-19mode
22
- - rvm: rbx-2.5.3
25
+ #rvm:
26
+ # - 2.2.2
27
+ # - 2.2.5
28
+ # - jruby-19mode
29
+ # - rbx-19mode
30
+ # - rbx-2.5.3
31
+ #
32
+ #matrix:
33
+ # allow_failures:
34
+ # - rvm: rbx-19mode
35
+ # - rvm: rbx-2.5.3
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require "bundler"
3
3
 
4
4
  Bundler.setup
5
5
 
6
- load('tasks/github-gem.rake')
6
+ load('./tasks/github-gem.rake')
7
7
 
8
8
  task :default => :spec
9
9
 
@@ -1,3 +1,3 @@
1
1
  module Mordor
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -17,16 +17,21 @@ Gem::Specification.new do |s|
17
17
  s.homepage = 'http://www.nedap.com'
18
18
 
19
19
  s.add_runtime_dependency 'extlib'
20
- s.add_runtime_dependency 'json'
20
+ s.add_runtime_dependency 'json', '~> 1.8.5'
21
21
  s.add_runtime_dependency 'mongo', '< 2.0'
22
22
 
23
23
  s.add_development_dependency 'rack-test'
24
- s.add_development_dependency 'rake'
24
+ s.add_development_dependency 'rake', '< 11.0'
25
25
  s.add_development_dependency 'rspec', '~> 2.0', '< 2.99'
26
26
 
27
- s.add_runtime_dependency 'bson_ext' unless RUBY_PLATFORM == 'java'
28
27
  s.extensions << 'ext/mkrf_conf.rb'
29
28
 
29
+ if defined? JRUBY_VERSION
30
+ s.platform = 'java'
31
+ else
32
+ s.add_runtime_dependency('bson_ext')
33
+ end
34
+
30
35
  # The files and test_files directives are set automatically by the release script.
31
36
  # Do not change them by hand, but make sure to add the files to the git repository.
32
37
  s.files = %w(.gitignore .travis.yml CHANGES.md Gemfile Guardfile LICENSE README.md Rakefile ext/mkrf_conf.rb lib/mordor.rb lib/mordor/collection.rb lib/mordor/config.rb lib/mordor/resource.rb lib/mordor/version.rb mordor.gemspec spec/mordor/collection_spec.rb spec/mordor/connection_spec.rb spec/mordor/resource_spec.rb spec/spec.opts spec/spec_helper.rb tasks/github-gem.rake)
@@ -182,11 +182,11 @@ module GithubGem
182
182
  def build_task
183
183
  sh "gem build -q #{gemspec_file}"
184
184
  Dir.mkdir('pkg') unless File.exist?('pkg')
185
- sh "mv #{gemspec.name}-#{gemspec.version}.gem pkg/#{gemspec.name}-#{gemspec.version}.gem"
185
+ sh "mv #{gem_package_filename}.gem pkg/#{gem_package_filename}.gem"
186
186
  end
187
187
 
188
188
  def newest_version
189
- `#{git} tag`.split("\n").map { |tag| tag.split('-').last }.compact.map { |v| Gem::Version.new(v) }.max || Gem::Version.new('0.0.0')
189
+ `#{git} tag`.split("\n").map { |tag| tag.split('v').last }.compact.map { |v| Gem::Version.new(v) }.max || Gem::Version.new('0.0.0')
190
190
  end
191
191
 
192
192
  def next_version(increment = nil)
@@ -267,7 +267,7 @@ module GithubGem
267
267
  end
268
268
 
269
269
  def gemcutter_release_task
270
- sh "gem", 'push', "pkg/#{gemspec.name}-#{gemspec.version}.gem"
270
+ sh "gem", 'push', "pkg/#{gem_package_filename}.gem"
271
271
  end
272
272
 
273
273
  # Gem release task.
@@ -289,6 +289,14 @@ module GithubGem
289
289
  FileList[test_pattern].any?
290
290
  end
291
291
 
292
+ def gem_package_filename
293
+ "#{gemspec.name}-#{gemspec.version}#{platform_suffix}"
294
+ end
295
+
296
+ def platform_suffix
297
+ "-#{gemspec.platform}" unless gemspec.platform == 'ruby'
298
+ end
299
+
292
300
  # Loads the gemspec file
293
301
  def load_gemspec!
294
302
  @gemspec = eval(File.read(@gemspec_file))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mordor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan-Willem Koelewijn
@@ -15,111 +15,109 @@ dependencies:
15
15
  name: extlib
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ! '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ! '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: json
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ! '>='
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0'
34
+ version: 1.8.5
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>='
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0'
41
+ version: 1.8.5
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: mongo
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - <
46
+ - - "<"
47
47
  - !ruby/object:Gem::Version
48
48
  version: '2.0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - <
53
+ - - "<"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '2.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rack-test
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ! '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ! '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rake
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ! '>='
74
+ - - "<"
75
75
  - !ruby/object:Gem::Version
76
- version: '0'
76
+ version: '11.0'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ! '>='
81
+ - - "<"
82
82
  - !ruby/object:Gem::Version
83
- version: '0'
83
+ version: '11.0'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: rspec
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ~>
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
90
  version: '2.0'
91
- - - <
91
+ - - "<"
92
92
  - !ruby/object:Gem::Version
93
93
  version: '2.99'
94
94
  type: :development
95
95
  prerelease: false
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - ~>
98
+ - - "~>"
99
99
  - !ruby/object:Gem::Version
100
100
  version: '2.0'
101
- - - <
101
+ - - "<"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '2.99'
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: bson_ext
106
106
  requirement: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  type: :runtime
112
112
  prerelease: false
113
113
  version_requirements: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ! '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
- description: ! ' Small gem to add MongoDB Resources, resources have attributes
119
- that translate into document fields. When an attribute is declared, finders for
120
- the attribute are added to the Resource automatically
121
-
122
- '
118
+ description: " Small gem to add MongoDB Resources, resources have attributes that
119
+ translate into document fields. When an attribute is declared, finders for the attribute
120
+ are added to the Resource automatically\n"
123
121
  email:
124
122
  - janwillem.koelewijn@nedap.com
125
123
  - dirkjan.bussink@nedap.com
@@ -128,8 +126,8 @@ extensions:
128
126
  - ext/mkrf_conf.rb
129
127
  extra_rdoc_files: []
130
128
  files:
131
- - .gitignore
132
- - .travis.yml
129
+ - ".gitignore"
130
+ - ".travis.yml"
133
131
  - CHANGES.md
134
132
  - Gemfile
135
133
  - Guardfile
@@ -158,17 +156,17 @@ require_paths:
158
156
  - lib
159
157
  required_ruby_version: !ruby/object:Gem::Requirement
160
158
  requirements:
161
- - - ! '>='
159
+ - - ">="
162
160
  - !ruby/object:Gem::Version
163
161
  version: '0'
164
162
  required_rubygems_version: !ruby/object:Gem::Requirement
165
163
  requirements:
166
- - - ! '>='
164
+ - - ">="
167
165
  - !ruby/object:Gem::Version
168
166
  version: '0'
169
167
  requirements: []
170
168
  rubyforge_project:
171
- rubygems_version: 2.4.5
169
+ rubygems_version: 2.6.14
172
170
  signing_key:
173
171
  specification_version: 4
174
172
  summary: mordor