Skip to content

Conversation

grosser
Copy link
Contributor

@grosser grosser commented Aug 7, 2013

@josevalim same as #6252

@grosser
Copy link
Contributor Author

grosser commented Aug 24, 2013

@rafaelfranca can you review/merge ?

@robin850
Copy link
Member

@grosser : Maybe you could add a changelog entry?

@grosser
Copy link
Contributor Author

grosser commented Aug 24, 2013

Added!

@grosser
Copy link
Contributor Author

grosser commented Aug 30, 2013

bump plz merge


def test_write_with_unless_exist
assert_equal true, @cache.write(1, "aaaaaaaaaa")
assert_equal false, @cache.write(1, "aaaaaaaaaa", :unless_exist => true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use 1.9 style for hashes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, merge ? :)

On Fri, Aug 30, 2013 at 11:06 AM, Paul Nikitochkin <notifications@github.com

wrote:

In activesupport/test/caching_test.rb:

@@ -709,6 +709,13 @@ def test_log_exception_when_cache_read_fails
@cache.send(:read_entry, "winston", {})
assert @buffer.string.present?
end
+

  • def test_write_with_unless_exist
  • assert_equal true, @cache.write(1, "aaaaaaaaaa")
  • assert_equal false, @cache.write(1, "aaaaaaaaaa", :unless_exist => true)

Please use 1.9 style for hashes


Reply to this email directly or view it on GitHubhttps://github.com//pull/11785/files#r6081952
.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not rails committer :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then find someone :D

On Fri, Aug 30, 2013 at 12:35 PM, Paul Nikitochkin <notifications@github.com

wrote:

In activesupport/test/caching_test.rb:

@@ -709,6 +709,13 @@ def test_log_exception_when_cache_read_fails
@cache.send(:read_entry, "winston", {})
assert @buffer.string.present?
end
+

  • def test_write_with_unless_exist
  • assert_equal true, @cache.write(1, "aaaaaaaaaa")
  • assert_equal false, @cache.write(1, "aaaaaaaaaa", :unless_exist => true)

I'm not rails committer :)


Reply to this email directly or view it on GitHubhttps://github.com//pull/11785/files#r6083281
.

@robin850
Copy link
Member

@grosser : Could you rebase please ?

@grosser
Copy link
Contributor Author

grosser commented Aug 30, 2013

Done

On Fri, Aug 30, 2013 at 12:50 PM, Robin Dupret notifications@github.comwrote:

@grosser https://github.com/grosser : Could you rebase please ?


Reply to this email directly or view it on GitHubhttps://github.com//pull/11785#issuecomment-23553649
.

@grosser
Copy link
Contributor Author

grosser commented Oct 28, 2013

bump

rafaelfranca added a commit that referenced this pull request Oct 28, 2013
support :unless_exist for FileCache

Conflicts:
	activesupport/CHANGELOG.md
	activesupport/test/caching_test.rb
@rafaelfranca rafaelfranca merged commit c17bd74 into rails:master Oct 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants