by_star 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source :gemcutter
2
2
 
3
3
  group :test do
4
- gem 'rspec', '2.0.0.beta.22'
4
+ gem 'rspec', '~> 2.6.0'
5
5
  gem 'mysql'
6
6
  gem 'sqlite3-ruby'
7
7
  end
data/Gemfile.lock CHANGED
@@ -1,59 +1,46 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- by_star (0.0.1)
4
+ by_star (1.0.0)
5
5
  activerecord (>= 2.0.0)
6
6
  chronic
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- activemodel (3.0.0)
12
- activesupport (= 3.0.0)
11
+ activemodel (3.0.7)
12
+ activesupport (= 3.0.7)
13
13
  builder (~> 2.1.2)
14
- i18n (~> 0.4.1)
15
- activerecord (3.0.0)
16
- activemodel (= 3.0.0)
17
- activesupport (= 3.0.0)
18
- arel (~> 1.0.0)
14
+ i18n (~> 0.5.0)
15
+ activerecord (3.0.7)
16
+ activemodel (= 3.0.7)
17
+ activesupport (= 3.0.7)
18
+ arel (~> 2.0.2)
19
19
  tzinfo (~> 0.3.23)
20
- activesupport (3.0.0)
21
- arel (1.0.1)
22
- activesupport (~> 3.0.0)
20
+ activesupport (3.0.7)
21
+ arel (2.0.10)
23
22
  builder (2.1.2)
24
- chronic (0.2.3)
25
- hoe (>= 1.2.1)
23
+ chronic (0.3.0)
26
24
  diff-lcs (1.1.2)
27
- hoe (2.6.1)
28
- rake (>= 0.8.7)
29
- rubyforge (>= 2.0.4)
30
- i18n (0.4.1)
31
- json_pure (1.4.6)
25
+ i18n (0.5.0)
32
26
  mysql (2.8.1)
33
- rake (0.8.7)
34
- rspec (2.0.0.beta.22)
35
- rspec-core (= 2.0.0.beta.22)
36
- rspec-expectations (= 2.0.0.beta.22)
37
- rspec-mocks (= 2.0.0.beta.22)
38
- rspec-core (2.0.0.beta.22)
39
- rspec-expectations (2.0.0.beta.22)
40
- diff-lcs (>= 1.1.2)
41
- rspec-mocks (2.0.0.beta.22)
42
- rspec-core (= 2.0.0.beta.22)
43
- rspec-expectations (= 2.0.0.beta.22)
44
- rubyforge (2.0.4)
45
- json_pure (>= 1.1.7)
27
+ rspec (2.6.0)
28
+ rspec-core (~> 2.6.0)
29
+ rspec-expectations (~> 2.6.0)
30
+ rspec-mocks (~> 2.6.0)
31
+ rspec-core (2.6.3)
32
+ rspec-expectations (2.6.0)
33
+ diff-lcs (~> 1.1.2)
34
+ rspec-mocks (2.6.0)
46
35
  sqlite3-ruby (1.3.1)
47
- tzinfo (0.3.23)
36
+ tzinfo (0.3.27)
48
37
 
49
38
  PLATFORMS
50
39
  ruby
51
40
 
52
41
  DEPENDENCIES
53
- activerecord (>= 2.0.0)
54
42
  bundler (>= 1.0.0)
55
43
  by_star!
56
- chronic
57
44
  mysql
58
- rspec (= 2.0.0.beta.22)
45
+ rspec (~> 2.6.0)
59
46
  sqlite3-ruby
data/by_star.gemspec CHANGED
@@ -5,8 +5,8 @@ Gem::Specification.new do |s|
5
5
  s.name = "by_star"
6
6
  s.version = ByStar::VERSION
7
7
  s.platform = Gem::Platform::RUBY
8
- s.authors = []
9
- s.email = []
8
+ s.authors = ["Ryan Bigg"]
9
+ s.email = ["radarlistener@gmail.com"]
10
10
  s.homepage = "http://rubygems.org/gems/by_star"
11
11
  s.summary = "ActiveRecord extension for easier date scopes and time ranges"
12
12
  s.description = "ActiveRecord extension for easier date scopes and time ranges"
@@ -1,6 +1,6 @@
1
1
  module Shared
2
2
  def conditions_for_range(start_time, end_time, field=nil)
3
- field = table_name << '.' << field.to_s if field
3
+ field = "#{table_name}.#{field}" if field
4
4
  field ||= by_star_field
5
5
  ["#{field} >= ? AND #{field} <= ?", start_time.utc, end_time.utc]
6
6
  end
@@ -1,3 +1,3 @@
1
1
  module ByStar
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,22 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: by_star
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- version: 1.0.0
4
+ prerelease:
5
+ version: 1.0.1
11
6
  platform: ruby
12
- authors: []
13
-
7
+ authors:
8
+ - Ryan Bigg
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2010-10-02 00:00:00 +10:00
19
- default_executable:
13
+ date: 2011-08-29 00:00:00 Z
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: bundler
@@ -26,11 +20,6 @@ dependencies:
26
20
  requirements:
27
21
  - - ">="
28
22
  - !ruby/object:Gem::Version
29
- hash: 23
30
- segments:
31
- - 1
32
- - 0
33
- - 0
34
23
  version: 1.0.0
35
24
  type: :development
36
25
  version_requirements: *id001
@@ -42,11 +31,6 @@ dependencies:
42
31
  requirements:
43
32
  - - ">="
44
33
  - !ruby/object:Gem::Version
45
- hash: 15
46
- segments:
47
- - 2
48
- - 0
49
- - 0
50
34
  version: 2.0.0
51
35
  type: :runtime
52
36
  version_requirements: *id002
@@ -58,15 +42,12 @@ dependencies:
58
42
  requirements:
59
43
  - - ">="
60
44
  - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 0
64
45
  version: "0"
65
46
  type: :runtime
66
47
  version_requirements: *id003
67
48
  description: ActiveRecord extension for easier date scopes and time ranges
68
- email: []
69
-
49
+ email:
50
+ - radarlistener@gmail.com
70
51
  executables: []
71
52
 
72
53
  extensions: []
@@ -99,7 +80,6 @@ files:
99
80
  - spec/fixtures/schema.rb
100
81
  - spec/spec_helper.rb
101
82
  - tmp/.gitignore
102
- has_rdoc: true
103
83
  homepage: http://rubygems.org/gems/by_star
104
84
  licenses: []
105
85
 
@@ -113,25 +93,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
93
  requirements:
114
94
  - - ">="
115
95
  - !ruby/object:Gem::Version
116
- hash: 3
117
- segments:
118
- - 0
119
96
  version: "0"
120
97
  required_rubygems_version: !ruby/object:Gem::Requirement
121
98
  none: false
122
99
  requirements:
123
100
  - - ">="
124
101
  - !ruby/object:Gem::Version
125
- hash: 23
126
- segments:
127
- - 1
128
- - 3
129
- - 6
130
102
  version: 1.3.6
131
103
  requirements: []
132
104
 
133
105
  rubyforge_project: by_star
134
- rubygems_version: 1.3.7
106
+ rubygems_version: 1.8.8
135
107
  signing_key:
136
108
  specification_version: 3
137
109
  summary: ActiveRecord extension for easier date scopes and time ranges