Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
283dd95
switch to interpreted heist
dbp Jun 6, 2016
d6f8f3a
Cache taxdicts for 12 hours always, and don't delete them at startup.
dbp Jun 7, 2016
036042b
Expire tax dicts that aren't parsable
dbp Jun 8, 2016
ea6492b
WIP
emhoracek Jun 29, 2016
e308f27
WIP still
emhoracek Jun 30, 2016
2932f33
Add tests for rendering templates
emhoracek Jul 1, 2016
d0862cf
Test queries
emhoracek Jul 1, 2016
737ad19
Add live tests
emhoracek Jul 3, 2016
d6c233d
Change fills function to
emhoracek Jul 3, 2016
5783346
Refactor tests
emhoracek Jul 6, 2016
45e0244
Use new larceny functions
emhoracek Jul 11, 2016
5e57187
Update WP to api v2
emhoracek Jul 20, 2016
b4cbee2
Add caching tests
emhoracek Jul 20, 2016
f7ae6b8
Use wp api v2
emhoracek Jul 20, 2016
2d930c4
Make Application Password always return the same password
emhoracek Jul 20, 2016
50bccb0
Fix circle, stack
emhoracek Jul 21, 2016
7470b8c
Update larceny, fix `useAttrs`
emhoracek Jul 26, 2016
dd1b67e
Tiny refactor of TaxSpec show instance
emhoracek Aug 18, 2016
9065b24
Add queries to get taxonomy slugs from ids
emhoracek Aug 20, 2016
5050a17
Update to latest Wordpress
emhoracek Jan 5, 2017
dabbc75
Merge pull request #24 from positiondev/update-to-latest-wp
dhartunian Jan 5, 2017
7b824fe
Filter by custom taxonomies
emhoracek Jan 9, 2017
68bc9a9
Update rest api log and add custom types creator
emhoracek Jan 9, 2017
f974dd1
Automate adding departments to a post
emhoracek Jan 9, 2017
9e04b3b
Remove wck-custom-fields plugin
emhoracek Jan 9, 2017
02976dd
Fix circle.yml typo
emhoracek Jan 9, 2017
4767b67
Remove unnecessary functions and types
emhoracek Jan 9, 2017
6d68447
Merge pull request #26 from positiondev/custom-taxonomies
emhoracek Jan 9, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ $ wp core install --admin_user=offset --admin_password=111 --url=localhost --tit
$ wp server --port=5555
```

Set the permalink structure, activate the plugins, and set the name of the admin:
Set the permalink structure, activate the plugins, set the name of the admin, and set the application password:

```
wp option update permalink_structure '/%year%/%monthnum%/%postname%/'
wp plugin activate --all
wp user update 1 --display_name="Ira Rubel" --first_name="Ira" --last_name="Rubel"
wp eval-file create_password.php
```

To test that it is working,
Expand Down
5 changes: 1 addition & 4 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,5 @@ test:
- cd wp && wp server --port=5555:
background: true
- sleep 5
- cd wp && wp post delete 1 && wp post create --post_title='A first post' --post_status=publish --post_date='2014-10-01 07:00:00' --post_content="This is the content" --post_author=1 && wp post create --post_title='A second post' --post_status=publish --post_date='2014-10-02 07:00:00' --post_content="This is the second post content" --post_author=1 && wp post create --post_title='A third post' --post_status=publish --post_date='2014-10-10 07:00:00' --post_content="This is the third post content" --post_author=1 && wp post create --post_title='A fourth post' --post_status=publish --post_date='2014-10-15 07:00:00' --post_content="This is the fourth post content" --post_author=1
- cd wp && wp option update permalink_structure '/%year%/%monthnum%/%postname%/' && wp plugin activate --all
- cd wp && wp user update 1 --display_name="Ira Rubel" --first_name="Ira" --last_name="Rubel"
- cd wp && python add_tags.py
- cd wp && python setup_posts.py
- stack test
38 changes: 24 additions & 14 deletions offset.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -50,31 +50,41 @@ library
, containers
, vector
, attoparsec
, larceny
hs-source-dirs: src
default-language: Haskell2010

Test-Suite test-offset
type: exitcode-stdio-1.0
hs-source-dirs: spec
hs-source-dirs: spec, src
main-is: Main.hs
other-modules: Misc
build-depends: base
, heist
, hspec-snap
, aeson
, async
, attoparsec
, base < 4.9
, blaze-builder
, bytestring
, configurator
, containers
, data-default
, either
, fn
, hedis
, directory
, dotenv
, wai
, hspec >= 2
, hspec-core
, snap
, offset
, blaze-builder
, snaplet-redis
, larceny
, lens
, data-default
, text
, xmlhtml
, map-syntax
, mtl
, either
, text
, time
, unordered-containers
, aeson
, containers
, hedis
, vector
, wreq >= 0.3
, xmlhtml >= 0.2.3.2
default-language: Haskell2010
Loading