1. 14 2月, 2015 8 次提交
  2. 13 2月, 2015 25 次提交
  3. 12 2月, 2015 7 次提交
    • Y
      get rid of transaction warning when running PG tests. · 9e9a3c53
      Yves Senn 提交于
      This finally removes the warning "WARNING:  there is no transaction in progress"
      when running Active Record tests using PostgreSQL.
      9e9a3c53
    • Y
      pg tests, be clear about the missing type that causes a test skip. · efeaa01e
      Yves Senn 提交于
      Also removed some cruft in the `setup` and `teardown` methods.
      efeaa01e
    • Y
      tests, remove unused requires. · d93aae9a
      Yves Senn 提交于
      "active_support/testing/stream" is already required in `test_case.rb`.
      Furthermore the test "test/cases/migration_test.rb" could no longer be executed
      directly.
      d93aae9a
    • K
      Merge pull request #18911 from y-yagi/fix-typo · 22934e02
      Kasper Timm Hansen 提交于
      fix typo in fresh_when example [ci skip]
      22934e02
    • Y
      fix typo in fresh_when example [ci skip] · 69768866
      yuuji.yaginuma 提交于
      69768866
    • Y
      Merge pull request #18907 from square/dont-load-app-on-structure · 6201e62c
      Yves Senn 提交于
      Schema creation doesn't load the app
      6201e62c
    • G
      Properly dump primitive-like AS::SafeBuffer strings as YAML · debe7aed
      Godfrey Chan 提交于
      `coder.represent_scalar` means something along the lines of "Here is a quoted
      string, you can just add it to the output", which is not the case here. It only
      works for simple strings that can appear unquoted in YAML, but causes problems
      for e.g. primitive-like strings ("1", "true").
      
      `coder.represent_object` on the other hand, means that "This is the Ruby-object
      representation for this thing suitable for use in YAML dumping", which is what
      we want here.
      
      Before:
      
         YAML.load ActiveSupport::SafeBuffer.new("Hello").to_yaml  # => "Hello"
         YAML.load ActiveSupport::SafeBuffer.new("true").to_yaml   # => true
         YAML.load ActiveSupport::SafeBuffer.new("false").to_yaml  # => false
         YAML.load ActiveSupport::SafeBuffer.new("1").to_yaml      # => 1
         YAML.load ActiveSupport::SafeBuffer.new("1.1").to_yaml    # => 1.1
      
       After:
      
         YAML.load ActiveSupport::SafeBuffer.new("Hello").to_yaml  # => "Hello"
         YAML.load ActiveSupport::SafeBuffer.new("true").to_yaml   # => "true"
         YAML.load ActiveSupport::SafeBuffer.new("false").to_yaml  # => "false"
         YAML.load ActiveSupport::SafeBuffer.new("1").to_yaml      # => "1"
         YAML.load ActiveSupport::SafeBuffer.new("1.1").to_yaml    # => "1.1"
      
      If we ever want Ruby to behave more like PHP or JavaScript though, this is an
      excellent trick to use ;)
      debe7aed