phrasing 3.2.9 → 3.2.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 206cd001ae079192daf6410a4b9be6bb757ea18e
4
- data.tar.gz: 63433e277e04cfcfd66a89f4a4ffba8f3f94f7c9
3
+ metadata.gz: 8c4d9f1a1afdcb5aeadf72bdd9582d062a9a2ab0
4
+ data.tar.gz: d43f499b114f068bea2f8bb1566dae2357e8a110
5
5
  SHA512:
6
- metadata.gz: c9c161bcfbea4965777007fe2a0c3e6b67291f803663f151c7ee8dacf8bc8385754a419a314f7c9c4b7a7a326c3ba161621909e675b831dd94a157cca440d41a
7
- data.tar.gz: 1c0a1ff71038dd6cb0d4130bb507ca6630249c13083a2bd55fa2fa647ca9acf94b8228a6e8f7e73a2edaeb60a79f255c0fc9f8ce327c8a475f50978576d93433
6
+ metadata.gz: c981b81e3069c339740450619dcfdf72125fd2b9944f55ca83928da625ad066efdedbe1162a930ff8837b0aeaf26bfc152d8addee10fb60d531bd7693534fea3
7
+ data.tar.gz: 2e56e2910c3009017daf98ad51371a88957052f0333e6ae55108456b99b2e7c36bb86b9313c4eaed790c8e48a2bd798d59b444cbb48ee0b1731050dd9e951895
@@ -1,5 +1,9 @@
1
1
  # Phrasing Change Log
2
2
 
3
+ ## 3.2.10 (October 2nd, 2015)
4
+
5
+ Change order parameters in PhrasingPhrases#index to support SQLServer.
6
+
3
7
  ## 3.2.9 (January 7th, 2015)
4
8
 
5
9
  Require only haml, not haml-rails.
data/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  Phrasing is a gem for live editing phrases (copy) on websites.
8
8
 
9
+ **Phrasing is currently iterating over release candidates for a major update: 4.0. The Readme for those versions can be found** [here](https://github.com/infinum/phrasing/tree/new-release-4)
10
+
9
11
  ## Installation
10
12
 
11
13
  Include the gem in your Gemfile
@@ -11,7 +11,7 @@ class PhrasingPhrasesController < Phrasing.parent_controller.constantize
11
11
  def index
12
12
  params[:locale] ||= I18n.default_locale
13
13
  query = PhrasingPhrase
14
- query = query.order("#{query.table_name}.key")
14
+ query = query.order(:key)
15
15
  query = query.where(locale: params[:locale]) unless params[:locale].blank?
16
16
 
17
17
  if params[:search] and !params[:search].blank?
@@ -25,7 +25,7 @@ module InlineHelper
25
25
 
26
26
  url = phrasing_polymorphic_url(record, field_name)
27
27
 
28
- content_tag(:span, { class: klass, contenteditable: edit_mode_on?, spellcheck: false, "data-url" => url}) do
28
+ content_tag(:span, { class: klass, contenteditable: edit_mode_on?, spellcheck: false, "data-url" => url}) do
29
29
  (record.send(field_name) || record.try(:key)).to_s.html_safe
30
30
  end
31
31
  end
@@ -33,7 +33,7 @@ module InlineHelper
33
33
  alias_method :model_phrase, :inline
34
34
 
35
35
  private
36
-
36
+
37
37
  def phrasing_phrase(key, options = {})
38
38
  key = options[:scope] ? "#{options[:scope]}.#{key}" : key.to_s
39
39
  if can_edit_phrases?
@@ -48,7 +48,7 @@ module InlineHelper
48
48
  if cookies["editing_mode"].nil?
49
49
  cookies['editing_mode'] = "true"
50
50
  true
51
- else
51
+ else
52
52
  cookies['editing_mode'] == "true"
53
53
  end
54
54
  end
@@ -57,4 +57,4 @@ module InlineHelper
57
57
  remote_update_phrase_phrasing_phrases_path(klass: record.class.to_s, id: record.id, attribute: attribute)
58
58
  end
59
59
 
60
- end
60
+ end
@@ -1,6 +1,6 @@
1
1
  .edit
2
2
  %h2= @phrasing_phrase.key
3
- = link_to "Delete Phrase", phrasing_phrase_path(@phrasing_phrase), class: "btn btn-danger delete-phrase", method: :delete, confirm: 'Are you sure?'
3
+ = link_to "Delete Phrase", phrasing_phrase_path(@phrasing_phrase), class: "btn btn-danger delete-phrase", method: :delete, data: { confirm: 'Are you sure?' }
4
4
  = form_for @phrasing_phrase, url: { action: "update" } do |f|
5
5
  = f.text_area :value, rows: 12
6
6
  = f.submit "Update", class: "btn btn-success submit-edit-phrase"
@@ -20,4 +20,4 @@
20
20
  %td.phrasing-version-value= version.value.html_safe
21
21
  %td.phrasing-version-created_at= version.created_at.strftime("%d-%m-%Y %H:%M:%S")
22
22
  %td= link_to "Revert", phrasing_phrase_path(@phrasing_phrase.id, phrasing_phrase: {value: version.value}), class: "btn btn-success", method: :put
23
- %td= link_to "Delete", phrasing_phrase_version_path(version.id), class: "btn btn-danger", method: :delete, confirm: 'Are you sure?'
23
+ %td= link_to "Delete", phrasing_phrase_version_path(version.id), class: "btn btn-danger", method: :delete, data: { confirm: 'Are you sure?' }
@@ -1,3 +1,3 @@
1
1
  module Phrasing
2
- VERSION = "3.2.9"
2
+ VERSION = "3.2.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phrasing
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.9
4
+ version: 3.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomislav Car
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-07 00:00:00.000000000 Z
12
+ date: 2015-10-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  version: '0'
226
226
  requirements: []
227
227
  rubyforge_project:
228
- rubygems_version: 2.2.2
228
+ rubygems_version: 2.4.5
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Edit phrases inline for Rails applications!