clocale 0.0.4 → 0.0.5.alpha.55.3

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
  SHA256:
3
- metadata.gz: 754426568e2bd5d5ca12e2aa4eaf352f58ad320f74cfe521c1be6afb40812fa6
4
- data.tar.gz: ae661ea430059426eae209d78ebcb01defb1cb51d454825b6858569da2257fed
3
+ metadata.gz: 73197ee8d7455044ac31d45e65dbc478fd39af7c21adf8cf0efc68ad3e5bc65c
4
+ data.tar.gz: 4b54b20f764420bd1f8ee7e95a58c6cd71ba4c5cb9803b8158087a32ab47b0c7
5
5
  SHA512:
6
- metadata.gz: 3d332dce7214607e2736506a75826fa6e6a7b8d68cfbc26d460706a786d011fce66ba747fbb28c5f012dbdf6b1dd5495814973b95817cda20c4649f13188242c
7
- data.tar.gz: 3f41b2b35b1ff4c06452edb11a299e34c7e1698421c5e492821eafdfb67cd2da838d6139e1ca5d4cda34161b634b164726c22e2b0d7906ed05868ff83a59fe18
6
+ metadata.gz: 4920c4b3202109b7fafbec6f99d36209c83551fbf53e99a8613a5a13bd6799ce66479154d3dd44ab8a7e0c855b6b8e21368a78af86ce5aabef6980ef4fdb7cc3
7
+ data.tar.gz: 23cd89de5bec5734fd59b428b6bbc02251df22f7bfd0b8b894f6907a63b0a230c9a286171d7868a289ae74073a61b38dce8d3e8633f13822e91c8ac715cd81df
data/.rubocop.yml CHANGED
@@ -1,5 +1,14 @@
1
1
  require: rubocop-rspec
2
2
 
3
+ AllCops:
4
+ Exclude:
5
+ - 'vendor/**/*'
6
+ DisplayCopNames: true
7
+ TargetRubyVersion: 2.3
8
+
9
+ Metrics/AbcSize:
10
+ Max: 20
11
+
3
12
  Metrics/LineLength:
4
13
  Max: 100
5
14
 
data/.travis.yml CHANGED
@@ -1,6 +1,8 @@
1
+ dist: xenial
2
+
1
3
  conditions: v1
2
4
 
3
- if: type = pull_request OR tag IS present
5
+ if: branch = master OR tag IS present
4
6
 
5
7
  os:
6
8
  - linux
@@ -12,9 +14,21 @@ rvm:
12
14
  - '2.3'
13
15
  - '2.4'
14
16
  - '2.5'
17
+ - '2.6'
15
18
 
16
- install:
17
- - bundle install --path vendor/bundle
19
+ before_install:
20
+ - gem update --system
21
+ - gem --version
18
22
 
19
23
  script:
20
24
  - bundle exec rake
25
+
26
+ deploy:
27
+ provider: rubygems
28
+ api_key:
29
+ secure: J+HH5P6HdF1+vqsyDzUiKmiqmyvHXSqaTX8CvLNu6ulAQ2XbRCIWbBxCwyhZGryMz55n4ubk5QJkOViNFEjwcaG/yCUBKOCtoYrH8HnEMnd4HH69UO7RaW4LOIa67bRTQm48F2gNcoV9Z5NsuU5W0f3d3IQ8LVbP11gTxSoXpWF7tISjcFJglcmIvFLrF8UICUOOtYeXJXgTmE4GRrylG4dLuo0RJ9wZPiwvqg/3i/KswfAQ5834sFTc5SrcghGqlbVPds+RhAY/OU+b/WF8Ld8dd1TKGCaDKqvrclWbXHPnn1gKGwgDAlVYB8iIW4wn8WGNOdvAYP5DNdERRJbxEnfCMMN3St6jP9n51X5Bwa76Ueh7PUDU3AjgEO4huNers6NfVMp4ruhZdsCNHgqr81/cAiWwsnRXN/Fk+VxhnzUCWpVRWCEyLPNJOk3WjcR2VhLoiAywm+RKiiHPZUmSRezbxwgh9dhrOHwh27LHPwA731KtaoOMJ9r9gHHLOgwiAj7jLhiobLY+3i7Ussz8hsZ6L0fgdE0tawm9L7CIrsqwZ5SPjlFj/oDRGOiw7bQzBwMLEzlKspefrS6JQaF62QTIuV8ccdfn3CXoDoG1ljqv0l+gcbcx+GDhoR/B6L+h0OZj9Pcy20saoMUCIYMx8bvdErL5crhbf225UApDvP4=
30
+ gem: clocale
31
+ on:
32
+ repo: avdv/clocale
33
+ rvm: '2.5'
34
+ os: linux
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
- # clocale [![travis-badge][]][travis] [![appveyor-badge][]][appveyor] [![codecov-badge][]][codecov]
1
+ # clocale [![rubygem-badge][]][rubygem] [![travis-badge][]][travis] [![appveyor-badge][]][appveyor] [![codecov-badge][]][codecov]
2
2
 
3
+ [rubygem]: https://badge.fury.io/rb/clocale
4
+ [rubygem-badge]: https://badge.fury.io/rb/clocale.svg
3
5
  [travis]: https://travis-ci.org/avdv/clocale
4
6
  [travis-badge]: https://travis-ci.org/avdv/clocale.svg?branch=master
