mordor 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e8418eef9199af07875ea241b44564bc5be870a5
4
- data.tar.gz: 3090d0197765af5823b7803277e3886d1e9e0760
2
+ SHA256:
3
+ metadata.gz: d84530d94b413a5eef82e3003d6cfea98bff6f812e67ba5db2d6169b14b55348
4
+ data.tar.gz: f1c992df29887d13dd9de5ae2dd3682ef5fb5afb80d9e4544956afb60965efe3
5
5
  SHA512:
6
- metadata.gz: c7491f7dc44459558008145823736f9ab480a2afc9ebd8ff7e27e7591a3d42ab68577346abfc536942f1412ce6d14422dce353b898d46bc94a6e237a0c508c83
7
- data.tar.gz: 03b93dff63a1e3ca0c9641b7b831da4e0d14787d7167e188e891d17359077ebdbd4546ee6baf8c9a548ce2e0a38c596b1bd62fdccb1e2dc2eb7fc69fe8626a4b
6
+ metadata.gz: 247d96ccc576683f3f41d5925605dc801b22fac644c752ec307fcc8fdfb58ea005a7f44e052e539197c13b1fadca659143f624e7eca279f4370f93bed37fc6bd
7
+ data.tar.gz: '04951a531ebb3133d9bbcf04e7baf5b95338d7e03b81708dbfeb3e2c3b536b2eb9978da38166188216074ed1bcde9b9d0c25c8b05199e5b08e480e31d0cfca6f'
@@ -1,35 +1,11 @@
1
1
  sudo: false
2
- language: ruby
3
- cache: bundler
4
- bundler_args: --without optional
5
2
 
6
- jdk:
7
- - oraclejdk7
3
+ language: ruby
4
+ rvm:
5
+ - 2.6.2
6
+ - 2.4.6
8
7
 
9
- env:
10
- global:
11
- - MONGODB_VERSION=3.4.4
8
+ cache: bundler
12
9
 
13
10
  services:
14
- - docker
15
11
  - mongodb
16
-
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
24
-
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/Gemfile CHANGED
@@ -1,7 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
-
5
- group :optional do
6
- gem 'guard-rspec'
7
- end
@@ -235,7 +235,6 @@ module Mordor
235
235
  if options[:index]
236
236
  @indices << name unless @indices.include?(name)
237
237
  @index_types[name] = options[:index_type] ? options[:index_type] : Mongo::DESCENDING
238
- ensure_index(name)
239
238
  end
240
239
 
241
240
  if options[:timestamp]
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.name = 'mordor'
5
5
 
6
6
  # Do not set the version and date field manually, this is done by the release script
7
- s.version = Mordor::VERSION
8
- s.date = "2015-05-15"
7
+ s.version = "0.3.3"
8
+ s.date = "2019-04-15"
9
9
 
10
10
  s.summary = 'mordor'
11
11
  s.description = <<-eos
@@ -14,13 +14,14 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.authors = ['Jan-Willem Koelewijn', 'Dirkjan Bussink']
16
16
  s.email = ['janwillem.koelewijn@nedap.com', 'dirkjan.bussink@nedap.com']
17
- s.homepage = 'http://www.nedap.com'
17
+ s.homepage = 'http://github.com/jwkoelewijn/mordor/'
18
18
 
19
19
  s.add_runtime_dependency 'extlib'
20
20
  s.add_runtime_dependency 'json', '~> 1.8.5'
21
21
  s.add_runtime_dependency 'mongo', '< 2.0.0'
22
22
 
23
23
  s.add_development_dependency 'rack-test'
24
+ s.add_development_dependency 'guard-rspec'
24
25
  s.add_development_dependency 'rake', '< 11.0'
25
26
  s.add_development_dependency 'rspec', '~> 2.0', '< 2.99'
26
27
 
@@ -249,12 +249,12 @@ describe "with respect to resources" do
249
249
  TestResource.ensure_count.should == 2 # For each index
250
250
  end
251
251
 
252
- it "should call ensure index for each index attribute on creation" do
252
+ it "should not call ensure index for each index attribute on file eval" do
253
253
  TestResource2.class_eval do
254
254
  attribute :test_attribute, :index => true
255
255
  end
256
256
 
257
- TestResource2.ensure_count.should == 1
257
+ TestResource2.ensure_count.should == 0
258
258
  end
259
259
  end
260
260
 
@@ -186,7 +186,7 @@ module GithubGem
186
186
  end
187
187
 
188
188
  def newest_version
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')
189
+ `#{git} tag`.split("\n").map { |tag| tag.split('mordor-').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)
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.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan-Willem Koelewijn
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-15 00:00:00.000000000 Z
12
+ date: 2019-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: extlib
@@ -67,6 +67,20 @@ dependencies:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: guard-rspec
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: rake
72
86
  requirement: !ruby/object:Gem::Requirement
@@ -147,7 +161,7 @@ files:
147
161
  - spec/spec.opts
148
162
  - spec/spec_helper.rb
149
163
  - tasks/github-gem.rake
150
- homepage: http://www.nedap.com
164
+ homepage: http://github.com/jwkoelewijn/mordor/
151
165
  licenses: []
152
166
  metadata: {}
153
167
  post_install_message:
@@ -166,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
180
  version: '0'
167
181
  requirements: []
168
182
  rubyforge_project:
169
- rubygems_version: 2.6.14
183
+ rubygems_version: 2.7.7
170
184
  signing_key:
171
185
  specification_version: 4
172
186
  summary: mordor