bubble-wrap 0.4.0 → 1.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +9 -0
- data/GEM.md +104 -0
- data/HACKING.md +101 -0
- data/README.md +32 -4
- data/Rakefile +8 -9
- data/bubble-wrap.gemspec +2 -1
- data/lib/bubble-wrap/core.rb +1 -1
- data/lib/bubble-wrap/ext.rb +2 -2
- data/lib/bubble-wrap/ext/motion_project_app.rb +3 -3
- data/lib/bubble-wrap/ext/motion_project_config.rb +1 -0
- data/lib/bubble-wrap/http.rb +1 -1
- data/lib/bubble-wrap/loader.rb +3 -3
- data/lib/bubble-wrap/requirement.rb +1 -1
- data/lib/bubble-wrap/test.rb +8 -0
- data/lib/bubble-wrap/version.rb +1 -1
- data/lib_spec/bubble-wrap/ext/motion_project_app_spec.rb +138 -0
- data/lib_spec/bubble-wrap/requirement/path_manipulation_spec.rb +11 -12
- data/lib_spec/bubble-wrap/requirement_spec.rb +23 -22
- data/lib_spec/bubble-wrap_spec.rb +2 -1
- data/motion/core/app.rb +5 -0
- data/motion/core/device/screen.rb +2 -2
- data/motion/core/kvo.rb +91 -0
- data/motion/core/persistence.rb +7 -5
- data/motion/core/time.rb +15 -4
- data/motion/http.rb +54 -33
- data/{lib/tests → motion}/test_suite_delegate.rb +0 -0
- data/spec/core/app_spec.rb +15 -5
- data/spec/core/device/screen_spec.rb +8 -8
- data/spec/core/kvo_spec.rb +191 -0
- data/spec/core/ns_index_path_spec.rb +0 -1
- data/spec/core/persistence_spec.rb +28 -6
- data/spec/core/time_spec.rb +15 -0
- data/spec/http_spec.rb +434 -280
- metadata +95 -56
- data/spec_helper_patch.diff +0 -31
metadata
CHANGED
@@ -1,61 +1,81 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: bubble-wrap
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 1390682719
|
5
|
+
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
- pre
|
11
|
+
version: 1.0.0.pre
|
6
12
|
platform: ruby
|
7
|
-
authors:
|
13
|
+
authors:
|
8
14
|
- Matt Aimonetti
|
9
15
|
- Francis Chong
|
10
16
|
- James Harton
|
11
17
|
autorequire:
|
12
18
|
bindir: bin
|
13
19
|
cert_chain: []
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
requirements:
|
21
|
-
- - ! '>='
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: '0'
|
20
|
+
|
21
|
+
date: 2012-06-08 00:00:00 +02:00
|
22
|
+
default_executable:
|
23
|
+
dependencies:
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: bacon
|
24
26
|
type: :development
|
27
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
hash: 3
|
33
|
+
segments:
|
34
|
+
- 0
|
35
|
+
version: "0"
|
25
36
|
prerelease: false
|
26
|
-
|
37
|
+
requirement: *id001
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: mocha-on-bacon
|
40
|
+
type: :development
|
41
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
27
42
|
none: false
|
28
|
-
requirements:
|
29
|
-
- -
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
|
32
|
-
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
hash: 3
|
47
|
+
segments:
|
48
|
+
- 0
|
49
|
+
version: "0"
|
50
|
+
prerelease: false
|
51
|
+
requirement: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
33
53
|
name: rake
|
34
|
-
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
|
-
requirements:
|
37
|
-
- - ! '>='
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0'
|
40
54
|
type: :development
|
41
|
-
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
55
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
43
56
|
none: false
|
44
|
-
requirements:
|
45
|
-
- -
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 3
|
61
|
+
segments:
|
62
|
+
- 0
|
63
|
+
version: "0"
|
64
|
+
prerelease: false
|
65
|
+
requirement: *id003
|
66
|
+
description: RubyMotion wrappers and helpers (Ruby for iOS) - Making Cocoa APIs more Ruby like, one API at a time. Fork away and send your pull request.
|
67
|
+
email:
|
51
68
|
- mattaimonetti@gmail.com
|
52
69
|
- francis@ignition.hk
|
53
70
|
- james@sociable.co.nz
|
54
71
|
executables: []
|
72
|
+
|
55
73
|
extensions: []
|
56
|
-
|
74
|
+
|
75
|
+
extra_rdoc_files:
|
57
76
|
- lib/bubble-wrap/ext/motion_project_app.rb
|
58
77
|
- lib/bubble-wrap/ext/motion_project_config.rb
|
78
|
+
- lib_spec/bubble-wrap/ext/motion_project_app_spec.rb
|
59
79
|
- lib_spec/motion_stub.rb
|
60
80
|
- motion/core.rb
|
61
81
|
- motion/core/app.rb
|
@@ -63,6 +83,7 @@ extra_rdoc_files:
|
|
63
83
|
- motion/core/device/screen.rb
|
64
84
|
- motion/core/gestures.rb
|
65
85
|
- motion/core/json.rb
|
86
|
+
- motion/core/kvo.rb
|
66
87
|
- motion/core/ns_index_path.rb
|
67
88
|
- motion/core/ns_notification_center.rb
|
68
89
|
- motion/core/ns_user_defaults.rb
|
@@ -73,10 +94,13 @@ extra_rdoc_files:
|
|
73
94
|
- motion/core/ui_control.rb
|
74
95
|
- motion/core/ui_view_controller.rb
|
75
96
|
- motion/http.rb
|
76
|
-
|
97
|
+
- motion/test_suite_delegate.rb
|
98
|
+
files:
|
77
99
|
- .gitignore
|
78
100
|
- CHANGELOG.md
|
101
|
+
- GEM.md
|
79
102
|
- Gemfile
|
103
|
+
- HACKING.md
|
80
104
|
- LICENSE
|
81
105
|
- README.md
|
82
106
|
- Rakefile
|
@@ -90,8 +114,9 @@ files:
|
|
90
114
|
- lib/bubble-wrap/loader.rb
|
91
115
|
- lib/bubble-wrap/requirement.rb
|
92
116
|
- lib/bubble-wrap/requirement/path_manipulation.rb
|
117
|
+
- lib/bubble-wrap/test.rb
|
93
118
|
- lib/bubble-wrap/version.rb
|
94
|
-
-
|
119
|
+
- lib_spec/bubble-wrap/ext/motion_project_app_spec.rb
|
95
120
|
- lib_spec/bubble-wrap/requirement/path_manipulation_spec.rb
|
96
121
|
- lib_spec/bubble-wrap/requirement_spec.rb
|
97
122
|
- lib_spec/bubble-wrap_spec.rb
|
@@ -102,6 +127,7 @@ files:
|
|
102
127
|
- motion/core/device/screen.rb
|
103
128
|
- motion/core/gestures.rb
|
104
129
|
- motion/core/json.rb
|
130
|
+
- motion/core/kvo.rb
|
105
131
|
- motion/core/ns_index_path.rb
|
106
132
|
- motion/core/ns_notification_center.rb
|
107
133
|
- motion/core/ns_user_defaults.rb
|
@@ -112,11 +138,13 @@ files:
|
|
112
138
|
- motion/core/ui_control.rb
|
113
139
|
- motion/core/ui_view_controller.rb
|
114
140
|
- motion/http.rb
|
141
|
+
- motion/test_suite_delegate.rb
|
115
142
|
- spec/core/app_spec.rb
|
116
143
|
- spec/core/device/screen_spec.rb
|
117
144
|
- spec/core/device_spec.rb
|
118
145
|
- spec/core/gestures_spec.rb
|
119
146
|
- spec/core/json_spec.rb
|
147
|
+
- spec/core/kvo_spec.rb
|
120
148
|
- spec/core/ns_index_path_spec.rb
|
121
149
|
- spec/core/ns_notification_center_spec.rb
|
122
150
|
- spec/core/persistence_spec.rb
|
@@ -125,33 +153,44 @@ files:
|
|
125
153
|
- spec/core/ui_control_spec.rb
|
126
154
|
- spec/core_spec.rb
|
127
155
|
- spec/http_spec.rb
|
128
|
-
|
156
|
+
has_rdoc: true
|
129
157
|
homepage: http://bubblewrap.io/
|
130
158
|
licenses: []
|
159
|
+
|
131
160
|
post_install_message:
|
132
161
|
rdoc_options: []
|
133
|
-
|
162
|
+
|
163
|
+
require_paths:
|
134
164
|
- lib
|
135
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
136
166
|
none: false
|
137
|
-
requirements:
|
138
|
-
- -
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
|
141
|
-
|
167
|
+
requirements:
|
168
|
+
- - ">="
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
hash: 3
|
171
|
+
segments:
|
172
|
+
- 0
|
173
|
+
version: "0"
|
174
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
175
|
none: false
|
143
|
-
requirements:
|
144
|
-
- -
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
|
176
|
+
requirements:
|
177
|
+
- - ">"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
hash: 25
|
180
|
+
segments:
|
181
|
+
- 1
|
182
|
+
- 3
|
183
|
+
- 1
|
184
|
+
version: 1.3.1
|
147
185
|
requirements: []
|
186
|
+
|
148
187
|
rubyforge_project:
|
149
|
-
rubygems_version: 1.
|
188
|
+
rubygems_version: 1.5.3
|
150
189
|
signing_key:
|
151
190
|
specification_version: 3
|
152
|
-
summary: RubyMotion wrappers and helpers (Ruby for iOS) - Making Cocoa APIs more Ruby
|
153
|
-
|
154
|
-
|
191
|
+
summary: RubyMotion wrappers and helpers (Ruby for iOS) - Making Cocoa APIs more Ruby like, one API at a time. Fork away and send your pull request.
|
192
|
+
test_files:
|
193
|
+
- lib_spec/bubble-wrap/ext/motion_project_app_spec.rb
|
155
194
|
- lib_spec/bubble-wrap/requirement/path_manipulation_spec.rb
|
156
195
|
- lib_spec/bubble-wrap/requirement_spec.rb
|
157
196
|
- lib_spec/bubble-wrap_spec.rb
|
@@ -161,6 +200,7 @@ test_files:
|
|
161
200
|
- spec/core/device_spec.rb
|
162
201
|
- spec/core/gestures_spec.rb
|
163
202
|
- spec/core/json_spec.rb
|
203
|
+
- spec/core/kvo_spec.rb
|
164
204
|
- spec/core/ns_index_path_spec.rb
|
165
205
|
- spec/core/ns_notification_center_spec.rb
|
166
206
|
- spec/core/persistence_spec.rb
|
@@ -169,4 +209,3 @@ test_files:
|
|
169
209
|
- spec/core/ui_control_spec.rb
|
170
210
|
- spec/core_spec.rb
|
171
211
|
- spec/http_spec.rb
|
172
|
-
has_rdoc:
|
data/spec_helper_patch.diff
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
diff --git a/lib/motion/project/builder.rb b/lib/motion/project/builder.rb
|
2
|
-
index 39956a8..3e5a646 100644
|
3
|
-
--- a/lib/motion/project/builder.rb
|
4
|
-
+++ b/lib/motion/project/builder.rb
|
5
|
-
@@ -143,6 +143,7 @@ module Motion; module Project;
|
6
|
-
if config.spec_mode
|
7
|
-
# Build spec files too, but sequentially.
|
8
|
-
objs << build_file.call(File.expand_path(File.join(File.dirname(__FILE__), '../spec.rb')))
|
9
|
-
+ objs << build_file.call(config.spec_helper) if File.exist?(config.spec_helper)
|
10
|
-
spec_objs = config.spec_files.map { |path| build_file.call(path) }
|
11
|
-
objs += spec_objs
|
12
|
-
end
|
13
|
-
diff --git a/lib/motion/project/config.rb b/lib/motion/project/config.rb
|
14
|
-
index 8c7ba43..d43d9a3 100644
|
15
|
-
--- a/lib/motion/project/config.rb
|
16
|
-
+++ b/lib/motion/project/config.rb
|
17
|
-
@@ -253,7 +253,13 @@ module Motion; module Project
|
18
|
-
end
|
19
|
-
|
20
|
-
def spec_files
|
21
|
-
- Dir.glob(File.join(specs_dir, '**', '*.rb'))
|
22
|
-
+ files = Dir.glob(File.join(specs_dir, '**', '*.rb'))
|
23
|
-
+ files.delete(spec_helper)
|
24
|
-
+ files
|
25
|
-
+ end
|
26
|
-
+
|
27
|
-
+ def spec_helper
|
28
|
-
+ File.join(specs_dir, 'spec_helper.rb')
|
29
|
-
end
|
30
|
-
|
31
|
-
def motiondir
|