aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-06-26 11:13:38 -0700
committerLouise Crow <louise.crow@gmail.com>2013-06-26 11:13:38 -0700
commit411aee219e14fe3d942699f230f7a8e3ed70bfe0 (patch)
treecbd41460afc2f0e24d7490d3034eee2544f3bac5 /lib/tasks
parent9ccc03bc7d4c4e9064a9217d6e332abfb3f15b7f (diff)
parent0d9de53bdccf20cc2884f0ad896d5e9dd2edee03 (diff)
Merge branch 'release/0.12' into wdtk
Conflicts: locale/he_IL/app.po locale/hr_HR/app.po locale/nb_NO/app.po locale/uk/app.po spec/models/info_request_spec.rb
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/themes.rake12
-rw-r--r--lib/tasks/translation.rake12
2 files changed, 12 insertions, 12 deletions
diff --git a/lib/tasks/themes.rake b/lib/tasks/themes.rake
index cbd3d123e..a8d16f108 100644
--- a/lib/tasks/themes.rake
+++ b/lib/tasks/themes.rake
@@ -9,15 +9,17 @@ namespace :themes do
File.join(plugin_dir, theme_name)
end
+ def checkout(commitish)
+ puts "Checking out #{commitish}" if verbose
+ system "git checkout #{commitish}"
+ end
+
def checkout_tag(version)
- checkout_command = "git checkout #{usage_tag(version)}"
- success = system(checkout_command)
- puts "Using tag #{usage_tag(version)}" if verbose && success
- success
+ checkout usage_tag(version)
end
def checkout_remote_branch(branch)
- system("git checkout origin/#{branch}")
+ checkout "origin/#{branch}"
end
def usage_tag(version)
diff --git a/lib/tasks/translation.rake b/lib/tasks/translation.rake
index 351faef2c..6458d9268 100644
--- a/lib/tasks/translation.rake
+++ b/lib/tasks/translation.rake
@@ -142,13 +142,11 @@ namespace :translation do
output_file)
# track mailer
- xapian_object = InfoRequest.full_search([InfoRequestEvent],
- track_thing.track_query,
- 'described_at',
- true,
- nil,
- 100,
- 1)
+ xapian_object = ActsAsXapian::Search.new([InfoRequestEvent], track_thing.track_query,
+ :sort_by_prefix => 'described_at',
+ :sort_by_ascending => true,
+ :collapse_by_prefix => nil,
+ :limit => 100)
event_digest_email = TrackMailer.event_digest(info_request.user,
[[track_thing,
xapian_object.results,