Skip to content

Commit

Permalink
Fixed Rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Aug 18, 2012
1 parent d014384 commit 9679005
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 38 deletions.
1 change: 0 additions & 1 deletion Gemfile
Expand Up @@ -5,7 +5,6 @@ gem 'rails', '3.2.1'
# XML Parsing # XML Parsing
gem 'nokogiri' gem 'nokogiri'



gem 'jquery-rails' gem 'jquery-rails'


group :assets do group :assets do
Expand Down
70 changes: 35 additions & 35 deletions Gemfile.lock
Expand Up @@ -28,70 +28,70 @@ GEM
activesupport (3.2.1) activesupport (3.2.1)
i18n (~> 0.6) i18n (~> 0.6)
multi_json (~> 1.0) multi_json (~> 1.0)
arel (3.0.0) arel (3.0.2)
bootstrap-sass (2.0.1) bootstrap-sass (2.0.4.0)
bourbon (1.3.6) bourbon (2.1.1)
sass (>= 3.1) sass (>= 3.1)
builder (3.0.0) builder (3.0.0)
capistrano (2.9.0) capistrano (2.13.0)
highline highline
net-scp (>= 1.0.0) net-scp (>= 1.0.0)
net-sftp (>= 2.0.0) net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14) net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0) net-ssh-gateway (>= 1.1.0)
coderay (1.0.5) coderay (1.0.7)
coffee-rails (3.2.2) coffee-rails (3.2.2)
coffee-script (>= 2.2.0) coffee-script (>= 2.2.0)
railties (~> 3.2.0) railties (~> 3.2.0)
coffee-script (2.2.0) coffee-script (2.2.0)
coffee-script-source coffee-script-source
execjs execjs
coffee-script-source (1.2.0) coffee-script-source (1.3.3)
erubis (2.7.0) erubis (2.7.0)
execjs (1.3.0) execjs (1.4.0)
multi_json (~> 1.0) multi_json (~> 1.0)
gon (2.1.0) gon (4.0.0)
actionpack (>= 2.3.0) actionpack (>= 2.3.0)
json json
highcharts-rails (2.1.9) highcharts-rails (2.1.9)
railties (~> 3.1) railties (~> 3.1)
highline (1.6.11) highline (1.6.13)
hike (1.2.1) hike (1.2.1)
i18n (0.6.0) i18n (0.6.0)
journey (1.0.1) journey (1.0.4)
jquery-rails (2.0.0) jquery-rails (2.1.0)
railties (>= 3.2.0.beta, < 5.0) railties (>= 3.1.0, < 5.0)
thor (~> 0.14) thor (~> 0.14)
json (1.6.5) json (1.7.5)
libv8 (3.3.10.4) libv8 (3.3.10.4)
mail (2.4.1) mail (2.4.4)
i18n (>= 0.4.0) i18n (>= 0.4.0)
mime-types (~> 1.16) mime-types (~> 1.16)
treetop (~> 1.4.8) treetop (~> 1.4.8)
method_source (0.7.0) method_source (0.8)
mime-types (1.17.2) mime-types (1.19)
multi_json (1.0.4) multi_json (1.3.6)
net-scp (1.0.4) net-scp (1.0.4)
net-ssh (>= 1.99.1) net-ssh (>= 1.99.1)
net-sftp (2.0.5) net-sftp (2.0.5)
net-ssh (>= 2.0.9) net-ssh (>= 2.0.9)
net-ssh (2.3.0) net-ssh (2.5.2)
net-ssh-gateway (1.1.0) net-ssh-gateway (1.1.0)
net-ssh (>= 1.99.1) net-ssh (>= 1.99.1)
nokogiri (1.5.0) nokogiri (1.5.5)
pg (0.12.2) pg (0.14.0)
pjax-rails (0.1.4) pjax-rails (0.1.4)
jquery-rails jquery-rails
polyglot (0.3.3) polyglot (0.3.3)
pry (0.9.8.1) pry (0.9.10)
coderay (~> 1.0.5) coderay (~> 1.0.5)
method_source (~> 0.7) method_source (~> 0.8)
slop (>= 2.4.3, < 3) slop (~> 3.3.1)
rabl (0.5.4) rabl (0.7.1)
activesupport (>= 2.3.14) activesupport (>= 2.3.14)
multi_json (~> 1.0.3) multi_json (~> 1.0)
rack (1.4.1) rack (1.4.1)
rack-cache (1.1) rack-cache (1.2)
rack (>= 0.4) rack (>= 0.4)
rack-ssl (1.3.2) rack-ssl (1.3.2)
rack rack
Expand All @@ -115,28 +115,28 @@ GEM
rake (0.9.2.2) rake (0.9.2.2)
rdoc (3.12) rdoc (3.12)
json (~> 1.4) json (~> 1.4)
sass (3.1.14) sass (3.2.1)
sass-rails (3.2.4) sass-rails (3.2.5)
railties (~> 3.2.0) railties (~> 3.2.0)
sass (>= 3.1.10) sass (>= 3.1.10)
tilt (~> 1.3) tilt (~> 1.3)
slop (2.4.3) slop (3.3.2)
sprockets (2.1.2) sprockets (2.1.3)
hike (~> 1.2) hike (~> 1.2)
rack (~> 1.0) rack (~> 1.0)
tilt (~> 1.1, != 1.3.0) tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.5) sqlite3 (1.3.6)
therubyracer (0.9.9) therubyracer (0.10.2)
libv8 (~> 3.3.10) libv8 (~> 3.3.10)
thor (0.14.6) thor (0.14.6)
tilt (1.3.3) tilt (1.3.3)
treetop (1.4.10) treetop (1.4.10)
polyglot polyglot
polyglot (>= 0.3.1) polyglot (>= 0.3.1)
tzinfo (0.3.31) tzinfo (0.3.33)
uglifier (1.2.3) uglifier (1.2.7)
execjs (>= 0.3.0) execjs (>= 0.3.0)
multi_json (>= 1.0.2) multi_json (~> 1.3)


