osm 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/README.md +1 -1
  3. data/lib/osm.rb +1 -1
  4. data/osm.gemspec +1 -1
  5. data/version.rb +1 -1
  6. metadata +8 -2
@@ -1,3 +1,8 @@
1
+ ## Version 1.0.2
2
+
3
+ * Fix Regex for checking dates from OSM
4
+ * Don't use ActiveAttr >= 0.8 (incompatabillity to be fixed)
5
+
1
6
  ## Version 1.0.1
2
7
 
3
8
  * Fix Osm::Term date helping methods when term contains nil dates
data/README.md CHANGED
@@ -151,4 +151,4 @@ See the [Roadmap page in the wiki](https://github.com/robertgauld/osm/wiki/Roadm
151
151
 
152
152
  * Gift aid (Everything) (Gold required) [issue 75]
153
153
  * Finances (Everything) (Gold required) [issues 76 & 77]]
154
- * MyScout (Everything) (Maybe)
154
+ * MyScout (Everything)
data/lib/osm.rb CHANGED
@@ -25,7 +25,7 @@ module Osm
25
25
  OSM_DATE_FORMAT_HUMAN = '%d/%m/%Y'
26
26
  OSM_DATETIME_FORMAT_HUMAN = '%d/%m/%Y %H:%M:%S'
27
27
  OSM_TIME_REGEX = /\A(?:[0-1][0-9]|2[0-3]):[0-5][0-9]\Z/
28
- OSM_DATE_REGEX = /\A(?:\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1]))|(?:(?:0?[1-9]|[1-2][0-9]|3[0-1])\/(?:0?[1-9]|1[0-2])\/\d{2}|\d{4})\Z/
28
+ OSM_DATE_REGEX = /\A(?:[1-9]\d{3}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1]))|(?:(?:0?[1-9]|[1-2][0-9]|3[0-1])\/(?:0?[1-9]|1[0-2])\/(?:\d{2}|[1-9]\d{3}))\Z/
29
29
  end
30
30
 
31
31
  # Require file for this gem
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_runtime_dependency 'activesupport', '~> 3.2' # Used to parse JSON from OSM
22
22
  s.add_runtime_dependency 'httparty', '~> 0.9' # Used to make web requests to the API
23
- s.add_runtime_dependency 'active_attr', '~> 0.6'
23
+ s.add_runtime_dependency 'active_attr', '~> 0.6', '< 0.8'
24
24
  s.add_runtime_dependency 'activemodel', '~> 3.2'
25
25
  s.add_runtime_dependency 'dirty_hashy', '~> 0.2.1' # Used to trach changed data in Badge::Data and FlexiRecord::Data
26
26
 
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Osm
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-14 00:00:00.000000000 Z
12
+ date: 2013-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -51,6 +51,9 @@ dependencies:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0.6'
54
+ - - <
55
+ - !ruby/object:Gem::Version
56
+ version: '0.8'
54
57
  type: :runtime
55
58
  prerelease: false
56
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -59,6 +62,9 @@ dependencies:
59
62
  - - ~>
60
63
  - !ruby/object:Gem::Version
61
64
  version: '0.6'
65
+ - - <
66
+ - !ruby/object:Gem::Version
67
+ version: '0.8'
62
68
  - !ruby/object:Gem::Dependency
63
69
  name: activemodel
64
70
  requirement: !ruby/object:Gem::Requirement