phrasing 4.0.0rc14 → 4.0.0rc15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/Gemfile +2 -2
- data/README.md +0 -2
- data/Release_notes_version_4.md +1 -2
- data/app/controllers/phrasing_phrases_controller.rb +2 -2
- data/lib/phrasing.rb +0 -1
- data/lib/phrasing/version.rb +1 -1
- data/phrasing.gemspec +0 -1
- data/spec/dummy/app/assets/javascripts/application.js +0 -1
- data/spec/dummy/spec/javascripts/support/jasmine.yml +50 -0
- metadata +3 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 363ff7e672836ac3143fef33947f95101b10d314
|
|
4
|
+
data.tar.gz: c1b2b2a8a483553b3659ebd3aacbe3396bbbab53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 236cbd26a05837f61ac6ba1fdb501f024ae5f5c49328e8177243365f5a9bbfa73133f35d93c6d0a64af99c598bfa6c5ac5a559ab038cdef18d28e4de77e037ec
|
|
7
|
+
data.tar.gz: 00d517390daab7df483099dfe4636c184f200ae11ca26e082b3a97d28ace82e33e3da476ff34f707a81150d21c675eca06dc3673298b21efd3fede54c5d7b683
|
data/.travis.yml
CHANGED
|
@@ -3,11 +3,11 @@ language: ruby
|
|
|
3
3
|
|
|
4
4
|
matrix:
|
|
5
5
|
include:
|
|
6
|
-
- rvm: 1.9.3
|
|
7
|
-
env: "RAILS_VERSION=3.2.0"
|
|
8
6
|
- rvm: 2.0.0
|
|
9
7
|
env: "RAILS_VERSION=4.0.0"
|
|
10
8
|
- rvm: 2.1.2
|
|
11
9
|
env: "RAILS_VERSION=4.1.0"
|
|
12
10
|
- rvm: 2.2.0
|
|
13
11
|
env: "RAILS_VERSION=4.2.0"
|
|
12
|
+
- rvm: 2.3.0
|
|
13
|
+
env: "RAILS_VERSION=5.0.0"
|
data/Gemfile
CHANGED
|
@@ -3,14 +3,14 @@ source "https://rubygems.org"
|
|
|
3
3
|
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
|
-
rails_version = ENV["RAILS_VERSION"] || "
|
|
6
|
+
rails_version = ENV["RAILS_VERSION"] || "5.0.0"
|
|
7
7
|
|
|
8
8
|
gem "rails", "~> #{rails_version}"
|
|
9
9
|
|
|
10
10
|
gem 'factory_girl_rails'
|
|
11
11
|
gem 'sqlite3'
|
|
12
12
|
gem 'rspec-rails'
|
|
13
|
-
gem 'capybara', '~> 2.
|
|
13
|
+
gem 'capybara', '~> 2.7.0'
|
|
14
14
|
gem 'jasmine-rails'
|
|
15
15
|
gem 'pry-rails'
|
|
16
16
|
gem 'sass', '3.4.0'
|
data/README.md
CHANGED
|
@@ -65,7 +65,6 @@ Include the required **javascript** files:
|
|
|
65
65
|
```javascript
|
|
66
66
|
//= require jquery
|
|
67
67
|
//= require jquery_ujs
|
|
68
|
-
//= require jquery.cookie
|
|
69
68
|
//= require phrasing
|
|
70
69
|
```
|
|
71
70
|
|
|
@@ -112,7 +111,6 @@ If you're experiencing problems with Rails apps using Turbolinks, include the [j
|
|
|
112
111
|
```javascript
|
|
113
112
|
//= require jquery
|
|
114
113
|
//= require jquery_ujs
|
|
115
|
-
//= require jquery.cookie
|
|
116
114
|
//= require jquery.turbolinks
|
|
117
115
|
//= require phrasing
|
|
118
116
|
//= require turbolinks
|
data/Release_notes_version_4.md
CHANGED
|
@@ -24,7 +24,6 @@ From phrasing v4.0.0rc3, add your jquery files manually:
|
|
|
24
24
|
```javascript
|
|
25
25
|
//= require jquery
|
|
26
26
|
//= require jquery_ujs
|
|
27
|
-
//= require jquery.cookie
|
|
28
27
|
//= require phrasing
|
|
29
28
|
```
|
|
30
29
|
|
|
@@ -34,4 +33,4 @@ Since Rails comes with outofbox generators that enable easy existing file detect
|
|
|
34
33
|
|
|
35
34
|
## HTML Sanitization
|
|
36
35
|
|
|
37
|
-
There is a posibility we might add html sanitization to prevent ugly copy-pasted html insertion as well as XSS attacks.
|
|
36
|
+
There is a posibility we might add html sanitization to prevent ugly copy-pasted html insertion as well as XSS attacks.
|
|
@@ -6,7 +6,7 @@ class PhrasingPhrasesController < Phrasing.parent_controller.constantize
|
|
|
6
6
|
|
|
7
7
|
include PhrasingHelper
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
before_action :authorize_editor
|
|
10
10
|
|
|
11
11
|
def import_export
|
|
12
12
|
end
|
|
@@ -17,7 +17,7 @@ class PhrasingPhrasesController < Phrasing.parent_controller.constantize
|
|
|
17
17
|
def index
|
|
18
18
|
params[:locale] ||= I18n.default_locale
|
|
19
19
|
@phrasing_phrases = PhrasingPhrase.fuzzy_search(params[:search], params[:locale])
|
|
20
|
-
@locale_names = PhrasingPhrase.
|
|
20
|
+
@locale_names = PhrasingPhrase.distinct.pluck(:locale)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def edit
|
data/lib/phrasing.rb
CHANGED
data/lib/phrasing/version.rb
CHANGED
data/phrasing.gemspec
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# path to parent directory of src_files
|
|
2
|
+
# relative path from Rails.root
|
|
3
|
+
# defaults to app/assets/javascripts
|
|
4
|
+
src_dir: "app/assets/javascripts"
|
|
5
|
+
|
|
6
|
+
# path to additional directory of source file that are not part of assets pipeline and need to be included
|
|
7
|
+
# relative path from Rails.root
|
|
8
|
+
# defaults to []
|
|
9
|
+
# include_dir:
|
|
10
|
+
# - ../mobile_app/public/js
|
|
11
|
+
|
|
12
|
+
# path to parent directory of css_files
|
|
13
|
+
# relative path from Rails.root
|
|
14
|
+
# defaults to app/assets/stylesheets
|
|
15
|
+
css_dir: "app/assets/stylesheets"
|
|
16
|
+
|
|
17
|
+
# list of file expressions to include as source files
|
|
18
|
+
# relative path from src_dir
|
|
19
|
+
src_files:
|
|
20
|
+
- "application.{js.coffee,js,coffee}"
|
|
21
|
+
|
|
22
|
+
# list of file expressions to include as css files
|
|
23
|
+
# relative path from css_dir
|
|
24
|
+
css_files:
|
|
25
|
+
|
|
26
|
+
# path to parent directory of spec_files
|
|
27
|
+
# relative path from Rails.root
|
|
28
|
+
#
|
|
29
|
+
# Alternatively accept an array of directory to include external spec files
|
|
30
|
+
# spec_dir:
|
|
31
|
+
# - spec/javascripts
|
|
32
|
+
# - ../engine/spec/javascripts
|
|
33
|
+
#
|
|
34
|
+
# defaults to spec/javascripts
|
|
35
|
+
spec_dir: spec/javascripts
|
|
36
|
+
|
|
37
|
+
# list of file expressions to include as helpers into spec runner
|
|
38
|
+
# relative path from spec_dir
|
|
39
|
+
helpers:
|
|
40
|
+
- "helpers/**/*.{js.coffee,js,coffee}"
|
|
41
|
+
|
|
42
|
+
# list of file expressions to include as specs into spec runner
|
|
43
|
+
# relative path from spec_dir
|
|
44
|
+
spec_files:
|
|
45
|
+
- "**/*[Ss]pec.{js.coffee,js,coffee}"
|
|
46
|
+
|
|
47
|
+
# path to directory of temporary files
|
|
48
|
+
# (spec runner and asset cache)
|
|
49
|
+
# defaults to tmp/jasmine
|
|
50
|
+
tmp_dir: "tmp/jasmine"
|
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: 4.0.
|
|
4
|
+
version: 4.0.0rc15
|
|
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: 2016-
|
|
12
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -67,20 +67,6 @@ dependencies:
|
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
69
|
version: '0'
|
|
70
|
-
- !ruby/object:Gem::Dependency
|
|
71
|
-
name: jquery-cookie-rails
|
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
|
73
|
-
requirements:
|
|
74
|
-
- - ">="
|
|
75
|
-
- !ruby/object:Gem::Version
|
|
76
|
-
version: '0'
|
|
77
|
-
type: :runtime
|
|
78
|
-
prerelease: false
|
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
80
|
-
requirements:
|
|
81
|
-
- - ">="
|
|
82
|
-
- !ruby/object:Gem::Version
|
|
83
|
-
version: '0'
|
|
84
70
|
- !ruby/object:Gem::Dependency
|
|
85
71
|
name: sass
|
|
86
72
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -187,6 +173,7 @@ files:
|
|
|
187
173
|
- spec/dummy/public/500.html
|
|
188
174
|
- spec/dummy/public/favicon.ico
|
|
189
175
|
- spec/dummy/script/rails
|
|
176
|
+
- spec/dummy/spec/javascripts/support/jasmine.yml
|
|
190
177
|
- spec/factories/phrasing_phrases.rb
|
|
191
178
|
- spec/features/dummy_spec.rb
|
|
192
179
|
- spec/features/phrasing_spec.rb
|