osm 1.2.6 → 1.2.7.dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +4 -0
- data/README.md +15 -3
- data/gemfiles/rails3 +2 -0
- data/lib/osm/flexi_record.rb +3 -3
- data/osm.gemspec +2 -0
- data/spec/spec_helper.rb +10 -0
- data/version.rb +1 -1
- metadata +37 -5
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,15 +1,27 @@
|
|
1
1
|
[](http://badge.fury.io/rb/osm)
|
2
2
|
[](https://gemnasium.com/robertgauld/osm)
|
3
3
|
|
4
|
+
Master branch:
|
5
|
+
[](http://travis-ci.org/robertgauld/osm)
|
6
|
+
[](https://coveralls.io/r/robertgauld/osm)
|
7
|
+
[](https://codeclimate.com/github/robertgauld/osm)
|
8
|
+
|
9
|
+
Staging branch:
|
10
|
+
[](http://travis-ci.org/robertgauld/o
|
11
|
+
[](https://coveralls.io/r/robertgauld/osm)
|
12
|
+
[](https://codeclimate.com/github/robertgauld/osm)
|
13
|
+
|
4
14
|
|
5
15
|
##Build State
|
6
16
|
This project uses continuous integration to help ensure that a quality product is delivered.
|
7
17
|
Travis CI monitors two branches (versions) of the code - Master (which is what gets released)
|
8
18
|
and Staging (which is what is currently being developed ready for moving to master).
|
9
19
|
|
10
|
-
|
20
|
+
[](http://travis-ci.org/robertgauld/osm)
|
11
22
|
|
12
|
-
|
23
|
+
[](http://travis-ci.org/robertgauld/osm)
|
13
25
|
|
14
26
|
|
15
27
|
## Ruby Versions
|
@@ -26,7 +38,7 @@ Use the [Online Scout Manager](https://www.onlinescoutmanager.co.uk) API.
|
|
26
38
|
|
27
39
|
## Installation
|
28
40
|
|
29
|
-
**Requires Ruby 1.9.
|
41
|
+
**Requires Ruby 1.9.3 or later.**
|
30
42
|
|
31
43
|
Add to your Gemfile and run the `bundle` command to install it.
|
32
44
|
|
data/gemfiles/rails3
CHANGED
data/lib/osm/flexi_record.rb
CHANGED
@@ -118,10 +118,10 @@ module Osm
|
|
118
118
|
return to_return
|
119
119
|
end
|
120
120
|
|
121
|
-
# Compare
|
121
|
+
# Compare FlexiRecord based on section_id then name
|
122
122
|
def <=>(another)
|
123
|
-
result = self.section_id <=> another.try(:section_id)
|
124
|
-
result = self.name <=> another.try(:name) if result == 0
|
123
|
+
result = self.section_id.to_i <=> another.try(:section_id).to_i
|
124
|
+
result = self.name.to_s <=> another.try(:name).to_s if result == 0
|
125
125
|
return result
|
126
126
|
end
|
127
127
|
|
data/osm.gemspec
CHANGED
@@ -30,5 +30,7 @@ Gem::Specification.new do |s|
|
|
30
30
|
s.add_development_dependency 'fakeweb', '~> 1.3'
|
31
31
|
s.add_development_dependency 'guard-rspec', '~> 4.2', '>= 4.2.5'
|
32
32
|
s.add_development_dependency 'rb-inotify', '~> 0.9'
|
33
|
+
s.add_development_dependency 'coveralls', '~> 0.7'
|
34
|
+
s.add_development_dependency 'simplecov', '~> 0.7'
|
33
35
|
|
34
36
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
SimpleCov.coverage_dir(File.join('tmp', 'coverage'))
|
3
|
+
SimpleCov.start do
|
4
|
+
add_filter 'spec/'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'coveralls' and Coveralls.wear! if ENV['TRAVIS']
|
8
|
+
|
9
|
+
|
1
10
|
require 'fakeweb'
|
2
11
|
require 'httparty'
|
3
12
|
require 'active_support'
|
@@ -7,6 +16,7 @@ require 'active_model'
|
|
7
16
|
require 'osm'
|
8
17
|
|
9
18
|
FakeWeb.allow_net_connect = false
|
19
|
+
FakeWeb.allow_net_connect = %r[^https://coveralls.io] # Allow coveralls to report coverage
|
10
20
|
|
11
21
|
|
12
22
|
RSpec.configure do |config|
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.7.dev
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Robert Gauld
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -195,6 +195,38 @@ dependencies:
|
|
195
195
|
- - ~>
|
196
196
|
- !ruby/object:Gem::Version
|
197
197
|
version: '0.9'
|
198
|
+
- !ruby/object:Gem::Dependency
|
199
|
+
name: coveralls
|
200
|
+
requirement: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ~>
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0.7'
|
206
|
+
type: :development
|
207
|
+
prerelease: false
|
208
|
+
version_requirements: !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
210
|
+
requirements:
|
211
|
+
- - ~>
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '0.7'
|
214
|
+
- !ruby/object:Gem::Dependency
|
215
|
+
name: simplecov
|
216
|
+
requirement: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
218
|
+
requirements:
|
219
|
+
- - ~>
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0.7'
|
222
|
+
type: :development
|
223
|
+
prerelease: false
|
224
|
+
version_requirements: !ruby/object:Gem::Requirement
|
225
|
+
none: false
|
226
|
+
requirements:
|
227
|
+
- - ~>
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0.7'
|
198
230
|
description: Use the Online Scout Manager API (https://www.onlinescoutmanager.co.uk)
|
199
231
|
to retrieve and save data.
|
200
232
|
email:
|
@@ -272,9 +304,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
272
304
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
273
305
|
none: false
|
274
306
|
requirements:
|
275
|
-
- - ! '
|
307
|
+
- - ! '>'
|
276
308
|
- !ruby/object:Gem::Version
|
277
|
-
version:
|
309
|
+
version: 1.3.1
|
278
310
|
requirements: []
|
279
311
|
rubyforge_project: osm
|
280
312
|
rubygems_version: 1.8.25
|