grope 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/grope/wso_wrapper.rb +11 -0
  3. metadata +7 -24
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -10,6 +10,10 @@ module Grope
10
10
  attr_reader :wso
11
11
 
12
12
  def self.wrap(value)
13
+ if value.respond_to?(:bool?) && value.bool?
14
+ return value.boolValue
15
+ end
16
+
13
17
  case value
14
18
  when nil
15
19
  nil
@@ -19,8 +23,12 @@ module Grope
19
23
  value
20
24
  when OSX::NSCFBoolean
21
25
  value.boolValue
26
+ when OSX::NSNumber
27
+ value.integer? ? value.to_i : value.to_f
22
28
  when OSX::NSCFNumber
23
29
  value.integer? ? value.to_i : value.to_f
30
+ when OSX::NSMutableString
31
+ value.to_s
24
32
  when OSX::NSCFString
25
33
  value.to_s
26
34
  else
@@ -75,3 +83,6 @@ module Grope
75
83
  end
76
84
  end
77
85
  end
86
+
87
+ class OSX::NSCFString
88
+ end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grope
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 1
9
- - 2
10
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
11
10
  platform: ruby
12
11
  authors:
13
12
  - youpy
@@ -15,18 +14,16 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-02-24 00:00:00 +09:00
17
+ date: 2011-09-21 00:00:00 +09:00
19
18
  default_executable: grope
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rspec
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
25
  - - ">="
28
26
  - !ruby/object:Gem::Version
29
- hash: 13
30
27
  segments:
31
28
  - 1
32
29
  - 2
@@ -38,11 +35,9 @@ dependencies:
38
35
  name: mechanize
39
36
  prerelease: false
40
37
  requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
39
  - - ">="
44
40
  - !ruby/object:Gem::Version
45
- hash: 23
46
41
  segments:
47
42
  - 1
48
43
  - 0
@@ -93,37 +88,25 @@ rdoc_options: []
93
88
  require_paths:
94
89
  - lib
95
90
  required_ruby_version: !ruby/object:Gem::Requirement
96
- none: false
97
91
  requirements:
98
92
  - - ">="
99
93
  - !ruby/object:Gem::Version
100
- hash: 3
101
94
  segments:
102
95
  - 0
103
96
  version: "0"
104
97
  required_rubygems_version: !ruby/object:Gem::Requirement
105
- none: false
106
98
  requirements:
107
99
  - - ">="
108
100
  - !ruby/object:Gem::Version
109
- hash: 3
110
101
  segments:
111
102
  - 0
112
103
  version: "0"
113
104
  requirements: []
114
105
 
115
106
  rubyforge_project:
116
- rubygems_version: 1.5.0
107
+ rubygems_version: 1.3.6
117
108
  signing_key:
118
109
  specification_version: 3
119
110
  summary: A non-GUI library to represent browser environment
120
- test_files:
121
- - examples/js_minifier.rb
122
- - examples/js_minifier_sinatra.rb
123
- - examples/map_generator.rb
124
- - examples/md5.rb
125
- - examples/patterns.rb
126
- - examples/url2png.rb
127
- - spec/env_spec.rb
128
- - spec/spec_helper.rb
129
- - spec/wso_wrapper_spec.rb
111
+ test_files: []
112
+