when_was 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e78ce6f662e1d31303c87ca35c66f436d08a3032
4
- data.tar.gz: 6cf592757d477ab02f7655d3f04d4a3e917dd7c4
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NWVhMzQ3Mzc1NTUyNjk4MzhkZmQ0ZTZhZGQ3MjY1MDEzNDk3ZDgzYQ==
5
+ data.tar.gz: !binary |-
6
+ NTYwNTE5MDc5ODEyMDI3ODdjZTVjNTkwYjRkNTZjNzc2ODI2ZTE2NA==
5
7
  SHA512:
6
- metadata.gz: 59573f0dd00d108fded5a0672a7aaa43cf39f228c819c92453a2cb29bb1fab08cdade1036ee2222c015d0af2bbf3f0055c07e7e3de396ad600cbbf56400fc827
7
- data.tar.gz: 80c765c1cb24a64ce3462aa16169881923f522cb489e129c93c99d1efb15ea7d4efabdc714c18da154091c1f9df585b05437e4843437988d9f11d599818cff99
8
+ metadata.gz: !binary |-
9
+ NjU3NjY1NzJiNzRkZjk5MDY0ZTIxZWY3YTE1YzZjYWFhOTcxZDNhNDIzNWM1
10
+ ZGQ2M2QxOTEwOTk3MWM3ODcyNmM4YjdjYTk1MzliMzc0ZmNiMDA5MGE4ODdh
11
+ OTQ3OTNjNDU0OWRmMmIxMGExOGExZjUzMzFjM2RhZjhjZDkyY2M=
12
+ data.tar.gz: !binary |-
13
+ M2M1MTQ2MjY4OTQyODk2YjIwMDI5NDFiMTQ0MjU3OGEzZTY4ODhiNjEyZDA2
14
+ Y2NiMzk1Yjc4MDQyODA3NDZiN2EwOGEwZTRmYmI4NzUxZjc0NmM4YWM2OWY5
15
+ M2NlMmEyNzA1MzczYWY1OGY0NGNkMGIzMmRjMjdmMWNhODZjZGI=
data/.travis.yml CHANGED
@@ -1,3 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.1
3
+ - 2.2.1
4
+ before_install: gem install bundler
5
+ deploy:
6
+ provider: rubygems
7
+ api_key:
8
+ secure: RHEuUgZMd2vhxrV/cPteYHe0QAuFMqwcjfAenTkshm+vjHTJ4MGmETteXmcHZHFdyy/DIsrzZfukTaBnhzElkbrUyUGNF0A4TZuBlxxzJ6jVMGcxHM2xT/fZj43rcpXqoXJUP2bLtwmHAQuM3u8uMxgUHDyF6ojOfvpecT6X0C5uvXSCcI4l1Pcq94k9O3MOV0l1AF0gL0CWNNHoT/9mwRfrbh8yeuLESV3XVf/ueWiKV8sXUyTtp3iQpiKSEbndahcDlYDJxrDIzCGH2hGR67ro14ILg/JmB5+RxWz+cqzEifOj0aKBRbYeEOkFuD9KvEykFoT26vIY2cEGaglWup/x4c6gLw8xGP3jnrzWZO0X9jApf9qKCX7qzbeHzED++AeUv0Ytx3zetMFfH6cyk/rJRCJAHBymRXvZ/NzjesG1Ld6odeCrKHyOP3s2PVjrucIua84SNwU4gaS3W92iTfnkkAbCq23O6Cg1++RrMDt7Tb7QqhTQswSbjewX2rNewrNL8M/8PdUBV0gYWCUYyYR5p2Nw1JXcsM7nb1g2MpgDezqcqFyHVCU5j5YWK84leupTxS7HlFQr3CaUUbDL76H1s2+jstUx+n0RfLkn7MSTwv4IDKhRfV9j8MLn6pEdiR8fmqbWlBNWuamptnHR1Cub3t0h/3cnf4kgoO8GdnQ=
9
+ gem: when_was
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- # WhenWas
1
+ # WhenWas
2
+ [![Build Status](https://travis-ci.org/jutonz/when_was.svg)](https://travis-ci.org/jutonz/when_was)
2
3
 
3
4
  Given an episode number, this program tells you when a given episode of A State of Trance aired. Also works for future episodes.
4
5
 
data/lib/when_was.rb CHANGED
@@ -3,9 +3,16 @@ require 'date'
3
3
 
4
4
  module WhenWas
5
5
  def WhenWas.ASOT(episode)
6
- episode_699 = Date.new 2015, 1, 22
6
+ episode = episode.to_i
7
7
 
8
- diff = 699 - episode
9
- episode_699 - (diff * 7)
8
+ if episode < 701
9
+ episode_699 = Date.new 2015, 1, 22
10
+ diff = 699 - episode
11
+ return episode_699 - (diff * 7)
12
+ else
13
+ episode_701 = Date.new 2015, 2, 19
14
+ diff = 701 - episode
15
+ return episode_701 - (diff * 7)
16
+ end
10
17
  end
11
18
  end
@@ -1,3 +1,3 @@
1
1
  module WhenWas
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: when_was
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Toniazzo
@@ -14,42 +14,42 @@ dependencies:
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.9'
20
20
  type: :development
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: '1.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
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: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
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
  description:
@@ -59,9 +59,9 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - ".gitignore"
63
- - ".rspec"
64
- - ".travis.yml"
62
+ - .gitignore
63
+ - .rspec
64
+ - .travis.yml
65
65
  - Gemfile
66
66
  - README.md
67
67
  - Rakefile
@@ -79,17 +79,17 @@ require_paths:
79
79
  - lib
80
80
  required_ruby_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ">="
82
+ - - ! '>='
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 2.4.6
92
+ rubygems_version: 2.4.5
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: Determines when episodes of various radioshows aired (or will air).