fossil 0.5.32 → 0.5.33
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fossil.gemspec +2 -2
- data/lib/support/core_extensions.rb +7 -0
- data/spec/core_extensions_spec.rb +6 -0
- data/spec/silly_spec.rb +9 -7
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.33
|
data/fossil.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{fossil}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.33"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Patrick Lardin, Daniel Sudol"]
|
12
|
-
s.date = %q{2011-03-
|
12
|
+
s.date = %q{2011-03-10}
|
13
13
|
s.description = %q{Access FOS/betrieve db with this Sequel based orm wrapper}
|
14
14
|
s.email = %q{plardin@xojet.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -17,6 +17,12 @@ describe Hash do
|
|
17
17
|
h = {:dan=>1,:eric=>2}
|
18
18
|
h.soft_delete(:dan).should == {:eric=>2}
|
19
19
|
end
|
20
|
+
|
21
|
+
it "merge_add_values should add values with same key" do
|
22
|
+
h = {:e=>[1],:f=>3}
|
23
|
+
h2 = {:e=>[2],:f=>22}
|
24
|
+
h.merge_add_values(h2).should == {:e=>[1,2],:f=>25}
|
25
|
+
end
|
20
26
|
end
|
21
27
|
|
22
28
|
describe Integer do
|
data/spec/silly_spec.rb
CHANGED
@@ -3,11 +3,13 @@ require 'logger'
|
|
3
3
|
require 'pp'
|
4
4
|
|
5
5
|
#DB = Sequel.fos('fosprod', :loggers=>[Logger.new($stdout)])
|
6
|
-
DB = Sequel.fos('flyos')#, :loggers=>[Logger.new($stdout)])
|
7
|
-
[
|
6
|
+
#DB = Sequel.fos('flyos')#, :loggers=>[Logger.new($stdout)])
|
7
|
+
#[AirportFuel].each {|model| model.db = DB}
|
8
|
+
#[Trip, TripLeg, Aircraft].each {|model| model.db = DB}
|
8
9
|
|
9
|
-
p [
|
10
|
-
p [
|
10
|
+
#p [AirportFuel.min(:kid_date),AirportFuel.max(:kid_date)]
|
11
|
+
#p [TripLeg.min(:dept_date_gmt),TripLeg.max(:dept_date_gmt)]
|
12
|
+
#p [Date.from_fos_days(TripLeg.min(:dept_date_gmt)).to_s,Date.from_fos_days(TripLeg.max(:dept_date_gmt)).to_s]
|
11
13
|
|
12
14
|
#p TripLeg.filter(:)
|
13
15
|
#p Passenger.filter(:kid_date=>38439, :kid_time=>1428, :kid_comm=>1, :kid_mult=>0).first
|
@@ -22,9 +24,9 @@ p [Date.from_fos_days(TripLeg.min(:dept_date_gmt)).to_s,Date.from_fos_days(TripL
|
|
22
24
|
#p TripLeg.select(:cancel_code).distinct(:cancel_code)
|
23
25
|
#p TripLeg.filter{ cancel_code >1 }.count
|
24
26
|
|
25
|
-
p TripLeg.first(:trip_number=>98,:leg_number=>3).fill_hash(
|
26
|
-
[:kid_date,:planned_departure_date_time_gmt]
|
27
|
-
)
|
27
|
+
#p TripLeg.first(:trip_number=>98,:leg_number=>3).fill_hash(
|
28
|
+
# [:kid_date,:planned_departure_date_time_gmt]
|
29
|
+
#)
|
28
30
|
|
29
31
|
#p QuoteLeg.filter{kid_date > (Date.today-30)}.filter{block_time_actual > 0}.first.confirmation_number
|
30
32
|
#p t.actual_departure_date_time_gmt.to_time
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 33
|
9
|
+
version: 0.5.33
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Patrick Lardin, Daniel Sudol
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-03-
|
17
|
+
date: 2011-03-10 00:00:00 -08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|