israkel 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -0
- data/Rakefile +5 -0
- data/VERSION +1 -1
- data/israkel.gemspec +5 -2
- data/lib/israkel/tasks.rb +9 -0
- metadata +19 -3
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/israkel.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "israkel"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Johannes Plunien", "Stefan Munz"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-09-18"
|
13
13
|
s.description = "Collection of common rake tasks for the iPhone Simulator like start/stop and some more."
|
14
14
|
s.email = ["johannes.plunien@xing.com", "stefan.munz@xing.com"]
|
15
15
|
s.extra_rdoc_files = [
|
@@ -38,17 +38,20 @@ Gem::Specification.new do |s|
|
|
38
38
|
s.add_runtime_dependency(%q<highline>, ["~> 1.6.15"])
|
39
39
|
s.add_runtime_dependency(%q<json>, ["~> 1.8.0"])
|
40
40
|
s.add_runtime_dependency(%q<rake>, ["~> 10.0.0"])
|
41
|
+
s.add_runtime_dependency(%q<sqlite3>, ["~> 1.3.7"])
|
41
42
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
42
43
|
else
|
43
44
|
s.add_dependency(%q<highline>, ["~> 1.6.15"])
|
44
45
|
s.add_dependency(%q<json>, ["~> 1.8.0"])
|
45
46
|
s.add_dependency(%q<rake>, ["~> 10.0.0"])
|
47
|
+
s.add_dependency(%q<sqlite3>, ["~> 1.3.7"])
|
46
48
|
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
47
49
|
end
|
48
50
|
else
|
49
51
|
s.add_dependency(%q<highline>, ["~> 1.6.15"])
|
50
52
|
s.add_dependency(%q<json>, ["~> 1.8.0"])
|
51
53
|
s.add_dependency(%q<rake>, ["~> 10.0.0"])
|
54
|
+
s.add_dependency(%q<sqlite3>, ["~> 1.3.7"])
|
52
55
|
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
53
56
|
end
|
54
57
|
end
|
data/lib/israkel/tasks.rb
CHANGED
@@ -3,6 +3,7 @@ require 'highline/import'
|
|
3
3
|
require 'json'
|
4
4
|
require 'rake'
|
5
5
|
require 'rake/tasklib'
|
6
|
+
require 'sqlite3'
|
6
7
|
|
7
8
|
module ISRakel
|
8
9
|
class Tasks < ::Rake::TaskLib
|
@@ -23,6 +24,14 @@ module ISRakel
|
|
23
24
|
define_stop_task
|
24
25
|
end
|
25
26
|
|
27
|
+
def allow_addressbook_access(bundle_id)
|
28
|
+
db_path = File.join(simulator_support_path, 'Library', 'TCC', 'TCC.db')
|
29
|
+
db = SQLite3::Database.new(db_path)
|
30
|
+
db.prepare "insert into access (service, client, client_type, allowed, prompt_count, csreq) values (?, ?, ?, ?, ?, ?)" do |query|
|
31
|
+
query.execute "kTCCServiceAddressBook", bundle_id, 0, 1, 0, ""
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
26
35
|
def allow_gps_access(bundle_id)
|
27
36
|
directory = File.join(simulator_support_path, 'Library', 'Caches', 'locationd')
|
28
37
|
FileUtils.mkdir_p(directory) unless Dir.exists?(directory)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: israkel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-09-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: highline
|
@@ -60,6 +60,22 @@ dependencies:
|
|
60
60
|
- - ~>
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 10.0.0
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: sqlite3
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.3.7
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 1.3.7
|
63
79
|
- !ruby/object:Gem::Dependency
|
64
80
|
name: jeweler
|
65
81
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
125
|
version: '0'
|
110
126
|
segments:
|
111
127
|
- 0
|
112
|
-
hash:
|
128
|
+
hash: 4391038321456430929
|
113
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
130
|
none: false
|
115
131
|
requirements:
|