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 CHANGED
@@ -3,6 +3,7 @@ source 'http://rubygems.org'
3
3
  gem 'highline', '~> 1.6.15'
4
4
  gem 'json', '~> 1.8.0'
5
5
  gem 'rake', '~> 10.0.0'
6
+ gem 'sqlite3', '~> 1.3.7'
6
7
 
7
8
  group :development do
8
9
  gem 'jeweler', '~> 1.8.4'
@@ -12,6 +12,7 @@ GEM
12
12
  rake (10.0.4)
13
13
  rdoc (4.0.1)
14
14
  json (~> 1.4)
15
+ sqlite3 (1.3.7)
15
16
 
16
17
  PLATFORMS
17
18
  ruby
@@ -21,3 +22,4 @@ DEPENDENCIES
21
22
  jeweler (~> 1.8.4)
22
23
  json (~> 1.8.0)
23
24
  rake (~> 10.0.0)
25
+ sqlite3 (~> 1.3.7)
data/Rakefile CHANGED
@@ -31,3 +31,8 @@ desc "Allow GPS access"
31
31
  task :allow_gps_access do
32
32
  i.allow_gps_access("com.plu.FooApp")
33
33
  end
34
+
35
+ desc "Allow Addressbook access"
36
+ task :allow_ab_access do
37
+ i.allow_addressbook_access("com.plu.FooApp")
38
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "israkel"
8
- s.version = "0.3.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-08-12"
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
@@ -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.3.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-08-12 00:00:00.000000000 Z
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: -2173424026587738937
128
+ hash: 4391038321456430929
113
129
  required_rubygems_version: !ruby/object:Gem::Requirement
114
130
  none: false
115
131
  requirements: