Skip to content

Commit

Permalink
fix changelog conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Jun 1, 2008
2 parents 72483c0 + ea03b08 commit 6a975d6
Show file tree
Hide file tree
Showing 24 changed files with 69 additions and 304 deletions.
2 changes: 1 addition & 1 deletion actionmailer/CHANGELOG
@@ -1,4 +1,4 @@
*2.1.0 RC1 (May 11th, 2008)*
*2.1.0 (May 31st, 2008)*

* Fixed that a return-path header would be ignored #7572 [joost]

Expand Down
2 changes: 1 addition & 1 deletion actionmailer/Rakefile
Expand Up @@ -55,7 +55,7 @@ spec = Gem::Specification.new do |s|
s.rubyforge_project = "actionmailer"
s.homepage = "http://www.rubyonrails.org"

s.add_dependency('actionpack', '= 2.0.991' + PKG_BUILD)
s.add_dependency('actionpack', '= 2.1.0' + PKG_BUILD)

s.has_rdoc = true
s.requirements << 'none'
Expand Down
4 changes: 2 additions & 2 deletions actionmailer/lib/action_mailer/version.rb
@@ -1,8 +1,8 @@
module ActionMailer
module VERSION #:nodoc:
MAJOR = 2
MINOR = 0
TINY = 991
MINOR = 1
TINY = 0

STRING = [MAJOR, MINOR, TINY].join('.')
end
Expand Down
4 changes: 2 additions & 2 deletions actionpack/CHANGELOG
@@ -1,6 +1,6 @@
* InstanceTag#default_time_from_options overflows to DateTime [Geoff Buesing]
*2.1.0 (May 31st, 2008)*

*2.1.0 RC1 (May 11th, 2008)*
* InstanceTag#default_time_from_options overflows to DateTime [Geoff Buesing]

* Fixed that forgery protection can be used without session tracking (Peter Jones) [#139]

Expand Down
2 changes: 1 addition & 1 deletion actionpack/Rakefile
Expand Up @@ -76,7 +76,7 @@ spec = Gem::Specification.new do |s|
s.has_rdoc = true
s.requirements << 'none'

s.add_dependency('activesupport', '= 2.0.991' + PKG_BUILD)
s.add_dependency('activesupport', '= 2.1.0' + PKG_BUILD)

s.require_path = 'lib'
s.autorequire = 'action_controller'
Expand Down
4 changes: 2 additions & 2 deletions actionpack/lib/action_pack/version.rb
@@ -1,8 +1,8 @@
module ActionPack #:nodoc:
module VERSION #:nodoc:
MAJOR = 2
MINOR = 0
TINY = 991
MINOR = 1
TINY = 0

STRING = [MAJOR, MINOR, TINY].join('.')
end
Expand Down
69 changes: 0 additions & 69 deletions actionpack/lib/action_view/compiled_templates.rb

This file was deleted.

192 changes: 0 additions & 192 deletions actionpack/test/template/compiled_templates_test.rb

This file was deleted.

6 changes: 5 additions & 1 deletion activerecord/CHANGELOG
@@ -1,8 +1,12 @@
*2.1.0 (May 31st, 2008)*

* Add ActiveRecord::Base.sti_name that checks ActiveRecord::Base#store_full_sti_class? and returns either the full or demodulized name. [rick]

* Add first/last methods to associations/named_scope. Resolved #226. [Ryan Bates]

*2.1.0 RC1 (May 11th, 2008)*
* Added SQL escaping for :limit and :offset #288 [Aaron Bedra, Steven Bristol, Jonathan Wiess]

* Added first/last methods to associations/named_scope. Resolved #226. [Ryan Bates]

* Ensure hm:t preloading honours reflection options. Resolves #137. [Frederick Cheung]

Expand Down
2 changes: 1 addition & 1 deletion activerecord/Rakefile
Expand Up @@ -171,7 +171,7 @@ spec = Gem::Specification.new do |s|
s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
end

s.add_dependency('activesupport', '= 2.0.991' + PKG_BUILD)
s.add_dependency('activesupport', '= 2.1.0' + PKG_BUILD)

s.files.delete FIXTURES_ROOT + "/fixture_database.sqlite"
s.files.delete FIXTURES_ROOT + "/fixture_database_2.sqlite"
Expand Down
Expand Up @@ -106,11 +106,16 @@ def add_limit!(sql, options)
# SELECT * FROM suppliers LIMIT 10 OFFSET 50
def add_limit_offset!(sql, options)
if limit = options[:limit]
sql << " LIMIT #{limit}"
sql << " LIMIT #{sanitize_limit(limit)}"
if offset = options[:offset]
sql << " OFFSET #{offset}"
sql << " OFFSET #{offset.to_i}"
end
end
sql
end

def sanitize_limit(limit)
limit.to_s[/,/] ? limit.split(',').map{ |i| i.to_i }.join(',') : limit.to_i
end

# Appends a locking clause to an SQL statement.
Expand Down
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/validations.rb
Expand Up @@ -692,7 +692,7 @@ def validates_format_of(*attr_names)
raise(ArgumentError, "A regular expression must be supplied as the :with option of the configuration hash") unless configuration[:with].is_a?(Regexp)

validates_each(attr_names, configuration) do |record, attr_name, value|
record.errors.add(attr_name, configuration[:message]) unless value.to_s =~ configuration[:with]
record.errors.add(attr_name, configuration[:message] % value) unless value.to_s =~ configuration[:with]
end
end

Expand Down
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/version.rb
@@ -1,8 +1,8 @@
module ActiveRecord
module VERSION #:nodoc:
MAJOR = 2
MINOR = 0
TINY = 991
MINOR = 1
TINY = 0

STRING = [MAJOR, MINOR, TINY].join('.')
end
Expand Down

0 comments on commit 6a975d6

Please sign in to comment.