mordor 0.3.3 → 0.3.5

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
2
  SHA256:
3
- metadata.gz: d84530d94b413a5eef82e3003d6cfea98bff6f812e67ba5db2d6169b14b55348
4
- data.tar.gz: f1c992df29887d13dd9de5ae2dd3682ef5fb5afb80d9e4544956afb60965efe3
3
+ metadata.gz: 180551390281de15f455fca31a7d989da1347024f79b207032e27bbc05cfef62
4
+ data.tar.gz: 68939c6cbff96d3f00ad86eb0763fb236239df59e34a2c6d88cc2465598184dd
5
5
  SHA512:
6
- metadata.gz: 247d96ccc576683f3f41d5925605dc801b22fac644c752ec307fcc8fdfb58ea005a7f44e052e539197c13b1fadca659143f624e7eca279f4370f93bed37fc6bd
7
- data.tar.gz: '04951a531ebb3133d9bbcf04e7baf5b95338d7e03b81708dbfeb3e2c3b536b2eb9978da38166188216074ed1bcde9b9d0c25c8b05199e5b08e480e31d0cfca6f'
6
+ metadata.gz: dbed0a87024d1ae6c3a3fac6eb7275882dd1810be8d52b5e15ba53ef29fc4957a90289bc324688ae89e877e29c1c977685d08febef55bd997f560bb1f611d7af
7
+ data.tar.gz: 75672c34cce2e9e02053459632832495a972d6f2fc706d1daf3522a29a9191b2c7b624f1d8d30fc1f1e5f661570c038ed8f4349240eb4abb7531efe636344d47
@@ -0,0 +1,79 @@
1
+ # Ruby CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
+ #
5
+ version: 2
6
+ jobs:
7
+ build:
8
+ docker:
9
+ # specify the version you desire here
10
+ - image: circleci/ruby:2.6.5
11
+ - image: mongo:3.2
12
+
13
+ working_directory: ~/repo
14
+
15
+ steps:
16
+ - checkout
17
+
18
+ - run:
19
+ name: install dependencies
20
+ command: |
21
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
22
+
23
+ # run tests!
24
+ - run:
25
+ name: run tests
26
+ command: |
27
+ mkdir /tmp/test-results
28
+ TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | \
29
+ circleci tests split --split-by=timings)"
30
+ bundle exec rspec \
31
+ --format progress \
32
+ --format RspecJunitFormatter \
33
+ --out /tmp/test-results/rspec.xml \
34
+ --format progress \
35
+ $TEST_FILES
36
+ # collect reports
37
+ - store_test_results:
38
+ path: /tmp/test-results
39
+ - store_artifacts:
40
+ path: /tmp/test-results
41
+ destination: test-results
42
+
43
+ environment:
44
+ TZ: CET
45
+
46
+ rubygems_release:
47
+ docker:
48
+ - image: circleci/ruby:2.6.5
49
+
50
+ working_directory: ~/repo
51
+
52
+ steps:
53
+ - checkout
54
+
55
+ - run:
56
+ name: install dependencies
57
+ command: |
58
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
59
+
60
+ - run:
61
+ name: release to RubyGems
62
+ command: |
63
+ bundle exec rake gem:release
64
+
65
+ workflows:
66
+ version: 2
67
+ CircleCI:
68
+ jobs:
69
+ - build:
70
+ filters:
71
+ branches:
72
+ only: /.*/
73
+
74
+ - ruby_gems:
75
+ filters:
76
+ branches:
77
+ only: master
78
+
79
+
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://secure.travis-ci.org/jwkoelewijn/mordor.png?branch=master)](http://travis-ci.org/jwkoelewijn/mordor)
1
+ [![CircleCI](https://circleci.com/gh/nedap/mordor/tree/master.svg?style=svg)](https://circleci.com/gh/nedap/mordor/tree/master)
2
2
 
3
3
  ## Introduction
4
4
  Small library to add DataMapper style resources for MongoDB.
data/Rakefile CHANGED
@@ -3,6 +3,13 @@ require "bundler"
3
3
 
4
4
  Bundler.setup
5
5
 
6
+ module TempFixForRakeLastComment
7
+ def last_comment
8
+ last_description
9
+ end
10
+ end
11
+ Rake::Application.send :include, TempFixForRakeLastComment
12
+
6
13
  load('./tasks/github-gem.rake')
7
14
 
8
15
  task :default => :spec
@@ -1,3 +1,3 @@
1
1
  module Mordor
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -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 = "0.3.3"
8
- s.date = "2019-04-15"
7
+ s.version = "0.3.5"
8
+ s.date = "2020-07-28"
9
9
 
10
10
  s.summary = 'mordor'
11
11
  s.description = <<-eos
@@ -17,13 +17,14 @@ Gem::Specification.new do |s|
17
17
  s.homepage = 'http://github.com/jwkoelewijn/mordor/'
18
18
 
19
19
  s.add_runtime_dependency 'extlib'
20
- s.add_runtime_dependency 'json', '~> 1.8.5'
20
+ s.add_runtime_dependency 'json', '~> 2.3.0'
21
21
  s.add_runtime_dependency 'mongo', '< 2.0.0'
22
22
 
23
23
  s.add_development_dependency 'rack-test'
24
24
  s.add_development_dependency 'guard-rspec'
25
- s.add_development_dependency 'rake', '< 11.0'
25
+ s.add_development_dependency 'rake', '~> 12.3.3'
26
26
  s.add_development_dependency 'rspec', '~> 2.0', '< 2.99'
27
+ s.add_development_dependency 'rspec_junit_formatter'
27
28
 
28
29
  s.extensions << 'ext/mkrf_conf.rb'
29
30
 
@@ -35,5 +36,5 @@ Gem::Specification.new do |s|
35
36
 
36
37
  # The files and test_files directives are set automatically by the release script.
37
38
  # Do not change them by hand, but make sure to add the files to the git repository.
38
- 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)
39
+ s.files = %w(.circleci/config.yml .gitignore 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)
39
40
  end
@@ -95,7 +95,7 @@ describe "with respect to resources" do
95
95
 
96
96
  it "should correctly replace BigDecimals" do
97
97
  options = {
98
- "option" => BigDecimal.new("1.00")
98
+ "option" => BigDecimal("1.00")
99
99
  }
100
100
  result = TestResource.new.replace_params(options)
101
101
  result.each do |k,v|
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mordor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan-Willem Koelewijn
8
8
  - Dirkjan Bussink
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-04-15 00:00:00.000000000 Z
12
+ date: 2020-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: extlib
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 1.8.5
34
+ version: 2.3.0
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: 1.8.5
41
+ version: 2.3.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: mongo
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -85,16 +85,16 @@ dependencies:
85
85
  name: rake
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - "<"
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '11.0'
90
+ version: 12.3.3
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "<"
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '11.0'
97
+ version: 12.3.3
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rspec
100
100
  requirement: !ruby/object:Gem::Requirement
@@ -115,6 +115,20 @@ dependencies:
115
115
  - - "<"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '2.99'
118
+ - !ruby/object:Gem::Dependency
119
+ name: rspec_junit_formatter
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
118
132
  - !ruby/object:Gem::Dependency
119
133
  name: bson_ext
120
134
  requirement: !ruby/object:Gem::Requirement
@@ -140,8 +154,8 @@ extensions:
140
154
  - ext/mkrf_conf.rb
141
155
  extra_rdoc_files: []
142
156
  files:
157
+ - ".circleci/config.yml"
143
158
  - ".gitignore"
144
- - ".travis.yml"
145
159
  - CHANGES.md
146
160
  - Gemfile
147
161
  - Guardfile
@@ -164,7 +178,7 @@ files:
164
178
  homepage: http://github.com/jwkoelewijn/mordor/
165
179
  licenses: []
166
180
  metadata: {}
167
- post_install_message:
181
+ post_install_message:
168
182
  rdoc_options: []
169
183
  require_paths:
170
184
  - lib
@@ -179,9 +193,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
193
  - !ruby/object:Gem::Version
180
194
  version: '0'
181
195
  requirements: []
182
- rubyforge_project:
183
- rubygems_version: 2.7.7
184
- signing_key:
196
+ rubygems_version: 3.0.8
197
+ signing_key:
185
198
  specification_version: 4
186
199
  summary: mordor
187
200
  test_files: []
@@ -1,11 +0,0 @@
1
- sudo: false
2
-
3
- language: ruby
4
- rvm:
5
- - 2.6.2
6
- - 2.4.6
7
-
8
- cache: bundler
9
-
10
- services:
11
- - mongodb