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 +5 -5
- data/.travis.yml +5 -29
- data/Gemfile +0 -4
- data/lib/mordor/resource.rb +0 -1
- data/mordor.gemspec +4 -3
- data/spec/mordor/resource_spec.rb +2 -2
- data/tasks/github-gem.rake +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d84530d94b413a5eef82e3003d6cfea98bff6f812e67ba5db2d6169b14b55348
|
4
|
+
data.tar.gz: f1c992df29887d13dd9de5ae2dd3682ef5fb5afb80d9e4544956afb60965efe3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 247d96ccc576683f3f41d5925605dc801b22fac644c752ec307fcc8fdfb58ea005a7f44e052e539197c13b1fadca659143f624e7eca279f4370f93bed37fc6bd
|
7
|
+
data.tar.gz: '04951a531ebb3133d9bbcf04e7baf5b95338d7e03b81708dbfeb3e2c3b536b2eb9978da38166188216074ed1bcde9b9d0c25c8b05199e5b08e480e31d0cfca6f'
|
data/.travis.yml
CHANGED
@@ -1,35 +1,11 @@
|
|
1
1
|
sudo: false
|
2
|
-
language: ruby
|
3
|
-
cache: bundler
|
4
|
-
bundler_args: --without optional
|
5
2
|
|
6
|
-
|
7
|
-
|
3
|
+
language: ruby
|
4
|
+
rvm:
|
5
|
+
- 2.6.2
|
6
|
+
- 2.4.6
|
8
7
|
|
9
|
-
|
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
data/lib/mordor/resource.rb
CHANGED
data/mordor.gemspec
CHANGED
@@ -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 =
|
8
|
-
s.date = "
|
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://
|
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
|
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 ==
|
257
|
+
TestResource2.ensure_count.should == 0
|
258
258
|
end
|
259
259
|
end
|
260
260
|
|
data/tasks/github-gem.rake
CHANGED
@@ -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('
|
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.
|
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:
|
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://
|
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.
|
183
|
+
rubygems_version: 2.7.7
|
170
184
|
signing_key:
|
171
185
|
specification_version: 4
|
172
186
|
summary: mordor
|