adtech-api-client 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61e475d1ca3ae838a378b620e0698676e78b26cb
4
- data.tar.gz: 598ca7019d56a401be026373fd1cc342664307d9
3
+ metadata.gz: 1fcb912aa7ee4606234d686b8617dd57173e790b
4
+ data.tar.gz: 9c1ecb037ecb94e5f5e077b474f1d9ec7b77d7a6
5
5
  SHA512:
6
- metadata.gz: 45c2b8844d65ce24211e3340568bd54b5124cfbc34f6f4e456647e71386c0601c359eb0bd1588f6c7a1090fd92d6a1ff63d4e9db8bf6f0c0fdf88267ef06518a
7
- data.tar.gz: 8e3f09615da44fafe15c9c38894ef1668c8e7943fe6c240c12ddcd83e033d6d3c569e5f29620ce107046ab88bccad1402ef08234ca9a23604f6faf8152e825f9
6
+ metadata.gz: e964260571d27fe60664ee5729405ebe1cb1663da6f470fcd59b31351ad074907115864a1dde0ac1a013bb666f0d886d902e2f352cb26b106e36486de96dc4b3
7
+ data.tar.gz: 84067f7591418137a3e54a5b822a47726c715da39f4118468fa9e4c2c70256562b329895c49f9241dde445e3298a99e701ac831294a9b6a2a0ea4362385216fc
data/Gemfile.lock CHANGED
@@ -1,7 +1,6 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- adtech-api-client (0.0.2)
5
4
 
6
5
  GEM
7
6
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # ADTech API Ruby Client
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/adtech-api-client.png)](https://badge.fury.io/rb/adtech-api-client)
4
+
3
5
  ## Getting Started
4
6
 
5
7
  Install Java (JDK 1.8 Above)
@@ -2,7 +2,7 @@ $: << File.expand_path('../lib', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'adtech-api-client'
5
- s.version = '0.0.2'
5
+ s.version = '0.0.3'
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ['minsikzzang', 'ericescalante']
8
8
  s.email = ['min.kim@factorymedia.com', 'eric.escalante@factorymedia.com', 'developers@factorymedia.com']
@@ -105,7 +105,7 @@ module ADTech
105
105
  cal.set(Calendar::DAY_OF_MONTH, day)
106
106
  cal.set(Calendar::MONTH, month)
107
107
  cal.set(Calendar::YEAR, year)
108
- cal.set(Calendar::HOUR, hour)
108
+ cal.set(Calendar::HOUR_OF_DAY, hour)
109
109
  cal.set(Calendar::MINUTE, minute)
110
110
  cal.set(Calendar::SECOND, second)
111
111
  cal
data/spec/report_spec.rb CHANGED
@@ -145,4 +145,20 @@ describe ADTech::API::Report do
145
145
  end
146
146
  end
147
147
  end
148
+
149
+ describe '.gregorian_calendar' do
150
+ context 'when given time is end of day' do
151
+ it 'should return relevant gregorian_calendar object' do
152
+ cal = @report.send(:gregorian_calendar, 2016, 5, 12, 23, 59, 59)
153
+ expect(cal.getTime.to_s). to eq('Sun Jun 12 23:59:59 BST 2016')
154
+ end
155
+ end
156
+
157
+ context 'when given time is beginnig of day' do
158
+ it 'should return relevant gregorian_calendar object' do
159
+ cal = @report.send(:gregorian_calendar, 2016, 5, 12, 0, 0, 0)
160
+ expect(cal.getTime.to_s). to eq('Sun Jun 12 00:00:00 BST 2016')
161
+ end
162
+ end
163
+ end
148
164
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adtech-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - minsikzzang
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-22 00:00:00.000000000 Z
12
+ date: 2016-06-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ADTech Classic API ruby client
15
15
  email: