digipolitan-apps-tools 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/digipolitan-apps-tools/file_utils.rb +5 -1
- data/lib/digipolitan-apps-tools/xcodeproj.rb +12 -0
- metadata +13 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f51531b117601df429d1054dba155b89e2e1452d
|
4
|
+
data.tar.gz: a008633956f48362ae53ed151c977e6a662a9514
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: decbd3cdc3f5a4f913a86ad47c0150836b7343111eef730a28a382829b0d702af660003efc97d24044e9a0e9ff15b4eb649db1ef73f47fc7ff2125bdfd377278
|
7
|
+
data.tar.gz: b5c728e7adc5b540eaa4385e6d8eaaca4eac3f60df7414e17c2e065d266ade65f6f0ea0d49a21f8b12b69f34af71eae60e107c5617001b7f9795e6387befda2c
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
|
6
6
|
---
|
7
7
|
|
8
|
+
## [0.2.2](https://github.com/Digipolitan/apps-tools/releases/tag/v0.2.2)
|
9
|
+
|
10
|
+
Renaming define in project and catch error during replacing content of files
|
11
|
+
|
12
|
+
---
|
13
|
+
|
8
14
|
## [0.2.1](https://github.com/Digipolitan/apps-tools/releases/tag/v0.2.1)
|
9
15
|
|
10
16
|
add require io/console
|
data/README.md
CHANGED
@@ -30,7 +30,11 @@ module Digipolitan
|
|
30
30
|
elsif File.file?(file_path)
|
31
31
|
content = File.read(file_path)
|
32
32
|
if content.include?(pattern)
|
33
|
-
|
33
|
+
begin
|
34
|
+
self.write_to_file(file_path, content.gsub(pattern, replacement))
|
35
|
+
rescue
|
36
|
+
Digipolitan::UI.error("Error during replacement of file at path #{file_path}")
|
37
|
+
end
|
34
38
|
end
|
35
39
|
end
|
36
40
|
end
|
@@ -16,6 +16,9 @@ module Digipolitan
|
|
16
16
|
ignored_entries = [".git", "DerivedData"]
|
17
17
|
Digipolitan::FileUtils.rename_files(project_name, app_name, ignored_entries)
|
18
18
|
Digipolitan::FileUtils.replace_contents_of_files(project_name, app_name, ignored_entries)
|
19
|
+
|
20
|
+
Digipolitan::FileUtils.replace_contents_of_files(self.build_define(project_name), self.build_define(app_name), ignored_entries)
|
21
|
+
|
19
22
|
Digipolitan::UI.success("Successfully replaced '#{project_name}' with '#{app_name}'")
|
20
23
|
end
|
21
24
|
end
|
@@ -23,5 +26,14 @@ module Digipolitan
|
|
23
26
|
def self.get_project()
|
24
27
|
return Dir['*.xcodeproj'].first
|
25
28
|
end
|
29
|
+
|
30
|
+
def self.build_define(project_name)
|
31
|
+
res = project_name.upcase
|
32
|
+
res = res.gsub(" ", "_")
|
33
|
+
return "_#{res}_H"
|
34
|
+
end
|
35
|
+
|
36
|
+
# Visibility
|
37
|
+
private_class_method :build_define
|
26
38
|
end
|
27
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: digipolitan-apps-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bbriatte
|
@@ -9,40 +9,38 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 0.8.1
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 0.8.1
|
28
|
-
description:
|
29
|
-
some iOS / Android app script.
|
30
|
-
|
31
|
-
'
|
28
|
+
description: |
|
29
|
+
Digipolitan Apps Tools is a Ruby library. This module help you building some iOS / Android app script.
|
32
30
|
email: contact@digipolitan.com
|
33
31
|
executables: []
|
34
32
|
extensions: []
|
35
33
|
extra_rdoc_files: []
|
36
34
|
files:
|
37
|
-
- CHANGELOG.md
|
38
|
-
- LICENSE
|
39
35
|
- README.md
|
40
|
-
-
|
36
|
+
- LICENSE
|
37
|
+
- CHANGELOG.md
|
41
38
|
- lib/digipolitan-apps-tools/argv.rb
|
42
39
|
- lib/digipolitan-apps-tools/file_utils.rb
|
43
40
|
- lib/digipolitan-apps-tools/ui.rb
|
44
41
|
- lib/digipolitan-apps-tools/xcodeproj.rb
|
45
|
-
|
42
|
+
- lib/digipolitan-apps-tools.rb
|
43
|
+
homepage: https://github.com/Digipolitan/apps-tools-ruby
|
46
44
|
licenses:
|
47
45
|
- BSD-3-Clause
|
48
46
|
metadata: {}
|
@@ -52,17 +50,17 @@ require_paths:
|
|
52
50
|
- lib
|
53
51
|
required_ruby_version: !ruby/object:Gem::Requirement
|
54
52
|
requirements:
|
55
|
-
- -
|
53
|
+
- - '>='
|
56
54
|
- !ruby/object:Gem::Version
|
57
55
|
version: 1.9.3
|
58
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
57
|
requirements:
|
60
|
-
- -
|
58
|
+
- - '>='
|
61
59
|
- !ruby/object:Gem::Version
|
62
60
|
version: '0'
|
63
61
|
requirements: []
|
64
62
|
rubyforge_project:
|
65
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.0.14.1
|
66
64
|
signing_key:
|
67
65
|
specification_version: 4
|
68
66
|
summary: Digipolitan Ruby tools for apps
|