phraseapp-in-context-editor-ruby 1.1.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/test.yml +16 -0
- data/.package-licenses.yml +4 -0
- data/.tool-versions +1 -0
- data/CHANGELOG.md +72 -2
- data/README.md +16 -16
- data/config/license-decisions.yml +34 -0
- data/config/license_finder.yml +2 -0
- data/lib/generators/phraseapp_in_context_editor/templates/README +1 -1
- data/lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb +2 -2
- data/lib/phraseapp-in-context-editor-ruby.rb +3 -2
- data/lib/phraseapp-in-context-editor-ruby/backend_service.rb +21 -1
- data/lib/phraseapp-in-context-editor-ruby/config.rb +1 -1
- data/lib/phraseapp-in-context-editor-ruby/delegate.rb +4 -0
- data/lib/phraseapp-in-context-editor-ruby/key_names_cache.rb +1 -1
- data/lib/phraseapp-in-context-editor-ruby/version.rb +1 -1
- data/phraseapp-in-context-editor-ruby.gemspec +17 -6
- metadata +45 -16
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f084a265ff2c55aeeb2a80f802bd7aeb3ea13795d074a50673fb618662f8df74
|
4
|
+
data.tar.gz: 1277e9d222fc188b2267d969a6b3db00284ae7cdbbb948a538ad6defa96539f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 661e874a387eb4764297aa3c3fd9d957841852c45b07bae6c82fb06c4f26fcc8c0d0e710b9e44cacd51841090a624d82e3966e6c9fc3b021f128a37d98b327d0
|
7
|
+
data.tar.gz: f2595036cc4f547ce47cf2cf0d50478c1c986a16d08482c91df73474d3df1a9d5fe50fd635585b35e1472bb1056d5a1473a4b9518531aac9d896c6cddb5b50cd
|
@@ -0,0 +1,16 @@
|
|
1
|
+
name: Test
|
2
|
+
on: [push]
|
3
|
+
jobs:
|
4
|
+
test:
|
5
|
+
strategy:
|
6
|
+
fail-fast: false
|
7
|
+
matrix:
|
8
|
+
ruby: [2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 3.0]
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v2
|
12
|
+
- uses: ruby/setup-ruby@v1
|
13
|
+
with:
|
14
|
+
ruby-version: ${{ matrix.ruby }}
|
15
|
+
- run: bundle install
|
16
|
+
- run: bundle exec rspec spec
|
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 3.0.0
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,71 @@
|
|
1
|
-
#
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [v1.4.0](https://github.com/phrase/phraseapp-in-context-editor-ruby/tree/v1.4.0) (2021-02-16)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/phrase/phraseapp-in-context-editor-ruby/compare/v1.3.1...v1.4.0)
|
6
|
+
|
7
|
+
**Closed issues:**
|
8
|
+
|
9
|
+
- phraseapp-ruby locked to ~\> 1.2.7, current is 1.3.3 [\#19](https://github.com/phrase/phraseapp-in-context-editor-ruby/issues/19)
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- Ruby 3.0 support [\#49](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/49) ([sbruhns](https://github.com/sbruhns))
|
14
|
+
- remove all dynport.de references [\#47](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/47) ([tobstarr](https://github.com/tobstarr))
|
15
|
+
- Update license decisions [\#46](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/46) ([forelabs](https://github.com/forelabs))
|
16
|
+
- Tests: Upgrade to modern RSpec syntax [\#45](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/45) ([docstun](https://github.com/docstun))
|
17
|
+
- GitHub actions [\#44](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/44) ([docstun](https://github.com/docstun))
|
18
|
+
- Licenses: fix project name [\#43](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/43) ([forelabs](https://github.com/forelabs))
|
19
|
+
- Licenses: Ignore dev&test dependencies [\#42](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/42) ([forelabs](https://github.com/forelabs))
|
20
|
+
- Introduce LicenseFinder config [\#41](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/41) ([forelabs](https://github.com/forelabs))
|
21
|
+
- fix pa licenses [\#40](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/40) ([forelabs](https://github.com/forelabs))
|
22
|
+
- Add pa licenses yml [\#39](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/39) ([forelabs](https://github.com/forelabs))
|
23
|
+
|
24
|
+
## [v1.3.1](https://github.com/phrase/phraseapp-in-context-editor-ruby/tree/v1.3.1) (2019-08-29)
|
25
|
+
|
26
|
+
[Full Changelog](https://github.com/phrase/phraseapp-in-context-editor-ruby/compare/v1.3.0...v1.3.1)
|
27
|
+
|
28
|
+
**Merged pull requests:**
|
29
|
+
|
30
|
+
- Update docs [\#38](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/38) ([timleers](https://github.com/timleers))
|
31
|
+
- Update documentation URLs [\#37](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/37) ([docstun](https://github.com/docstun))
|
32
|
+
|
33
|
+
## [v1.3.0](https://github.com/phrase/phraseapp-in-context-editor-ruby/tree/v1.3.0) (2018-04-19)
|
34
|
+
|
35
|
+
[Full Changelog](https://github.com/phrase/phraseapp-in-context-editor-ruby/compare/v1.2.1...v1.3.0)
|
36
|
+
|
37
|
+
**Closed issues:**
|
38
|
+
|
39
|
+
- Using translation in data-x attributes replaces entire string. [\#33](https://github.com/phrase/phraseapp-in-context-editor-ruby/issues/33)
|
40
|
+
|
41
|
+
**Merged pull requests:**
|
42
|
+
|
43
|
+
- Set ruby 2.1 as minimum version [\#36](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/36) ([theSoenke](https://github.com/theSoenke))
|
44
|
+
- use RequestStore instead of Thread\[:current\] [\#32](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/32) ([zuchmanski](https://github.com/zuchmanski))
|
45
|
+
|
46
|
+
## [v1.2.1](https://github.com/phrase/phraseapp-in-context-editor-ruby/tree/v1.2.1) (2017-03-13)
|
47
|
+
|
48
|
+
[Full Changelog](https://github.com/phrase/phraseapp-in-context-editor-ruby/compare/v1.2.0...v1.2.1)
|
49
|
+
|
50
|
+
**Closed issues:**
|
51
|
+
|
52
|
+
- Implicit Translations [\#17](https://github.com/phrase/phraseapp-in-context-editor-ruby/issues/17)
|
53
|
+
|
54
|
+
**Merged pull requests:**
|
55
|
+
|
56
|
+
- Fix simple form exception [\#22](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/22) ([docstun](https://github.com/docstun))
|
57
|
+
- Version update, Ruby 2.4.0 support because of json-dependency change [\#20](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/20) ([fredv](https://github.com/fredv))
|
58
|
+
|
59
|
+
## [v1.2.0](https://github.com/phrase/phraseapp-in-context-editor-ruby/tree/v1.2.0) (2017-02-24)
|
60
|
+
|
61
|
+
[Full Changelog](https://github.com/phrase/phraseapp-in-context-editor-ruby/compare/v1.1.0...v1.2.0)
|
62
|
+
|
63
|
+
**Merged pull requests:**
|
64
|
+
|
65
|
+
- Changes json dependency to json \>= 1.8 [\#18](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/18) ([fredv](https://github.com/fredv))
|
2
66
|
|
3
67
|
## [v1.1.0](https://github.com/phrase/phraseapp-in-context-editor-ruby/tree/v1.1.0) (2016-10-04)
|
68
|
+
|
4
69
|
[Full Changelog](https://github.com/phrase/phraseapp-in-context-editor-ruby/compare/v1.0.2...v1.1.0)
|
5
70
|
|
6
71
|
**Closed issues:**
|
@@ -20,6 +85,7 @@
|
|
20
85
|
- i18n set to \>= 0.6 [\#10](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/10) ([jethroo](https://github.com/jethroo))
|
21
86
|
|
22
87
|
## [v1.0.2](https://github.com/phrase/phraseapp-in-context-editor-ruby/tree/v1.0.2) (2015-10-12)
|
88
|
+
|
23
89
|
[Full Changelog](https://github.com/phrase/phraseapp-in-context-editor-ruby/compare/v1.0.1...v1.0.2)
|
24
90
|
|
25
91
|
**Closed issues:**
|
@@ -31,6 +97,7 @@
|
|
31
97
|
- 18n delegate refactoring [\#6](https://github.com/phrase/phraseapp-in-context-editor-ruby/pull/6) ([koljaa](https://github.com/koljaa))
|
32
98
|
|
33
99
|
## [v1.0.1](https://github.com/phrase/phraseapp-in-context-editor-ruby/tree/v1.0.1) (2015-10-07)
|
100
|
+
|
34
101
|
[Full Changelog](https://github.com/phrase/phraseapp-in-context-editor-ruby/compare/v1.0.0...v1.0.1)
|
35
102
|
|
36
103
|
**Closed issues:**
|
@@ -42,5 +109,8 @@
|
|
42
109
|
|
43
110
|
## [v1.0.0](https://github.com/phrase/phraseapp-in-context-editor-ruby/tree/v1.0.0) (2015-08-21)
|
44
111
|
|
112
|
+
[Full Changelog](https://github.com/phrase/phraseapp-in-context-editor-ruby/compare/4a0e284a7acad8529eef882863b226858384b757...v1.0.0)
|
113
|
+
|
114
|
+
|
45
115
|
|
46
|
-
\* *This
|
116
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/README.md
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
#
|
1
|
+
# Phrase In-Context Editor for Ruby #
|
2
2
|
|
3
|
-
*This Ruby gem is for use with Ruby (Rails, Sinatra) applications only. Check out the [documentation](
|
3
|
+
*This Ruby gem is for use with Ruby (Rails, Sinatra) applications only. Check out the [documentation](https://help.phrase.com/help/translate-directly-on-your-website) to learn how to set up the In-Context Editor with other technologies.*
|
4
4
|
|
5
|
-
|
5
|
+
![Build Status](https://github.com/phrase/phraseapp-in-context-editor-ruby/workflows/Test/badge.svg)
|
6
6
|
|
7
|
-
|
7
|
+
Phrase is the translation management solution for web and mobile applications. Collaborate with your team, find professional translators and stay on top of the process.
|
8
8
|
|
9
|
-
[Try out
|
9
|
+
[Try out Phrase for free](https://phrase.com/signup) and start translating your app!
|
10
10
|
|
11
|
-
*Note: This gem [documentation](
|
11
|
+
*Note: This gem [documentation](https://help.phrase.com/help/translate-directly-on-your-website) to learn how to install the In-Context Editor with other technologies.*
|
12
12
|
|
13
13
|
## In-Context-Editor ###
|
14
14
|
|
15
|
-
How awesome would it be if translators could simply browse your website and edit text along the way? Our In-Context Editor offers just that. It provides translators with useful contextual information which improves overall translation quality. See our documentation on how to set it up: [In-Context Editor Setup](
|
15
|
+
How awesome would it be if translators could simply browse your website and edit text along the way? Our In-Context Editor offers just that. It provides translators with useful contextual information which improves overall translation quality. See our documentation on how to set it up: [In-Context Editor Setup](https://help.phrase.com/help/translate-directly-on-your-website).
|
16
16
|
|
17
17
|
## Installation
|
18
18
|
|
@@ -36,7 +36,7 @@ Next, create the initializer file by executing the Rails generator:
|
|
36
36
|
|
37
37
|
##### --access-token
|
38
38
|
|
39
|
-
You can create and manage access tokens in your [profile settings](https://
|
39
|
+
You can create and manage access tokens in your [profile settings](https://app.phrase.com/settings/oauth_access_tokens) or via the [Authorizations API](https://developers.phrase.com/api/#authorizations).
|
40
40
|
|
41
41
|
##### --project-id
|
42
42
|
|
@@ -48,11 +48,11 @@ Next, add the Javascript helper to your Rails application layout file:
|
|
48
48
|
|
49
49
|
<%= phraseapp_in_context_editor_js %>
|
50
50
|
|
51
|
-
If you don't want to use the helper but add the plain Javascript yourself, head over to our [documentation](
|
51
|
+
If you don't want to use the helper but add the plain Javascript yourself, head over to our [documentation](https://help.phrase.com/help/translate-directly-on-your-website) to learn more.
|
52
52
|
|
53
53
|
### Done!
|
54
54
|
|
55
|
-
Restart your application to see the In-Context
|
55
|
+
Restart your application to see the In-Context Editor in action!
|
56
56
|
|
57
57
|
### OpenSSL issues
|
58
58
|
|
@@ -82,11 +82,11 @@ This is **not recommended** and should only be used as a temporary workaround.
|
|
82
82
|
|
83
83
|
|
84
84
|
## Further Information
|
85
|
-
* [
|
86
|
-
* [Software Translation Management with
|
87
|
-
* [Contact us](https://
|
85
|
+
* [Phrase Help Center](https://help.phrase.com/)
|
86
|
+
* [Software Translation Management with Phrase](https://phrase.com/features)
|
87
|
+
* [Contact us](https://phrase.com/contact)
|
88
88
|
|
89
89
|
## References
|
90
|
-
* [
|
91
|
-
* [In-Context-Editor Demo](
|
92
|
-
* [Localization Guides and Software Translation Best Practices](
|
90
|
+
* [Phrase API Documentation](https://developers.phrase.com/api/)
|
91
|
+
* [In-Context-Editor Demo](https://phrase.com/demo)
|
92
|
+
* [Localization Guides and Software Translation Best Practices](https://phrase.com/blog/)
|
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
- - :name_project
|
3
|
+
- ice-ruby
|
4
|
+
- :who: Sven Dunemann
|
5
|
+
:why: short name of project
|
6
|
+
:versions: []
|
7
|
+
:when: 2020-05-07 07:33:57.612101331 Z
|
8
|
+
- - :ignore_group
|
9
|
+
- development
|
10
|
+
- :who:
|
11
|
+
:why:
|
12
|
+
:versions: []
|
13
|
+
:when: 2020-05-28 06:07:17.509402355 Z
|
14
|
+
- - :ignore_group
|
15
|
+
- test
|
16
|
+
- :who:
|
17
|
+
:why:
|
18
|
+
:versions: []
|
19
|
+
:when: 2020-05-28 06:07:22.250180736 Z
|
20
|
+
- - :ignore
|
21
|
+
- phraseapp-in-context-editor-ruby
|
22
|
+
- :who: Sven Dunemann
|
23
|
+
:why: Internal phrase library
|
24
|
+
:versions: []
|
25
|
+
:when: 2020-05-28 06:45:09.434963794 Z
|
26
|
+
- - :ignore
|
27
|
+
- phraseapp-ruby
|
28
|
+
- :who: Sven Dunemann
|
29
|
+
:why: Internal phrase library
|
30
|
+
:versions: []
|
31
|
+
:when: 2020-05-28 06:46:05.492507471 Z
|
32
|
+
- - :inherit_from
|
33
|
+
- url: https://raw.githubusercontent.com/phrase/lawa/master/config/license-decisions.yml
|
34
|
+
authorization: token $GITHUB_TOKEN
|
@@ -6,5 +6,5 @@ PhraseApp is the translation management solution for web and mobile applications
|
|
6
6
|
How awesome would it be if translators could simply browse your website and edit text along the way? Our In-Context Editor offers just that. It provides translators with useful contextual information which improves overall translation quality.
|
7
7
|
|
8
8
|
Login: https://phraseapp.com/account/login
|
9
|
-
Documentation:
|
9
|
+
Documentation: https://help.phraseapp.com/translate-website-and-app-content/use-in-context-editor-to-translate/translate-directly-on-your-website
|
10
10
|
===============================================================================
|
@@ -10,7 +10,7 @@ PhraseApp::InContextEditor.configure do |config|
|
|
10
10
|
|
11
11
|
# You can create and manage access tokens in your profile settings
|
12
12
|
# in Translation Center or via the Authorizations API
|
13
|
-
# (
|
13
|
+
# (https://developers.phraseapp.com/api/#authorizations).
|
14
14
|
config.access_token = "<%= options[:access_token] %>"
|
15
15
|
|
16
16
|
# Configure an array of key names that should not be handled
|
@@ -21,7 +21,7 @@ PhraseApp::InContextEditor.configure do |config|
|
|
21
21
|
# in context of your document. However, this might result in conflicts
|
22
22
|
# with other libraries (e.g. client-side template engines) that use a similar syntax.
|
23
23
|
# If you encounter this problem, you might want to change this decorator pattern.
|
24
|
-
# More information:
|
24
|
+
# More information: https://help.phraseapp.com/phraseapp-for-developers/how-to-setup-and-configure-the-phraseapp-in-context-editor-ice/configure-in-context-editor
|
25
25
|
# config.prefix = "{{__"
|
26
26
|
# config.suffix = "__}}"
|
27
27
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
require 'phraseapp-ruby'
|
3
|
+
require 'request_store'
|
3
4
|
|
4
5
|
module PhraseApp
|
5
6
|
module InContextEditor
|
@@ -7,11 +8,11 @@ module PhraseApp
|
|
7
8
|
|
8
9
|
class << self
|
9
10
|
def config
|
10
|
-
|
11
|
+
RequestStore.store[:phraseapp_config] ||= PhraseApp::InContextEditor::Config.new
|
11
12
|
end
|
12
13
|
|
13
14
|
def config=(value)
|
14
|
-
|
15
|
+
RequestStore.store[:phraseapp_config] = value
|
15
16
|
end
|
16
17
|
|
17
18
|
def backend
|
@@ -14,7 +14,27 @@ module PhraseApp
|
|
14
14
|
|
15
15
|
def translate(*args)
|
16
16
|
if to_be_translated_without_phraseapp?(args)
|
17
|
-
|
17
|
+
# *Ruby 2.7+ keyword arguments warning*
|
18
|
+
#
|
19
|
+
# This method uses keyword arguments.
|
20
|
+
# There is a breaking change in ruby that produces warning with ruby 2.7 and won't work as expected with ruby 3.0
|
21
|
+
# The "hash" parameter must be passed as keyword argument.
|
22
|
+
#
|
23
|
+
# Good:
|
24
|
+
# I18n.t(:salutation, :gender => 'w', :name => 'Smith')
|
25
|
+
# I18n.t(:salutation, **{ :gender => 'w', :name => 'Smith' })
|
26
|
+
# I18n.t(:salutation, **any_hash)
|
27
|
+
#
|
28
|
+
# Bad:
|
29
|
+
# I18n.t(:salutation, { :gender => 'w', :name => 'Smith' })
|
30
|
+
# I18n.t(:salutation, any_hash)
|
31
|
+
#
|
32
|
+
kw_args = args[1]
|
33
|
+
if kw_args.present?
|
34
|
+
I18n.translate_without_phraseapp(args[0], **kw_args)
|
35
|
+
else
|
36
|
+
I18n.translate_without_phraseapp(args[0])
|
37
|
+
end
|
18
38
|
else
|
19
39
|
phraseapp_delegate_for(args)
|
20
40
|
end
|
@@ -10,7 +10,7 @@ module PhraseApp
|
|
10
10
|
backend: PhraseApp::InContextEditor::BackendService.new,
|
11
11
|
prefix: "{{__",
|
12
12
|
suffix: "__}}",
|
13
|
-
api_host: "https://api.
|
13
|
+
api_host: "https://api.phrase.com",
|
14
14
|
js_host: "phraseapp.com",
|
15
15
|
js_use_ssl: true,
|
16
16
|
js_path: "/assets/in-context-editor/2.0/app.js",
|
@@ -13,6 +13,10 @@ module PhraseApp
|
|
13
13
|
alias :dasherize :to_s
|
14
14
|
alias :tableize :to_s
|
15
15
|
|
16
|
+
# Delegate .html_safe from accessing Delegate object as if it was a hash,
|
17
|
+
# but instead perform it on the resulting string
|
18
|
+
delegate :html_safe, to: :to_s
|
19
|
+
|
16
20
|
def self.log(message)
|
17
21
|
message = "phrase: #{message}"
|
18
22
|
if defined?(Rails) and Rails.respond_to?(:logger)
|
@@ -8,25 +8,36 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.name = "phraseapp-in-context-editor-ruby"
|
9
9
|
s.version = PhraseApp::InContextEditor::VERSION
|
10
10
|
s.platform = Gem::Platform::RUBY
|
11
|
+
s.required_ruby_version = '>= 2.1'
|
11
12
|
s.authors = ["Dynport GmbH"]
|
12
|
-
s.email = ["info@
|
13
|
-
s.homepage = "https://
|
13
|
+
s.email = ["info@phrase.com"]
|
14
|
+
s.homepage = "https://phrase.com"
|
14
15
|
s.summary = %q{Translation management solution for web and mobile applications}
|
15
16
|
s.licenses = ['MIT']
|
16
|
-
s.description = %q{
|
17
|
+
s.description = %q{Phrase In-Context-Editor allows you to edit translations directly on the website. More information: phrase.com}
|
17
18
|
s.required_rubygems_version = ">= 1.3.6"
|
18
19
|
s.rubyforge_project = "phraseapp-in-context-editor-ruby"
|
19
20
|
git_files = `git ls-files | grep -v spec/`.split("\n") rescue ''
|
20
21
|
s.files = git_files
|
21
22
|
s.test_files = s.files.grep(%r{^(spec)/})
|
22
23
|
s.require_paths = ["lib"]
|
23
|
-
|
24
|
+
if RUBY_VERSION >= '2.4'
|
25
|
+
s.add_dependency('json', '>= 1.8', '< 3')
|
26
|
+
else
|
27
|
+
s.add_dependency('json', '>= 1.7', '< 3')
|
28
|
+
end
|
24
29
|
s.add_dependency('i18n', '>= 0.6')
|
25
|
-
s.add_dependency('phraseapp-ruby', '~> 1.
|
30
|
+
s.add_dependency('phraseapp-ruby', '~> 1.3')
|
31
|
+
s.add_dependency('request_store', '~> 1.3')
|
26
32
|
s.add_development_dependency('rspec', '~> 3.2')
|
27
33
|
s.add_development_dependency('webmock', '~> 1.21')
|
28
34
|
s.add_development_dependency('vcr', '~> 2.9')
|
29
35
|
s.add_development_dependency('timecop', '~> 0.7')
|
30
|
-
|
36
|
+
if RUBY_VERSION < '2.2'
|
37
|
+
s.add_development_dependency('mime-types', '< 3.0') # for 1.9.3 to work
|
38
|
+
s.add_development_dependency('rails', '~> 4.2')
|
39
|
+
else
|
40
|
+
s.add_development_dependency('rails', '>= 4.2', '< 5.1')
|
41
|
+
end
|
31
42
|
s.add_development_dependency('github_changelog_generator')
|
32
43
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phraseapp-in-context-editor-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dynport GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.8'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '1.8'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: i18n
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +50,28 @@ dependencies:
|
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
53
|
+
version: '1.3'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
60
|
+
version: '1.3'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: request_store
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.3'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '1.3'
|
55
75
|
- !ruby/object:Gem::Dependency
|
56
76
|
name: rspec
|
57
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,16 +132,22 @@ dependencies:
|
|
112
132
|
name: rails
|
113
133
|
requirement: !ruby/object:Gem::Requirement
|
114
134
|
requirements:
|
115
|
-
- - "
|
135
|
+
- - ">="
|
116
136
|
- !ruby/object:Gem::Version
|
117
137
|
version: '4.2'
|
138
|
+
- - "<"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '5.1'
|
118
141
|
type: :development
|
119
142
|
prerelease: false
|
120
143
|
version_requirements: !ruby/object:Gem::Requirement
|
121
144
|
requirements:
|
122
|
-
- - "
|
145
|
+
- - ">="
|
123
146
|
- !ruby/object:Gem::Version
|
124
147
|
version: '4.2'
|
148
|
+
- - "<"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '5.1'
|
125
151
|
- !ruby/object:Gem::Dependency
|
126
152
|
name: github_changelog_generator
|
127
153
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,22 +162,26 @@ dependencies:
|
|
136
162
|
- - ">="
|
137
163
|
- !ruby/object:Gem::Version
|
138
164
|
version: '0'
|
139
|
-
description: '
|
140
|
-
|
165
|
+
description: 'Phrase In-Context-Editor allows you to edit translations directly on
|
166
|
+
the website. More information: phrase.com'
|
141
167
|
email:
|
142
|
-
- info@
|
168
|
+
- info@phrase.com
|
143
169
|
executables: []
|
144
170
|
extensions: []
|
145
171
|
extra_rdoc_files: []
|
146
172
|
files:
|
173
|
+
- ".github/workflows/test.yml"
|
147
174
|
- ".gitignore"
|
148
|
-
- ".
|
175
|
+
- ".package-licenses.yml"
|
176
|
+
- ".tool-versions"
|
149
177
|
- CHANGELOG.md
|
150
178
|
- Gemfile
|
151
179
|
- Guardfile
|
152
180
|
- LICENSE
|
153
181
|
- README.md
|
154
182
|
- cacert.pem
|
183
|
+
- config/license-decisions.yml
|
184
|
+
- config/license_finder.yml
|
155
185
|
- lib/generators/phraseapp_in_context_editor/install_generator.rb
|
156
186
|
- lib/generators/phraseapp_in_context_editor/templates/README
|
157
187
|
- lib/generators/phraseapp_in_context_editor/templates/phraseapp_in_context_editor.rb
|
@@ -174,7 +204,7 @@ files:
|
|
174
204
|
- lib/phraseapp-in-context-editor-ruby/version.rb
|
175
205
|
- lib/phraseapp-in-context-editor-ruby/view_helpers.rb
|
176
206
|
- phraseapp-in-context-editor-ruby.gemspec
|
177
|
-
homepage: https://
|
207
|
+
homepage: https://phrase.com
|
178
208
|
licenses:
|
179
209
|
- MIT
|
180
210
|
metadata: {}
|
@@ -186,15 +216,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
216
|
requirements:
|
187
217
|
- - ">="
|
188
218
|
- !ruby/object:Gem::Version
|
189
|
-
version: '
|
219
|
+
version: '2.1'
|
190
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
221
|
requirements:
|
192
222
|
- - ">="
|
193
223
|
- !ruby/object:Gem::Version
|
194
224
|
version: 1.3.6
|
195
225
|
requirements: []
|
196
|
-
|
197
|
-
rubygems_version: 2.4.8
|
226
|
+
rubygems_version: 3.2.3
|
198
227
|
signing_key:
|
199
228
|
specification_version: 4
|
200
229
|
summary: Translation management solution for web and mobile applications
|