Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed Rake task

  • Loading branch information...
commit 9679005f2ba248ca814e7a3018c90fd8dbfbe61c 1 parent d014384
Jarred Sumner authored
1  Gemfile
@@ -5,7 +5,6 @@ gem 'rails', '3.2.1'
5 5 # XML Parsing
6 6 gem 'nokogiri'
7 7
8   -
9 8 gem 'jquery-rails'
10 9
11 10 group :assets do
70 Gemfile.lock
@@ -28,70 +28,70 @@ GEM
28 28 activesupport (3.2.1)
29 29 i18n (~> 0.6)
30 30 multi_json (~> 1.0)
31   - arel (3.0.0)
32   - bootstrap-sass (2.0.1)
33   - bourbon (1.3.6)
  31 + arel (3.0.2)
  32 + bootstrap-sass (2.0.4.0)
  33 + bourbon (2.1.1)
34 34 sass (>= 3.1)
35 35 builder (3.0.0)
36   - capistrano (2.9.0)
  36 + capistrano (2.13.0)
37 37 highline
38 38 net-scp (>= 1.0.0)
39 39 net-sftp (>= 2.0.0)
40 40 net-ssh (>= 2.0.14)
41 41 net-ssh-gateway (>= 1.1.0)
42   - coderay (1.0.5)
  42 + coderay (1.0.7)
43 43 coffee-rails (3.2.2)
44 44 coffee-script (>= 2.2.0)
45 45 railties (~> 3.2.0)
46 46 coffee-script (2.2.0)
47 47 coffee-script-source
48 48 execjs
49   - coffee-script-source (1.2.0)
  49 + coffee-script-source (1.3.3)
50 50 erubis (2.7.0)
51   - execjs (1.3.0)
  51 + execjs (1.4.0)
52 52 multi_json (~> 1.0)
53   - gon (2.1.0)
  53 + gon (4.0.0)
54 54 actionpack (>= 2.3.0)
55 55 json
56 56 highcharts-rails (2.1.9)
57 57 railties (~> 3.1)
58   - highline (1.6.11)
  58 + highline (1.6.13)
59 59 hike (1.2.1)
60 60 i18n (0.6.0)
61   - journey (1.0.1)
62   - jquery-rails (2.0.0)
63   - railties (>= 3.2.0.beta, < 5.0)
  61 + journey (1.0.4)
  62 + jquery-rails (2.1.0)
  63 + railties (>= 3.1.0, < 5.0)
64 64 thor (~> 0.14)
65   - json (1.6.5)
  65 + json (1.7.5)
66 66 libv8 (3.3.10.4)
67   - mail (2.4.1)
  67 + mail (2.4.4)
68 68 i18n (>= 0.4.0)
69 69 mime-types (~> 1.16)
70 70 treetop (~> 1.4.8)
71   - method_source (0.7.0)
72   - mime-types (1.17.2)
73   - multi_json (1.0.4)
  71 + method_source (0.8)
  72 + mime-types (1.19)
  73 + multi_json (1.3.6)
74 74 net-scp (1.0.4)
75 75 net-ssh (>= 1.99.1)
76 76 net-sftp (2.0.5)
77 77 net-ssh (>= 2.0.9)
78   - net-ssh (2.3.0)
  78 + net-ssh (2.5.2)
79 79 net-ssh-gateway (1.1.0)
80 80 net-ssh (>= 1.99.1)
81   - nokogiri (1.5.0)
82   - pg (0.12.2)
  81 + nokogiri (1.5.5)
  82 + pg (0.14.0)
83 83 pjax-rails (0.1.4)
84 84 jquery-rails
85 85 polyglot (0.3.3)
86   - pry (0.9.8.1)
  86 + pry (0.9.10)
87 87 coderay (~> 1.0.5)
88   - method_source (~> 0.7)
89   - slop (>= 2.4.3, < 3)
90   - rabl (0.5.4)
  88 + method_source (~> 0.8)
  89 + slop (~> 3.3.1)
  90 + rabl (0.7.1)
91 91 activesupport (>= 2.3.14)
92   - multi_json (~> 1.0.3)
  92 + multi_json (~> 1.0)
93 93 rack (1.4.1)
94   - rack-cache (1.1)
  94 + rack-cache (1.2)
95 95 rack (>= 0.4)
96 96 rack-ssl (1.3.2)
97 97 rack
@@ -115,28 +115,28 @@ GEM
115 115 rake (0.9.2.2)
116 116 rdoc (3.12)
117 117 json (~> 1.4)
118   - sass (3.1.14)
119   - sass-rails (3.2.4)
  118 + sass (3.2.1)
  119 + sass-rails (3.2.5)
120 120 railties (~> 3.2.0)
121 121 sass (>= 3.1.10)
122 122 tilt (~> 1.3)
123   - slop (2.4.3)
124   - sprockets (2.1.2)
  123 + slop (3.3.2)
  124 + sprockets (2.1.3)
125 125 hike (~> 1.2)
126 126 rack (~> 1.0)
127 127 tilt (~> 1.1, != 1.3.0)
128   - sqlite3 (1.3.5)
129   - therubyracer (0.9.9)
  128 + sqlite3 (1.3.6)
  129 + therubyracer (0.10.2)
130 130 libv8 (~> 3.3.10)
131 131 thor (0.14.6)
132 132 tilt (1.3.3)
133 133 treetop (1.4.10)
134 134 polyglot
135 135 polyglot (>= 0.3.1)
136   - tzinfo (0.3.31)
137   - uglifier (1.2.3)
  136 + tzinfo (0.3.33)
  137 + uglifier (1.2.7)
138 138 execjs (>= 0.3.0)
139   - multi_json (>= 1.0.2)
  139 + multi_json (~> 1.3)
140 140
141 141 PLATFORMS
142 142 ruby
3  albipes.sublime-project
@@ -3,6 +3,9 @@
3 3 [
4 4 {
5 5 "path": "/E/Programming/Albipes"
  6 + },
  7 + {
  8 + "path": "/Users/jarred/Code/FundingList.us"
6 9 }
7 10 ]
8 11 }
7 lib/tasks/sec.rake
... ... @@ -1,3 +1,6 @@
  1 +CURRENT_QUARTER = 4
  2 +CURRENT_YEAR = 2012
  3 +
1 4 desc 'SEC'
2 5 namespace :sec do
3 6
@@ -7,7 +10,7 @@ namespace :sec do
7 10 start_index = 1
8 11 start_index = 4 if year == 2008
9 12 (1..4).each do |quarter|
10   - break if year == 2012 and quarter > 1
  13 + break if year == CURRENT_YEAR && quarter == CURRENT_QUARTER
11 14 Company.parse_from_quarterly_filings(year, quarter, false, nil)
12 15 end
13 16 end
@@ -36,7 +39,7 @@ namespace :sec do
36 39 start_index = 1
37 40 start_index = 4 if year == 2008
38 41 (start_index..4).each do |quarter|
39   - break if quarter > 1 and year == 2012
  42 + break if year == CURRENT_YEAR && quarter == CURRENT_QUARTER
40 43 Company.parse_from_quarterly_filings(year,quarter,false,"#{year}/QTR#{quarter}/form.idx")
41 44 end
42 45 end

0 comments on commit 9679005

Please sign in to comment.
Something went wrong with that request. Please try again.