Commit Graph

3408 Commits

Author SHA1 Message Date
Marc-Andre Lafortune
eb09411460 Fix constantize so top level constants are looked up properly. 2012-05-19 15:47:35 +01:00
Marc-Andre Lafortune
99e9a733c8 Make constantize look down the ancestor chain (excluding Object) 2012-05-19 15:47:35 +01:00
Jeremy Kemper
98657ad10c Merge pull request #6376 from jgaskins/timestamp-microseconds
Increase numeric-timestamp precision to nanoseconds
2012-05-18 17:30:35 -07:00
Jamie Gaskins
900dbc54f1 Increase AR#cache_key precision to nanoseconds 2012-05-19 08:20:08 +08:00
Jeremy Kemper
40bdf553a0 Merge pull request #6183 from nashby/fix-issue-6179
wrap time ranges with timezones
2012-05-18 14:10:25 -07:00
Andrew Mutz
2c423b3f3f reverting decoupling of NumberHelper from safe_join and adding tests for escaping of delimiters and separators 2012-05-18 11:56:18 -07:00
Vasiliy Ermolovich
3b1c30c99f doesn't modify params in SafeBuffer#% 2012-05-18 18:30:48 +03:00
Vasiliy Ermolovich + Sergey Nartimov
dcdde7da48 respect nsec in TimeWithZone
when we pass fractional usec to Time methods we should use Rational
instead of Float because of accuracy problem

    Time.local(2011,6,12,23,59,59,999999.999).nsec
    # => 999999998

    Time.local(2011,6,12,23,59,59,Rational(999999999, 1000)).nsec
    # => 999999999
2012-05-18 13:07:52 +03:00
Bogdan Gusiev
911a0859ac AS::Callbacks: fix run_callbacks for objects with negative id 2012-05-18 09:50:09 +03:00
Rafael Mendonça França
a8f568e1ec Make MockLogger work with blocks. 2012-05-17 13:28:33 -03:00
Mark McSpadden
b3e1d08a91 Fix documentation around duplicable regarding Class and Module. 2012-05-17 09:45:18 -04:00
José Valim
ad8b0a44fd Merge pull request #6351 from bogdan/callbacks
AS::Callbacks remove useless code, improve performance
2012-05-17 05:47:03 -07:00
Vijay Dev
03f8a57487 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	activerecord/lib/active_record/core.rb
2012-05-17 17:49:33 +05:30
Vijay Dev
a3dd7a4f73 copy edit and remove nodoc on instance_values method [ci skip] 2012-05-17 17:46:12 +05:30
José Valim
17f583b7bc Merge pull request #6362 from bogdan/callbacks_simplify_statement
AS::Callbacks: simplify logical statement
2012-05-17 02:28:19 -07:00
Bogdan Gusiev
8a72e7e6fd AS::Callbacks: simplify logical statement 2012-05-17 11:24:39 +03:00
José Valim
6950d74e18 Merge pull request #6361 from markmcspadden/issue_6265
Remove special cases for duplicable? on Class and Module
2012-05-17 00:07:10 -07:00
Mark McSpadden
2f06d5842b Remove special cases for duplicable? on Class and Module 2012-05-17 03:00:31 -04:00
José Valim
313f292e27 Ensure blocks given to subscriber are properly yield 2012-05-17 08:52:40 +02:00
José Valim
6057a1d9d2 Merge pull request #6356 from andhapp/fix-bug-with-inflections
Fix an issue with inflection
2012-05-16 23:36:03 -07:00
Vasiliy Ermolovich
e2e513621d wrap time ranges with timezones, closes #6179 2012-05-17 08:24:42 +03:00
Brian Cardarella
e3f8b53336 Fixed logger bug introduced by #2237 2012-05-17 00:38:21 -04:00
Anuj Dutta
bc51ad957a Fix an issue with inflection where my_analyses (in plular form) incorrectly converted to my_analyasis(in singular form). 2012-05-16 22:58:03 +01:00
Carlos Galdino + Rafael Mendonça França
eb06d582e4 Revert "Merge pull request #6354 from lest/patch-1"
This reverts commit e8feaff60b9c04d34ad234f7d17b5d2ad9cc7a24, reversing
changes made to 9adf28c026070afb78b80027521a4ddddd68d697.

