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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 050bfda813855a702a0b5be38709edac3548e85f
4
- data.tar.gz: 2a05ef6ed61f81f12abe4c1aa260a4c8fd4d4fb5
3
+ metadata.gz: 2fc313f6b4a8ec077a60721fa8054d69204e7105
4
+ data.tar.gz: 02cc4184452f2ba4b3f4e1963b43b4bb382bee62
5
5
  SHA512:
6
- metadata.gz: 0c5304cdbd9d8dd27b80aaf274d5e76b06f334ac3c7b4ed5f5e659848284204e81f6e3995f33770d7e2b4552df44b37971663cb753f27c4d16a97aa4ef2ad47a
7
- data.tar.gz: 15487c1b04badf988663ffc8e90706fced1571be5fb510ae561ee98ee43efbd661c07d7378c827742a88fd98246d66b0e5abf6591243a6b3f29899c46c161cb8
6
+ metadata.gz: b75a07545691a62209caa27f0d3b0b3735f7b654cdd9e2b23a85a685e8ba32035e13cb9036fa7e6c3078a5d1dcc11fe55aae72ac84aa1456d3a4755836b9705c
7
+ data.tar.gz: 236dddc3a116d1bfca1d514130e8ff19dc485a61a2615429782e666690220c7f3e3ff5a13816e4f7a0571f0a92044f8ef6dc630b339ac26a33ff2deee4152316
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.1
@@ -0,0 +1,10 @@
1
+ ### 0.0.1 - 4-NOV-2014
2
+
3
+ * Generate config file
4
+ * Upload base locale string files to OneSky
5
+ * Download translations from OneSky
6
+
7
+ ### 1.0.0 - 31-DEC-2014
8
+
9
+ * Add custom header
10
+ * bump version to 1.0.0 as stable version
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
@@ -1 +1,9 @@
1
- require "bundler/gem_tasks"
1
+ begin
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec) { |t| t.verbose = false }
5
+
6
+ task :default => :spec
7
+ rescue LoadError
8
+ p "no rspec available"
9
+ end
@@ -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 = []
@@ -1,5 +1,5 @@
1
1
  module Onesky
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -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.1"
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.1
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-04 00:00:00.000000000 Z
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.1
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.1
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: '3.1'
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: '3.1'
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: '1.19'
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: '1.19'
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