Skip to content

Commit

Permalink
Added 2011 holidays to the Holidays demo app.
Browse files Browse the repository at this point in the history
  • Loading branch information
klazuka committed Jan 22, 2011
1 parent 9464bf0 commit 856c06a
Show file tree
Hide file tree
Showing 9 changed files with 562 additions and 333 deletions.
2 changes: 1 addition & 1 deletion Examples/Holiday/Classes/HolidayAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ - (void)applicationDidFinishLaunching:(UIApplication *)application
* Kal Configuration
*
* This demo app includes 2 example datasources for the Kal component. Both datasources
* contain 2009 and 2010 world holidays, however, one datasource retrieves the data
* contain 2009-2011 holidays, however, one datasource retrieves the data
* from a remote web server using JSON while the other datasource retrieves the data
* from a local Sqlite database. For this demo, I am going to set it up to just use
* the Sqlite database.
Expand Down
2 changes: 1 addition & 1 deletion Examples/Holiday/Classes/HolidayJSONDataSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* HolidayJSONDataSource
* ---------------------
*
* This example data source retrieves 2009 and 2010 world holidays
* This example data source retrieves world holidays
* from a JSON resource located at http://keith.lazuka.org/holidays.json.
* It uses Stig Brautaset's JSON library to parse the JSON and store
* it in an array of Holiday objects.
Expand Down
2 changes: 1 addition & 1 deletion Examples/Holiday/Classes/HolidaySqliteDataSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* HolidaySqliteDataSource
* ---------------------
*
* This example data source retrieves 2009 and 2010 world holidays
* This example data source retrieves world holidays
* from an Sqlite database stored locally in the application bundle.
* When the presentingDatesFrom:to:delegate message is received,
* it queries the database for the specified date range and
Expand Down
Binary file modified Examples/Holiday/holidays.db
Binary file not shown.
10 changes: 10 additions & 0 deletions Examples/Holiday/support/gen_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# data preprocessing for Kal Holidays example
# Keith Lazuka 2011-01-22
# If you want to add new holidays, add them to holidays.txt in the existing format.
# Please make sure that the country name has a corresponding flag image.

./holidays_preprocessor.py json < holidays.txt > holidays.json
./holidays_preprocessor.py sqlite < holidays.txt > holidays_setup.sql
rm ../holidays.db
sqlite3 -init holidays_setup.sql ../holidays.db
254 changes: 146 additions & 108 deletions Examples/Holiday/support/holidays.json

Large diffs are not rendered by default.

Loading

0 comments on commit 856c06a

Please sign in to comment.