5
7
  [appveyor]: https://ci.appveyor.com/project/avdv/clocale/branch/master
data/Rakefile CHANGED
@@ -1,12 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rake/extensiontask'
2
4
  require 'rubygems/tasks'
3
5
 
4
6
  Gem::Tasks.new
5
7
 
6
8
  require 'rspec/core/rake_task'
7
- RSpec::Core::RakeTask.new do |t|
8
- t.ruby_opts = '-w'
9
- end
9
+ RSpec::Core::RakeTask.new
10
10
 
11
11
  require 'rubocop/rake_task'
12
12
  RuboCop::RakeTask.new
data/clocale.gemspec CHANGED
@@ -1,12 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ # rubocop:disable Metrics/BlockLength
1
4
  Gem::Specification.new do |spec|
5
+ CLOCALE_VERSION = '0.0.4'
6
+
7
+ is_tagged = ENV['TRAVIS_TAG'] == "v#{CLOCALE_VERSION}"
8
+ is_origin = ENV['TRAVIS_REPO_SLUG'] == 'avdv/clocale'
9
+ job_number = ENV['TRAVIS_JOB_NUMBER']
10
+
2
11
  spec.name = 'clocale'
3
- spec.version = '0.0.4'
12
+ spec.version = if job_number && is_origin && !is_tagged
13
+ # Prereleasing on Travis CI
14
+ digits = CLOCALE_VERSION.to_s.split '.'
15
+ digits[-1] = digits[-1].to_s.succ
16
+
17
+ digits.join('.') + ".alpha.#{ENV['TRAVIS_JOB_NUMBER']}"
18
+ else
19
+ CLOCALE_VERSION
20
+ end
4
21
  spec.authors = ['Claudio Bley']
5
22
  spec.email = ['claudio.bley@gmail.com']
6
23
  spec.summary = 'A Ruby gem that wraps C locale functions.'
7
24
  spec.homepage = 'https://github.com/avdv/clocale'
8
25
  spec.license = 'MIT'
9
26
 
27
+ spec.required_ruby_version = '>= 2.3'
28
+
10
29
  spec.extensions = %w[ext/clocale/extconf.rb]
11
30
 
12
31
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -14,10 +33,11 @@ Gem::Specification.new do |spec|
14
33
  end
15
34
 
16
35
  spec.add_development_dependency 'codecov', '~> 0.1.10'
17
- spec.add_development_dependency 'rake', '~> 12.3'
18
- spec.add_development_dependency 'rake-compiler', '~> 1.0'
19
- spec.add_development_dependency 'rspec', '~> 3.7'
20
- spec.add_development_dependency 'rubocop', '~> 0.58'
21
- spec.add_development_dependency 'rubocop-rspec', '~> 1.27'
22
- spec.add_development_dependency 'rubygems-tasks', '~> 0.2'
36
+ spec.add_development_dependency 'rake', '~> 12.3.1'
37
+ spec.add_development_dependency 'rake-compiler', '~> 1.0.5'
38
+ spec.add_development_dependency 'rspec', '~> 3.8.0'
39
+ spec.add_development_dependency 'rubocop', '~> 0.63.0'
40
+ spec.add_development_dependency 'rubocop-rspec', '~> 1.31.0'
41
+ spec.add_development_dependency 'rubygems-tasks', '~> 0.2.4'
23
42
  end
43
+ # rubocop:enable Metrics/BlockLength
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'mkmf'
2
4
 
3
5
  def check_functions
data/lib/clocale.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # This module defines the `LC_*` constants and locale functions from the linked
2
4
  # C library of the current Ruby interpreter.
3
5
  #
@@ -1,9 +1,13 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'clocale'
2
4
 
3
5
  RSpec.describe CLocale do
6
+ subject(:clocale) { ::CLocale }
7
+
4
8
  %i[LC_ALL LC_COLLATE LC_CTYPE LC_MONETARY LC_NUMERIC LC_TIME].each do |const|
5
- it "has #{const} constant" do
6
- is_expected.to(satisfy { |m| m.const_defined? const })
9
+ it "has #{const} defined" do
10
+ expect(clocale.const_defined?(const)).to be(true)
7
11
  end
8
12
  end
9
13
 
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'simplecov'
2
4
  SimpleCov.start
3
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clocale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5.alpha.55.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Bley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-11 00:00:00.000000000 Z
11
+ date: 2019-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codecov
@@ -30,84 +30,84 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '12.3'
33
+ version: 12.3.1
34
34
  type: :development
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: '12.3'
40
+ version: 12.3.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake-compiler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
47
+ version: 1.0.5
48
48
  type: :development
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'
54
+ version: 1.0.5
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.7'
61
+ version: 3.8.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.7'
68
+ version: 3.8.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.58'
75
+ version: 0.63.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: '0.58'
82
+ version: 0.63.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop-rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.27'
89
+ version: 1.31.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.27'
96
+ version: 1.31.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubygems-tasks
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.2'
103
+ version: 0.2.4
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.2'
110
+ version: 0.2.4
111
111
  description:
112
112
  email:
113
113
  - claudio.bley@gmail.com
@@ -142,12 +142,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: '0'
145
+ version: '2.3'
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - ">="
148
+ - - ">"
149
149
  - !ruby/object:Gem::Version
150
- version: '0'
150
+ version: 1.3.1
151
151
  requirements: []
152
152
  rubyforge_project:
153
153
  rubygems_version: 2.7.7