Skip to content

Commit

Permalink
sorting out changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jfitisoff committed Sep 10, 2016
1 parent b097525 commit 3f27246
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions circle.yml
@@ -1,7 +1,8 @@
machine:
ruby:
version: 2.2.3
version: 2.1.9
test:
post:
pre:
- rake install
post:
- bundle exec rspec spec/ruby_lang_tests.rb -f html -o $CIRCLE_ARTIFACTS/test_report.html
6 changes: 5 additions & 1 deletion lib/site-object/site.rb
Expand Up @@ -221,7 +221,11 @@ def page
end

if found_page && !found_page.required_arguments.empty?
return found_page.new(self, found_page.url_template.extract(url))
if hsh = found_page.url_template.extract(url)
return found_page.new(self, found_page.url_template.extract(url))
else
return found_page.new(self, found_page.url_template.extract(url.split(/(\?|#)/)[0]))
end
elsif found_page
return found_page.new(self)
else
Expand Down
2 changes: 1 addition & 1 deletion lib/site-object/version.rb
@@ -1,3 +1,3 @@
module SiteObject
VERSION = '0.4.6'
VERSION = '0.4.7'
end

0 comments on commit 3f27246

Please sign in to comment.