periodic_calculations 0.0.1 → 0.0.2

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/.gitignore CHANGED
@@ -4,6 +4,5 @@ Gemfile.lock
4
4
  .bundle
5
5
  nbproject/*
6
6
  bin
7
- .rspec
8
7
  .rbenv-version
9
8
  coverage/
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --colour --drb --profile --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ script :
5
+ - cd spec/dummy
6
+ - bundle exec rake db:test:prepare
7
+ - cd ../../
8
+ - bundle exec rspec spec/
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- periodic_calculations (0.0.1)
4
+ periodic_calculations (0.0.2)
5
5
  rails (>= 3.2)
6
6
  railties
7
7
 
@@ -1,3 +1,3 @@
1
1
  module PeriodicCalculations
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -14,7 +14,7 @@ test:
14
14
  database: periodic_calculations_test
15
15
  pool: 5
16
16
  host: 127.0.0.1
17
- username: rewardli_su
17
+ username: postgres
18
18
  password:
19
19
  timeout: 5000
20
20
 
@@ -1,11 +1,9 @@
1
- require 'spec_helper'
2
-
3
1
  describe PeriodicCalculations::Query do
4
2
 
5
3
  before { Activity.delete_all }
6
4
 
7
5
  let(:scope) { Activity.all }
8
- let(:time) { Time.now }
6
+ let(:time) { Time.zone.now }
9
7
 
10
8
  let(:operation) { :count }
11
9
  let(:column_name) { :id }
@@ -96,9 +94,9 @@ describe PeriodicCalculations::Query do
96
94
  end
97
95
 
98
96
  it "should return matching results taking timezone into account" do
99
- Time.zone = ActiveSupport::TimeZone["Pacific Time (US & Canada)"]
97
+ Time.zone = ActiveSupport::TimeZone["Asia/Tokyo"]
100
98
 
101
- Time.zone.name.should == "Pacific Time (US & Canada)" # ensure correctly set
99
+ Time.zone.name.should == "Asia/Tokyo" # ensure correctly set
102
100
 
103
101
  # Outside left window limit
104
102
  Activity.create(:quantity => 3, :created_at => start_time.beginning_of_day - 1.seconds)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: periodic_calculations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.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-12-07 00:00:00.000000000 Z
12
+ date: 2013-12-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -100,6 +100,8 @@ extensions: []
100
100
  extra_rdoc_files: []
101
101
  files:
102
102
  - .gitignore
103
+ - .rspec
104
+ - .travis.yml
103
105
  - Gemfile
104
106
  - Gemfile.lock
105
107
  - MIT-LICENSE