generamba 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/generamba.gemspec +3 -3
- data/lib/generamba/module_generator.rb +4 -3
- data/lib/generamba/version.rb +2 -2
- metadata +11 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a758f12b5ab6e8a49f6217a684dc02e060ba7b39
|
4
|
+
data.tar.gz: f506c4e664d143852f90befbef6685064d9f1922
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c1a731b6a2edfa03e2d991e372eed5cb4a2ad1c82e38ee396577b91847ce0ccfe900eaef0154e619d581e48a6851a1b4c72bce80ba0bbf56345bb2babe92011
|
7
|
+
data.tar.gz: 88fed38a3f5ba03b639fb5a541e97c249ecdfa7d2121a66028d06217b8d623c62e6b62a91f5d14027912d3dd776d0a317008ba5470525b85ecadc4bf4e089fd1
|
data/generamba.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'generamba/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'generamba'
|
8
8
|
spec.version = Generamba::VERSION
|
9
|
-
spec.authors = ['Egor Tolstoy', 'Andrey Zarembo', 'Beniamin Sarkisyan']
|
10
|
-
spec.email = '
|
9
|
+
spec.authors = ['Egor Tolstoy', 'Andrey Zarembo', 'Beniamin Sarkisyan', 'Aleksandr Sychev']
|
10
|
+
spec.email = 'rambler.ios@rambler-co.ru'
|
11
11
|
|
12
12
|
spec.summary = 'Advanced code generator for Xcode projects with a nice and flexible template system.'
|
13
13
|
spec.description = 'Generamba is a powerful and easy-to-use Xcode code generator. It provides a project-based configuration, flexible templates system, the ability to generate code and tests simultaneously.'
|
@@ -34,5 +34,5 @@ Gem::Specification.new do |spec|
|
|
34
34
|
# ActiveSupport dependency is not used by dashramba; instead some other dependency
|
35
35
|
# requires it. We lock it to 4.2.7 so as to avoid using 5.0, which is
|
36
36
|
# not compatible with older versions of Ruby.
|
37
|
-
spec.add_development_dependency 'activesupport', '~> 4.2.7'
|
37
|
+
spec.add_development_dependency 'activesupport', '~> 4.2', '>= 4.2.7'
|
38
38
|
end
|
@@ -37,7 +37,8 @@ module Generamba
|
|
37
37
|
project,
|
38
38
|
code_module.test_targets,
|
39
39
|
code_module.test_group_path,
|
40
|
-
code_module.test_file_path
|
40
|
+
code_module.test_file_path,
|
41
|
+
[code_module.project_group_path])
|
41
42
|
end
|
42
43
|
|
43
44
|
# Saving the current changes in the Xcode project
|
@@ -51,14 +52,14 @@ module Generamba
|
|
51
52
|
puts "Test group path: #{code_module.test_group_path}".green if code_module.test_group_path
|
52
53
|
end
|
53
54
|
|
54
|
-
def process_files_if_needed(files, code_module, template, project, targets, group_path, dir_path)
|
55
|
+
def process_files_if_needed(files, code_module, template, project, targets, group_path, dir_path, processed_groups = [])
|
55
56
|
# It's possible that current project doesn't test targets configured, so it doesn't need to generate tests.
|
56
57
|
# The same is for files property - a template can have only test or project files
|
57
58
|
if targets.count == 0 || files == nil || files.count == 0 || dir_path == nil || group_path == nil
|
58
59
|
return
|
59
60
|
end
|
60
61
|
|
61
|
-
XcodeprojHelper.clear_group(project, targets, group_path)
|
62
|
+
XcodeprojHelper.clear_group(project, targets, group_path) unless processed_groups.include? group_path
|
62
63
|
files.each do |file|
|
63
64
|
unless file[TEMPLATE_FILE_PATH_KEY]
|
64
65
|
directory_name = file[TEMPLATE_NAME_KEY].gsub(/^\/|\/$/, '')
|
data/lib/generamba/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: generamba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Egor Tolstoy
|
8
8
|
- Andrey Zarembo
|
9
9
|
- Beniamin Sarkisyan
|
10
|
+
- Aleksandr Sychev
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date:
|
14
|
+
date: 2017-08-29 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: thor
|
@@ -157,6 +158,9 @@ dependencies:
|
|
157
158
|
requirement: !ruby/object:Gem::Requirement
|
158
159
|
requirements:
|
159
160
|
- - "~>"
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '4.2'
|
163
|
+
- - ">="
|
160
164
|
- !ruby/object:Gem::Version
|
161
165
|
version: 4.2.7
|
162
166
|
type: :development
|
@@ -164,12 +168,15 @@ dependencies:
|
|
164
168
|
version_requirements: !ruby/object:Gem::Requirement
|
165
169
|
requirements:
|
166
170
|
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '4.2'
|
173
|
+
- - ">="
|
167
174
|
- !ruby/object:Gem::Version
|
168
175
|
version: 4.2.7
|
169
176
|
description: Generamba is a powerful and easy-to-use Xcode code generator. It provides
|
170
177
|
a project-based configuration, flexible templates system, the ability to generate
|
171
178
|
code and tests simultaneously.
|
172
|
-
email:
|
179
|
+
email: rambler.ios@rambler-co.ru
|
173
180
|
executables:
|
174
181
|
- generamba
|
175
182
|
extensions: []
|
@@ -260,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
260
267
|
version: '0'
|
261
268
|
requirements: []
|
262
269
|
rubyforge_project:
|
263
|
-
rubygems_version: 2.
|
270
|
+
rubygems_version: 2.6.6
|
264
271
|
signing_key:
|
265
272
|
specification_version: 4
|
266
273
|
summary: Advanced code generator for Xcode projects with a nice and flexible template
|