phraseapp-in-context-editor-ruby 1.0.0rc3 → 1.0.0

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: fb9577d0cd69640fd0634ec961cb6594626feb02
4
- data.tar.gz: a0598aa62e704b50cd317011cc0de0fd80a9da78
3
+ metadata.gz: 1a82c6a977398baf1b63a15a033cfcb94f6f6a0f
4
+ data.tar.gz: fa85072cc6e3d23ac227ad26cbb9047c86425185
5
5
  SHA512:
6
- metadata.gz: 12c6b02438df2b9385606151fa3806a10d2f5b8921c2caacc6346ad3cdac8c275704a5e4b63c96ab3d495c3a3f21f49800a728d297f821702a88743896c49716
7
- data.tar.gz: dec9aef548b17eaa86c39f65490359e1a0988490f2bd1040bc40f9fa1f43380f5ed0bd57c8d261ce113d77337d6dfa217cf7f41b203cbb5bd9c7aa53102702c8
6
+ metadata.gz: 45d1298b18859938e857aba124b9e1ff3e9d8696c3de48a1aad40b22afce4b27a2b6cf997e1f23833d1ef6c86cbfbcb055584a11a3c66ed19ffa0d10db6d9a43
7
+ data.tar.gz: 12b74e09140010cad41315fd3069d8f468dedab1b483a472a2b4e1b43b424cc140ab70d48e233d9d418f18dec0409927b03dbb441d78d141d21d908df0217f19
data/README.md CHANGED
@@ -54,13 +54,42 @@ If you don't want to use the helper but add the plain Javascript yourself, head
54
54
 
55
55
  Restart your application to see the In-Context-Editor in action!
56
56
 
57
- ## Upgrading from the old phrase gem
57
+
58
+ ### Upgrading from the old phrase gem
58
59
 
59
60
  If you're upgrading from the `phrase` gem (which is now deprecated), you will notice several changes:
60
61
 
61
62
  1. The gem no longer provides the `push`/`pull` commands. This functionality is now provided by our new [command line client](https://github.com/phrase/phraseapp-client).
62
63
  2. The gem also no longer implements it's own API client, but uses the [phraseapp-ruby gem](https://github.com/phrase/phraseapp-ruby) for API communication.
63
64
 
65
+
66
+ ### OpenSSL issues
67
+
68
+ Please note that outdated certificates or old versions of OpenSSL may cause connection issues, especially on Mac OSX. We recommend using Ruby 2.2.2 with OpenSSL 1.0.2d or later. If you experience OpenSSL-related errors, try the following.
69
+
70
+ Upgrade OpenSSL using Homebrew:
71
+
72
+ ```shell
73
+ $ brew upgrade openssl
74
+ $ brew install openssl
75
+ ```
76
+
77
+ If you are using RVM, also run:
78
+
79
+ ```shell
80
+ $ rvm osx-ssl-certs status all
81
+ $ rvm osx-ssl-certs update all
82
+ ````
83
+
84
+ As a workaround, you can disable SSL certificate verification in your `config/initializers/phraseapp_in_context_editor.rb` by adding the following line:
85
+
86
+ ```ruby
87
+ config.skip_ssl_verification = true
88
+ ```
89
+
90
+ This is **not recommended** and should only be used as a temporary workaround.
91
+
92
+
64
93
  ## Further Information
65
94
  * [Read the PhraseApp Documentation](http://docs.phraseapp.com/)
66
95
  * [Software Translation Management with PhraseApp](https://phraseapp.com/features)
@@ -35,7 +35,7 @@ module PhraseApp
35
35
  end
36
36
 
37
37
  def blacklisted_keys
38
- PhraseApp::InContextEditor::ApiCollection.new(@api_client, "exclude_rules_index", project_id).collection.map{ |rule| rule.name }
38
+ PhraseApp::InContextEditor::ApiCollection.new(@api_client, "blacklisted_keys_list", project_id).collection.map{ |rule| rule.name }
39
39
  end
40
40
 
41
41
  private
@@ -68,7 +68,7 @@ module PhraseApp
68
68
  end
69
69
 
70
70
  def api_host
71
- @@api_host = nil if !defined? @@api_host or @@api_host.nil?
71
+ @@api_host = "https://api.phraseapp.com" if !defined? @@api_host or @@api_host.nil?
72
72
  @@api_host
73
73
  end
74
74
 
@@ -119,9 +119,8 @@ module PhraseApp
119
119
 
120
120
  protected
121
121
  def authorized_api_client
122
- auth_handler = PhraseApp::Auth::AuthHandler.new(token: PhraseApp::InContextEditor.access_token, host: api_host, skip_ssl_verification: PhraseApp::InContextEditor.skip_ssl_verification)
123
- PhraseApp::Auth.register_auth_handler(auth_handler)
124
- PhraseApp::Client
122
+ credentials = PhraseApp::Auth::Credentials.new(token: PhraseApp::InContextEditor.access_token, host: PhraseApp::InContextEditor.api_host, skip_ssl_verification: PhraseApp::InContextEditor.skip_ssl_verification)
123
+ client = PhraseApp::Client.new(credentials)
125
124
  end
126
125
  end
127
126
  end
@@ -1,5 +1,5 @@
1
1
  module PhraseApp
2
2
  module InContextEditor
3
- VERSION = "1.0.0rc3"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.require_paths = ["lib"]
23
23
  s.add_dependency('json', '~> 1.8')
24
24
  s.add_dependency('i18n', '~> 0.7')
25
- s.add_dependency('phraseapp-ruby', '~> 1.0.21')
25
+ s.add_dependency('phraseapp-ruby', '~> 1.1.0')
26
26
  s.add_development_dependency('rspec', '~> 3.2')
27
27
  s.add_development_dependency('webmock', '~> 1.21')
28
28
  s.add_development_dependency('vcr', '~> 2.9')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phraseapp-in-context-editor-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0rc3
4
+ version: 1.0.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: 2015-08-18 00:00:00.000000000 Z
11
+ date: 2015-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.0.21
47
+ version: 1.1.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.21
54
+ version: 1.1.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement