xcres 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e692ec769fe508468262d0f73df2cf1cef872335
4
- data.tar.gz: 2cb66b4806e596e17d35a5457da38db2845f29d3
3
+ metadata.gz: 978aed649b19510481f46a72849eaf9389d7257b
4
+ data.tar.gz: b7c0bc3d6fb56e10463bf6461085971900a794df
5
5
  SHA512:
6
- metadata.gz: f2ec6c5fc9bbe6fca0829de77f45a345ebb4fe8932e2b614dedef96d2c6defe027178565b57929c78038fe1450251093f623755395a0cb6c97b613bc248d40a2
7
- data.tar.gz: 98986a51995961080d974deeef33113fec37d5fb0d68369e00305a496cc18ec87e24352e6d761ea4aada31b44df601601dc92cbcd532cd980803165cfd8e3946
6
+ metadata.gz: 495dfce75cb0fa2dbca28f270559c03b4e43966f57e9520f80af26a409e257dc07b85b7885509b5132ea1758419c20a07f45c5e6ef7db6db1ae575b3385176ac
7
+ data.tar.gz: 65bc36e835c1a274497b04e5d85c007c49239dc13543fa187ee0ed3434d72d8997eed5ee4c4e58342681a54deb192492c0f6c6a550259fe15b323f4f1f81683a
@@ -1,21 +1,24 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xcres (0.6.0)
5
- activesupport (>= 3.2.15, < 4)
4
+ xcres (0.6.1)
5
+ activesupport (>= 4.0.2, < 5)
6
6
  clamp (~> 0.6.3)
7
7
  colored (~> 1.2)
8
- xcodeproj (>= 0.28.2, < 1.1.0)
8
+ xcodeproj (>= 1.2.0, < 2.0)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (3.2.22.2)
14
- i18n (~> 0.6, >= 0.6.4)
15
- multi_json (~> 1.0)
13
+ activesupport (4.2.7.1)
14
+ i18n (~> 0.7)
15
+ json (~> 1.7, >= 1.7.7)
16
+ minitest (~> 5.1)
17
+ thread_safe (~> 0.3, >= 0.3.4)
18
+ tzinfo (~> 1.1)
16
19
  ast (2.2.0)
17
20
  bacon (1.2.0)
18
- claide (0.9.1)
21
+ claide (1.0.0)
19
22
  clamp (0.6.5)
20
23
  clintegracon (0.8.1)
21
24
  colored (~> 1.2)
@@ -29,13 +32,14 @@ GEM
29
32
  sparkr (>= 0.2.0)
30
33
  term-ansicolor
31
34
  yard (~> 0.8.7.5)
35
+ json (1.8.3)
32
36
  metaclass (0.0.4)
33
37
  method_source (0.8.2)
38
+ minitest (5.9.1)
34
39
  mocha (1.1.0)
35
40
  metaclass (~> 0.0.1)
36
41
  mocha-on-bacon (0.2.2)
37
42
  mocha (>= 0.13.0)
38
- multi_json (1.11.2)
39
43
  parser (2.3.0.6)
40
44
  ast (~> 2.2)
41
45
  powerpack (0.1.1)
@@ -59,11 +63,14 @@ GEM
59
63
  sparkr (0.4.1)
60
64
  term-ansicolor (1.3.2)
61
65
  tins (~> 1.0)
66
+ thread_safe (0.3.5)
62
67
  tins (1.9.0)
68
+ tzinfo (1.2.2)
69
+ thread_safe (~> 0.1)
63
70
  unicode-display_width (1.0.2)
64
- xcodeproj (0.28.2)
71
+ xcodeproj (1.3.1)
65
72
  activesupport (>= 3)
66
- claide (~> 0.9.1)
73
+ claide (>= 1.0.0, < 2.0)
67
74
  colored (~> 1.2)
68
75
  yard (0.8.7.6)
69
76
 
@@ -84,4 +91,4 @@ DEPENDENCIES
84
91
  xcres!
85
92
 
86
93
  BUNDLED WITH
87
- 1.11.2
94
+ 1.13.1
@@ -113,7 +113,7 @@ EOS
113
113
 
114
114
  def transform_key key, options
115
115
  # Split the key into components
116
- components = key.underscore.split /[_\/ ]/
116
+ components = key.underscore.split /[\_\.\-\/ ]/
117
117
 
118
118
  # Build the new key incremental
119
119
  result = ''
@@ -4,6 +4,6 @@ module XCRes
4
4
  #
5
5
  # XCRes’s version, following [semver](http://semver.org).
6
6
  #
7
- VERSION = "0.6.0"
7
+ VERSION = "0.6.1"
8
8
 
9
9
  end
@@ -1,3 +1,3 @@
1
1
  ROOT/bin/xcres version --verbose --no-ansi 2>&1
2
2
  Ⓥ Verbose mode is enabled.
3
- 0.6.0
3
+ 0.6.1
@@ -31,7 +31,7 @@ describe 'XCRes::ResourcesBuilder' do
31
31
  @builder.output_path = 'test/R.swift'
32
32
  @builder.resources_constant_name.should.be.eql?('R')
33
33
  end
34
-
34
+
35
35
  it 'should fallback to the basename of the output path [objc]' do
36
36
  @builder.output_path = 'test/R.m'
37
37
  @builder.resources_constant_name.should.be.eql?('R')
@@ -43,6 +43,8 @@ describe 'XCRes::ResourcesBuilder' do
43
43
  @builder.send(:transform_key, 'ab_cd_ef', {}).should == 'abCdEf'
44
44
  @builder.send(:transform_key, 'ab/cd/ef', {}).should == 'abCdEf'
45
45
  @builder.send(:transform_key, 'Ab_1cdEf', {}).should == 'ab1cdEf'
46
+ @builder.send(:transform_key, 'ab.cd.ef', {}).should == 'abCdEf'
47
+ @builder.send(:transform_key, 'Ab.1cdEf', {}).should == 'ab1cdEf'
46
48
  end
47
49
 
48
50
  it 'should prefix the key with an underscore if the first character is not a letter' do
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.add_runtime_dependency 'clamp', '~> 0.6.3'
38
38
  spec.add_runtime_dependency 'colored', '~> 1.2'
39
- spec.add_runtime_dependency 'activesupport', '>= 3.2.15', '< 4'
40
- spec.add_runtime_dependency 'xcodeproj', ">= 0.28.2", "< 1.1.0"
39
+ ## Version 5 needs Ruby 2.2, so we specify an upper bound to stay compatible with system ruby
40
+ spec.add_runtime_dependency 'activesupport', '>= 4.0.2', '< 5'
41
+ spec.add_runtime_dependency 'xcodeproj', '>= 1.2.0', '< 2.0'
41
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marius Rackwitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-16 00:00:00.000000000 Z
11
+ date: 2016-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -170,40 +170,40 @@ dependencies:
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: 3.2.15
173
+ version: 4.0.2
174
174
  - - "<"
175
175
  - !ruby/object:Gem::Version
176
- version: '4'
176
+ version: '5'
177
177
  type: :runtime
178
178
  prerelease: false
179
179
  version_requirements: !ruby/object:Gem::Requirement
180
180
  requirements:
181
181
  - - ">="
182
182
  - !ruby/object:Gem::Version
183
- version: 3.2.15
183
+ version: 4.0.2
184
184
  - - "<"
185
185
  - !ruby/object:Gem::Version
186
- version: '4'
186
+ version: '5'
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: xcodeproj
189
189
  requirement: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - ">="
192
192
  - !ruby/object:Gem::Version
193
- version: 0.28.2
193
+ version: 1.2.0
194
194
  - - "<"
195
195
  - !ruby/object:Gem::Version
196
- version: 1.1.0
196
+ version: '2.0'
197
197
  type: :runtime
198
198
  prerelease: false
199
199
  version_requirements: !ruby/object:Gem::Requirement
200
200
  requirements:
201
201
  - - ">="
202
202
  - !ruby/object:Gem::Version
203
- version: 0.28.2
203
+ version: 1.2.0
204
204
  - - "<"
205
205
  - !ruby/object:Gem::Version
206
- version: 1.1.0
206
+ version: '2.0'
207
207
  description: xcres searches your Xcode project for resourcesand generates an index
208
208
  as struct constants.
209
209
  email:
@@ -618,7 +618,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
618
618
  version: '0'
619
619
  requirements: []
620
620
  rubyforge_project:
621
- rubygems_version: 2.4.5
621
+ rubygems_version: 2.5.1
622
622
  signing_key:
623
623
  specification_version: 4
624
624
  summary: "`xcres` searches your Xcode project for resources and generates an index