Commit Graph

39142 Commits

Author SHA1 Message Date
Vipul A M
5ef02de131 Remove redundant string_to_binary from type-casting 2013-08-09 20:04:37 +05:30
Yves Senn
0053b2a1c4 Merge pull request #11815 from yaotti/patch-1
Fix a broken link [ci skip]
2013-08-08 22:21:41 -07:00
Hiroshige Umino
b83985bc6b Fix a broken link 2013-08-09 13:37:47 +09:00
Carlos Antonio da Silva
7fa93ceea8 Merge pull request #11806 from jetthoughts/change_model_term_by_simple_word
Remove using of suffix with term. [ci skip]
2013-08-08 04:46:06 -07:00
Paul Nikitochkin
5602eebc63 Remove using of suffix with term. [ci skip] 2013-08-08 14:04:14 +03:00
Aaron Patterson
4d8f23489e Merge pull request #11802 from ko1/fix_field_encoding_for_mysql
Set field encoding to client_encoding for mysql adapter.
2013-08-07 22:48:48 -07:00
Koichi Sasada
0d435cc24b Set field encoding to client_encoding for mysql adapter. 2013-08-08 14:44:39 +09:00
Yves Senn
5ac2341fab cast hstore values on write to be consistent with reading from the db. 2013-08-08 07:27:30 +02:00
Aaron Patterson
765b8aa05c Merge pull request #11331 from vipulnsward/remove_conditional
Remove conditional, results are always an instance of `ActiveRecord::Result`
2013-08-07 21:32:10 -07:00
Aaron Patterson
908796dac5 use skip so we can see what tests are not run 2013-08-08 13:23:10 +09:00
Yves Senn
806bc2add8 Fix multidimensional PG arrays containing non-string items 2013-08-07 20:28:14 +02:00
Steve Klabnik
4343e2dda2 Merge pull request #11789 from gaurish/multibyte_methods
Avoid defining multibyte method names in JSON decoding test for JRuby Compatitibility
2013-08-07 05:55:58 -07:00
Yves Senn
90e743f0fa Merge pull request #10045 from senny/document_relative_url_root
document how to deploy to a subdirectory [ci skip]
2013-08-07 04:40:15 -07:00
Yves Senn
b76015bfd1 document how to deploy to a subdirectory. #2992 [ci skip] 2013-08-07 13:39:25 +02:00
Gaurish Sharma
7191a5d830 Avoid defining multibyte method names in JSON decoding test for JRuby Compat
This change is similar to #11736 & in same way switched with fixed string & the index of the hash for method name. the index was added because otherwise, ruby will raise Error.
2013-08-07 13:19:14 +05:30
Yves Senn
da49e9a9f0 skip test_unicode_column_name for MysqlAdapter.
This commit fixes the build but we need to further investigate the root cause,
to see if it can be fixed.

The test fails under `MysqlAdapter` with:

```
ActiveRecord::UnknownAttributeError: unknown attribute: なまえ
```

The root cause is that the returned column names from the adapter
have the wrong encoding:

```ruby
columns = Weird.columns_hash.keys
columns # => ["id", "a$b", "\xE3\x81\xAA\xE3\x81\xBE\xE3\x81\x88", "from"]
columns.map(&:encoding) # => [#<Encoding:ASCII-8BIT>, #<Encoding:ASCII-8BIT>, #<Encoding:ASCII-8BIT>, #<Encoding:ASCII-8BIT>]
columns.map {|c| c.dup.force_encoding "utf-8"} # => ["id", "a$b", "なまえ", "from"]
```

From what I can tell the MySQL variables are fine:

```
ActiveRecord::Base.connection.execute("show variables")

...
character_set_client utf8
character_set_connection utf8
character_set_database utf8
character_set_filesystem binary
character_set_results utf8
character_set_server utf8
character_set_system utf8
character_sets_dir /usr/local/Cellar/mysql/5.5.29/share/mysql/charsets/
collation_connection utf8_general_ci
collation_database utf8_unicode_ci
collation_server utf8_general_ci
...
```
2013-08-07 08:56:05 +02:00
Xavier Noria
4a7fba09f4 RDoc tweaks 2013-08-07 06:10:18 +02:00
Carlos Antonio da Silva
174f219339 Merge pull request #11784 from davetoxa/patch-2
Bump ruby version [ci skip]
2013-08-06 16:01:31 -07:00
Carlos Antonio da Silva
2998421531 Merge pull request #11783 from davetoxa/patch-1
Bump ruby version [ci skip]
2013-08-06 16:01:12 -07:00
Anton Cherepanov
043785ac7a Bump ruby version [ci skip] 2013-08-07 03:33:56 +06:00
Anton Cherepanov
3e20ddd0d0 Bump ruby version [ci skip] 2013-08-07 03:31:33 +06:00
Yves Senn
179deea65b test to express that we can't turn non-array columns to array columns.
Closes #11062
2013-08-06 20:19:44 +02:00
Guillermo Iguaran
b7f2ccd77a Merge pull request #11780 from thedarkone/logger-naked-rescue-fix
Rack::Logger naked rescue fix
2013-08-06 08:17:08 -07:00
thedarkone
a0907bbdad "Naked" rescue clauses only catch StandardError subclasses.
Similar to #11497.
2013-08-06 17:04:02 +02:00
thedarkone
3af8a91c38 Add a missing require.
This makes the rack_logger_test.rb runnable by itself (outside of the `rake test` suite).
2013-08-06 17:03:55 +02:00
Rafael Mendonça França
48e3c462a2 Use the proper encoding comment on the file 2013-08-06 10:37:50 -03:00
Rafael Mendonça França
40cc60c270 Fix indentation 2013-08-06 09:28:45 -03:00
Aaron Patterson + Akira Matsuda
79238bad3d asakusa.rb hack night!
Fix in-memory tests
2013-08-06 21:26:10 +09:00
Rafael Mendonça França
4c1c2e6501 Add CHANGELOG entry for #11767
[ci skip]
2013-08-06 09:22:39 -03:00
Rafael Mendonça França
595b05a839 Merge pull request #11778 from jetthoughts/11759_update_assets_guides
Update Assets Pipeline Guide [ci skip]
2013-08-06 05:16:39 -07:00
Aaron Patterson
904bfad00d adding a weird test case 2013-08-06 20:58:27 +09:00
Paul Nikitochkin
99a9303849 #11759: Update Assets Pipeline Guide
by default included to precompile only non-js/css files from `app/assets` and `application.(css|js)`
2013-08-06 14:30:46 +03:00
Rafael Mendonça França
fd4e178c7e Merge pull request #11771 from atambo/jruby_assert_distance_of_time_in_words
Remove privatizing of Fixnum#/ from assert_distance_of_time_in_words
2013-08-05 19:03:06 -07:00
Alex Tambellini
f1d9179087 Remove privatizing of Fixnum#/ from assert_distance_of_time_in_words
MRI reimplemented Date in C so it doesn't hit this division anymore
while JRuby still uses the old stdlib implementation of Date so
it will always hit this.

With this change the actionview date_helper_test.rb tests should pass on JRuby.
2013-08-05 21:52:13 -04:00
Guillermo Iguaran
ee0a8e0113 Merge pull request #11743 from gaurish/tmp-magic
[Jruby] Make all tests in ActionView::TemplateDigestorTest green
2013-08-05 17:04:57 -07:00
Rafael Mendonça França
b6c971e123 config[:database] should be a string
This change was breaking the Railties tests. See
https://travis-ci.org/rails/rails/jobs/9865969
2013-08-05 20:41:27 -03:00
Rafael Mendonça França
9281adc64a Remove deprecated branch on the scope method.
The deprecation message was removed on 50cbc03d18c5984347965a94027879623fc44cce but the code was not.
2013-08-05 18:27:46 -03:00
Rafael Mendonça França
d86ccec097 Use the right instrumentation name
The pattern is event.component

Closes #11769

Conflicts:
	railties/CHANGELOG.md
2013-08-05 18:20:22 -03:00
Rafael Mendonça França
9b6a434def Merge pull request #11767 from kassio/master-load-fixtures-from-linked-folder
Load fixtures from linked folders[master]
2013-08-05 12:42:29 -07:00
Kassio Borges
4700d0279c load fixtures from linked folders 2013-08-05 16:35:49 -03:00
Xavier Noria
6da48e92dd Merge pull request #11666 from prathamesh-sonpatki/doc-fix
Removed confusing statement about adding route for show action in getting started guide [ci skip]
2013-08-05 10:52:36 -07:00
Carlos Antonio da Silva
03eae19e4d Merge pull request #11762 from peterkovacs/patch-2
Free result_metadata directly instead of freeing 2nd, redundant call.
2013-08-05 09:43:38 -07:00
José Valim
b2d70782cf Merge pull request #11763 from schneems/schneems/create-sqlite3db
Create sqlite3 directory if not present
2013-08-05 09:16:03 -07:00
schneems
f036239447 Create sqlite3 directory if not present
If the `db/` directory is not present on a remote machine it will blow up in unexpected ways with error messages that do not indicate there is a missing directory:

```
SQLite3::CantOpenException: unable to open database file
```

This PR checks to see if a directory exists for the sqlite3 file and if not creates it for you.

This PR is an alternative to #11692 as suggested by @josevalim
2013-08-05 12:10:52 -04:00
Prathamesh Sonpatki
e2bbc2bb2a Removed confusing statements about routes in getting started guide [ci skip]
- routes for CRUD already exists as `resources :posts` is in
  `config/routes.rb`
- So we don't have to add any new route in the `config/routes.rb`
- As per #11644, the adding of routes which are already there confuses user, so here its
  changed to referring output of `rake routes`
2013-08-05 21:18:41 +05:30
Peter Kovacs
76a58e1e7e Free result_metadata directly instead of freeing 2nd, redundant call.
`result_metadata` returns a new object each time it is called, so calling `result_metadata.free` is essentially a noop.  Instead call `free` directly on the metadata when we're done with it.
2013-08-05 11:44:16 -04:00
Xavier Noria
3baee0982d migrations guide: fix and edits [ci skip] 2013-08-05 16:37:08 +02:00
Xavier Noria
538bd3633b getting started guide: pass the resource to the URL helper [ci skip]
Passing the actual ID is not idiomatic.
2013-08-05 16:18:08 +02:00
Rafael Mendonça França
1ad7e12062 Merge pull request #11760 from rahul100885/master
Added data for permit array into scalar value

[ci skip]
2013-08-05 06:43:30 -07:00
Rahul P. Chaudhari
6a20cf4f05 Added data for permit array into scalar value 2013-08-05 19:10:54 +05:30