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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## Version 1.2.7
2
+
3
+ * Fix can't compare exception when a FlexiRecord has a nil name.
4
+
1
5
  ## Version 1.2.6
2
6
 
3
7
  * Update dependancies to allow using with a rails 4 app (rails 3 is still tested against by travis)
data/README.md CHANGED
@@ -1,15 +1,27 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/osm.png)](http://badge.fury.io/rb/osm)
2
2
  [![Dependency Status](https://gemnasium.com/robertgauld/osm.png)](https://gemnasium.com/robertgauld/osm)
3
3
 
4
+ Master branch:
5
+ [![Build Status](https://secure.travis-ci.org/robertgauld/osm.png?branch=master)](http://travis-ci.org/robertgauld/osm)
6
+ [![Coveralls Status](https://coveralls.io/repos/robertgauld/osm/badge.png?branch=master)](https://coveralls.io/r/robertgauld/osm)
7
+ [![Code Climate](https://codeclimate.com/github/robertgauld/osm.png?branch=master)](https://codeclimate.com/github/robertgauld/osm)
8
+
9
+ Staging branch:
10
+ [![Build Status](https://secure.travis-ci.org/robertgauld/osm.png?branch=staging)](http://travis-ci.org/robertgauld/o
11
+ [![Coveralls Status](https://coveralls.io/repos/robertgauld/osm/badge.png?branch=master)](https://coveralls.io/r/robertgauld/osm)
12
+ [![Code Climate](https://codeclimate.com/github/robertgauld/osm.png?branch=staging)](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
- Master [![Build Status](https://secure.travis-ci.org/robertgauld/osm.png?branch=master)](http://travis-ci.org/robertgauld/osm)
20
+ [![Build Status](https://secure.travis-ci.org/robertgauld/osm.png?
21
+ branch=master)](http://travis-ci.org/robertgauld/osm)
11
22
 
12
- Staging [![Build Status](https://secure.travis-ci.org/robertgauld/osm.png?branch=staging)](http://travis-ci.org/robertgauld/osm)
23
+ [![Build Status](https://secure.travis-ci.org/robertgauld/osm.png?
24
+ branch=staging)](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.2 or later.**
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
@@ -9,5 +9,7 @@ gem 'rake', '~> 10.1'
9
9
  gem 'rspec', '~> 2.0', '< 2.14'
10
10
  gem 'fakeweb', '~> 1.3.0'
11
11
  gem 'osm', :path=>'../'
12
+ gem 'coveralls', '~> 0.7'
13
+ gem 'simplecov', '~> 0.7'
12
14
 
13
15
  #gemspec :path=>"../"
@@ -118,10 +118,10 @@ module Osm
118
118
  return to_return
119
119
  end
120
120
 
121
- # Compare Activity based on section_id then name
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
@@ -1,3 +1,3 @@
1
1
  module Osm
2
- VERSION = "1.2.6"
2
+ VERSION = "1.2.7.dev"
3
3
  end
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.6
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-02-14 00:00:00.000000000 Z
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: '0'
309
+ version: 1.3.1
278
310
  requirements: []
279
311
  rubyforge_project: osm
280
312
  rubygems_version: 1.8.25