onesky-rails 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/CHANGELOG.md +10 -0
- data/README.md +2 -0
- data/Rakefile +9 -1
- data/lib/onesky/rails/client.rb +1 -0
- data/lib/onesky/rails/version.rb +1 -1
- data/onesky-rails.gemspec +3 -3
- data/spec/onesky/rails/client_spec.rb +1 -0
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fc313f6b4a8ec077a60721fa8054d69204e7105
|
4
|
+
data.tar.gz: 02cc4184452f2ba4b3f4e1963b43b4bb382bee62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b75a07545691a62209caa27f0d3b0b3735f7b654cdd9e2b23a85a685e8ba32035e13cb9036fa7e6c3078a5d1dcc11fe55aae72ac84aa1456d3a4755836b9705c
|
7
|
+
data.tar.gz: 236dddc3a116d1bfca1d514130e8ff19dc485a61a2615429782e666690220c7f3e3ff5a13816e4f7a0571f0a92044f8ef6dc630b339ac26a33ff2deee4152316
|
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Onesky::Rails
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/onesky/onesky-rails.svg)](https://travis-ci.org/onesky/onesky-rails)
|
4
|
+
|
3
5
|
Integrate Rails app with [OneSky](http://www.oneskyapp.com) that provide `upload` and `download` rake command to sync string files
|
4
6
|
|
5
7
|
## Installation
|
data/Rakefile
CHANGED
data/lib/onesky/rails/client.rb
CHANGED
@@ -13,6 +13,7 @@ module Onesky
|
|
13
13
|
|
14
14
|
@config = config_hash
|
15
15
|
@client = ::Onesky::Client.new(@config['api_key'], @config['api_secret'])
|
16
|
+
@client.plugin_code = 'rails-string'
|
16
17
|
@project = @client.project(@config['project_id'].to_i)
|
17
18
|
@base_locale = ::I18n.default_locale
|
18
19
|
@onesky_locales = []
|
data/lib/onesky/rails/version.rb
CHANGED
data/onesky-rails.gemspec
CHANGED
@@ -19,10 +19,10 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_dependency "i18n", ">= 0.5.0"
|
22
|
-
spec.add_dependency "onesky-ruby", "~> 0.0
|
22
|
+
spec.add_dependency "onesky-ruby", "~> 1.0.0"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.5"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.3"
|
26
|
-
spec.add_development_dependency "rspec", "~> 3.1"
|
27
|
-
spec.add_development_dependency "webmock", "~> 1.19"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.1.0"
|
27
|
+
spec.add_development_dependency "webmock", "~> 1.19.0"
|
28
28
|
end
|
@@ -23,6 +23,7 @@ describe Onesky::Rails::Client do
|
|
23
23
|
context 'success' do
|
24
24
|
before(:each) do
|
25
25
|
stub_request(:get, full_path_with_auth_hash("/projects/#{config_hash['project_id']}/languages", config_hash['api_key'], config_hash['api_secret']))
|
26
|
+
.with(headers: {'Content-Type' => 'application/json', 'Onesky-Plugin' => 'rails-string'})
|
26
27
|
.to_return(status: 200, body: languages_response.to_json)
|
27
28
|
end
|
28
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onesky-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Lam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0
|
33
|
+
version: 1.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.0
|
40
|
+
version: 1.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,28 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 3.1.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 3.1.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: webmock
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 1.19.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 1.19.0
|
97
97
|
description: Integrate Rails app with OneSky that provide `upload` and `download`
|
98
98
|
rake command to sync string files
|
99
99
|
email:
|
@@ -104,6 +104,8 @@ extra_rdoc_files: []
|
|
104
104
|
files:
|
105
105
|
- ".gitignore"
|
106
106
|
- ".rspec"
|
107
|
+
- ".travis.yml"
|
108
|
+
- CHANGELOG.md
|
107
109
|
- Gemfile
|
108
110
|
- LICENSE.txt
|
109
111
|
- README.md
|