Reason: This broke the actionmailer tests
2012-05-16 17:10:17 -03:00
Rafael Mendonça França
e8feaff60b Merge pull request #6354 from lest/patch-1
remove unnecessary require
2012-05-16 12:51:16 -07:00
Francesco Rodriguez
b1dfcc968b update AS:OrderedHash docs 2012-05-16 14:44:57 -05:00
Vijay Dev
9adf28c026 fix bad formatting [ci skip] 2012-05-17 01:13:19 +05:30
Sergey Nartimov
f88f699a7b remove unnecessary require
- access & filters don't use multibyte ext
- transliterate requires only AS::Multibyte but not multibyte ext
2012-05-16 22:39:56 +03:00
Vasiliy Ermolovich
9fb21e98e2 fix safe string interpolation with SafeBuffer#%, closes #6352 2012-05-16 21:05:26 +03:00
Bogdan Gusiev
30b31f51af AS::Callbacks remove useless code, improve performance 2012-05-16 16:49:30 +03:00
Francesco Rodriguez
d8e84738ea removing 1.8 reference 2012-05-16 00:24:38 -05:00
Vasiliy Ermolovich
80b681686a remove backported string interpolation 2012-05-15 20:53:28 +03:00
Aaron Patterson
1c3e5bee3d Merge pull request #5571 from jarkko/5559-fix-dst-jump-bug-on-master
[#5559] Do not black out the system timezone DST jump hour if Time.zone ...
2012-05-15 08:24:25 -07:00
Vijay Dev
59b03d418f Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	actionpack/lib/action_view/helpers/asset_tag_helper.rb
2012-05-15 13:13:55 +05:30
Vijay Dev
7cd8884093 missing dot [ci skip] 2012-05-15 13:10:08 +05:30
José Valim
c13a3f0fc1 Since escape_html_entities_in_json was moved to 3-2-stable, make it true in AS, closes #6287 2012-05-14 08:02:45 +02:00
Francesco Rodriguez
d7c4d0c772 adding examples to deep_dup method 2012-05-14 00:19:19 -05:00
Francesco Rodriguez
fa03e37d31 removing unnecessary 'examples' noise from activesupport 2012-05-13 20:26:53 -05:00
Francesco Rodriguez
bbd37753bf Fixing Hash#stringify_keys docs 2012-05-13 19:47:27 -05:00
Rafael Mendonça França
d3c83a4e8e Merge pull request #4431 from lest/refactor-1-9
use const_defined? with second argument in AS::Dependencies
2012-05-13 14:54:19 -07:00
Carlos Antonio da Silva
ecfb32cd16 Remove dependency on safe_join from number helpers
Introduced in 0f848dd54911f0e15c5c3aceabf09582cc6eab16.
2012-05-13 18:35:36 -03:00
Carlos Antonio da Silva
60de801060 Merge pull request #6305 from arunagw/ruby-prof-fixes
Ruby prof fixes
2012-05-13 14:30:06 -07:00
Francesco Rodriguez
16301cce76 marking self in Hash#symbolize_keys! 2012-05-13 12:52:54 -05:00
Sergey Nartimov
aa07d59ce0 use const_defined? with second argument in AS::Dependencies
there is no need in local_const_defined? helper method
2012-05-13 20:52:41 +03:00
Francesco Rodriguez
92dbdb2340 added example to Hash#symbolize_keys 2012-05-13 12:49:15 -05:00
Francesco Rodriguez
817f9e64ee unnecessary 'examples' noise in Hash#assert_valid_keys docs 2012-05-13 12:45:25 -05:00
Francesco Rodriguez
cb61f57a02 added example to Hash#stringify_keys 2012-05-13 12:44:17 -05:00
Francesco Rodriguez
873ac28660 adding examples to Hash#deep_merge method 2012-05-13 12:22:43 -05:00
Santiago Pastorino
1c481be331 Remove blockless_step leave all that up to Ruby
Closes #6297
2012-05-13 13:44:39 -03:00
Arun Agrawal
22e31774b1 Need to include "OutputSaftyHelper" here to prevent
`number_with_delimiter': undefined method 
`safe_join' for 
#<ActiveSupport::Testing::Performance::Metrics::Objects
2012-05-13 21:10:16 +05:30
Arun Agrawal
91c26e8e86 Fixed ruby-prof changes and let's use latest ruby-prof now. 2012-05-13 21:08:46 +05:30
Oscar Del Ben
88fc7495b9 Update docs to public_send for Object#try 2012-05-13 08:21:06 -07:00
Vasiliy Ermolovich
a7e0b2f843 update docs on Object#try 2012-05-13 14:25:41 +03:00
Santiago Pastorino
45f6dcd903 Move AS set configs to AS Raitie 2012-05-12 12:54:28 -03:00
Vijay Dev
70237e7dd3 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	activesupport/lib/active_support/callbacks.rb
2012-05-12 19:10:49 +05:30
Vijay Dev
f2af26dc81 fix incorrect example [ci skip] 2012-05-12 18:07:26 +05:30
Santiago Pastorino
3a59eab5f7 Remove wrong rack/utils dependency from AS
Closes #6274
2012-05-12 09:18:39 -03:00
Vasiliy Ermolovich
b8f394f4a3 Object#try can't call private methods 2012-05-12 14:07:21 +03:00
Vasiliy Ermolovich
219342b642 remove docs related to ruby 1.8 from Array#wrap 2012-05-12 13:31:30 +03:00
Francesco Rodriguez
c78c29556e added examples to Integer#multiple_of? 2012-05-11 23:16:44 -05:00
Francesco Rodriguez
fc6ab69777 removing trailing spaces 2012-05-11 23:06:53 -05:00
Francesco Rodriguez
a0b46b5f1b added docs to String#to_datetime 2012-05-11 17:30:46 -05:00
Francesco Rodriguez
53cc85fad3 added docs to String#to_date 2012-05-11 17:08:31 -05:00
Santiago Pastorino
a00228c1a3 Lazy load I18n 2012-05-11 19:00:25 -03:00
Santiago Pastorino
a6381042fa Remove ruby/shim
require 'action_view' is now much faster
2012-05-11 19:00:11 -03:00
Francesco Rodriguez
7bf6edf819 added examples to String#exclude? 2012-05-11 16:42:23 -05:00
Francesco Rodriguez
ef440bb0c3 remove unnecessary 'examples' noise 2012-05-11 16:21:32 -05:00
Francesco Rodriguez
39c483fec5 fix String#last example 2012-05-11 13:18:00 -05:00
Francesco Rodriguez
53ef85dae8 fix String#last example 2012-05-11 13:16:35 -05:00
Francesco Rodriguez
ed116eda05 added docs to String#last 2012-05-11 13:11:06 -05:00
Francesco Rodriguez
b2e9d33515 improve String#first docs 2012-05-11 12:56:53 -05:00
Francesco Rodriguez
074359dfa8 fix typo in String#first 2012-05-11 12:24:45 -05:00
Francesco Rodriguez
84784b4f23 added docs to String#first 2012-05-11 12:20:57 -05:00
Francesco Rodriguez
07045fa919 added docs to String#from 2012-05-11 11:47:40 -05:00
Francesco Rodriguez
0822dc01f6 improve String#to docs 2012-05-11 11:41:22 -05:00
Francesco Rodriguez
315350847f added docs to String#to 2012-05-11 11:35:26 -05:00
Francesco Rodriguez
7ce4ce33c7 added docs to String#at 2012-05-11 10:51:36 -05:00
grosser
b5005b6259 add unless_exist option to memory store 2012-05-10 08:19:45 -07:00
Francesco Rodriguez
039917b408 Remove key argument from run_callbacks to fix build 2012-05-10 03:29:46 -05:00
Francesco Rodriguez
c1ce4144d1 AS::Callbacks#run_callbacks remove key argument 2012-05-10 02:21:03 -05:00
Francesco Rodriguez
6cbe8dab1e deleting empty lines in docs parts 2012-05-10 02:09:59 -05:00
Vijay Dev
7918d7bf5c Merge branch 'master' of github.com:lifo/docrails 2012-05-08 23:56:25 +05:30
Vijay Dev
f31613a031 cut some duplication and minor edits [ci skip] 2012-05-08 23:49:20 +05:30
Michael Koziarski
c52ba1b372 Merge pull request #5500 from panthomakos/load-all
Removed ActiveSupport#load_all!
2012-05-07 18:57:59 -07:00
Francesco Rodriguez
2805c28e3e added docs to cattr_reader 2012-05-07 19:37:00 -05:00
Francesco Rodriguez
1ff3530488 better docs for cattr_accessor and cattr_writer 2012-05-07 19:04:27 -05:00
Francesco Rodriguez
2fb6d12ad3 added docs and examples to cattr_writer method 2012-05-07 17:33:54 -05:00
Xavier Noria
ed2feb7962 Merge pull request #6064 from gazay/fix_guides_for_as_core_ext
Fix guides for as core ext
2012-05-07 13:01:58 -07:00
Alexey Gaziev
d785b292a8 Changes for numeric api for Time because Time.current works different 2012-05-07 23:56:27 +04:00
Francesco Rodriguez
7b487e5dc1 added docs to cattr_accessor method 2012-05-07 12:39:41 -05:00
Francesco Rodriguez
17ef794299 adding example about using cattr_accessor with subclasses 2012-05-07 11:28:15 -05:00
Piotr Sarnacki
98553a5574 Keep all methods in object/deep_dup 2012-05-06 11:13:15 -07:00
Alexey Gaziev
657b4ff04a Nice logic for deep_dup in rails 2012-05-06 10:28:35 -07:00
Rob Zolkos
9b854ccd77 Add missing public method doc to TimeWithZone.name 2012-05-06 21:04:02 +10:00
José Valim
d6e2c81cfe Merge pull request #6169 from marcandre/respond_to_missing
Respond to missing
2012-05-05 00:34:13 -07:00
Marc-Andre Lafortune
14762dc5ef Use respond_to_missing for TimeWithZone 2012-05-05 02:45:04 -04:00
Marc-Andre Lafortune
9bda37474e Use respond_to_missing? for Chars 2012-05-05 02:44:58 -04:00
Marc-Andre Lafortune
3ea70f985b Use respond_to_missing? for OrderedOptions 2012-05-05 02:43:41 -04:00
Mark J. Titorenko
8c3f4bec1f added beginning_of_hour support to core_ext calculations for Time and DateTime 2012-05-04 16:01:57 +01:00
Aaron Patterson
7a3e43cc58 Merge pull request #4452 from tapajos/e5425c8f68fbb720fcbf4b14e1f154ac27dbbbed
Fix cache (FileStore) clear to keep .gitkeep.
2012-05-03 15:56:54 -07:00