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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b65fe7e7e01f0333d8b8ccf15155066a3f159d5
4
- data.tar.gz: dfd04a8e7b78b499489695fc46a8f033ee05a19b
3
+ metadata.gz: 363ff7e672836ac3143fef33947f95101b10d314
4
+ data.tar.gz: c1b2b2a8a483553b3659ebd3aacbe3396bbbab53
5
5
  SHA512:
6
- metadata.gz: 39a805e41b613e871ffc8c2502dfdf06225a5fc268b87b9bf5bbba1e8945f8405f11c78a60df7498a2d1eb021954913e0b697e7108b10337c2d4d7ffd3c5a233
7
- data.tar.gz: 57d1cf20b19e7f259e5ad747086017029eb5b092ed88d0a829f877818ef7bf23afb2e5a993847440b3498f6c219e1fff517e355552e15a5e8871d798a8e3ee68
6
+ metadata.gz: 236cbd26a05837f61ac6ba1fdb501f024ae5f5c49328e8177243365f5a9bbfa73133f35d93c6d0a64af99c598bfa6c5ac5a559ab038cdef18d28e4de77e037ec
7
+ data.tar.gz: 00d517390daab7df483099dfe4636c184f200ae11ca26e082b3a97d28ace82e33e3da476ff34f707a81150d21c675eca06dc3673298b21efd3fede54c5d7b683
@@ -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"] || "4.1.4"
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.3.0'
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
@@ -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
- before_filter :authorize_editor
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.uniq.pluck(:locale)
20
+ @locale_names = PhrasingPhrase.distinct.pluck(:locale)
21
21
  end
22
22
 
23
23
  def edit
@@ -2,7 +2,6 @@ require 'phrasing'
2
2
  require 'phrasing/serializer'
3
3
  require 'phrasing/rails/engine'
4
4
  require 'jquery-rails'
5
- require 'jquery-cookie-rails'
6
5
  require 'haml'
7
6
 
8
7
  module Phrasing
@@ -1,3 +1,3 @@
1
1
  module Phrasing
2
- VERSION = "4.0.0rc14"
2
+ VERSION = "4.0.0rc15"
3
3
  end
@@ -20,6 +20,5 @@ Gem::Specification.new do |s|
20
20
  s.add_dependency "railties", ">= 3.2"
21
21
  s.add_dependency "haml"
22
22
  s.add_dependency "jquery-rails"
23
- s.add_dependency "jquery-cookie-rails"
24
23
  s.add_dependency "sass"
25
24
  end
@@ -6,6 +6,5 @@
6
6
  //
7
7
  //= require jquery
8
8
  //= require jquery_ujs
9
- //= require jquery.cookie
10
9
  //= require phrasing
11
10
  //= require_tree .
@@ -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.0rc14
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-06-20 00:00:00.000000000 Z
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