PLATFORMS PLATFORMS
ruby ruby
Expand Down
3 changes: 3 additions & 0 deletions albipes.sublime-project
Expand Up @@ -3,6 +3,9 @@
[ [
{ {
"path": "/E/Programming/Albipes" "path": "/E/Programming/Albipes"
},
{
"path": "/Users/jarred/Code/FundingList.us"
} }
] ]
} }
7 changes: 5 additions & 2 deletions lib/tasks/sec.rake
@@ -1,3 +1,6 @@
CURRENT_QUARTER = 4
CURRENT_YEAR = 2012

desc 'SEC' desc 'SEC'
namespace :sec do namespace :sec do


Expand All @@ -7,7 +10,7 @@ namespace :sec do
start_index = 1 start_index = 1
start_index = 4 if year == 2008 start_index = 4 if year == 2008
(1..4).each do |quarter| (1..4).each do |quarter|
break if year == 2012 and quarter > 1 break if year == CURRENT_YEAR && quarter == CURRENT_QUARTER
Company.parse_from_quarterly_filings(year, quarter, false, nil) Company.parse_from_quarterly_filings(year, quarter, false, nil)
end end
end end
Expand Down Expand Up @@ -36,7 +39,7 @@ namespace :sec do
start_index = 1 start_index = 1
start_index = 4 if year == 2008 start_index = 4 if year == 2008
(start_index..4).each do |quarter| (start_index..4).each do |quarter|
break if quarter > 1 and year == 2012 break if year == CURRENT_YEAR && quarter == CURRENT_QUARTER
Company.parse_from_quarterly_filings(year,quarter,false,"#{year}/QTR#{quarter}/form.idx") Company.parse_from_quarterly_filings(year,quarter,false,"#{year}/QTR#{quarter}/form.idx")
end end
end end
Expand Down

0 comments on commit 9679005

Please sign in to comment.