moves 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 97db4f987d82860502e468a5abb2967faa27afe3
4
- data.tar.gz: 705a61073bec4d403b2fac1e16ab56dc80a73e92
3
+ metadata.gz: bc8684fa952ced2df4db1ff95f83507dfcdcb50a
4
+ data.tar.gz: 748985044103038e8c517f2edf8f55c06564dc7d
5
5
  SHA512:
6
- metadata.gz: 9f9e8f08f45526c648e340a91b43beb3d93bd1890b2cbbd54262d6a97a7b14ce951919118a7de8949e18dcda05385c7b7fb89625392275e2788c76b68da5e8c1
7
- data.tar.gz: bea42b1ed4b81af9de051009fc146e33ad8fa7bcdfffbcf661c7e81d7e26dd235eaa8a8b513ece4db3cf27b937203aac3b98bd9420d2dec903ed71a215362228
6
+ metadata.gz: 4350e05ca4957eb59f8e2714d117733cff6e3a65832a8074638f4966f57f9e08c087b460f6d7abc29a5027efacb1463900d1d3849e78953b766bd917f8bb88f4
7
+ data.tar.gz: 05b063a76107513320d561b7925189a6b28c413d758296e1746a926787453b394b9ae9a449157d9dabd42ad694a3edf8dfcba5a8d221dd528c1b94706ca58297
data/lib/moves/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Moves
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/moves.rb CHANGED
@@ -49,6 +49,8 @@ module Moves
49
49
  ["/#{args[0].strftime(format)}", args[1]]
50
50
  elsif args[0].is_a?(Range)
51
51
  ["", {:from => args[0].first, to: args[0].last}]
52
+ elsif args.compact.empty?
53
+ ["", nil]
52
54
  else
53
55
  ["/#{args[0]}", args[1]]
54
56
  end
data/test/moves_test.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "test_helper"
1
+ require_relative "test_helper"
2
2
  require "date"
3
3
 
4
4
  class TestMoves < Minitest::Test
@@ -6,10 +6,10 @@ class TestMoves < Minitest::Test
6
6
  def setup
7
7
  @client = Moves::Client.new(ENV["ACCESS_TOKEN"])
8
8
  @today = Time.now.strftime("%Y-%m-%d")
9
- @day = "2013-06-20"
10
- @week = "2013-W25"
11
- @month = "2013-06"
12
- @from_to = {:from => "2013-06-20", :to => "2013-06-23"}
9
+ @day = "2014-01-01"
10
+ @week = "2014-W1"
11
+ @month = "2014-01"
12
+ @from_to = {:from => "2014-01-01", :to => "2014-01-07"}
13
13
  @time = Time.now
14
14
  @date_time = DateTime.now
15
15
  @date = Date.today
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moves
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-09 00:00:00.000000000 Z
11
+ date: 2014-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Ruby client for Moves
@@ -73,7 +73,7 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
76
+ - ".gitignore"
77
77
  - Gemfile
78
78
  - LICENSE.txt
79
79
  - README.md
@@ -93,17 +93,17 @@ require_paths:
93
93
  - lib
94
94
  required_ruby_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubyforge_project:
106
- rubygems_version: 2.0.0
106
+ rubygems_version: 2.2.0
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Ruby client for Moves